:root {
  --paper: #f4efe6;
  --paper-2: #ebe3d5;
  --ink: #2b2a27;
  --ink-soft: #5f5a51;
  --gold: #a87a35;
  --wall: #1f1e1c;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); }

.top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center;
  padding: 14px clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--paper-2); }
.mark { font: italic 600 1.6rem var(--serif); text-decoration: none; color: var(--gold); }
nav { display: flex; gap: clamp(14px, 3vw, 32px); }
nav a { text-decoration: none; font-size: .92rem; letter-spacing: .04em; color: var(--ink-soft); }
nav a:hover { color: var(--ink); }

section { padding: clamp(56px, 9vw, 110px) clamp(16px, 4vw, 48px); max-width: 1280px; margin: 0 auto; }

.hero { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(32px, 6vw, 72px); }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--gold); margin: 0 0 14px; }
h1 { font-size: clamp(3.4rem, 9vw, 6.6rem); letter-spacing: -.01em; }
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 34ch; margin: 22px 0 30px; }
.cta { display: inline-block; padding: 12px 22px; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; font-size: .95rem; transition: background .2s, color .2s; }
.cta:hover { background: var(--ink); color: var(--paper); }
.hero-art { margin: 0; }
.hero-art img { width: 100%; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .45); border: 10px solid #fff; }
.hero-art figcaption { margin-top: 12px; font: italic 500 1.1rem var(--serif); color: var(--ink-soft); text-align: right; }

.gallery-section { text-align: center; }
.hint { color: var(--ink-soft); margin: 10px 0 40px; }
.gallery { columns: 3 300px; column-gap: 28px; text-align: left; }
.card { break-inside: avoid; margin: 0 0 32px; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; color: inherit; font: inherit; }
.card img { width: 100%; background: var(--paper-2); border: 8px solid #fff; box-shadow: 0 14px 30px -18px rgb(0 0 0 / .4); transition: transform .35s ease, box-shadow .35s ease; }
.card:hover img, .card:focus-visible img { transform: translateY(-4px); box-shadow: 0 24px 40px -20px rgb(0 0 0 / .5); }
.card span { display: block; margin-top: 12px; font: 600 1.3rem/1.2 var(--serif); }
.card:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }

.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.about img { border: 10px solid #fff; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .45); max-height: 640px; width: auto; justify-self: center; }
.about p { max-width: 56ch; color: var(--ink-soft); }
.about h2 { margin-bottom: 18px; }
.sign { font: italic 600 2.4rem var(--serif); color: var(--gold) !important; margin: 18px 0 0; }

.contact { text-align: center; padding-bottom: clamp(70px, 10vw, 120px); }
.contact p { color: var(--ink-soft); margin: 14px 0 28px; }
footer { text-align: center; padding: 28px 16px 40px; font-size: .82rem; color: var(--ink-soft); border-top: 1px solid var(--paper-2); }

/* Viewer */
dialog { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--wall); color: #eee8dc; }
dialog::backdrop { background: var(--wall); }
dialog figure { margin: 0; height: 100%; display: grid; grid-template-columns: 1fr minmax(280px, 380px); }
dialog img { width: 100%; height: 100%; max-height: 100dvh; object-fit: contain; padding: clamp(20px, 4vw, 56px); }
dialog figcaption { padding: 72px 40px 40px; overflow-y: auto; border-left: 1px solid rgb(255 255 255 / .08); }
dialog h3 { font-size: 2.2rem; color: #fff; margin: 6px 0 20px; }
dialog p { margin: 0 0 14px; line-height: 1.7; color: #d8d1c3; }
.count { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #c9a467 !important; }
dialog button { position: absolute; background: rgb(255 255 255 / .08); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; cursor: pointer; }
dialog button:hover { background: rgb(255 255 255 / .18); }
.close { top: 14px; right: 14px; }
.prev { left: 14px; top: 50%; translate: 0 -50%; }
.next { right: calc(min(380px, 40vw) + 14px); top: 50%; translate: 0 -50%; }

@media (max-width: 820px) {
  .hero, .about { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .about img { max-height: 420px; }
  dialog figure { grid-template-columns: 1fr; grid-template-rows: minmax(0, 62dvh) auto; height: auto; min-height: 100%; }
  dialog img { padding: 64px 12px 12px; }
  dialog figcaption { padding: 8px 20px 32px; border: 0; }
  .prev, .next { top: calc(32px + 31dvh); }
  .next { right: 10px; }
  .prev { left: 10px; }
  dialog { overflow-y: auto; }
}
@media (max-width: 420px) { nav a { font-size: .85rem; } nav { gap: 12px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card img { transition: none; } }
