/* Ergod World landing page.
   One visual system, extended from the game's own UI (src/ui/theme.css, kit.css): two grounds only, deep
   teal instrument glass and parchment, taking turns; gold rules that run edge to edge; a period serif for
   names, a humanist sans for reading; chamfers only on buttons and badges. Colours sampled from the game's
   frames: golden-hour gold, river teal, meadow green, lantern amber as the accent. */
:root {
  --night: #0f1b1f;
  --night-2: #16282b;
  --panel: #13262a;
  --ink: #f2e6cc;
  --ink-muted: #cfc2a4;
  --gold: #e6c17f;
  --rule: #c4aa76;
  --rule-soft: rgba(196, 170, 118, .34);
  --amber: #f3bc86;
  --ember: #d4583f;
  --verdigris: #8fbea3;
  --focus: #f0d097;

  --cream: #f5eedb;
  --parch: #ede2c4;
  --card: #fbf6e8;
  --p-ink: #261f16;
  --p-muted: #574a36;
  --p-rule: rgba(110, 80, 40, .26);
  --p-link: #22605a;
  --p-accent: #6a4c18;

  --display: "Palatino Linotype", "Book Antiqua", Palatino, "Cormorant Garamond", Georgia, serif;
  --text: "Segoe UI", system-ui, -apple-system, "Noto Sans", Roboto, sans-serif;
  --gutter: 16px;
  --chamfer: 7px;
  --clip: polygon(var(--chamfer) 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, var(--chamfer) 100%, 0 calc(100% - var(--chamfer)), 0 var(--chamfer));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--night); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: var(--gold); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 60; background: var(--gold); color: var(--night); padding: .5rem .9rem; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Top bar: over the hero, then a solid sticky bar with section links ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; gap: 1rem; padding: max(10px, env(safe-area-inset-top)) var(--gutter) 10px; transition: background .2s ease, box-shadow .2s ease; }
.topbar.is-solid { background: rgba(15, 27, 31, .94); box-shadow: 0 1px 0 var(--rule-soft); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font: 600 1.15rem/1 var(--display); letter-spacing: .02em; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.brand img { border-radius: 7px; }
.nav { display: none; margin-left: auto; gap: 1.2rem; }
.nav a { color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.nav a:hover { color: var(--gold); }
.topbar-cta { margin-left: auto; color: #1d1405; text-decoration: none; font-weight: 700; font-size: .85rem; padding: .5rem .85rem; background: linear-gradient(180deg, #f8d58e, var(--amber) 55%, #d9954a); clip-path: var(--clip); white-space: nowrap; }
.topbar-cta:hover { color: #1d1405; filter: brightness(1.06); }

/* ---------- Hero: one full-bleed shot (portrait crop on phones), text over a soft gradient ---------- */
.hero { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; background: var(--night); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--night-2); overflow: hidden; }
.hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-video { opacity: 0; transition: opacity .6s ease; }
.hero-video.is-playing { opacity: 1; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,27,31,.5) 0%, rgba(15,27,31,0) 14%), linear-gradient(0deg, rgba(15,27,31,.95) 0%, rgba(15,27,31,.82) 34%, rgba(15,27,31,.35) 58%, rgba(15,27,31,0) 72%); }
.hero-badges { position: absolute; right: var(--gutter); top: calc(max(10px, env(safe-area-inset-top)) + 52px); display: flex; align-items: center; gap: .3rem; z-index: 2; }
.engine-tag { display: inline-flex; align-items: center; gap: .35rem; margin: 0; min-height: 28px; padding: 0 .55rem; font: 600 .66rem var(--text); letter-spacing: .1em; text-transform: uppercase; color: rgba(242,230,204,.85); background: rgba(15,27,31,.45); border-radius: 2px; }
.engine-tag span { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); }
.hero-inner { position: relative; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter) 22px; }
.eyebrow { margin: 0 0 .5rem; color: var(--gold); font-weight: 600; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.hero h1 { margin: 0; font: 600 clamp(2.35rem, 10.5vw, 5.6rem)/1.04 var(--display); letter-spacing: -.01em; color: var(--ink); text-wrap: balance; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.hero-line { margin: .85rem 0 1.1rem; max-width: 30rem; font: 400 clamp(1.05rem, 4vw, 1.35rem)/1.4 var(--display); color: var(--ink); text-shadow: 0 1px 10px rgba(0,0,0,.6); }

.hero-trailer { margin: .6rem 0 0; }
.trailer-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 36px; padding: 0; border: 0; background: none; cursor: pointer; font: 600 .88rem var(--text); color: rgba(242,230,204,.88); text-decoration: underline; text-decoration-color: rgba(230,193,127,.5); text-underline-offset: .25em; }
.trailer-link:hover { color: var(--gold); }
.tri { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.lightbox { width: min(1100px, 94vw); max-width: none; padding: 0; border: 0; background: transparent; color: var(--ink); }
.lightbox::backdrop { background: rgba(5, 10, 12, .88); }
.lightbox-inner { position: relative; background: var(--night); border-top: 2px solid var(--rule); }
.lightbox-media { aspect-ratio: 16 / 9; background: #000; }
.lightbox-media video { width: 100%; height: 100%; }
.lightbox-close { position: absolute; right: 0; top: -46px; min-height: 40px; padding: 0 .9rem; border: 0; cursor: pointer; font: 700 .9rem var(--text); color: #1d1405; background: linear-gradient(180deg, #f8d58e, var(--amber) 55%, #d9954a); clip-path: var(--clip); }
.lightbox-note { margin: 0; padding: .6rem .9rem; font-size: .85rem; color: var(--ink-muted); }
.credit { font-size: .82rem; }
.law { margin: 16px 1rem 0; padding: .8rem 1rem .4rem; background: rgba(34, 96, 90, .08); border-left: 3px solid var(--p-link); }
.law-label { margin: 0 0 .2rem; font: 700 .72rem var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--p-link); }
.law .claims li:first-child { border-top: 0; }
.law b { color: var(--p-ink); }

/* ---------- Buttons and chips (chamfered, brass: the game's button family) ---------- */
.btn { min-height: 52px; padding: 0 1.4rem; border: 0; cursor: pointer; font: 700 1rem var(--text); color: #1d1405; background: linear-gradient(180deg, #f8d58e 0%, var(--amber) 48%, #d9954a 100%); clip-path: var(--clip); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(90,50,10,.35); }
.btn:hover { filter: brightness(1.06); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--night), inset 0 0 0 5px var(--focus); }
.btn[disabled] { opacity: .65; cursor: progress; }
.chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 34px; padding: 0 .75rem; font: 600 .8rem var(--text); color: var(--ink); cursor: pointer; background: rgba(15,27,31,.6); border: 0; clip-path: var(--clip); }
.chip:hover { color: var(--gold); }
.chip:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--focus); }
.chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#hero-pause .ico-play { display: none; fill: currentColor; stroke: none; }
#hero-pause[aria-pressed="true"] .ico-play { display: block; }
#hero-pause[aria-pressed="true"] .ico-pause { display: none; }
.chip[hidden] { display: none; }
.link-btn { padding: .3rem 0; border: 0; background: none; cursor: pointer; font: 600 .92rem var(--text); color: inherit; text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Sign-up ---------- */
.signup { max-width: 34rem; }
.field-label { display: block; margin: 0 0 .35rem; font: 600 .78rem var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.signup-row { display: flex; flex-direction: column; gap: .5rem; }
.signup input[type="email"] { width: 100%; min-height: 52px; padding: 0 1rem; font: 400 1.05rem var(--text); color: var(--ink); background: rgba(15,27,31,.82); border: 1px solid var(--rule); border-radius: 3px; }
.signup input[type="email"]::placeholder { color: rgba(207,194,164,.75); }
.signup input[type="email"]:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(240,208,151,.35); }
.consent { margin: .65rem 0 0; font-size: .87rem; line-height: 1.45; color: var(--ink-muted); text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.signup-status { margin: .4rem 0 0; min-height: 1.4em; font-weight: 600; }
.signup-status.ok { color: #b9e3a3; }
.signup-status.err { color: #ffb59a; }
.signup.is-done .signup-row, .signup.is-done .field-label { display: none; }
.signup.is-done .signup-status { padding: .8rem 1rem; background: rgba(143,190,163,.16); border-top: 2px solid var(--verdigris); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.target-msg { display: none; margin: 0 auto 1.2rem; max-width: 34rem; padding: .8rem 1rem; background: rgba(143,190,163,.16); border-top: 2px solid var(--verdigris); text-align: left; }
.target-msg p { margin: 0; }
.target-err { background: rgba(212,88,63,.16); border-top-color: var(--ember); }
.target-msg:target { display: block; }

/* ---------- Sections: two grounds, alternating ---------- */
.section { position: relative; padding: 68px 0; }
.section.dark { background: var(--night); color: var(--ink); }
.section.light { background: linear-gradient(180deg, var(--cream), var(--parch)); color: var(--p-ink); }
.section.light a, .section.light .link-btn { color: var(--p-link); }
.intro { max-width: 44rem; margin-bottom: 26px; }
.kicker { margin: 0 0 .6rem; font-weight: 700; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.light .kicker { color: var(--p-accent); }
h2 { margin: 0 0 .9rem; font: 600 clamp(2rem, 7.5vw, 3.5rem)/1.06 var(--display); letter-spacing: -.005em; text-wrap: balance; }
.dark h2 { color: var(--ink); }
.light h2 { color: var(--p-ink); }
h3 { font: 600 1.35rem/1.2 var(--display); margin: 0 0 .35rem; }
.lede { font-size: 1.1rem; line-height: 1.55; margin: 0; }
.fine { margin: 20px 0 0; font-size: .86rem; }
.dark .fine { color: var(--ink-muted); }
.light .fine { color: var(--p-muted); }
.build-tag { display: inline-block; margin-right: .35rem; padding: .08rem .5rem; font: 700 .68rem/1.6 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--night); background: var(--verdigris); vertical-align: .1em; }

/* Cards: square corners, a gold rule edge to edge */
.card, .verb, .path, .col, .person, .note, .excerpt { border-top: 2px solid var(--rule); }

/* ---------- Clips (poster first; the video loads on press) ---------- */
.clip { margin: 0; }
.clip-media { position: relative; aspect-ratio: 16 / 9; background: #0a1215; overflow: hidden; }
.clip-media img, .clip-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip-media video { opacity: 0; transition: opacity .5s ease; }
.clip-media video.is-on { opacity: 1; }
.clip-sound { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: .4rem; min-height: 32px; padding: 0 .65rem; border: 0; cursor: pointer; font: 700 .75rem var(--text); color: var(--ink); background: rgba(15,27,31,.62); border-radius: 2px; }
.clip-sound[aria-pressed="true"] { color: #1d1405; background: var(--amber); }
.clip-sound:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.snd { width: 10px; height: 10px; background: currentColor; clip-path: polygon(0 30%, 35% 30%, 75% 0, 75% 100%, 35% 70%, 0 70%); }
.no-js .clip-sound { display: none; }

/* Background bands: a darkened loop behind a section heading */
.section-banded { padding-top: 0; }
.band { position: relative; isolation: isolate; min-height: 48vh; display: flex; align-items: flex-end; margin-bottom: 40px; color: var(--ink); overflow: hidden; }
.band-media { position: absolute; inset: 0; z-index: -2; aspect-ratio: auto; }
.band-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(15,27,31,.92) 0%, rgba(15,27,31,.7) 45%, rgba(15,27,31,.45) 100%); }
.band-text { padding-top: 120px; padding-bottom: 36px; }
.band-text h2, .band-text .lede { color: var(--ink); max-width: 44rem; }
.band-text .kicker { color: var(--gold); }
.light .band-text .lede { color: var(--ink); }

/* Villager cards: each one in their place (a muted moving preview where clean footage exists, a still where it
   doesn't), their name over the picture, and their line as a caption */
.villagers { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.villager { position: relative; }
.villager-card { position: relative; margin: 0; background: #0a1215; border-top: 2px solid var(--rule); }
.villager-card .clip-media { aspect-ratio: 4 / 3; }
.villager-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,18,21,.86) 0%, rgba(10,18,21,.3) 32%, rgba(10,18,21,0) 50%); pointer-events: none; }
.villager-name { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; margin: 0; font-size: .82rem; color: var(--ink-muted); }
.villager-name b { display: block; font: 600 1.45rem/1.1 var(--display); color: var(--gold); }
.villager-line { margin: .85rem 0 0; padding: 0; }
.villager-line p { margin: 0; font: italic 400 1.14rem/1.42 var(--display); color: var(--ink); }
.villager-life { margin: .6rem 0 .25rem; font-size: .95rem; color: var(--ink); }
.villager-day { margin: 0; font-size: .82rem; line-height: 1.5; color: var(--ink-muted); }
.villager-day b { color: var(--verdigris); font-weight: 600; }
.story-clip { margin-top: 20px; }
/* The walk pair shows the whole 4:3 frame, boots included */
.pair-full .clip-media { aspect-ratio: 4 / 3; }
.story-clip .clip-media { border-top: 2px solid var(--rule); }
.clip figcaption { margin-top: .7rem; font-size: .95rem; }
.light .clip figcaption { color: var(--p-muted); }
.clip-wide { margin: 0 0 22px; }
/* A still in place of a clip (the forge in Work, the quay coil on the making page) */
.clip > img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-top: 2px solid var(--rule); }
.dark .clip figcaption { color: var(--ink-muted); }

/* ---------- Work: verb cards ---------- */
.verbs { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.verb { background: var(--card); color: var(--p-ink); }
.verb h3, .verb p { padding: 0 1rem; }
.verb h3 { margin-top: .85rem; }
.verb p { margin: 0 0 1rem; color: var(--p-muted); }
/* Text-only cards: six jobs, three across on wider screens, so no column sits empty */
.verbs-text .verb { padding-top: .1rem; }
.verbs-text .verb h3 { font-size: 1.25rem; }

/* ---------- People ---------- */
.intro-split { display: grid; gap: 22px; align-items: center; margin-bottom: 26px; }
.intro-split .intro { margin-bottom: 0; }
.t-mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .t-touch { display: none; } .t-mouse { display: inline; } }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.person { display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto auto 1fr auto auto; column-gap: 1rem; padding: 1rem; background: var(--panel); }
.person.is-playing { box-shadow: inset 0 0 0 2px var(--amber); }
.person-face { grid-row: 1 / span 2; width: 96px; height: 120px; object-fit: cover; background: var(--night-2); }
.person-mono { display: grid; place-items: center; background: linear-gradient(160deg, #3d5c58, #1d3433); }
.person-mono span { font: 600 2.8rem/1 var(--display); color: var(--gold); }
.mono-maud { background: linear-gradient(160deg, #5a4a6e, #2a2440); }
.mono-gil { background: linear-gradient(160deg, #5c6a3a, #263018); }
.mono-hal { background: linear-gradient(160deg, #7a5a34, #3a2a18); }
.person-head { grid-column: 2; }
.person-name { margin: 0; font: 600 1.35rem/1.15 var(--display); color: var(--gold); }
.person-role { margin: .2rem 0 0; font-size: .84rem; color: var(--verdigris); }
.person-life { grid-column: 2; margin: .5rem 0 0; font-size: .95rem; color: var(--ink-muted); }
.day-box, .person blockquote, .voice-play, .person audio { grid-column: 1 / -1; }
.day-box { margin: .8rem 0 0; }
.day-box summary { cursor: pointer; width: max-content; min-height: 32px; padding: .2rem 0; font: 600 .86rem var(--text); color: var(--verdigris); list-style: none; }
.day-box summary::-webkit-details-marker { display: none; }
.day-box summary::before { content: "+"; display: inline-block; width: 1.1em; font-weight: 700; color: var(--gold); }
.day-box[open] summary::before { content: "\2212"; }
.day { list-style: none; margin: .5rem 0 0; padding: 0 0 0 .9rem; border-left: 2px solid var(--rule-soft); font-size: .88rem; color: var(--ink-muted); align-self: start; }
.day li { position: relative; padding: .16rem 0; display: grid; grid-template-columns: 7rem 1fr; column-gap: .6rem; }
.day li::before { content: ""; position: absolute; left: calc(-.9rem - 6px); top: .6rem; width: 8px; height: 8px; border-radius: 50%; background: var(--panel); border: 2px solid var(--gold); }
.day b { font-weight: 600; color: var(--gold); }
.person blockquote { margin: .9rem 0 0; font: italic 400 1.08rem/1.42 var(--display); color: var(--ink); }
.voice-play { justify-self: start; margin-top: .8rem; display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: 0 1rem 0 .75rem; border: 0; cursor: pointer; font: 700 .9rem var(--text); color: #1d1405; background: linear-gradient(180deg, #f8d58e, var(--amber) 55%, #d9954a); clip-path: var(--clip); }
.vp-ico { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.voice-play[aria-pressed="true"] .vp-ico { width: 11px; height: 11px; border: 0; background: currentColor; }
.voice-play:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--night), inset 0 0 0 5px var(--focus); }
.no-js .voice-play { display: none; }
.person audio { width: 100%; margin-top: .6rem; height: 36px; }
.js .person audio { display: none; }
.points { margin-top: 30px; }

/* ---------- Claims and the honesty key ---------- */
.claims { list-style: none; margin: 0; padding: 0; display: grid; }
.claims li { position: relative; padding: .5rem 0 .5rem 1.5rem; border-top: 1px solid var(--rule-soft); }
.light .claims li { border-top-color: var(--p-rule); }
.claims li::before { content: ""; position: absolute; left: .2rem; top: 1rem; width: 8px; height: 8px; transform: rotate(45deg); background: var(--verdigris); }
.light .claims li::before { background: var(--p-link); }
.going { margin-top: 18px; padding: .85rem 1rem .5rem; border: 1px dashed rgba(243,188,134,.55); }
.light .going { border-color: rgba(122,72,20,.45); background: rgba(255,255,255,.4); }
.going-label { margin: 0 0 .25rem; font: 700 .72rem var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.light .going-label { color: #7a4814; }
.going-note { margin-left: .5em; font-weight: 600; letter-spacing: .04em; text-transform: none; color: var(--ink-muted); }
.light .going-note { color: var(--p-muted); }
.claims-next li { border-top: 0; color: var(--ink-muted); }
.light .claims-next li { color: var(--p-muted); }
.claims-next li::before, .light .claims-next li::before { background: transparent; border: 1.5px solid var(--amber); }
.light .claims-next li::before { border-color: #7a4814; }

/* ---------- Roads ---------- */
.paths { display: grid; gap: 22px; }
.path { background: var(--card); color: var(--p-ink); padding-bottom: 1rem; }
.path > h3, .path > p, .path > .claims, .path > .going, .path > .clip-inline, .path > .slot { margin-left: 1rem; margin-right: 1rem; }
.path > h3 { margin-top: .9rem; }
.path > p { margin-top: 0; color: var(--p-muted); }
.path .clip-inline { margin-top: 14px; }
.still { margin: 0; }
.still img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Growing ---------- */
.cols { display: grid; gap: 16px; }
.col { background: var(--panel); padding-bottom: .6rem; }
.col img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.col h3 { margin: .9rem 1rem .3rem; color: var(--gold); }
.col .claims { margin: 0 1rem; }

/* ---------- Story ---------- */
.story { display: grid; gap: 24px; }
.premise { margin: .9rem 0 0; font: italic 400 1.18rem/1.45 var(--display); color: var(--p-ink); }
.excerpt { margin: 0; padding: 1.3rem 1.2rem; background: var(--card); color: var(--p-ink); align-self: start; }
.excerpt blockquote { margin: 0; }
.excerpt blockquote p { margin: 0 0 .8rem; font: 400 1.15rem/1.55 var(--display); }
.excerpt blockquote p:first-child::first-letter { float: left; margin: .06em .12em 0 0; font: 600 3.1em/.8 var(--display); color: #7d3a1e; }
.excerpt .excerpt-turn { font-style: italic; color: #4a3010; }
.excerpt figcaption { margin-top: .3rem; font-size: .92rem; color: var(--p-muted); }
.story-read { display: grid; gap: .8rem; margin: 0; }
.story-start { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin: 0; }
.story-read .btn { display: inline-flex; align-items: center; text-decoration: none; }
.story-next { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.story-next li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .7rem; }
.story-next a { display: inline-block; padding: .55rem 0; line-height: 1.3; font: 600 1.15rem/1.3 var(--display); color: var(--p-link); }
.story-read > .story-read-note { margin: 0; }
.story-read > .story-read-note a { color: var(--p-link); }
.story-read-note { font-size: .92rem; color: var(--p-muted); }
@media (min-width: 700px) { .story-read { grid-column: 2; align-self: start; } .story > .intro { grid-row: span 2; } }

/* ---------- Chapter page (story/chapter-1.html): a book page on parchment ---------- */
body.reading { background: var(--parch); }
.chapter { padding: 64px 0 56px; background: linear-gradient(180deg, var(--cream), var(--parch) 60%); color: var(--p-ink); }
.chapter-plate { margin: 0; }
.chapter-plate img { width: 100%; height: auto; max-height: 52vh; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 60%; }
.chapter-plate img.plate-top { object-position: 50% 8%; }   /* a header whose subject sits high (the lip of the falls) */
.chapter-titles { max-width: 34rem; margin: 0 auto; padding: 34px var(--gutter) 10px; text-align: center; }
.chapter-titles .kicker { color: var(--p-accent); }
.chapter-titles h1 { margin: .3rem 0 .7rem; font: 600 clamp(2.3rem, 8vw, 3.6rem)/1.05 var(--display); color: var(--p-ink); text-wrap: balance; }
.chapter-meta { margin: 0; font-size: .92rem; color: var(--p-muted); text-wrap: balance; }
.chapter-titles::after { content: ""; display: block; width: 72px; height: 2px; margin: 26px auto 0; background: var(--rule); }
/* About 65 characters a line at this size; book leading; indented paragraphs as in a printed book.
   EB Garamond is a text face (loaded at 400 and 400 italic); the display stack keeps the titles and the drop cap. */
.chapter-text { position: relative; max-width: 35em; margin: 34px auto 0; padding: 0 var(--gutter); font: 400 1.3rem/1.58 "EB Garamond", var(--display); color: #2d241a; hyphens: auto; -webkit-hyphens: auto; text-wrap: pretty; }
.chapter-text p { margin: 0; }
.chapter-text p + p { text-indent: 1.5em; }
.chapter-text em { font-style: italic; }
.chapter-text .opening { display: flow-root; }   /* a one-line opening must not let the drop cap push into the next paragraph */
.chapter-text .opening::first-letter { float: left; margin: .07em .1em 0 0; font: 600 4.1em/.8 var(--display); color: #7d3a1e; }
.chapter-text .scene-break { margin: 1.4em 0; text-align: center; text-indent: 0; color: var(--p-accent); letter-spacing: .3em; }
.chapter-text .scene-break + p { text-indent: 0; }
.chapter-end { margin: 2rem 0 0; text-align: center; font-size: 1.6rem; color: var(--p-accent); }
.chapter-back { margin: 1.4rem 0 0; }
.chapter-back a { color: var(--gold); }
/* Between chapters: the one before and the one after, as two plain book-end links, then the list of chapters */
.chapter-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 18px; max-width: 46rem; margin: 2rem auto 0; padding: 0 var(--gutter); }
.chapter-nav-link { flex: 1 1 15rem; max-width: 22rem; display: flex; flex-direction: column; gap: .15rem; min-height: 48px; padding: .8rem 1.1rem; text-decoration: none; color: var(--p-ink); border: 1px solid var(--p-rule); background: rgba(255, 250, 235, .45); }
.chapter-nav-link:hover, .chapter-nav-link:focus-visible { border-color: var(--p-accent); background: rgba(255, 250, 235, .8); }
.chapter-nav-next { text-align: right; }
.chapter-nav-dir { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--p-accent); }
.chapter-nav-name { font: 600 1.35rem/1.2 var(--display); color: var(--p-ink); }
.chapter-nav-note { max-width: 34rem; margin: 1.1rem auto 0; padding: 0 var(--gutter); text-align: center; font-size: .95rem; line-height: 1.5; color: var(--p-muted); text-wrap: balance; }
.chapter-nav-note a { color: var(--p-link); }
/* The last chapter of a part closes it, under the end ornament; the first of the next opens it, over the title */
.part-start { display: flex; flex-direction: column; align-items: center; gap: .15rem; margin: 0 auto 1.3rem; padding-bottom: 1rem; max-width: 16rem; border-bottom: 1px solid var(--p-rule); }
.part-start .part-end-name { font-size: 1.45rem; }
.part-end { display: flex; flex-direction: column; align-items: center; gap: .2rem; margin: 1.2rem auto 0; padding: 0 var(--gutter); text-align: center; }
.part-end-label { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--p-accent); }
.part-end-name { font: 600 1.7rem/1.15 var(--display); color: var(--p-ink); }
/* The story index (story/index.html): the chapters in order, by part, on the same parchment */
.story-index .chapter-titles { padding-top: 64px; }
.story-part { max-width: 40rem; margin: 34px auto 0; padding: 0 var(--gutter); }
.story-part-title { margin: 0; font: 600 clamp(1.5rem, 5vw, 1.9rem)/1.15 var(--display); color: var(--p-ink); text-align: center; }
.story-part-n { display: block; margin-bottom: .2rem; font: 700 .78rem/1.3 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--p-accent); }
.story-part-span { margin: .3rem 0 0; text-align: center; font-size: .9rem; color: var(--p-muted); }
.story-list { list-style: none; margin: 18px 0 0; padding: 0; }
.story-ch { padding: 1.3rem 0 1.4rem; border-top: 1px solid var(--p-rule); }
.story-ch:last-child { border-bottom: 1px solid var(--p-rule); }
.story-ch-link { display: inline-flex; flex-direction: column; min-height: 48px; text-decoration: none; color: var(--p-ink); }
.story-ch-link .kicker { margin: 0 0 .2rem; color: var(--p-accent); }
.story-ch-name { font: 600 clamp(1.7rem, 6vw, 2.2rem)/1.1 var(--display); text-decoration: underline; text-decoration-color: var(--p-rule); text-underline-offset: .18em; text-decoration-thickness: 1px; }
.story-ch-link:hover .story-ch-name, .story-ch-link:focus-visible .story-ch-name { text-decoration-color: var(--p-accent); }
.story-ch-blurb { margin: .55rem 0 .35rem; font: 400 1.15rem/1.5 "EB Garamond", var(--display); color: #2d241a; }
.story-ch-meta { margin: 0; font-size: .9rem; color: var(--p-muted); }
@media (min-width: 700px) { .chapter-text { font-size: 1.38rem; } }

/* ---------- Scene pictures: one at the opening of each scene, full measure, the edges fading into the page,
   an italic line from the scene beneath. A scene with no clean picture yet keeps an ornament. ---------- */
.chapter-text .scene-pic { margin: 1.9em 0 1.6em; }
.scene-media { position: relative; overflow: hidden; background: #d9cba6;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
          mask-composite: intersect; }
.scene-wide { aspect-ratio: 16 / 9; }
.scene-plate { aspect-ratio: 3 / 2; }
.scene-media img, .scene-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-media video { opacity: 0; transition: opacity .6s ease; }
.scene-media video.is-on { opacity: 1; }
.chapter-text .scene-pic figcaption { margin: .7em auto 0; max-width: 30em; text-align: center; text-indent: 0; font-style: italic; font-size: .82em; line-height: 1.45; color: var(--p-muted); text-wrap: balance; }
.chapter-text .scene-pic + p { text-indent: 0; }
.chapter-text .scene-gap { display: flex; align-items: center; gap: .9em; margin: 1.8em auto; max-width: 14em; letter-spacing: 0; font-size: 1.25em; }
.chapter-text .scene-gap::before, .chapter-text .scene-gap::after { content: ""; flex: 1; height: 1px; background: var(--p-rule); }

/* ---------- Read-along audiobook (story/chapter-1.html, assets/readalong.js) ----------
   The player is a strip of the game's instrument glass on the parchment. It sits under the title, then docks
   to the bottom of the screen once listening has begun. Without the script the browser's own player shows. */
.audiobook { max-width: 46rem; margin: 30px auto 0; padding: 0 var(--gutter); color: var(--p-ink); }
.listen-head { text-align: center; }
.listen-title { margin: 0; font: 600 1.45rem/1.2 var(--display); color: var(--p-ink); }
.listen-note { max-width: 32rem; margin: .35rem auto .9rem; font-size: .95rem; line-height: 1.45; color: var(--p-muted); }
.listen-resume { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem 1.1rem; margin: 0 0 .9rem; }
.listen-resume[hidden] { display: none; }
.pl-resume { display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; font-size: .95rem; }
.pl-resume .ico { width: 18px; height: 18px; fill: currentColor; }
.listen-resume .link-btn { min-height: 44px; color: var(--p-link); }
.pl-native { display: block; width: 100%; }
.audiobook.is-ready .pl-native { display: none; }
.pl-error { margin: 0 0 .8rem; padding: .6rem .8rem; font-size: .92rem; background: rgba(212,88,63,.1); border-left: 3px solid var(--ember); color: var(--p-ink); }
.pl-error a { color: var(--p-link); }
.pl-error[hidden] { display: none; }

.player { display: none; color: var(--ink); background: var(--night); border-top: 2px solid var(--rule); box-shadow: 0 10px 30px rgba(38,31,22,.22); }
.audiobook.is-ready .player { display: block; }
.pl-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 6px; max-width: 60rem; margin: 0 auto; padding: 8px 10px 10px; }
.pl-scrub { order: -1; flex: 1 0 100%; display: flex; align-items: center; gap: .6rem; padding: 2px 4px 0; }
.pl-time { min-width: 3.1em; font: 600 .8rem/1 var(--text); font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.pl-time[data-total] { text-align: right; }
.pl-btn { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 46px; height: 48px; padding: 0 6px; border: 0; border-radius: 4px; cursor: pointer; font: 600 .95rem var(--text); color: var(--ink); background: transparent; }
.pl-btn:hover { color: var(--gold); background: rgba(242,230,204,.06); }
.pl-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; }
.ico { width: 24px; height: 24px; fill: currentColor; }
.ico .ln { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-label { font: 600 .66rem/1 var(--text); letter-spacing: .04em; color: var(--ink-muted); }
.pl-btn:hover .pl-label { color: inherit; }
.pl-labelled { min-width: 56px; }
.pl-labelled .ico { width: 21px; height: 21px; }
.pl-speed-n { height: 21px; display: grid; place-items: center; font: 700 .98rem/1 var(--text); font-variant-numeric: tabular-nums; }
.pl-skip-n { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-38%); font: 700 .58rem/1 var(--text); text-align: center; }
.pl-skip .ico { width: 30px; height: 30px; }
.pl-play { width: 54px; min-width: 54px; height: 54px; margin: 0 4px; color: #1d1405; background: linear-gradient(180deg, #f8d58e 0%, var(--amber) 48%, #d9954a 100%); clip-path: var(--clip); border-radius: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(90,50,10,.35); }
.pl-play:hover { color: #1d1405; background: linear-gradient(180deg, #f8d58e 0%, var(--amber) 48%, #d9954a 100%); filter: brightness(1.06); }
.pl-play:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--night), inset 0 0 0 5px var(--focus); }
.pl-play .ico { width: 28px; height: 28px; }
.pl-play .ico-pause, .is-playing .pl-play .ico-play { display: none; }
.is-playing .pl-play .ico-pause { display: block; }
.is-loading .pl-play { animation: pl-pulse 1.1s ease-in-out infinite; }
@keyframes pl-pulse { 50% { filter: brightness(.82); } }
.pl-follow[aria-pressed="false"] { color: var(--ink-muted); }
.pl-follow[aria-pressed="false"] .ico { opacity: .55; }
.pl-follow[aria-pressed="false"] .pl-label { text-decoration: line-through; }
.pl-follow[aria-pressed="true"] .pl-label { color: var(--gold); }
.pl-vol { display: inline-flex; align-items: center; gap: 2px; }
.pl-vol[hidden] { display: none; }
.pl-mute .vol-x, .is-muted .pl-mute .vol-wave { display: none; }
.is-muted .pl-mute .vol-x { display: inline; }
.pl-volume { width: 84px; }

/* Range inputs: a gold track filled to the playhead */
.pl-range { flex: 1; min-width: 0; height: 28px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; --pct: 0%; }
.pl-volume { flex: none; --pct: 100%; }
.pl-range::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--gold) var(--pct), rgba(242,230,204,.22) var(--pct)); }
.pl-range::-moz-range-track { height: 5px; border-radius: 3px; background: rgba(242,230,204,.22); }
.pl-range::-moz-range-progress { height: 5px; border-radius: 3px; background: var(--gold); }
.pl-range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5.5px; border-radius: 50%; background: var(--ink); border: 2px solid var(--gold); }
.pl-range::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: var(--ink); border: 2px solid var(--gold); }
.pl-range:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* The scenes menu opens above or below the button, whichever has room */
.pl-menu-wrap { position: relative; }
.pl-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 50; width: min(19rem, calc(100vw - 2 * var(--gutter))); margin: 0; padding: 6px; list-style: none; background: var(--night-2); border-top: 2px solid var(--rule); box-shadow: 0 14px 36px rgba(0,0,0,.45); }
.pl-menu[hidden] { display: none; }
.is-docked .pl-menu { top: auto; bottom: calc(100% + 8px); }
.pl-scene { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; padding: .45rem .7rem; border: 0; border-radius: 3px; cursor: pointer; text-align: left; font: 600 .92rem/1.25 var(--text); color: var(--ink); background: transparent; }
.pl-scene:hover, .pl-scene:focus-visible { background: rgba(230,193,127,.12); color: var(--gold); }
.pl-scene:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.pl-scene[aria-current="true"] .pl-scene-name::before { content: "\25B8\00a0"; color: var(--gold); }
.pl-scene-time { font-weight: 600; font-size: .8rem; font-variant-numeric: tabular-nums; color: var(--ink-muted); }

/* Docked: a slim bar at the foot of the screen */
.player.is-docked { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding-bottom: env(safe-area-inset-bottom); background: rgba(15,27,31,.97); box-shadow: 0 -8px 26px rgba(15,27,31,.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
body.has-dock { padding-bottom: var(--dock-h, 0px); }
.pl-return { position: fixed; left: 50%; bottom: calc(var(--dock-h, 0px) + 12px); z-index: 44; transform: translateX(-50%); min-height: 46px; padding: 0 1.1rem; font-size: .92rem; white-space: nowrap; box-shadow: 0 6px 20px rgba(15,27,31,.35), inset 0 1px 0 rgba(255,255,255,.45); }
.pl-return[hidden] { display: none; }

/* "Listen from here": in the left margin on wide screens, just above the paragraph on narrow ones */
.pl-here { position: absolute; right: var(--gutter); z-index: 5; display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: 0 .8rem 0 .6rem; border: 0; cursor: pointer; font: 600 .82rem var(--text); color: var(--ink); background: var(--night); clip-path: var(--clip); text-indent: 0; }
.pl-here.in-margin { right: auto; left: auto; transform: translateX(calc(-100% - 14px)); }
.pl-here[hidden] { display: none; }
.pl-here .ico { width: 16px; height: 16px; color: var(--gold); }
.pl-here:hover { color: var(--gold); }
.pl-here:focus-visible { outline: 3px solid #7d3a1e; outline-offset: 2px; }
.audiobook.is-engaged ~ .chapter-text p[data-start] { cursor: pointer; }

/* The line being read: a soft wash on the paragraph with a rule in the margin, and the sentence underlined
   on a stronger wash, so the mark never rests on colour alone */
.chapter-text p.is-reading { border-radius: 2px; background: rgba(230,193,127,.2); box-shadow: 0 0 0 .35em rgba(230,193,127,.2), -.56em 0 0 0 var(--p-accent); transition: background .3s ease, box-shadow .3s ease; }
.chapter-text p.is-offered:not(.is-reading) { box-shadow: -.45em 0 0 -.2em rgba(106,76,24,.45); }
.chapter-text .s.is-said { background: rgba(214,160,72,.32); text-decoration: underline; text-decoration-color: rgba(106,76,24,.7); text-decoration-thickness: 2px; text-underline-offset: .22em; -webkit-box-decoration-break: clone; box-decoration-break: clone; border-radius: 2px; }
@media (forced-colors: active) {
  .chapter-text p.is-reading { outline: 2px solid CanvasText; outline-offset: .3em; }
  .chapter-text .s.is-said { text-decoration-color: Highlight; }
}

@media (min-width: 700px) {
  .pl-row { flex-wrap: nowrap; gap: 4px; padding: 8px 14px; }
  .pl-scrub { order: 0; flex: 1 1 auto; min-width: 160px; margin: 0 6px; }
}
/* Phones: the hardware buttons set the volume */
@media (max-width: 699px) { .pl-vol { display: none !important; } }
@media (max-width: 459px) {
  .pl-row { gap: 2px; padding: 6px 6px 8px; }
  .pl-btn { min-width: 44px; padding: 0 3px; }
  .pl-labelled { min-width: 50px; }
}

/* ---------- Field notes ---------- */
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.note { padding: 1rem 1.1rem 1.1rem; background: var(--panel); }
.note time { display: block; font: 700 .74rem var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--verdigris); }
.note h3 { margin: .3rem 0 .35rem; color: var(--gold); }
.note p { margin: 0; color: var(--ink-muted); }
.note .link-btn { margin-top: .5rem; color: var(--gold); }
.more-clips { margin-top: 32px; }
.more-clips h3 { color: var(--ink); }
.more-grid { display: grid; gap: 16px; }

/* ---------- Maker ---------- */
.maker { display: grid; gap: 24px; align-items: start; }
.maker-face { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--rule), 0 12px 30px rgba(38,31,22,.25); }
.maker-body p { color: var(--p-muted); }
.maker-body .lede { color: var(--p-ink); }
.steps { list-style: none; counter-reset: step; margin: 1rem 0; padding: 0; border-top: 2px solid var(--rule); }
.steps li { counter-increment: step; position: relative; padding: .65rem 0 .65rem 2.4rem; border-bottom: 1px solid var(--p-rule); color: var(--p-muted); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: .6rem; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; font: 700 .85rem var(--text); color: var(--gold); background: var(--night); clip-path: var(--clip); }
.steps b { color: var(--p-ink); }
.x-link { font-weight: 700; }
.facts { margin-top: .6rem; font-size: .86rem; letter-spacing: .02em; }
.section.section-slim { padding: 34px 0; }
.maker-line { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.maker-line p { margin: 0; color: var(--p-muted); }
.maker-line a { font-weight: 700; }
.maker-face-sm { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px var(--rule); }
.maker-line .facts { flex-basis: 100%; margin: 0; }
.notes-more { margin: 18px 0 0; }
.notes-more a { font-weight: 700; }

/* ---------- Inner pages (making, notes) ---------- */
.prose-page { padding-top: 110px; }
.nav a[aria-current="page"] { color: var(--gold); }
.page-head { padding: 120px 0 40px; background: var(--night); color: var(--ink); border-bottom: 1px solid var(--rule-soft); }
.page-head h1 { margin: 0 0 .6rem; font: 600 clamp(2.4rem, 8vw, 4rem)/1.04 var(--display); }
.page-head .lede { max-width: 42rem; color: var(--ink); }
.story-block { max-width: 46rem; }
.story-block p { color: var(--p-muted); }
.story-block .lede { color: var(--p-ink); }
.dark .story-block p { color: var(--ink-muted); }
.dark .story-block .lede { color: var(--ink); }
.story-block .clip { margin: 0 0 18px; }
.story-block h3 { margin-top: 1.6rem; }
.hero-badges .chip { min-height: 28px; padding: 0 .55rem; font-size: .7rem; background: rgba(15,27,31,.45); clip-path: none; border-radius: 2px; color: rgba(242,230,204,.85); }
.hero-badges .chip svg { width: 13px; height: 13px; }
.pair { display: grid; gap: 12px; margin: 18px 0 8px; }
.pair figure { margin: 0; }
.pair .clip-media { border-top: 2px solid var(--rule); }
.pair figcaption { margin-top: .45rem; font-size: .9rem; color: var(--p-muted); }
.pair figcaption b { color: var(--p-ink); }
.who { display: grid; gap: 16px; margin-top: 18px; }
.who article { padding: 1.1rem 1.2rem; background: var(--card); border-top: 2px solid var(--rule); }
.who h3 { color: var(--p-ink); }
.who ul { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--p-muted); }
.who li { margin: .3rem 0; }
@media (min-width: 700px) { .pair, .who { grid-template-columns: 1fr 1fr; } .verbs { grid-template-columns: 1fr 1fr; } }
/* On phones the closing band reuses the portrait hero poster, already in the cache */
@media (max-width: 699px) { .join-bg { background-image: linear-gradient(180deg, rgba(15,27,31,.55) 0%, rgba(15,27,31,.55) 45%, rgba(15,27,31,.94) 100%), url("../media/hero-river-portrait.jpg"); } }

/* ---------- Join ---------- */
.section-join { overflow: hidden; padding: 96px 0; text-align: center; color: var(--ink); background: var(--night); }
.join-bg { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(15,27,31,.55) 0%, rgba(15,27,31,.55) 45%, rgba(15,27,31,.94) 100%), url("../media/hero-river.jpg") center 40% / cover no-repeat; }
.join-inner { position: relative; z-index: 1; }
.section-join h2 { color: var(--ink); text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.section-join .lede { max-width: 36rem; margin: 0 auto; color: var(--ink); text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.signup-join { margin: 1.5rem auto 0; text-align: left; }

/* ---------- Footer ---------- */
.footer { padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule-soft); color: var(--ink-muted); font-size: .9rem; background: var(--night); }
.footer-inner { display: grid; gap: .3rem; }
.footer p { margin: 0; }
.footer-brand { display: flex; align-items: center; gap: .5rem; font: 600 1.2rem var(--display); color: var(--ink); }
.footer-brand img { border-radius: 5px; }

/* ---------- Privacy and unsubscribe pages ---------- */
.topbar-static { position: static; border-bottom: 1px solid var(--rule-soft); background: var(--night); }
.prose { max-width: 46rem; padding-top: 48px; padding-bottom: 72px; }
.prose h1 { font: 600 clamp(2.4rem, 9vw, 3.6rem)/1.05 var(--display); margin: 0 0 1rem; }
.prose h2 { font-size: clamp(1.5rem, 5.5vw, 2rem); margin: 2rem 0 .6rem; }
.prose p, .prose li { color: var(--ink-muted); }
.prose .lede { color: var(--ink); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .4rem 0; }
.back { margin-top: 2.5rem; }

/* ---------- Wider screens ---------- */
@media (min-width: 560px) {
  .signup-row { flex-direction: row; }
  .signup-row input { flex: 1; }
}
@media (min-width: 700px) {
  .hero { min-height: 92vh; min-height: 92svh; }
  .hero-poster, .hero-video { object-position: 50% 50%; }
  /* Light footage: a soft gradient only behind the text, lower left */
  .hero-scrim { background: linear-gradient(180deg, rgba(15,27,31,.45) 0%, rgba(15,27,31,0) 16%), linear-gradient(90deg, rgba(15,27,31,.84) 0%, rgba(15,27,31,.62) 34%, rgba(15,27,31,.18) 56%, rgba(15,27,31,0) 70%), linear-gradient(0deg, rgba(15,27,31,.55) 0%, rgba(15,27,31,0) 35%); }
  .eyebrow { color: var(--ink); }
  .hero h1 { font-size: clamp(3rem, 6.2vw, 5rem); }
  .hero-badges { top: auto; bottom: 18px; }
  .hero-inner { padding-bottom: 72px; }
  .verbs, .notes, .more-grid, .villagers { grid-template-columns: repeat(3, 1fr); }
  .voice-rows { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 1.5rem; border-top: 0; }
  .voice-row { flex-direction: column; gap: .5rem; border-top: 1px solid var(--rule-soft); border-bottom: 0; }
  .band { min-height: 56vh; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .paths { grid-template-columns: 1fr 1fr; align-items: start; }
  .claims-cols { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .cols { grid-template-columns: repeat(3, 1fr); }
  .intro-split { grid-template-columns: 1.1fr 1fr; gap: 40px; }
  .story { grid-template-columns: 1fr 1.2fr; gap: 48px; }
  .maker { grid-template-columns: 200px 1fr; gap: 40px; }
  .maker-face { width: 200px; height: 200px; }
  .excerpt { padding: 1.8rem 2rem; }
}
@media (min-width: 760px) {
  :root { --gutter: 28px; }
  .section { padding: 96px 0; }
  .person { grid-template-columns: 132px 1fr; padding: 1.2rem; }
  .person-face { width: 132px; height: 165px; }
}
@media (min-width: 1000px) {
  :root { --gutter: 40px; }
  .nav { display: flex; }
  .topbar-cta { margin-left: .5rem; }
  .people { grid-template-columns: repeat(3, 1fr); }
  .person { display: flex; flex-direction: column; }
  .voice-play { margin-top: auto; }
  .person blockquote { margin-bottom: .9rem; }
  .person-face, .person-head, .person-life { grid-column: 1; grid-row: auto; }
  img.person-face { width: 100%; height: auto; aspect-ratio: 4 / 3; object-position: 50% 25%; margin-bottom: .8rem; }
  .person-mono { width: 64px; height: 64px; margin-bottom: .7rem; }
  .person-mono span { font-size: 2rem; }
}
@media (max-width: 459px) {
  .day li { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
