:root {
  color-scheme: dark;
  --bg: #181613;
  --surface: #211e1a;
  --ink: #f7ede0;
  --muted: #c1b6a7;
  --accent: #eab17b;
  --line: #4e4439;
  --font: 'InterVariable', 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); }
body:has(dialog[open]) { overflow: hidden; }
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; }
h2 { font-size: clamp(2.65rem, 5vw, 4.75rem); line-height: 1.08; letter-spacing: -.052em; }
.shell { width: min(100% - clamp(32px, 9vw, 144px), 1280px); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 128px); }
.eyebrow { font: 600 .73rem/1.5 var(--font); letter-spacing: .12em; text-transform: uppercase; }
.section-index { color: var(--accent); margin-bottom: 14px; }
.accent { color: var(--accent); }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 5; top: 12px; left: 12px; background: var(--bg); padding: 10px 16px; }

.site-header { border-bottom: 1px solid var(--line); }
.nav-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font: 700 1.8rem/1 var(--font); letter-spacing: -.06em; }
.brand-mark { margin-right: 9px; color: var(--accent); font-size: 1.25rem; }
.brand-period { color: var(--accent); }
nav { display: flex; justify-content: center; gap: clamp(14px, 3vw, 38px); }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .88rem; }
nav a:hover, .footer-bottom a:hover { color: var(--accent); }

.hero { padding-top: clamp(16px, 2.9vw, 42px); }
.hero-frame { position: relative; isolation: isolate; display: flex; align-items: end; min-height: clamp(500px, 52vw, 660px); background: #35261e; border: 1px solid #694a36; }
.hero-image, .hero-frame::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-image { object-fit: cover; object-position: 78% 52%; }
.hero-frame::after { content: ''; background: linear-gradient(0deg, #150f0ded, #1b130f12 76%), linear-gradient(90deg, #170f0b9e, transparent 80%); }
.hero-copy { padding: clamp(26px, 5.1vw, 76px); }
.hero-copy .eyebrow { color: #f7d4ad; display: flex; align-items: center; gap: 10px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
h1 { font-size: clamp(4.1rem, 10.5vw, 10.4rem); line-height: .96; letter-spacing: -.079em; margin: 18px 0 22px; }
h1 em { color: #f1c393; }
.hero-lead { color: #f3e2d0; font-size: clamp(.98rem, 1.6vw, 1.18rem); }
.hero-link { display: inline-flex; align-items: center; gap: 24px; margin-top: 26px; padding: 11px 17px; border: 1px solid #e6bb90; background: #24191194; font-size: .88rem; }
.hero-link:hover { background: var(--accent); color: #21170e; }
.hero-label { position: absolute; right: 18px; top: 18px; padding: 6px 9px; background: #231911ed; color: var(--ink); }
.hero-caption { display: flex; justify-content: space-between; gap: 10px; padding-block: 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.hero-caption span:last-child { text-align: right; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.section-note { color: var(--muted); max-width: 32ch; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 23px; }
.filters button { border: 1px solid var(--line); border-radius: 100px; padding: 8px 16px; min-height: 44px; background: transparent; color: var(--ink); font-size: .86rem; }
.filters button:hover { border-color: var(--accent); }
.filters button[aria-pressed='true'] { border-color: var(--accent); background: var(--accent); color: var(--bg); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 20px; }
.photo-link { display: block; }
.photo { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--surface); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.photo-link:hover img { transform: scale(1.035); }
.photo-index { position: absolute; top: 13px; left: 13px; padding: 5px 8px; background: #18130eea; font-size: .74rem; font-variant-numeric: tabular-nums; }
.moment-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.moment-caption .eyebrow { color: var(--muted); margin-bottom: 4px; }
.moment-caption h3 { font-size: clamp(1.4rem, 3vw, 2.15rem); line-height: 1.2; }
.round-arrow { flex: 0 0 38px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; }
.photo-link:hover .round-arrow { background: var(--accent); color: var(--bg); border-color: var(--accent); }

.stories { background: var(--surface); border-block: 1px solid var(--line); }
.stories-layout, .about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 8vw, 110px); }
.stories .section-note { margin-top: 18px; }
.story-list { border-top: 1px solid var(--line); }
.story-list details { border-bottom: 1px solid var(--line); }
.story-list summary { display: grid; grid-template-columns: 30px 1fr 30px; align-items: center; gap: 14px; padding: 23px 0; cursor: pointer; list-style: none; }
.story-list summary::-webkit-details-marker { display: none; }
.story-list summary:hover .story-title { color: var(--accent); }
.story-title { font: 500 clamp(1.35rem, 2.5vw, 2.1rem)/1.2 var(--font); }
.story-number, .story-body .eyebrow { color: var(--accent); }
.story-toggle { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; aspect-ratio: 1; }
.story-toggle::after { content: '+'; }
details[open] .story-toggle::after { content: '−'; }
.story-body { padding: 0 20px 22px 44px; color: var(--muted); }
.story-body p + p { margin-top: 8px; }
.about { align-items: center; }
.about-art { position: relative; display: grid; place-items: center; min-height: 300px; background: radial-gradient(ellipse at center, #563829, #271d17 82%); border: 1px solid var(--line); }
.about-mark { font: italic 500 clamp(6rem, 13vw, 11rem)/1 var(--font); letter-spacing: -.1em; }
.about-mark span { color: var(--accent); }
.frame-corner { position: absolute; width: 18px; height: 18px; border: solid #bd9574; }
.top-left { top: 15px; left: 15px; border-width: 1px 0 0 1px; }
.bottom-right { right: 15px; bottom: 15px; border-width: 0 1px 1px 0; }
.art-caption { position: absolute; left: 18px; bottom: 15px; color: var(--muted); }
.about-copy > p:not(.eyebrow) { max-width: 43ch; color: var(--muted); margin-top: 20px; }
.site-footer { background: #201914; border-top: 1px solid var(--line); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block: 18px; color: var(--muted); font-size: .82rem; }

dialog { width: min(100% - 26px, 900px); max-height: calc(100dvh - 26px); padding: 0; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
dialog::backdrop { background: #090705e8; }
.viewer { padding: clamp(10px, 2vw, 20px); }
.viewer-top, .viewer-bottom, .viewer-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.viewer-top { margin-bottom: 10px; }
.viewer-top .eyebrow, #lightbox-count { color: var(--muted); }
.viewer-bottom { margin-top: 12px; }
.viewer-bottom h2 { font-size: clamp(1.3rem, 4vw, 2.15rem); }
#lightbox-count { margin-top: 5px; }
#lightbox-image { width: 100%; height: min(56dvh, 570px); object-fit: contain; background: #0e0c0a; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.35rem; }
.icon-button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }

@media (max-width: 700px) {
  .hero-frame { min-height: 490px; }
  .hero-frame::after { background: linear-gradient(0deg, #150f0dfa, #1b130f12 86%); }
  h1 em { display: block; }
  .section-head { align-items: start; flex-direction: column; gap: 12px; }
  .stories-layout, .about { grid-template-columns: 1fr; }
  .about-art { min-height: 230px; }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; gap: 24px; }
  .hero-caption { font-size: .65rem; letter-spacing: .06em; }
  .hero-label { right: 12px; top: 12px; }
  h1 { font-size: clamp(2.65rem, 12vw, 4.3rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .photo img { transition: none; }
  .photo-link:hover img { transform: none; }
}
