/* Hillside Stories prototype. Tokens first (light, then dark twice: system and chosen), then components.
   Palette: limewash paper, blue-black ink, one glacial river-grey accent. No honey colours. */
:root {
  --paper: #F1F0EB;
  --sheet: #FBFAF7;
  --stone: #E5E3DB;
  --ink: #121A1F;
  --ink-2: #343E45;
  --muted: #58636A;
  --rule: #CDCAC1;
  --control: #767D80;
  --river: #1D6570;
  --river-tint: #DCE7E6;
  --band: #141C21;
  --band-ink: #ECECE6;
  --band-muted: #AEB6B9;
  --band-rule: #34404A;
  --band-accent: #86C8CB;
  --err: #A1261B;
  --ok: #2A6A43;
  --shade: rgba(18, 26, 31, .06);
  --display: "Eczar", Georgia, "Times New Roman", serif;
  --text: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: clamp(1360px, 88vw, 1800px);
  --wrap-read: 1360px;
  --gut: clamp(16px, 3.4vw, 44px);
  --measure: 68ch;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1316; --sheet: #151C20; --stone: #1A2227; --ink: #E8E9E4; --ink-2: #C8CDCB; --muted: #9DA8AD;
    --rule: #2C373D; --control: #77848C; --river: #80C4C7; --river-tint: #13282B;
    --band: #19222A; --band-ink: #E8E9E4; --band-muted: #A7B1B5; --band-rule: #34414A; --band-accent: #80C4C7;
    --err: #FF9F92; --ok: #8ED4A6; --shade: rgba(0, 0, 0, .3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E1316; --sheet: #151C20; --stone: #1A2227; --ink: #E8E9E4; --ink-2: #C8CDCB; --muted: #9DA8AD;
  --rule: #2C373D; --control: #77848C; --river: #80C4C7; --river-tint: #13282B;
  --band: #19222A; --band-ink: #E8E9E4; --band-muted: #A7B1B5; --band-rule: #34414A; --band-accent: #80C4C7;
  --err: #FF9F92; --ok: #8ED4A6; --shade: rgba(0, 0, 0, .3); color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 1.125rem; line-height: 1.6; font-weight: 400; overflow-x: hidden; }
img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.012em; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--river); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 12px; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { display: block; outline: none; flex: 1 0 auto; }
em, i { font-style: italic; }
strong { font-weight: 700; }
.mono, .kicker, .ctx dt, .cap-src, .plate-no { font-family: var(--mono); font-weight: 500; font-synthesis: none; }

/* ---------- small type ---------- */
.kicker { font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--river); display: inline-flex; gap: .7em; flex-wrap: wrap; align-items: baseline; }
.kicker .sep { color: var(--muted); }
.kicker a { text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.label { font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: clamp(1.15rem, 1rem + .6vw, 1.42rem); line-height: 1.45; color: var(--ink-2); max-width: 52ch; }
.small { font-size: .9rem; color: var(--muted); }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: .5em 1.05em; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 600; font-size: 1rem; cursor: pointer; text-decoration: none; line-height: 1.1; border-radius: 0; }
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .55; cursor: progress; }
.more { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--river); padding-bottom: 1px; }
.more:hover { border-bottom-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; display: inline-flex; align-items: center; gap: .45em; padding: .3em .9em; border: 1px solid var(--control); background: transparent; font-size: .95rem; font-weight: 500; cursor: pointer; text-decoration: none; border-radius: 0; }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .n { font-family: var(--mono); font-size: .75rem; opacity: .75; }

/* ---------- header ---------- */
.site-header { background: var(--paper); position: relative; z-index: 20; }
.hd-strip { border-bottom: 1px solid var(--rule); font-size: .88rem; }
.hd-strip .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.hd-line { color: var(--muted); }
.hd-util { display: flex; gap: 20px; align-items: center; }
.hd-util a { text-decoration: none; color: var(--ink-2); }
.hd-util a:hover, .hd-util a[aria-current] { text-decoration: underline; color: var(--ink); }
.theme-btn { background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--ink-2); font-size: inherit; text-decoration: underline dotted; text-underline-offset: .25em; }
.hd-main { border-bottom: 4px solid var(--ink); }
.hd-row { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.wordmark { font-family: var(--display); font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.35rem); line-height: 1; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; padding-top: 6px; }
.wm-a { font-weight: 800; }
.wm-b { font-weight: 500; }
.hd-nav { margin-left: auto; }
.hd-nav ul { list-style: none; display: flex; gap: clamp(14px, 1.7vw, 30px); }
.hd-nav a { text-decoration: none; font-weight: 600; font-size: 1.02rem; padding: 28px 0 24px; border-bottom: 4px solid transparent; margin-bottom: -4px; display: block; white-space: nowrap; }
.hd-nav a:hover { border-bottom-color: var(--rule); }
.hd-nav a[aria-current="page"] { border-bottom-color: var(--river); }
.hd-search { display: inline-flex; padding: 8px; color: var(--ink); }
.menu-btn { display: none; margin-left: auto; min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); background: transparent; font-weight: 600; cursor: pointer; }
.mobile-menu { border-bottom: 4px solid var(--ink); background: var(--paper); }
.mobile-menu ul { list-style: none; }
.mm-main a { display: block; padding: 12px 0; font-family: var(--display); font-weight: 700; font-size: 1.5rem; text-decoration: none; border-bottom: 1px solid var(--rule); }
.mm-small { padding: 14px 0 22px; display: grid; gap: 2px; }
.mm-small a, .mm-small button { display: block; padding: 9px 0; text-decoration: none; font-size: 1rem; }
@media (max-width: 1180px) {
  .hd-nav, .hd-search { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .hd-row { min-height: 70px; }
}
@media (max-width: 640px) { .hd-line { display: none; } .hd-strip .wrap { justify-content: flex-end; } .hd-util { gap: 16px; } }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(56px, 8vw, 110px); background: var(--band); color: var(--band-ink); padding: 52px 0 32px; }
.site-footer a { color: var(--band-ink); }
.ft-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 32px; border-bottom: 1px solid var(--band-rule); }
.ft-brand p { color: var(--band-muted); margin-top: 12px; max-width: 34ch; }
.site-footer h2 { font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--band-muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 7px; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.ft-base { padding-top: 20px; display: grid; gap: 6px; color: var(--band-muted); font-size: .92rem; }
.ft-base .proto-link { justify-self: start; margin-top: 8px; }
.site-footer :focus-visible { outline-color: var(--band-accent); }
.proto-link { background: none; border: 1px dashed currentColor; padding: 6px 10px; cursor: pointer; font-size: .85rem; font-family: var(--mono); color: inherit; }
@media (max-width: 900px) { .ft-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ft-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .ft-top { grid-template-columns: minmax(0, 1fr); } }

/* ---------- section heads ---------- */
.sec { margin-top: clamp(48px, 7vw, 96px); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; border-top: 4px solid var(--ink); padding-top: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2.15rem); }
.sec-head .sec-note { color: var(--muted); font-size: .98rem; max-width: 60ch; }
.sec-head.thin { border-top-width: 1px; }

/* ---------- images and captions ---------- */
.ph { position: relative; background: var(--stone); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.r-wide { aspect-ratio: 16 / 7; }
.r-32 { aspect-ratio: 3 / 2; }
.r-43 { aspect-ratio: 4 / 3; }
.r-sq { aspect-ratio: 1 / 1; }
.r-45 { aspect-ratio: 4 / 5; }
.r-free img { height: auto; }
.zoomable { cursor: zoom-in; }
.ph .zoom-hint { position: absolute; right: 10px; bottom: 10px; background: rgba(14, 19, 22, .82); color: #fff; font-family: var(--mono); font-size: .7rem; padding: 4px 8px; letter-spacing: .05em; border: 0; cursor: pointer; }
.cap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 4px 24px; padding-top: 10px; font-size: .92rem; line-height: 1.45; color: var(--ink-2); }
.cap .cap-src { font-size: .72rem; color: var(--muted); text-align: right; letter-spacing: .02em; }
.cap .cap-src a { color: inherit; }
.cap-note { grid-column: 1 / -1; color: var(--muted); }
.prose .cap, .detail .cap { grid-template-columns: minmax(0, 1fr); }
.prose .cap .cap-src, .detail .cap .cap-src { text-align: left; }
@media (max-width: 760px) { .cap { grid-template-columns: minmax(0, 1fr); } .cap .cap-src { text-align: left; } }

/* ---------- context ledger (signature) ---------- */
.ctx { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); margin: 0; }
.ctx > div { padding: 10px 16px 12px 0; }
.ctx > div + div { padding-left: 16px; border-left: 1px solid var(--rule); }
.ctx dt { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--river); margin-bottom: 3px; }
.ctx dd { margin: 0; font-size: .95rem; line-height: 1.4; }
.ctx.compact dd { font-size: .86rem; }
@media (min-width: 861px) { .ctx.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .ctx { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ctx > div:nth-child(3) { padding-left: 0; border-left: 0; } .ctx > div:nth-child(n+3) { border-top: 1px solid var(--rule); } .ctx.three > div:nth-child(3) { grid-column: 1 / -1; } }
@media (max-width: 420px) { .ctx { grid-template-columns: minmax(0, 1fr); } .ctx > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } }
.ctxline { font-family: var(--mono); font-weight: 500; font-size: .74rem; letter-spacing: .03em; color: var(--muted); line-height: 1.5; }
.ctxline b { font-weight: 500; color: var(--river); letter-spacing: .08em; }

/* ---------- home ---------- */
.promise { padding: 18px 0 16px; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 24px; align-items: baseline; flex-wrap: wrap; }
.promise p { font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); color: var(--ink-2); max-width: 70ch; }
.promise p strong { color: var(--ink); font-weight: 600; }
.lead-feature { margin-top: 26px; }
.lead-feature .ph { aspect-ratio: 16 / 7.2; }
.lead-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px clamp(24px, 4vw, 64px); margin-top: 24px; }
.lead-title { font-size: clamp(2.5rem, 1.3rem + 4.4vw, 5.4rem); line-height: .98; letter-spacing: -.025em; margin-top: 10px; }
.lead-title a { text-decoration: none; }
.lead-title a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.lead-feature .lede { margin-top: 18px; }
.lead-side { display: grid; gap: 18px; align-content: start; padding-top: 6px; }
.lead-side .ctx { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.lead-side .ctx > div:nth-child(3) { padding-left: 0; border-left: 0; }
.lead-side .ctx > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
.lead-brief { list-style: none; display: grid; gap: 10px; }
.lead-brief li { padding-left: 22px; position: relative; font-size: 1rem; line-height: 1.45; }
.lead-brief li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 2px; background: var(--river); }
@media (max-width: 900px) { .lead-grid { grid-template-columns: minmax(0, 1fr); } .lead-feature .ph { aspect-ratio: 4 / 3; } }
/* home lead: title and standfirst before the photograph; the in-brief points and context after it */
.text-first .lead-photo { margin-top: 24px; }
.text-first .lead-brief { padding-top: 6px; }

/* object band */
.band { background: var(--band); color: var(--band-ink); padding: clamp(36px, 5vw, 64px) 0; margin-top: clamp(48px, 7vw, 96px); }
.band a { color: var(--band-ink); }
.band .kicker { color: var(--band-accent); }
.band .muted, .band .ctxline { color: var(--band-muted); }
.band .ctxline b { color: var(--band-accent); }
.band :focus-visible { outline-color: var(--band-accent); }
.obj-feature { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.obj-feature h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.6rem); margin: 10px 0 14px; }
.obj-feature h2 a { text-decoration: none; }
.obj-feature h2 a:hover { text-decoration: underline; }
.obj-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 22px 0; border-top: 1px solid var(--band-rule); }
.obj-facts dt, .obj-facts dd { padding: 10px 0; border-bottom: 1px solid var(--band-rule); margin: 0; }
.obj-facts dt { font-family: var(--mono); font-weight: 500; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--band-muted); padding-right: 20px; }
.obj-facts dd { font-size: .98rem; line-height: 1.45; }
.band .cap { color: var(--band-muted); }
.band .cap .cap-src { color: var(--band-muted); }
@media (max-width: 900px) { .obj-feature { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .obj-facts { grid-template-columns: minmax(0, 1fr); } .obj-facts dt { padding-bottom: 0; border-bottom: 0; } }

/* varied row */
.mix { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.mix > * + * { border-left: 1px solid var(--rule); padding-left: clamp(20px, 3vw, 44px); }
.story h3 { font-size: clamp(1.35rem, 1.1rem + .7vw, 1.8rem); margin: 10px 0 8px; }
.story h3 a { text-decoration: none; }
.story h3 a:hover { text-decoration: underline; }
.story .dek { color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.story .ctxline { margin-top: 10px; }
.story .ph { margin-bottom: 14px; }
.story.big h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem); }
@media (max-width: 1000px) { .mix { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .mix > :nth-child(3) { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 22px; } }
@media (max-width: 640px) { .mix { grid-template-columns: minmax(0, 1fr); } .mix > * + * { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 22px; } }

/* mini timeline / mini calendar on cards */
.mini-tl { list-style: none; margin-top: 14px; border-left: 2px solid var(--river); display: grid; gap: 8px; }
.mini-tl li { padding-left: 14px; font-size: .9rem; line-height: 1.35; }
.mini-tl b { font-family: var(--mono); font-weight: 500; font-size: .75rem; color: var(--river); display: block; }
.mini-cal { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; margin-top: 14px; }
.mini-cal span { height: 10px; background: var(--stone); }
.mini-cal span.on { background: var(--river); }
.mini-cal-k { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; font-family: var(--mono); font-size: .6rem; color: var(--muted); text-align: center; margin-top: 3px; }

/* cliff collection */
.cliff { background: var(--stone); padding: clamp(36px, 5vw, 64px) 0; margin-top: clamp(48px, 7vw, 96px); }
.cliff-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px clamp(24px, 4vw, 64px); align-items: end; border-top: 4px solid var(--ink); padding-top: 14px; }
.cliff-head h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); }
.cliff-head p { color: var(--ink-2); }
.cliff-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: clamp(20px, 3vw, 40px); margin-top: 30px; }
.cliff-grid > * + * { border-left: 1px solid var(--rule); padding-left: clamp(20px, 3vw, 40px); }
.cliff-next { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--rule); display: flex; gap: 14px 28px; flex-wrap: wrap; align-items: baseline; justify-content: space-between; }
.cliff-next p { max-width: 70ch; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 1000px) { .cliff-head, .cliff-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .cliff-grid > :first-child { grid-column: 1 / -1; } .cliff-grid > :nth-child(2) { border-left: 0; padding-left: 0; } }
@media (max-width: 640px) { .cliff-head, .cliff-grid { grid-template-columns: minmax(0, 1fr); } .cliff-grid > * + * { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 20px; } }

/* place module */
.place-mod { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.place-mod .map-box { border: 1px solid var(--rule); background: var(--sheet); padding: 10px; }
.place-mod h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem); margin: 8px 0 10px; }
.cov { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--rule); margin-top: 16px; }
.cov li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.cov li b { font-family: var(--mono); font-weight: 500; }
.cov li.gap b { color: var(--muted); }
@media (max-width: 1000px) { .place-mod { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .place-mod > :last-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .place-mod { grid-template-columns: minmax(0, 1fr); } }

/* film strip */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 30%); gap: 18px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.strip > figure { margin: 0; scroll-snap-align: start; }
.strip .ph { aspect-ratio: 4 / 3; }
.strip figcaption { font-size: .88rem; color: var(--ink-2); padding-top: 8px; line-height: 1.4; }
.plate-no { font-size: .7rem; color: var(--river); letter-spacing: .08em; display: block; margin-bottom: 2px; }
.strip:focus-visible { outline-offset: 6px; }
@media (max-width: 640px) { .strip { grid-auto-columns: 80%; } }

/* invitation */
.invite { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px clamp(24px, 4vw, 64px); border: 1px solid var(--ink); padding: clamp(22px, 3vw, 40px); background: var(--sheet); }
.invite h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); margin-bottom: 10px; }
.invite p { color: var(--ink-2); }
.invite .routes { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--rule); align-self: start; }
.invite .routes a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 600; }
.invite .routes a:hover span:first-child { text-decoration: underline; }
.invite .routes a span:last-child { color: var(--river); }
@media (max-width: 860px) { .invite { grid-template-columns: minmax(0, 1fr); } }

/* ---------- page heads (sections, collections) ---------- */
.page-head { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(18px, 2.4vw, 30px); background: linear-gradient(var(--rule), var(--rule)) bottom center / calc(100% - 2 * var(--gut)) 1px no-repeat; }
.page-head h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.6rem); line-height: 1; margin: 12px 0 14px; letter-spacing: -.025em; }
.page-head .lede { max-width: 62ch; }
.crumbs { font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ink-2); }
.listing { display: grid; gap: 0; margin-top: 8px; }
.row-story { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); gap: clamp(16px, 2.6vw, 36px); padding: 24px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.row-story .ph { aspect-ratio: 3 / 2; }
.row-story h3 { font-size: clamp(1.4rem, 1.15rem + .8vw, 1.95rem); margin: 8px 0 8px; }
.row-story h3 a { text-decoration: none; }
.row-story h3 a:hover { text-decoration: underline; }
.row-story .dek { color: var(--ink-2); font-size: 1.02rem; }
.row-story .row-meta { display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.row-story .row-meta .ctxline { font-size: .72rem; }
.row-story.no-img { grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); }
@media (max-width: 900px) { .row-story { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } .row-story .row-meta { grid-column: 2; } .row-story.no-img { grid-template-columns: minmax(0, 1fr); } .row-story.no-img .row-meta { grid-column: 1; } }
@media (max-width: 560px) { .row-story { grid-template-columns: minmax(0, 1fr); } .row-story .row-meta { grid-column: 1; } }
.filters { display: grid; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.filters fieldset { border: 0; padding: 0; margin: 0; display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; }
.filters legend { float: left; padding: 0; margin-right: 6px; font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); min-width: 9ch; }
.count { font-size: .95rem; color: var(--ink-2); padding: 14px 0 0; }
.empty { padding: 28px; border: 1px dashed var(--control); margin-top: 20px; }
.empty h2 { font-size: 1.4rem; margin-bottom: 6px; }
.two-col { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 960px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.aside-box { border-top: 4px solid var(--ink); padding-top: 12px; display: grid; gap: 12px; }
.aside-box h2 { font-size: 1.3rem; }
.aside-box p, .aside-box li { font-size: .98rem; color: var(--ink-2); }
.aside-box ul { list-style: none; display: grid; gap: 8px; }
.format-key { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); margin-top: 22px; }
.format-key > div { padding: 14px 18px 16px 0; border-bottom: 1px solid var(--rule); }
.format-key > div:not(:nth-child(3n+1)) { padding-left: 18px; border-left: 1px solid var(--rule); }
.format-key h2, .format-key h3 { font-size: 1.15rem; margin-bottom: 4px; }
.format-key p { font-size: .95rem; color: var(--ink-2); }
@media (max-width: 860px) { .format-key { grid-template-columns: minmax(0, 1fr); } .format-key > div:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; } }

/* ---------- article ---------- */
/* on wide screens an article's text keeps the reading width; its lead photograph uses the full page width */
.art > .wrap:not(.art-lead) { max-width: var(--wrap-read); }
.art-head { padding-top: clamp(18px, 2.6vw, 36px); }
.art-head h1 { font-size: clamp(2.5rem, 1.25rem + 4.6vw, 5.6rem); line-height: .98; letter-spacing: -.027em; margin: 10px 0 14px; max-width: 18ch; }
.art-head .lede { max-width: 60ch; }
.byline { margin-top: 14px; font-size: .95rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.byline .kind { color: var(--river); font-weight: 600; }
.about-story { margin-top: 8px; }
.about-story summary { cursor: pointer; width: max-content; max-width: 100%; padding: 4px 0; font-size: .95rem; font-weight: 600; color: var(--ink-2); }
.about-story summary:hover { color: var(--ink); }
.art-head .ctx { margin-top: 8px; }
.art-lead { margin-top: 22px; }
.art-lead .ph { aspect-ratio: 16 / 8; }
.art-lead.tall .ph { aspect-ratio: auto; max-height: 82vh; }
.art-lead.tall .ph img { height: auto; max-height: 82vh; object-fit: contain; margin: 0 auto; width: auto; }
.art-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); gap: clamp(28px, 4.6vw, 72px); margin-top: clamp(24px, 3vw, 40px); align-items: start; }
.art-rail { position: sticky; top: 16px; display: grid; gap: 22px; font-size: .95rem; max-height: calc(100vh - 32px); overflow: auto; }
.rail-box { border-top: 2px solid var(--ink); padding-top: 10px; }
.rail-box h2 { font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.rail-box ul, .rail-box ol { list-style: none; display: grid; gap: 7px; }
.rail-box li { line-height: 1.4; }
.toc a { text-decoration: none; color: var(--ink-2); display: block; padding-left: 12px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.toc a[aria-current="true"] { border-left-color: var(--river); color: var(--ink); font-weight: 600; }
.inbrief li { padding-left: 14px; position: relative; color: var(--ink-2); }
.inbrief li::before { content: ""; position: absolute; left: 0; top: .66em; width: 7px; height: 2px; background: var(--river); }
@media (max-width: 1060px) { .art-grid { grid-template-columns: minmax(0, 1fr); } .art-rail { position: static; max-height: none; order: -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .art-rail .toc-box { display: none; } .art-rail:not(:has(.coll-nav)) { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .art-rail { grid-template-columns: minmax(0, 1fr); } }

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.05em; }
.prose > h2:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.55rem, 1.25rem + .9vw, 2.1rem); margin-top: 2em; padding-top: 12px; border-top: 1px solid var(--ink); scroll-margin-top: 16px; }
.prose p { font-size: 1.16rem; line-height: 1.68; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .45em; font-size: 1.12rem; }
.prose li::marker { color: var(--river); }
.prose figure { margin: 2em 0; }
.prose figure.wide { margin-right: calc(-1 * min(340px, 22vw)); }
@media (max-width: 1060px) { .prose figure.wide { margin-right: 0; } }
.prose a { text-decoration-color: var(--river); }
.cite { font-family: var(--mono); font-weight: 500; font-size: .66em; vertical-align: super; line-height: 0; text-decoration: none; color: var(--river); padding: 0 1px; white-space: nowrap; }
.cite:hover { text-decoration: underline; }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--river); }
.prose blockquote p { font-family: var(--display); font-weight: 600; font-size: clamp(1.35rem, 1.15rem + .7vw, 1.75rem); line-height: 1.3; }
.prose blockquote footer { margin-top: 8px; font-size: .9rem; color: var(--muted); }
.note-box { border: 1px solid var(--rule); background: var(--sheet); padding: 18px 20px; }
.note-box h3 { font-family: var(--text); font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; letter-spacing: 0; }
.note-box p { font-size: 1.02rem !important; line-height: 1.55 !important; color: var(--ink-2); }

/* risk note */
.risk { border: 2px solid var(--ink); border-left-width: 10px; background: var(--sheet); padding: 18px 22px 16px; }
.risk h3 { font-family: var(--text); font-weight: 700; font-size: 1.1rem; letter-spacing: 0; margin-bottom: 8px; display: flex; gap: 10px; align-items: baseline; }
.risk h3 .label { color: var(--ink); }
.risk p { font-size: 1.02rem !important; line-height: 1.58 !important; }
.risk p + p { margin-top: .7em; }
.risk details { margin-top: 10px; font-size: .9rem; }
.risk summary { cursor: pointer; color: var(--ink-2); font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.risk ol { padding-left: 1.2em; display: grid; gap: 4px; margin-top: 6px; color: var(--ink-2); font-size: .88rem; }

/* roles: the crew sheet */
.roles { border-top: 4px solid var(--ink); }
.roles-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 10px 0; flex-wrap: wrap; }
.roles-head h3 { font-size: 1.35rem; }
.roles-head p { font-size: .9rem; color: var(--muted); max-width: 44ch; }
.roles ol { list-style: none; padding: 0 !important; display: grid; gap: 0 !important; counter-reset: role; }
.roles li { display: grid; grid-template-columns: 44px minmax(0, 13ch) minmax(0, 1fr); gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 1.02rem !important; counter-increment: role; }
.roles li::before { content: counter(role, decimal-leading-zero); font-family: var(--mono); font-weight: 500; font-size: .8rem; color: var(--river); padding-top: 4px; }
.roles .r-name { font-weight: 700; line-height: 1.3; }
.roles .r-does { color: var(--ink-2); line-height: 1.5; }
@media (max-width: 560px) { .roles li { grid-template-columns: 34px minmax(0, 1fr); } .roles .r-does { grid-column: 2; } }

/* steps */
.steps { border-top: 1px solid var(--ink); }
.steps h3, .cal h3, .tl h3, .terms h3, .detail h3, .tn h3 { font-size: 1.3rem; padding: 10px 0 6px; }
.steps ol { list-style: none; padding: 0 !important; display: grid; gap: 0 !important; counter-reset: st; }
.steps li { position: relative; padding: 10px 0 12px 46px; border-left: 2px solid var(--river); margin-left: 15px; counter-increment: st; font-size: 1.04rem !important; }
.steps li::before { content: counter(st); position: absolute; left: -16px; top: 9px; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); border: 2px solid var(--river); font-family: var(--mono); font-weight: 500; font-size: .8rem; display: grid; place-items: center; color: var(--river); }
.steps li:last-child { border-left-color: transparent; }
.steps .s-t { font-weight: 700; display: block; }
.steps .s-d { color: var(--ink-2); }

/* calendar */
.cal { border-top: 1px solid var(--ink); }
.cal-note, .prose .cal-note { font-size: .95rem; line-height: 1.5; color: var(--muted); margin-bottom: 10px; }
.cal-scroll { overflow-x: auto; }
.cal table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .9rem; }
.cal th, .cal td { padding: 0; }
.cal thead th { font-family: var(--mono); font-weight: 500; font-size: .68rem; color: var(--muted); text-align: center; padding-bottom: 6px; }
.cal tbody th { text-align: left; font-weight: 600; padding: 8px 12px 8px 0; width: 30%; line-height: 1.3; border-top: 1px solid var(--rule); }
.cal tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.cal td { border-top: 1px solid var(--rule); border-left: 1px solid var(--paper); height: 30px; }
.cal td.on { background: var(--river); }
.cal td.on.light { background: var(--river-tint); }
.cal .cal-src { font-family: var(--mono); font-size: .7rem; color: var(--muted); white-space: nowrap; padding-left: 8px; text-align: right; }
@media (max-width: 640px) {
  .cal table { min-width: 0; display: block; }
  .cal thead, .cal tbody { display: block; }
  .cal tr { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)) minmax(2.6em, auto); column-gap: 2px; }
  .cal thead th:first-child { display: none; }
  .cal thead th { font-size: .6rem; padding-bottom: 4px; }
  .cal tbody th { grid-column: 1 / -1; width: auto; padding: 10px 0 5px; }
  .cal td { height: 16px; border-top: 0; border-left: 0; background: var(--stone); }
  .cal td.cal-src { background: none; padding-left: 4px; font-size: .62rem; line-height: 16px; }
}

/* timeline */
.tl { border-top: 1px solid var(--ink); }
.tl ol { list-style: none; padding: 0 !important; display: grid; gap: 0 !important; }
.tl li { display: grid; grid-template-columns: 11ch minmax(0, 1fr); gap: 16px; padding: 10px 0; border-top: 1px solid var(--rule); font-size: 1.02rem !important; }
.tl .when { font-family: var(--mono); font-weight: 500; font-size: .85rem; color: var(--river); padding-top: 3px; }
@media (max-width: 480px) { .tl li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* then / now */
.tn { border-top: 4px solid var(--ink); }
.tn-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin-top: 6px; }
.tn-col { padding: 14px 20px 16px 0; }
.tn-col + .tn-col { padding-left: 20px; padding-right: 0; border-left: 1px solid var(--ink); }
.tn-col h4 { font-family: var(--display); font-size: 1.5rem; }
.tn-col .when { font-family: var(--mono); font-weight: 500; font-size: .78rem; color: var(--river); display: block; margin: 2px 0 10px; }
.tn-col ul { padding-left: 1.1em !important; font-size: 1.02rem !important; }
.tn-caveat { border-top: 1px solid var(--rule); padding-top: 10px; font-size: .95rem; color: var(--ink-2); }
.tn-caveat b { font-family: var(--mono); font-weight: 500; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
@media (max-width: 640px) { .tn-grid { grid-template-columns: minmax(0, 1fr); } .tn-col + .tn-col { padding-left: 0; border-left: 0; border-top: 1px solid var(--ink); } }

/* terms */
.terms { border-top: 1px solid var(--ink); }
.terms dl { display: grid; grid-template-columns: minmax(0, 16em) minmax(0, 1fr); gap: 0; margin: 0; }
@media (max-width: 640px) { .terms dl { grid-template-columns: minmax(0, 1fr); } .terms dd { border-top: 0; padding-top: 0; } }
.terms dt { overflow-wrap: anywhere; }
.terms dt, .terms dd { margin: 0; padding: 9px 0; border-top: 1px solid var(--rule); }
.terms dt { padding-right: 20px; font-style: italic; font-weight: 600; }
.terms dt .lang { display: block; font-style: normal; font-family: var(--mono); font-weight: 500; font-size: .68rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.terms dd { color: var(--ink-2); font-size: 1.02rem; }

/* facts: the object card */
.facts { border: 1px solid var(--ink); background: var(--sheet); }
.facts-head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--ink); font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dl { display: grid; grid-template-columns: minmax(0, 15ch) minmax(0, 1fr); margin: 0; }
.facts dt, .facts dd { margin: 0; padding: 11px 16px; border-bottom: 1px solid var(--rule); }
.facts dl > :nth-last-child(-n+2) { border-bottom: 0; }
.facts dt { font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--river); padding-top: 14px; }
.facts dd { font-size: 1.02rem; line-height: 1.5; }
@media (max-width: 560px) { .facts dl { grid-template-columns: minmax(0, 1fr); } .facts dt { padding-bottom: 0; border-bottom: 0; } }

/* detail: numbered looks at one photograph */
.detail { border-top: 1px solid var(--ink); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.detail-img { position: relative; }
.detail-img img { width: 100%; height: auto; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); border: 2px solid var(--paper); font-family: var(--mono); font-weight: 500; font-size: .78rem; display: grid; place-items: center; cursor: pointer; padding: 0; }
.pin[aria-pressed="true"] { background: var(--river); color: var(--paper); }
.detail ol { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px !important; }
@media (max-width: 640px) { .detail ol { grid-template-columns: minmax(0, 1fr); } }
.detail li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; font-size: .98rem !important; line-height: 1.45; align-items: start; }
.detail li p { font-size: .98rem !important; line-height: 1.45 !important; }
.detail-img { align-self: start; }
.crop { width: 96px; aspect-ratio: 1; background-repeat: no-repeat; border: 1px solid var(--rule); position: relative; }
.crop span { position: absolute; left: 4px; top: 4px; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: .68rem; padding: 1px 5px; }
.detail li.is-on .crop { outline: 3px solid var(--river); }
@media (max-width: 760px) { .detail-grid { grid-template-columns: minmax(0, 1fr); } }

/* plates (photo essay) */
.plates { display: grid; gap: clamp(36px, 5vw, 72px); margin-top: 10px; }
.plate { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(18px, 3vw, 40px); align-items: end; }
.plate:nth-child(even) { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.plate:nth-child(even) .plate-img { order: 2; }
.plate-img { margin: 0; }
.plate-text h2 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.85rem); margin: 4px 0 8px; border: 0; padding: 0; }
.plate-text p { font-size: 1.04rem; line-height: 1.6; color: var(--ink-2); }
.plate-text .cap { padding-top: 12px; border-top: 1px solid var(--rule); margin-top: 14px; grid-template-columns: minmax(0, 1fr); }
.plate-text .cap .cap-src { text-align: left; }
@media (max-width: 860px) { .plate, .plate:nth-child(even) { grid-template-columns: minmax(0, 1fr); } .plate:nth-child(even) .plate-img { order: 0; } }

/* evidence ledger */
.ledger { margin-top: clamp(40px, 5vw, 64px); border-top: 4px solid var(--ink); padding-top: 12px; }
.ledger > h2 { font-size: clamp(1.5rem, 1.2rem + .9vw, 2rem); margin-bottom: 14px; }
.ledger-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.ledger-col { padding: 4px 22px 8px 0; }
.ledger-col + .ledger-col { padding-left: 22px; border-left: 1px solid var(--rule); }
.ledger-col h3 { font-family: var(--mono); font-weight: 500; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--river); margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.ledger-col h3::before { content: ""; width: 12px; height: 12px; display: inline-block; }
.ledger-col.sup h3::before { background: var(--river); }
.ledger-col.not h3::before { border: 2px solid var(--river); }
.ledger-col.unk h3::before { border: 2px dashed var(--muted); }
.ledger-col ul { list-style: none; display: grid; gap: 10px; }
.ledger-col li { font-size: .98rem; line-height: 1.5; color: var(--ink-2); padding-top: 10px; border-top: 1px solid var(--rule); }
@media (max-width: 860px) { .ledger-grid { grid-template-columns: minmax(0, 1fr); } .ledger-col + .ledger-col { padding-left: 0; border-left: 0; margin-top: 14px; } }

.method-box { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 15ch) minmax(0, 1fr); gap: 8px 22px; padding: 16px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.method-box h2 { font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.method-box p { font-size: 1rem; color: var(--ink-2); max-width: 74ch; }
@media (max-width: 640px) { .method-box { grid-template-columns: minmax(0, 1fr); } }

.sources { margin-top: 36px; }
.sources > h2, .credits > h2, .elsewhere > h2, .corrections > h2 { font-size: 1.35rem; margin-bottom: 10px; }
.sources ol { padding-left: 2.2em; display: grid; gap: 10px; font-size: .95rem; line-height: 1.5; }
.sources li { color: var(--ink-2); scroll-margin-top: 20px; }
.sources li::marker { font-family: var(--mono); color: var(--river); font-size: .85em; }
.sources li:target, .sources li.flash { background: var(--river-tint); outline: 2px solid var(--river); outline-offset: 4px; }
.src-meta { display: block; font-family: var(--mono); font-weight: 500; font-size: .7rem; color: var(--muted); letter-spacing: .02em; margin-top: 2px; }
.src-back { font-size: .8rem; margin-left: 6px; }
.credits { margin-top: 32px; }
.credits ul { list-style: none; display: grid; gap: 8px; font-size: .92rem; color: var(--ink-2); }
.credits li { padding-top: 8px; border-top: 1px solid var(--rule); }
.elsewhere { margin-top: 32px; border: 1px solid var(--rule); padding: 18px 20px; background: var(--sheet); }
.elsewhere > h2 { font-size: 1.15rem; }
.elsewhere ul { list-style: none; display: grid; gap: 12px; }
.elsewhere a { font-weight: 600; }
.elsewhere .why { display: block; color: var(--ink-2); font-size: .98rem; }
.elsewhere .disc { color: var(--muted); font-size: .85rem; margin-top: 12px; }
.corrections { margin-top: 32px; display: flex; gap: 12px 26px; flex-wrap: wrap; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--ink); }
.corrections p { color: var(--ink-2); font-size: .98rem; }
.related { margin-top: clamp(40px, 5vw, 72px); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 36px); }
.related-grid .story .ph { aspect-ratio: 3 / 2; }
@media (max-width: 860px) { .related-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 560px) { .related-grid { grid-template-columns: minmax(0, 1fr); } }
.coll-nav { border: 1px solid var(--ink); padding: 14px 16px; background: var(--stone); }
.coll-nav ol { list-style: none; display: grid; gap: 6px; margin-top: 6px; counter-reset: cn; }
.coll-nav li { counter-increment: cn; display: grid; grid-template-columns: 22px 1fr; font-size: .95rem; }
.coll-nav li::before { content: counter(cn); font-family: var(--mono); font-size: .75rem; color: var(--river); padding-top: 3px; }
.coll-nav a[aria-current="page"] { font-weight: 700; text-decoration: none; }

/* ---------- place page and map ---------- */
.place-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.map-fig { margin: 0; }
.map-fig svg { width: 100%; height: auto; display: block; }
.map-fig figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.map-land { fill: var(--stone); stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.map-pt { fill: var(--river); stroke: var(--paper); stroke-width: 2; }
.map-pt.other { fill: var(--ink); }
.map-lab { font-family: var(--mono); font-size: 25px; fill: var(--ink); paint-order: stroke; stroke: var(--sheet); stroke-width: 6px; }
.map-lab.small { font-size: 21px; fill: var(--muted); }
.facts-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.facts-table th, .facts-table td { text-align: left; padding: 10px 12px 10px 0; border-top: 1px solid var(--rule); vertical-align: top; }
.facts-table th { font-family: var(--mono); font-weight: 500; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--river); width: 32%; padding-top: 13px; }
.cover-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 4px solid var(--ink); }
.cover-grid > div { padding: 14px 22px 10px 0; }
.cover-grid > div + div { padding-left: 22px; border-left: 1px solid var(--rule); }
.cover-grid h3 { font-family: var(--text); font-size: 1.15rem; letter-spacing: 0; margin-bottom: 10px; }
.cover-grid ul { list-style: none; display: grid; gap: 9px; }
.cover-grid li { font-size: .98rem; line-height: 1.45; color: var(--ink-2); padding-top: 9px; border-top: 1px solid var(--rule); }
@media (max-width: 960px) { .place-head, .cover-grid { grid-template-columns: minmax(0, 1fr); } .cover-grid > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } }

/* ---------- records pages ---------- */
.src-register { display: grid; gap: 0; }
.src-register .sr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); gap: 6px 24px; padding: 14px 0; border-top: 1px solid var(--rule); font-size: .96rem; }
.src-register .sr-used { font-size: .88rem; color: var(--muted); }
.src-register .sr-used a { color: var(--ink-2); }
@media (max-width: 760px) { .src-register .sr { grid-template-columns: minmax(0, 1fr); } }
.photo-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 22px; }
.photo-index figure { margin: 0; }
.photo-index .ph { aspect-ratio: 4 / 3; }
.photo-index figcaption { font-size: .86rem; color: var(--ink-2); padding-top: 8px; line-height: 1.4; display: grid; gap: 4px; }
.photo-index .cap-src { font-size: .7rem; color: var(--muted); }

/* ---------- static pages ---------- */
.page-body { max-width: 74ch; }
.page-body > * + * { margin-top: 1em; }
.page-body h2 { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.95rem); margin-top: 1.8em; padding-top: 10px; border-top: 1px solid var(--ink); scroll-margin-top: 16px; }
.page-body p, .page-body li { font-size: 1.1rem; line-height: 1.65; }
.page-body ul, .page-body ol { padding-left: 1.3em; display: grid; gap: .4em; }
.page-body li::marker { color: var(--river); }
.frame { border: 2px solid var(--ink); padding: 18px 22px; background: var(--sheet); }
.frame p + p { margin-top: .6em; }
.proto-flag { display: inline-block; font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .04em; background: var(--ink); color: var(--paper); padding: 2px 8px; vertical-align: middle; }
.toc-inline { list-style: none !important; padding: 0 !important; display: flex !important; flex-wrap: wrap; gap: 6px 18px !important; font-size: .98rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 12px 0 !important; }

/* ---------- forms ---------- */
.form-wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 960px) { .form-wrap { grid-template-columns: minmax(0, 1fr); } }
.routes-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.routes-pick label { display: grid; grid-template-columns: 22px 1fr; gap: 4px 10px; padding: 14px 16px; border: 1px solid var(--control); cursor: pointer; background: var(--sheet); }
.routes-pick input { margin: 4px 0 0; width: 18px; height: 18px; accent-color: var(--river); }
.routes-pick b { font-weight: 700; }
.routes-pick span { grid-column: 2; font-size: .92rem; color: var(--ink-2); line-height: 1.4; }
.routes-pick label:has(input:checked) { border: 2px solid var(--ink); padding: 13px 15px; }
@media (max-width: 560px) { .routes-pick { grid-template-columns: minmax(0, 1fr); } }
form fieldset { border: 0; padding: 0; margin: 0; }
form legend { font-family: var(--display); font-weight: 700; font-size: 1.3rem; margin-bottom: 12px; }
.field { display: grid; gap: 6px; margin-top: 18px; }
.field label, .field .flabel { font-weight: 600; }
.field .hint { font-size: .9rem; color: var(--muted); margin-top: -2px; }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--control); background: var(--sheet); border-radius: 0; font-size: 1.02rem; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--river); outline-offset: 1px; }
.field.invalid input, .field.invalid select, .field.invalid textarea, .field.invalid .checks { border-color: var(--err); box-shadow: inset 4px 0 0 var(--err); }
.ferr { color: var(--err); font-weight: 600; font-size: .95rem; }
.req { color: var(--muted); font-weight: 400; font-size: .9rem; }
.checks { display: grid; gap: 8px; border: 1px solid transparent; padding: 2px 0; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 1rem; }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--river); }
.err-sum { border: 2px solid var(--err); padding: 14px 18px; margin-bottom: 18px; background: var(--sheet); }
.err-sum h2 { font-family: var(--text); font-size: 1.1rem; letter-spacing: 0; color: var(--err); }
.err-sum ul { padding-left: 1.2em; margin-top: 6px; display: grid; gap: 4px; }
.err-sum a { color: var(--err); font-weight: 600; }
.form-state { border: 2px solid var(--ok); padding: 18px 22px; background: var(--sheet); }
.form-state.bad { border-color: var(--err); }
.form-state h2 { font-size: 1.4rem; margin-bottom: 6px; }
.form-state p + p { margin-top: .6em; }
.form-actions { display: flex; gap: 14px; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.proto-check { margin-top: 18px; border: 1px dashed var(--control); padding: 10px 14px; font-size: .9rem; color: var(--ink-2); }
.no-upload { margin-top: 18px; border-left: 4px solid var(--river); padding: 8px 0 8px 14px; font-size: .98rem; color: var(--ink-2); }

/* ---------- search ---------- */
.search-form { display: flex; gap: 10px; max-width: 760px; margin-top: 18px; }
.search-form input { flex: 1; min-height: 52px; padding: 10px 14px; border: 2px solid var(--ink); background: var(--sheet); font-size: 1.15rem; border-radius: 0; min-width: 0; }
.search-sugg { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
mark { background: var(--river-tint); color: inherit; padding: 0 2px; }

/* ---------- 404 ---------- */
.nf { padding-top: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); }
.nf h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.4rem); line-height: 1; margin: 12px 0 16px; }
.nf .nf-card { border: 1px solid var(--ink); background: var(--sheet); }
.nf .nf-card dl { display: grid; grid-template-columns: max-content 1fr; margin: 0; }
.nf .nf-card dt, .nf .nf-card dd { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--rule); }
.nf .nf-card dt { font-family: var(--mono); font-weight: 500; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--river); }
@media (max-width: 860px) { .nf { grid-template-columns: minmax(0, 1fr); } }

/* ---------- prototype notes panel ---------- */
.proto-panel { position: fixed; inset: 0 0 0 auto; width: min(560px, 100%); background: var(--sheet); color: var(--ink); border-left: 4px solid var(--ink); z-index: 60; overflow: auto; box-shadow: -30px 0 60px var(--shade); }
.proto-inner { padding: 22px max(24px, env(safe-area-inset-right, 0px)) max(40px, env(safe-area-inset-bottom, 0px)) 24px; }
.proto-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--ink); padding-bottom: 12px; margin-bottom: 14px; }
.proto-head h2 { font-size: 1.5rem; }
#proto-body h3 { font-family: var(--text); font-size: 1.05rem; letter-spacing: 0; margin: 18px 0 6px; }
#proto-body p, #proto-body li { font-size: .95rem; line-height: 1.5; color: var(--ink-2); }
#proto-body ul { padding-left: 1.1em; display: grid; gap: 5px; }
#proto-body .label { display: block; margin-top: 16px; }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: #0B0F12; color: #ECECE6; }
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lb-frame { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #2C373D; }
.lb-count { font-family: var(--mono); font-size: .8rem; color: #AEB6B9; }
.lb-ctrls { display: flex; gap: 8px; }
.lb-btn { min-height: 44px; min-width: 44px; padding: 0 14px; background: transparent; color: #ECECE6; border: 1px solid #6A777E; cursor: pointer; font-weight: 600; }
.lb-btn:hover { background: #ECECE6; color: #0B0F12; }
.lb-close { border-color: #ECECE6; }
.lb-btn:focus-visible { outline: 3px solid #86C8CB; outline-offset: 2px; }
.lb-stage { display: grid; place-items: center; padding: 12px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-cap { padding: 12px 18px 18px; border-top: 1px solid #2C373D; font-size: .95rem; max-width: 100ch; line-height: 1.5; }
.lb-cap .cap-src { display: block; font-family: var(--mono); font-size: .72rem; color: #AEB6B9; margin-top: 4px; }
.lb-cap a { color: #ECECE6; }

/* ---------- motion and print ---------- */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } .ph img { transition: transform .5s ease; } a.ph-link:hover .ph img { transform: scale(1.015); } }
@media print {
  .site-header, .site-footer, .art-rail, .related, .corrections, .proto-panel, .zoom-hint, .elsewhere { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .art-grid { display: block; }
  .prose figure.wide { margin-right: 0; }
  .sources li { break-inside: avoid; }
}

/* ==========================================================================
   WordPress build additions. Everything above this line is the prototype's
   stylesheet, unchanged. Nothing below changes how a prototype component looks.
   ========================================================================== */

/* The story filters are links on the live site (they work without scripts), so the chosen one is marked with aria-current. */
.chip[aria-current="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* The "Framed box" style of the Group block is the prototype's .frame. */
.is-style-hs-frame { border: 2px solid var(--ink); padding: 18px 22px; background: var(--sheet); }
.is-style-hs-frame p + p { margin-top: .6em; }

/* Contact form trap field: off screen for people, still there for robots. */
.hs-trap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Signed-in editors: keep in-page jumps clear of the WordPress toolbar. */
.admin-bar { scroll-padding-top: 48px; }

/* Larger touch areas for small links, without moving or resizing anything on screen:
   padding makes the link's own box taller; where the link is a flex item, an equal negative margin gives the space back. */
.hd-util a { padding-block: 7px; }
.toc a { padding-block: 2px; margin-block: -2px; }
.kicker a, .crumbs a { padding-block: 4px; margin-block: -4px; }
/* A large headline's link box reaches up over the small line above it; keep that line's links on top so they can be tapped. */
.kicker a { position: relative; z-index: 1; }
.coll-nav a.label { padding-block: 6px; }
a.cite { padding-block: 9px; }

/* On narrow screens the story rail sits in the page flow and never scrolls on its own. */
@media (max-width: 1060px) { .art-rail { overflow: visible; } }
