:root {
  --ink: #12222d;
  --muted: #53616a;
  --line: #d9dee0;
  --paper: #f6f5f1;
  --white: #ffffff;
  --blue: #185b82;
  --yellow: #f2b735;
  --orange: #ed6a3a;
  --max: 1480px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
body.dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--yellow); padding: .75rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
}
.wordmark { text-decoration: none; line-height: 1; text-transform: uppercase; letter-spacing: .06em; }
.wordmark span { display: block; font-size: .66rem; margin-bottom: .25rem; }
.wordmark strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.38rem; font-weight: 500; letter-spacing: .015em; text-transform: none; }
nav { display: flex; align-items: center; gap: 2rem; }
nav a { font-size: .84rem; font-weight: 650; text-decoration: none; }
nav a:not(.nav-contact):hover { color: var(--blue); }
.nav-contact { border: 1px solid var(--ink); padding: .66rem 1rem; }
.nav-contact:hover { background: var(--ink); color: var(--white); }
.nav-toggle { display: none; background: transparent; border: 0; font-weight: 700; }

.intro {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
  padding: clamp(3.5rem, 7vw, 7rem) 0;
}
.intro-copy { max-width: 580px; }
.eyebrow { margin: 0 0 1rem; color: var(--blue); font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.035em; line-height: .98; }
h1 { margin: 0; font-size: clamp(3.15rem, 6.3vw, 7.2rem); }
h2 { margin: 0; font-size: clamp(2.4rem, 4.4vw, 5.2rem); }
.intro-text { max-width: 540px; margin: 2rem 0 2.25rem; color: var(--muted); font-size: 1.15rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .78rem 1.25rem; border: 1px solid transparent; font-weight: 750; text-decoration: none; cursor: pointer; transition: .2s ease; }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: var(--blue); }
.button-outline { background: var(--white); border-color: var(--ink); }
.button-outline:hover { background: var(--ink); color: var(--white); }

.intro-visual { position: relative; min-height: clamp(500px, 48vw, 690px); }
.intro-visual figure { position: absolute; margin: 0; background: var(--paper); overflow: hidden; }
.intro-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-portrait { left: 0; top: 8%; width: 34%; height: 62%; z-index: 3; border: 10px solid var(--white); }
.hero-art-main { right: 0; top: 0; width: 70%; height: 67%; }
.hero-art-main img { object-fit: contain; background: #ecf3f7; }
.hero-art-small { right: 6%; bottom: 0; width: 43%; height: 37%; z-index: 2; border: 10px solid var(--white); }

.gallery-section { background: var(--paper); padding: clamp(4.5rem, 8vw, 8rem) max(24px, calc((100vw - var(--max)) / 2)); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(280px, 480px); gap: 3rem; align-items: end; }
.gallery-intro { margin: 0 0 .4rem; color: var(--muted); font-size: 1.04rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin: 3.5rem 0 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid #bfc6c9; }
.filter-button { border: 1px solid #aeb8bd; border-radius: 999px; background: transparent; padding: .58rem .88rem; font-size: .84rem; font-weight: 700; cursor: pointer; }
.filter-button:hover, .filter-button.active { border-color: var(--ink); background: var(--ink); color: var(--white); }
.gallery-status { margin: 1.25rem 0 1.75rem; color: var(--muted); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.art-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2vw, 2.5rem); }
.art-card { min-width: 0; }
.art-open { width: 100%; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.art-image { aspect-ratio: 4 / 5; background: #e7e7e3; overflow: hidden; }
.art-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.art-open:hover .art-image img { transform: scale(1.025); }
.art-open:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.art-info { padding: .9rem 0 0; }
.art-info h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; font-weight: 400; line-height: 1.2; }
.art-info-row { display: flex; justify-content: space-between; gap: 1rem; margin-top: .38rem; color: var(--muted); font-size: .82rem; }
.art-info-row strong { color: var(--ink); }
.load-more-wrap { display: flex; justify-content: center; margin-top: 3.5rem; }
.load-more-wrap[hidden] { display: none; }

.story-section { width: min(calc(100% - 48px), 1320px); margin: 0 auto; padding: clamp(5rem, 10vw, 10rem) 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.story-images { position: relative; min-height: 700px; }
.story-images figure { margin: 0; position: absolute; }
.story-image-large { left: 0; top: 0; width: 73%; height: 82%; }
.story-image-large img { width: 100%; height: 100%; object-fit: cover; }
.story-image-small { right: 0; bottom: 0; width: 48%; border: 10px solid var(--white); }
.story-copy > p:not(.eyebrow) { color: #384750; font-size: 1.04rem; }
blockquote { margin: 2.5rem 0; padding: 2rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
blockquote p { margin: 0 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.45rem, 2.3vw, 2.15rem); line-height: 1.2; }
blockquote cite { font-style: normal; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.story-feature { margin-top: 2.5rem; padding: 1.6rem; border-left: 5px solid var(--yellow); background: var(--paper); }
.story-feature-label { margin: 0 0 .45rem; color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.story-feature h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 400; line-height: 1.15; }
.story-feature > p:not(.story-feature-label) { margin: .75rem 0 1.25rem; color: var(--muted); }

.interact-section { background: var(--ink); color: var(--white); padding: clamp(4rem, 8vw, 7rem) max(24px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: .35fr 1.15fr .8fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.interact-label { color: var(--yellow); font-size: .77rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.interact-copy h2 { margin-bottom: 2rem; }
.interact-copy p, .interact-fact p { color: #d5dde1; }
.interact-copy a { text-decoration-color: var(--yellow); text-underline-offset: 3px; }
.interact-fact { border-top: 5px solid var(--yellow); padding-top: 1.25rem; }
.interact-contact { margin-top: 2rem; }
.interact-contact a { color: var(--white); font-weight: 750; text-decoration-color: var(--yellow); text-underline-offset: 4px; }

footer { padding: 2.3rem max(24px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 2rem; font-size: .78rem; }
.footer-mark { font-family: Georgia, "Times New Roman", serif; font-size: 1rem; }
footer p { color: var(--muted); text-align: center; }
footer > a { text-align: right; font-weight: 700; }

.art-dialog { width: min(1180px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; color: var(--ink); background: var(--white); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.art-dialog::backdrop { background: rgba(10, 24, 33, .83); }
.dialog-close { position: absolute; right: .8rem; top: .5rem; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--white); font-size: 2rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 14px rgba(0,0,0,.12); }
.dialog-layout { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 650px; }
.dialog-image-wrap { display: grid; place-items: center; min-height: 650px; padding: 2.5rem; background: #eef0ee; }
.dialog-image-wrap img { max-height: 78vh; width: 100%; height: 100%; object-fit: contain; }
.dialog-details { padding: clamp(2rem, 4vw, 4.5rem); overflow-y: auto; }
.dialog-details h2 { font-size: clamp(2.4rem, 4vw, 4.2rem); }
.dialog-meta { color: var(--muted); }
.dialog-price { margin: 1.3rem 0 1.8rem; font-size: 1.35rem; font-weight: 800; }
.purchase-note { display: grid; gap: .25rem; padding: 1rem; margin-bottom: 1.5rem; background: #eff5f7; font-size: .89rem; }
.purchase-note span { color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: grid; gap: .38rem; margin-bottom: .9rem; font-size: .78rem; font-weight: 800; letter-spacing: .03em; }
input, textarea { width: 100%; border: 1px solid #aab4b9; border-radius: 0; background: var(--white); padding: .75rem; color: var(--ink); font-size: 1rem; font-weight: 400; }
input:focus, textarea:focus { outline: 3px solid rgba(24,91,130,.25); border-color: var(--blue); }
.form-note { color: var(--muted); font-size: .75rem; }

@media (max-width: 1050px) {
  .art-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  nav { gap: 1rem; }
  .interact-section { grid-template-columns: .25fr 1fr; }
  .interact-fact { grid-column: 2; }
}

@media (max-width: 800px) {
  .site-header { width: calc(100% - 32px); min-height: 76px; position: relative; }
  .nav-toggle { display: block; }
  nav { display: none; position: absolute; left: -16px; right: -16px; top: 76px; z-index: 20; padding: 1.2rem 1rem; background: var(--white); border-bottom: 1px solid var(--ink); flex-direction: column; align-items: stretch; }
  nav.open { display: flex; }
  nav a { padding: .55rem; }
  .nav-contact { text-align: center; }
  .intro { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3rem; }
  .intro-visual { min-height: 500px; }
  .section-heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem .9rem; }
  .story-section { width: calc(100% - 32px); grid-template-columns: 1fr; }
  .story-images { min-height: 560px; }
  .interact-section { grid-template-columns: 1fr; }
  .interact-fact { grid-column: 1; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer p, footer > a { text-align: center; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-image-wrap { min-height: 420px; max-height: 58vh; }
}

@media (max-width: 520px) {
  h1 { font-size: 3.25rem; }
  .intro-visual { min-height: 390px; }
  .hero-portrait { width: 39%; height: 58%; border-width: 6px; }
  .hero-art-main { width: 74%; height: 64%; }
  .hero-art-small { width: 48%; height: 38%; border-width: 6px; }
  .gallery-section { padding-left: 16px; padding-right: 16px; }
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 1rem; }
  .filter-button { white-space: nowrap; }
  .art-grid { grid-template-columns: 1fr; }
  .art-image { aspect-ratio: 1 / 1.15; }
  .story-images { min-height: 430px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .dialog-image-wrap { min-height: 330px; padding: 1.5rem; }
  .dialog-details { padding: 2rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
