/* The Sunday Instalment — shared styles
   Layout: one centred 1120px column; full-width colour bands; reading pages narrow to ~65 characters. */
:root {
  --bg: #F7ECD9;          /* warm sand */
  --surface: #EFDDBD;     /* deeper sand band */
  --card: #FBF4E8;
  --ink: #1E2A33;         /* lake navy */
  --muted: #5A5148;
  --rust: #A8451F;        /* maple */
  --gold: #C9802F;        /* golden hour */
  --accent: #B9501B;      /* sunset orange, buttons */
  --on-accent: #FFF8EF;
  --ember: #A6431A;       /* deep orange band */
  --on-ember: #FFF4E6;
  --amber: #F2B35C;
  --line: rgba(30, 42, 51, 0.14);
  --on-ink: #FBF4E8;
  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-ui: "Karla", "Helvetica Neue", Arial, sans-serif;
  --font-read: "Literata", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141D24; --surface: #1B2731; --card: #20303B; --ink: #F2E6D2; --muted: #C2B6A4;
    --rust: #E39A62; --gold: #E9B872; --line: rgba(242, 230, 210, 0.16); --on-ink: #141D24;
    --accent: #EE8A4C; --on-accent: #141D24; --ember: #7A3414; --on-ember: #FFF4E6; --amber: #E9B872;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141D24; --surface: #1B2731; --card: #20303B; --ink: #F2E6D2; --muted: #C2B6A4;
  --rust: #E39A62; --gold: #E9B872; --line: rgba(242, 230, 210, 0.16); --on-ink: #141D24;
  --accent: #EE8A4C; --on-accent: #141D24; --ember: #7A3414; --on-ember: #FFF4E6; --amber: #E9B872;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.6;
}
a { color: var(--rust); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
}

/* Header */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-block: 14px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--ink); text-decoration: none;
}
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; font-weight: 600; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--rust); }

/* Buttons */
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding-inline: 24px;
  border-radius: 999px; border: 2px solid var(--ink);
  font: 700 1rem var(--font-ui); text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--rust); border-color: var(--rust); color: var(--on-ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--on-ink); }

/* Sections */
.section { padding-block: 72px; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.band { background: var(--surface); }

/* Home hero */
.home-hero { padding-block: 72px 40px; }
.home-hero .wrap { display: flex; flex-direction: column; gap: 18px; }
.home-hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.75rem); max-width: 16ch; }
.home-hero p { font-size: 1.25rem; color: var(--muted); max-width: 52ch; }

/* Lake illustration */
.lake { display: block; width: 100%; height: 100%; }
.art { background: #EBB873; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; }

/* Featured series */
.featured {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px; align-items: center;
}
.featured-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.featured-body h3 { font-size: clamp(2.2rem, 4.5vw, 3.25rem); }
.logline { font-size: 1.15rem; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 0.875rem; font-weight: 600; color: var(--muted);
}
.chip-free { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

.coming {
  margin-top: 48px; padding: 28px; border: 2px dashed var(--line); border-radius: 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
}
.coming h3 { font-size: 1.6rem; }
.coming p { color: var(--muted); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; flex-direction: column; gap: 8px; }
.steps .num { font-family: var(--font-display); font-size: 2.5rem; color: var(--gold); line-height: 1; }
.steps h3 { font-size: 1.5rem; }
.steps p { color: var(--muted); }

/* Sign-up */
.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.signup h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.signup-copy { display: flex; flex-direction: column; gap: 12px; }
.signup-copy p { color: var(--muted); }
.signup form { display: flex; flex-direction: column; gap: 12px; }
.signup label { font-weight: 700; }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.field-row input {
  flex: 1 1 220px; min-height: 48px; padding-inline: 16px;
  border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink);
  font: 1rem var(--font-ui);
}
.form-note { font-size: 0.9375rem; color: var(--muted); }

/* Series hero */
.series-hero { position: relative; background: #EBB873; }
.series-hero .lake { height: auto; aspect-ratio: 16 / 7; max-height: 560px; }
.series-hero-text { padding-block: 48px 8px; display: flex; flex-direction: column; gap: 14px; }
.series-hero-text h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
.series-hero-text .logline { max-width: 58ch; }

.about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; }
.about-text { display: flex; flex-direction: column; gap: 16px; font-size: 1.125rem; }
.facts { display: grid; gap: 14px; margin: 0; align-content: start; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }

/* Characters */
.cast { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.person { background: var(--card); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.portrait { width: 88px; height: 88px; color: var(--gold); }
.portrait .ground { fill: var(--surface); }
.person h3 { font-size: 1.6rem; }
.person .role { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rust); }
.person p { color: var(--muted); font-size: 0.975rem; }

/* Episode list */
.acts { display: grid; gap: 40px; }
.act h3 { font-size: 1.75rem; margin-bottom: 4px; }
.act > p { color: var(--muted); margin-bottom: 14px; }
.eps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.eps li {
  display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding-block: 14px; border-bottom: 1px solid var(--line);
}
.ep-no { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--gold); }
.ep-title { font-family: var(--font-display); font-size: 1.35rem; }
.ep-status { font-size: 0.9rem; font-weight: 700; color: var(--muted); }
.ep-status a { color: var(--rust); }

/* Reading page */
.read { max-width: 40rem; margin-inline: auto; }
.read-head { padding-block: 64px 32px; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.read-head h1 { font-size: clamp(2.6rem, 7vw, 4rem); }
.read-meta { color: var(--muted); font-size: 0.9375rem; }
.story { font-family: var(--font-read); font-size: 1.1875rem; line-height: 1.75; display: flex; flex-direction: column; gap: 1.1em; }
.story h2 {
  font-family: var(--font-ui); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--rust); margin-top: 2.2em;
}
.story .letter { font-style: italic; padding-left: 1.25em; border-left: 3px solid var(--gold); display: flex; flex-direction: column; gap: 0.8em; }
.story .break { text-align: center; color: var(--gold); letter-spacing: 0.6em; }
.end-card {
  margin-block: 56px 72px; padding: 32px; border-radius: 20px; background: var(--surface);
  display: flex; flex-direction: column; gap: 14px;
}
.end-card h2 { font-size: 2rem; }
.end-card p { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px; color: var(--muted); font-size: 0.9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (max-width: 760px) {
  .featured, .signup, .about { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .section { padding-block: 52px; }
  .eps li { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .ep-status { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Checkout */
.checkout { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.btn-lg { min-height: 56px; padding-inline: 32px; font-size: 1.125rem; }

/* Thank-you page */
.thanks { max-width: 40rem; margin-inline: auto; padding-block: 88px 96px; display: flex; flex-direction: column; gap: 18px; }
.thanks h1 { font-size: clamp(2.6rem, 7vw, 4rem); }
.thanks p { font-size: 1.15rem; color: var(--muted); }
.thanks ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--muted); }

/* Prologue (series context) */
.prologue {
  margin-bottom: 48px; padding: 28px 32px; border-radius: 20px; background: var(--surface);
  font-family: var(--font-read); font-size: 1.0625rem; line-height: 1.7; color: var(--muted);
  display: flex; flex-direction: column; gap: 0.9em;
}
.prologue .eyebrow { font-family: var(--font-ui); }
.prologue p:last-child { font-style: italic; color: var(--ink); }
@media (max-width: 760px) { .prologue { padding: 22px 20px; } }

/* ===== Immersive reader: story on the left, scene stage on the right ===== */
.read-progress {
  position: fixed; left: 0; right: 0; top: 0; z-index: 30; height: calc(4px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px); pointer-events: none;
}
.read-progress span { display: block; height: 4px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.15s linear; }

.reader {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.reader-grid {
  max-width: 1320px; margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 40rem) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.reader .read { max-width: none; margin: 0; min-width: 0; }

.stage {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px);
  height: calc(100vh - 108px); min-height: 460px; max-height: 920px;
  margin-block: 28px;
}
.stage-frame {
  position: relative; height: 100%; border-radius: 28px; overflow: hidden;
  background: #2E4756; box-shadow: 0 24px 60px -28px rgba(30, 42, 51, 0.55);
}
.scene { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.9s ease; }
.scene svg { display: block; width: 100%; height: 100%; transform: scale(1.06); transition: transform 6s ease-out; }
.scene.is-active { opacity: 1; }
.scene.is-active svg { transform: scale(1); }

.stage-caption {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 16px; border-radius: 999px; width: fit-content; max-width: calc(100% - 32px);
  background: rgba(20, 29, 36, 0.72); color: #FBF4E8; backdrop-filter: blur(6px);
  font-size: 0.9375rem;
}
.stage-caption .pin { width: 18px; height: 18px; color: #E9B872; flex: none; }
.stage-place { font-weight: 700; }
.stage-time { opacity: 0.8; }
.stage-time::before { content: "·"; margin-right: 8px; opacity: 0.6; }
.stage-chapters {
  position: absolute; top: 16px; right: 16px; margin: 0; padding: 6px; list-style: none;
  display: flex; gap: 4px; border-radius: 999px; background: rgba(20, 29, 36, 0.6);
}
.stage-chapters li {
  min-width: 34px; height: 30px; padding-inline: 6px; border-radius: 999px;
  display: grid; place-items: center; font: 700 0.8125rem var(--font-ui); color: rgba(251, 244, 232, 0.55);
  transition: background 0.4s, color 0.4s;
}
.stage-chapters li.is-past { color: rgba(251, 244, 232, 0.85); }
.stage-chapters li.is-on { background: #E9B872; color: #1E2A33; }

/* Chapter headings and openers */
.story h2.chapter-head {
  display: flex; flex-direction: column; gap: 4px; margin-top: 2.6em; text-transform: none; letter-spacing: 0;
}
.chapter-num { font: 700 0.8125rem var(--font-ui); letter-spacing: 0.22em; color: var(--rust); }
.chapter-num::before { content: "Chapter "; }
.chapter-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.1; color: var(--ink); }
.story .opener::first-letter {
  float: left; font-family: var(--font-display); font-size: 4.2em; line-height: 0.8; padding: 0.06em 0.12em 0 0; color: var(--rust);
}
.story .break { font-size: 1.4rem; }

/* Ambient motion */
.mist { animation: drift 14s ease-in-out infinite alternate; }
.steam path { animation: rise 3.2s ease-in-out infinite; }
.steam path + path { animation-delay: 1.4s; }
.flame { transform-origin: 300px 540px; animation: flicker 1.1s ease-in-out infinite alternate; }
.flame.f2 { animation-duration: 0.8s; } .flame.f3 { animation-duration: 0.6s; }
.spark { animation: spark 2.6s ease-out infinite; } .spark.s2 { animation-delay: 0.9s; } .spark.s3 { animation-delay: 1.7s; }
.twinkle { animation: twinkle 2.8s ease-in-out infinite; } .twinkle.t2 { animation-delay: 0.9s; } .twinkle.t3 { animation-delay: 1.8s; }
@keyframes drift { from { transform: translateX(-24px); } to { transform: translateX(24px); } }
@keyframes rise { 0% { transform: translateY(8px); opacity: 0; } 40% { opacity: 0.7; } 100% { transform: translateY(-26px); opacity: 0; } }
@keyframes flicker { from { transform: scale(1, 1); } to { transform: scale(0.94, 1.06); } }
@keyframes spark { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-120px); opacity: 0; } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* Phone and tablet: the stage becomes a short band pinned above the text */
@media (max-width: 999px) {
  body:has(.reader) .site-header { position: static; }
  .reader-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stage {
    order: -1; z-index: 5; top: 0; box-sizing: border-box;
    padding-top: calc(env(safe-area-inset-top, 0px) + 10px); padding-bottom: 10px; background: var(--bg);
    height: calc(30vh + 20px); min-height: 200px; max-height: 300px; margin-block: 0;
  }
  .stage-frame { border-radius: 20px; }
  .stage-caption { left: 10px; bottom: 10px; padding: 6px 12px; font-size: 0.8125rem; }
  .stage-chapters { top: 10px; right: 10px; padding: 4px; }
  .stage-chapters li { min-width: 26px; height: 24px; font-size: 0.75rem; }
  .reader .read-head { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .mist, .steam path, .flame, .spark, .twinkle { animation: none !important; }
  .scene, .scene svg { transition: none !important; }
  .scene svg { transform: none !important; }
}

/* ===== Header call to action ===== */
.nav { align-items: center; }
.nav a.nav-cta {
  padding: 8px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
}
.nav a.nav-cta:hover { background: var(--rust); color: var(--on-ink); }
.eyebrow-dark { color: #6B2E17; }
.eyebrow-light { color: var(--amber); }
.btn-block { width: 100%; }

/* ===== Home hero: the lake at golden hour, full width ===== */
.hero { position: relative; background: #EBB873; overflow: hidden; }
.hero-art { position: absolute; inset: 0; }
.hero-art .lake { width: 100%; height: 100%; }
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(235, 184, 115, 0.92) 0%, rgba(235, 184, 115, 0.65) 38%, rgba(235, 184, 115, 0) 62%);
}
.hero-copy {
  position: relative; display: flex; flex-direction: column; gap: 20px;
  padding-block: clamp(64px, 11vw, 140px) clamp(160px, 20vw, 260px); color: #1E2A33;
}
.hero-copy h1 { font-size: clamp(2.8rem, 6.6vw, 5.4rem); max-width: 13ch; color: #1E2A33; }
.hero-copy p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 44ch; color: #3B2A20; }
.hero .btn-ghost { border-color: #1E2A33; color: #1E2A33; background: rgba(251, 244, 232, 0.55); }
.hero .btn-ghost:hover { background: #1E2A33; color: #FBF4E8; }
.hero .btn-primary { background: #B9501B; border-color: #B9501B; color: #FFF8EF; }
.hero .btn-primary:hover { background: #8C3B22; border-color: #8C3B22; }

/* ===== Featured series with a fan of portraits ===== */
#series { overflow-x: clip; }
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.feature-body h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.portrait-fan { position: relative; display: block; isolation: isolate; height: clamp(300px, 36vw, 460px); max-width: 100%; }
.portrait-fan picture {
  position: absolute; top: 50%; left: 50%; width: 34%; aspect-ratio: 3 / 4;
  border-radius: 18px; overflow: hidden; border: 5px solid var(--card);
  box-shadow: 0 18px 40px -18px rgba(30, 42, 51, 0.55);
  transform: translate(calc(-50% + (var(--i) - 2) * 62%), -50%) rotate(calc((var(--i) - 2) * 6deg)) scale(calc(1 - (var(--i) - 2) * (var(--i) - 2) * 0.05));
  z-index: calc(10 - (var(--i) - 2) * (var(--i) - 2));
  transition: transform 0.4s ease;
}
.portrait-fan picture img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; display: block; }
.portrait-fan:hover picture { transform: translate(calc(-50% + (var(--i) - 2) * 70%), -52%) rotate(calc((var(--i) - 2) * 8deg)) scale(calc(1 - (var(--i) - 2) * (var(--i) - 2) * 0.04)); }

/* ===== Deep orange "how it works" band ===== */
.band-ember { background: var(--ember); color: var(--on-ember); }
.band-ember h2 { color: var(--on-ember); }
.steps-light .num { color: var(--amber); }
.steps-light h3 { color: var(--on-ember); }
.steps-light p { color: rgba(255, 244, 230, 0.85); }

/* ===== Pricing ===== */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pricing-copy { display: flex; flex-direction: column; gap: 14px; }
.pricing-copy h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.pricing-copy p { color: var(--muted); max-width: 52ch; }
.price-card, .panel-offer {
  background: var(--card); border: 2px solid var(--accent); border-radius: 24px; padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
}
.offer-price { font-size: 1.15rem; color: var(--muted); margin: 0; }
.offer-price span { font-family: var(--font-display); font-size: 3.4rem; color: var(--ink); line-height: 1; margin-right: 6px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 0.35em; width: 14px; height: 8px;
  border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg);
}
.hint { font-size: 0.9375rem; color: var(--muted); }

/* ===== Printed copy interest ===== */
.print { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); gap: clamp(28px, 5vw, 64px); align-items: center; }
.print-copy { display: flex; flex-direction: column; gap: 12px; }
.print-copy h2 { font-size: clamp(2rem, 4vw, 2.6rem); }
.print-copy p { color: var(--muted); max-width: 52ch; }
.print-form { display: flex; flex-direction: column; gap: 10px; }
.print-form label { font-weight: 700; }
.form-error { color: var(--rust); font-weight: 600; }
.form-note[data-print-msg="thanks"] { color: var(--ink); font-weight: 700; }

/* ===== Shelf of series ===== */
.shelf { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.shelf-card {
  border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  min-height: 180px; text-decoration: none; color: var(--ink);
}
.shelf-card h3 { font-size: 1.8rem; }
.shelf-card p { color: var(--muted); }
.shelf-now { background: var(--ember); color: var(--on-ember); }
.shelf-now h3, .shelf-now p { color: var(--on-ember); }
.shelf-now .chip-free { background: var(--on-ember); color: var(--ember); border-color: var(--on-ember); }
.shelf-soon { border: 2px dashed var(--line); }

/* ===== Character portraits on the series page ===== */
.person { padding: 0; overflow: hidden; }
.person > :not(.portrait-photo) { margin-inline: 22px; }
.person > :last-child { margin-bottom: 24px; }
.portrait-photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); margin-bottom: 6px; }
.portrait-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.person:hover .portrait-photo img { transform: scale(1.04); }
a.ep-title { text-decoration: none; color: var(--ink); }
a.ep-title:hover { color: var(--rust); }
.lock {
  display: inline-block; width: 10px; height: 8px; margin-right: 6px; border-radius: 2px; background: currentColor;
  position: relative; vertical-align: 1px;
}
.lock::before { content: ""; position: absolute; left: 1px; top: -6px; width: 8px; height: 7px; border: 2px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; box-sizing: border-box; }

/* ===== Account pages ===== */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: 56px 80px; }
.auth-art { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; max-height: 640px; background: #EBB873; max-width: 100%; }
.auth-art .lake { width: 100%; height: 100%; }
.auth-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.auth-card h1 { font-size: clamp(2.2rem, 4.5vw, 3rem); }
.auth-lead { color: var(--muted); }
.auth-links { color: var(--muted); font-size: 0.9375rem; }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; }
.field input, .print-form input, .admin-tools input {
  min-height: 48px; padding-inline: 16px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--card); color: var(--ink); font: 1rem var(--font-ui); width: 100%;
}
.field input:focus, .print-form input:focus, .admin-tools input:focus { border-color: var(--accent); outline: none; }
.notice { padding: 12px 16px; border-radius: 14px; background: var(--surface); font-weight: 600; }
.notice-error { background: rgba(168, 69, 31, 0.14); color: var(--rust); }
.account { padding-block: 56px 80px; display: flex; flex-direction: column; gap: 24px; }
.account-head { display: flex; flex-direction: column; gap: 8px; }
.account-head h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.panel-title { font-family: var(--font-ui); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rust); margin-bottom: 10px; }
.panel { background: var(--card); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.logout { margin-top: 16px; }
.chip-on, .chip-active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.paywall { max-width: 40rem; padding-block: 88px; display: flex; flex-direction: column; gap: 18px; }
.paywall h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.paywall p { color: var(--muted); font-size: 1.15rem; }

/* ===== Admin dashboard ===== */
.admin { padding-block: 48px 80px; display: flex; flex-direction: column; gap: 28px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.admin-head h1 { font-size: clamp(2.2rem, 4.5vw, 3rem); }
.admin-head h2 { font-size: 2rem; }
.admin-section { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.kpi { background: var(--card); border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.kpi-lead { background: var(--ember); color: var(--on-ember); }
.kpi-label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.kpi-value { font-family: var(--font-display); font-size: 2.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 0.875rem; opacity: 0.8; }
.admin-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.admin-tools input { flex: 1 1 260px; width: auto; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter {
  min-height: 40px; padding-inline: 14px; border-radius: 999px; border: 2px solid var(--line);
  background: transparent; color: var(--ink); font: 600 0.9375rem var(--font-ui); cursor: pointer;
}
.filter.is-on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.table-wrap { overflow-x: auto; background: var(--card); border-radius: 18px; }
.members { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 720px; }
.members th { text-align: left; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); }
.members td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; font-variant-numeric: tabular-nums; }
.members tr:last-child td { border-bottom: 0; }
.cell-sub { display: block; color: var(--muted); font-size: 0.875rem; }
.chip-admin { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chip-ending { background: rgba(201, 128, 47, 0.18); color: var(--ink); border-color: var(--gold); }
.chip-late { background: rgba(168, 69, 31, 0.16); color: var(--rust); border-color: var(--rust); }
.chip-lapsed, .chip-none { color: var(--muted); }
.empty { padding: 20px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 860px) {
  .feature, .pricing, .print, .auth, .account-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-art { aspect-ratio: 16 / 9; }
  .hero-art::after { background: linear-gradient(180deg, rgba(235, 184, 115, 0.94) 0%, rgba(235, 184, 115, 0.75) 45%, rgba(235, 184, 115, 0) 75%); }
  .hero-copy { padding-block: 48px 200px; }
  .portrait-fan { height: clamp(260px, 70vw, 380px); }
  .portrait-fan picture { width: 40%; }
  .nav { gap: 6px 14px; }
  .nav a.nav-cta { padding: 6px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .portrait-fan picture, .portrait-photo img { transition: none !important; }
}

/* ===== Episode list actions (series page and account page) ===== */
.eps li { grid-template-columns: 3.25rem minmax(0, 1fr) auto; }
.ep-status { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.ep-action {
  display: inline-flex; align-items: center; min-height: 38px; padding-inline: 16px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 0.9375rem; text-decoration: none; white-space: nowrap;
}
.ep-action:hover { background: var(--rust); color: var(--on-ink); }
.ep-action-quiet { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.ep-action-quiet:hover { background: var(--surface); color: var(--ink); }
.ep-tag { font-size: 0.875rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ep-title-muted { color: var(--muted); }
.ep-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ep-pct { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--rust); font-size: 0.9375rem; }
.ep-done { font-size: 0.875rem; font-weight: 700; color: var(--muted); }
.ep-done::before { content: ""; display: inline-block; width: 10px; height: 6px; margin-right: 6px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg) translateY(-2px); }
.eps-library li.is-read .ep-title { color: var(--muted); }

.progress { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; max-width: 320px; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }

/* ===== Reader account ("Welcome back") ===== */
.library { padding-block: 32px 80px; display: flex; flex-direction: column; gap: 36px; }
.library-hero {
  position: relative; overflow: hidden; border-radius: 28px; background: #EBB873; min-height: 260px;
  display: flex; align-items: center;
}
.library-hero-art { position: absolute; inset: 0; }
.library-hero-art .lake { width: 100%; height: 100%; }
.library-hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(235, 184, 115, 0.95) 0%, rgba(235, 184, 115, 0.7) 45%, rgba(235, 184, 115, 0) 75%); }
.library-hero-copy { position: relative; padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; gap: 10px; color: #1E2A33; max-width: 40rem; }
.library-hero-copy h1 { font-size: clamp(2.4rem, 6vw, 4rem); color: #1E2A33; }
.library-hero-copy p { color: #3B2A20; font-size: 1.125rem; }
.library-block { display: flex; flex-direction: column; gap: 14px; }
.library-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.library-block-head .panel-title { margin: 0; }

.read-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.read-card { background: var(--card); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.read-card h3 { font-size: 1.9rem; display: flex; flex-direction: column; gap: 2px; }
.read-card-no { font: 700 0.8125rem var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.read-card-meta { color: var(--muted); font-size: 0.9375rem; }
.read-card .progress { width: 100%; max-width: none; height: 8px; }
.read-card-now { background: var(--ember); color: var(--on-ember); }
.read-card-now .eyebrow, .read-card-now .read-card-no, .read-card-now .read-card-meta { color: rgba(255, 244, 230, 0.85); }
.read-card-now h3 { color: var(--on-ember); }
.read-card-now .progress { background: rgba(255, 244, 230, 0.25); }
.read-card-now .progress span { background: var(--amber); }
.read-card-now .btn-primary { background: var(--on-ember); border-color: var(--on-ember); color: var(--ember); }
.read-card-now .btn-primary:hover { background: var(--amber); border-color: var(--amber); color: #1E2A33; }
.read-card-locked { border: 2px dashed var(--accent); background: transparent; }

.acts-library { gap: 28px; }
.acts-library .act h3 { margin-bottom: 8px; }
.library-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.library-settings .panel { gap: 12px; }
.pw summary { cursor: pointer; font-weight: 700; color: var(--rust); padding-block: 6px; }
.pw[open] summary { margin-bottom: 12px; }

/* Admin card on the admin's own account page */
.admin-card {
  border-radius: 24px; padding: clamp(22px, 4vw, 32px); background: #1E2A33; color: #FBF4E8;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 28px; align-items: center;
  box-shadow: inset 0 0 0 2px rgba(233, 184, 114, 0.35);
}
.admin-card h2 { font-size: 2rem; color: #FBF4E8; }
.admin-card-head { display: flex; flex-direction: column; gap: 6px; }
.admin-card-stats { grid-column: 1 / -1; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.admin-card-stats div { background: rgba(251, 244, 232, 0.07); border-radius: 14px; padding: 14px 16px; }
.admin-card-stats dt { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #E9B872; }
.admin-card-stats dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 2rem; font-variant-numeric: tabular-nums; }
.admin-card .btn-light { grid-column: 2; grid-row: 1; }
.btn-light { background: #E9B872; border-color: #E9B872; color: #1E2A33; }
.btn-light:hover { background: #FBF4E8; border-color: #FBF4E8; color: #1E2A33; }

/* ===== Admin room ===== */
.admin-hero {
  border-radius: 28px; padding: clamp(26px, 5vw, 44px); background: #1E2A33; color: #FBF4E8;
  display: flex; flex-direction: column; gap: 22px; box-shadow: inset 0 0 0 2px rgba(233, 184, 114, 0.35);
}
.admin-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); color: #FBF4E8; max-width: 22ch; }
.admin-hero p { color: rgba(251, 244, 232, 0.75); margin-top: 8px; }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-tabs a {
  display: inline-flex; align-items: center; min-height: 40px; padding-inline: 16px; border-radius: 999px;
  border: 2px solid rgba(233, 184, 114, 0.5); color: #FBF4E8; text-decoration: none; font-weight: 700; font-size: 0.9375rem;
}
.admin-tabs a:hover { background: #E9B872; border-color: #E9B872; color: #1E2A33; }
.admin code { font-size: 0.875em; background: var(--surface); padding: 1px 6px; border-radius: 6px; }
.admin-section, #readers { scroll-margin-top: 90px; }

/* "Continue where you left off" bar on episode pages */
.resume-bar {
  position: fixed; z-index: 60; left: 50%; transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(560px, calc(100% - 32px)); padding: 12px 12px 12px 20px; border-radius: 999px;
  background: #1E2A33; color: #FBF4E8; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.5); font-size: 0.9375rem;
}
.resume-bar span { flex: 1; min-width: 0; }
.resume-bar .btn { min-height: 40px; padding-inline: 16px; white-space: nowrap; }
.resume-close { background: none; border: 0; color: #FBF4E8; font-size: 1.5rem; line-height: 1; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; }
.resume-close:hover { background: rgba(251, 244, 232, 0.12); }

@media (max-width: 760px) {
  .eps li { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .eps li .ep-status { grid-column: 2; justify-content: flex-start; }
  .admin-card { grid-template-columns: minmax(0, 1fr); }
  .admin-card .btn-light { grid-column: 1; grid-row: auto; justify-self: start; }
  .library-hero-art::after { background: linear-gradient(180deg, rgba(235, 184, 115, 0.95) 0%, rgba(235, 184, 115, 0.75) 60%, rgba(235, 184, 115, 0.3) 100%); }
  .resume-bar { border-radius: 20px; flex-wrap: wrap; }
}
.ep-status a.ep-action { color: var(--on-accent); }
.ep-status a.ep-action:hover { color: var(--on-ink); }
.ep-status a.ep-action-quiet, .ep-status a.ep-action-quiet:hover { color: var(--ink); }

/* ===== Reading settings: text size, reading mode, scene pictures ===== */
html[data-text-size="s"] .story { font-size: 1.0625rem; }
html[data-text-size="l"] .story { font-size: 1.375rem; }
html[data-text-size="xl"] .story { font-size: 1.5625rem; line-height: 1.8; }
html[data-text-size="l"] .prologue { font-size: 1.1875rem; }
html[data-text-size="xl"] .prologue { font-size: 1.3125rem; }
html[data-reading-theme="sepia"] body:has(.reader) {
  --bg: #F1E3C6; --surface: #E6D2AA; --card: #F6EBD3; --ink: #3B2A1E; --muted: #6B5745; --line: rgba(59, 42, 30, 0.16);
  --rust: #9A3F1C; --accent: #A9471B; --on-accent: #FFF8EF; color-scheme: light;
}
html[data-reading-theme="dark"] body:has(.reader) {
  --bg: #141D24; --surface: #1B2731; --card: #20303B; --ink: #F2E6D2; --muted: #C2B6A4; --line: rgba(242, 230, 210, 0.16);
  --rust: #E39A62; --gold: #E9B872; --accent: #EE8A4C; --on-accent: #141D24; --on-ink: #141D24; color-scheme: dark;
}
html[data-reading-theme="light"] body:has(.reader) {
  --bg: #F7ECD9; --surface: #EFDDBD; --card: #FBF4E8; --ink: #1E2A33; --muted: #5A5148; --line: rgba(30, 42, 51, 0.14);
  --rust: #A8451F; --gold: #C9802F; --accent: #B9501B; --on-accent: #FFF8EF; --on-ink: #FBF4E8; color-scheme: light;
}
html[data-scenes="off"] .stage { display: none; }
html[data-scenes="off"] .reader-grid { grid-template-columns: minmax(0, 40rem); justify-content: center; }

.aa-button {
  position: fixed; z-index: 55; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: var(--bg); font: 400 1.25rem var(--font-display); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
}
.aa-panel {
  position: fixed; z-index: 56; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  width: min(320px, calc(100% - 32px)); padding: 18px; border-radius: 20px; background: var(--card); color: var(--ink);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5); border: 1px solid var(--line); display: none; flex-direction: column; gap: 14px;
}
.aa-panel.is-open { display: flex; }
.aa-group { display: flex; flex-direction: column; gap: 6px; }
.aa-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.aa-row { display: flex; gap: 6px; flex-wrap: wrap; }
.aa-row button {
  flex: 1 1 0; min-height: 40px; min-width: 44px; border-radius: 12px; border: 2px solid var(--line); background: transparent;
  color: var(--ink); font: 700 0.9375rem var(--font-ui); cursor: pointer;
}
.aa-row button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Favourite lines */
.save-bar {
  position: fixed; z-index: 57; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
.save-bar .btn { box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.5); }
.save-toast {
  position: fixed; z-index: 58; left: 50%; transform: translateX(-50%); bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  padding: 12px 18px; border-radius: 999px; background: #1E2A33; color: #FBF4E8; font-weight: 600; max-width: calc(100% - 32px);
}
.save-toast a { color: #E9B872; margin-left: 6px; }
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.quote-card { margin: 0; background: var(--card); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.quote-card blockquote { margin: 0; font: 1.125rem/1.6 var(--font-read); color: var(--ink); }
.quote-card blockquote::before { content: "\201C"; font-family: var(--font-display); font-size: 2.6rem; line-height: 0; vertical-align: -0.45em; color: var(--accent); margin-right: 4px; }
.quote-card figcaption { font-size: 0.875rem; color: var(--muted); }
.quote-card figcaption a { color: var(--muted); }
.quote-actions { display: flex; gap: 14px; margin-top: auto; }
.link-btn { background: none; border: 0; padding: 0; color: var(--rust); font: 700 0.9375rem var(--font-ui); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Reactions and comments */
.discussion { margin-block: 8px 72px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.discussion h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
.reactions { display: flex; gap: 8px; flex-wrap: wrap; }
.reaction {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 16px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--card); color: var(--ink); font: 700 0.9375rem var(--font-ui); cursor: pointer;
}
.reaction[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.reaction-count { font-variant-numeric: tabular-nums; opacity: 0.8; }
.comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.comment { background: var(--card); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.comment-host { box-shadow: inset 0 0 0 2px var(--gold); }
.comment-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.comment-date { color: var(--muted); font-size: 0.875rem; }
.comment p { white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-form { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.comment-form label { font-weight: 700; }
.comment-form textarea, .gift-form textarea {
  width: 100%; padding: 12px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: 1rem/1.5 var(--font-ui); resize: vertical;
}
.comment-form textarea:focus, .gift-form textarea:focus { border-color: var(--accent); outline: none; }

/* Account settings controls */
.library-settings .panel h3 { font: 700 0.8125rem var(--font-ui); letter-spacing: 0.18em; text-transform: uppercase; color: var(--rust); }
.panel-quiet { background: transparent; border: 2px dashed var(--line); }
.pill-group { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pill-group legend { font-weight: 700; margin-bottom: 6px; width: 100%; }
.pill-option { position: relative; }
.pill-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill-option span { display: inline-flex; align-items: center; min-height: 40px; padding-inline: 14px; border-radius: 999px; border: 2px solid var(--line); font-weight: 600; font-size: 0.9375rem; }
.pill-option input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pill-option input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.field-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.btn-danger { background: #8E2A12; border-color: #8E2A12; color: #FFF4EC; }
.btn-danger:hover { background: #6B1F0D; border-color: #6B1F0D; color: #FFF4EC; }
.pw.danger summary { color: #8E2A12; }

/* Gift pages */
.gift { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 32rem); gap: clamp(28px, 5vw, 64px); align-items: start; padding-block: 56px 80px; }
.gift-copy { display: flex; flex-direction: column; gap: 16px; }
.gift-copy h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.gift-copy p { color: var(--muted); font-size: 1.125rem; }
.gift-options { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gift-options legend { font-weight: 700; margin-bottom: 8px; }
.gift-option { position: relative; }
.gift-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.gift-option-body { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 16px; border: 2px solid var(--line); height: 100%; }
.gift-option-body strong { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; }
.gift-option-body em { font-style: normal; font-size: 0.8125rem; color: var(--muted); }
.gift-option input:checked + .gift-option-body { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--surface); }
.gift-option input:focus-visible + .gift-option-body { outline: 3px solid var(--gold); outline-offset: 2px; }
.gift-form { align-items: stretch; }
.gift-code { display: inline-flex; flex-direction: column; gap: 4px; padding: 18px 24px; border-radius: 18px; border: 2px dashed var(--accent); background: var(--card); }
.gift-code span { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.gift-code strong { font: 700 1.6rem var(--font-ui); letter-spacing: 0.06em; }

/* Legal pages */
.legal { max-width: 44rem; padding-block: 56px 88px; display: flex; flex-direction: column; gap: 14px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); }
.legal h2 { font-size: 1.6rem; margin-top: 18px; }
.legal-lead { font-size: 1.15rem; color: var(--muted); }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }

/* Footer links */
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }

/* Admin extras */
.cell-comment { max-width: 32rem; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .gift { grid-template-columns: minmax(0, 1fr); }
  .gift-options { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 999px) {
  html[data-scenes="off"] .reader-grid { grid-template-columns: minmax(0, 1fr); }
}
.library-settings .form .btn, .library-settings form > .btn { align-self: flex-start; }

/* Illustrated scenes (photos) on the reading stage */
.scene picture { display: block; width: 100%; height: 100%; }
.scene img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.scene.is-active img { transform: scale(1); }
.scene picture + * { display: none; }
.stage-frame:has(.scene.is-active picture) .stage-caption { background: rgba(20, 29, 36, 0.62); }
@media (prefers-reduced-motion: reduce) { .scene img { transition: none !important; transform: none !important; } }
@media (max-width: 999px) { .stage-caption .stage-time { display: none; } }

/* Admin payments check */
.pay-check ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pay-check li { display: flex; gap: 10px; align-items: baseline; }
.pay-check li span { font-weight: 700; width: 1.2em; flex: none; }
.pay-check li.ok span { color: #2F6B3F; }
.pay-check li.bad span { color: #A8451F; }

/* ===================== Extras: map of Merrin Point, letters & keepsakes ===================== */
.extras-page, .map-page { padding-block: 40px 72px; }
.extras-hero { max-width: 680px; margin-bottom: 28px; }
.extras-hero h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); margin: 8px 0 12px; }
.extras-hero p { color: var(--muted); font-size: 1.0625rem; }
.extras-hero .map-count { color: var(--ink); font-weight: 700; margin-top: 12px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--rust); text-decoration: underline; cursor: pointer; }

/* --- The map --- */
.map-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .map-layout { grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); } }
.town-map {
  position: relative; border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(30, 42, 51, 0.55);
  background: #F3E6CF; aspect-ratio: 4 / 5;
  max-height: calc(100vh - 120px); margin-inline: auto; width: 100%;
}
@media (min-width: 900px) { .town-map { width: min(100%, calc((100vh - 120px) * 0.8)); } }
.town-map-art { display: block; width: 100%; height: 100%; }
.map-water-label { font-family: var(--font-display); font-style: italic; font-size: 46px; fill: #EAF2EF; opacity: 0.85; letter-spacing: 0.04em; }
.map-town-label { font-family: var(--font-ui); font-weight: 700; font-size: 17px; letter-spacing: 0.4em; fill: #7A5634; opacity: 0.7; }
.map-road-label { font-family: var(--font-ui); font-size: 14px; fill: #8C6E4C; font-style: italic; }
.map-sign text, .map-sign { font-family: var(--font-ui); font-weight: 700; font-size: 18px; fill: #7A5634; }
.map-compass text { font-family: var(--font-display); font-size: 16px; fill: #7A5634; }
.map-art { opacity: 0.16; transition: opacity 1.4s ease; }
.map-art.is-found { opacity: 1; }
.map-art.is-new { animation: paint-in 2.2s ease both; }
@keyframes paint-in { from { opacity: 0.16; } to { opacity: 1; } }

.map-pins { position: absolute; inset: 0; pointer-events: none; }
.map-pin {
  position: absolute; transform: translate(-50%, -50%); pointer-events: auto;
  display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.map-pin-dot {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  font: 700 0.9rem/1 var(--font-ui); color: #FFF8EF; background: #B9501B;
  border: 2px solid #FFF8EF; box-shadow: 0 3px 8px rgba(30, 42, 51, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}
.map-pin.is-locked .map-pin-dot { background: rgba(255, 255, 255, 0.55); color: #6E7F86; border: 2px dashed rgba(110, 127, 134, 0.8); box-shadow: none; }
.map-pin:hover .map-pin-dot, .map-pin:focus-visible .map-pin-dot, .map-pin.is-active .map-pin-dot { transform: scale(1.18); }
.map-pin.is-active .map-pin-dot { background: #1E2A33; }
.map-pin.is-new .map-pin-dot { animation: pin-pulse 1.8s ease-out 3; }
@keyframes pin-pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 179, 92, 0.9); } 100% { box-shadow: 0 0 0 16px rgba(242, 179, 92, 0); } }
.map-pin-label {
  position: absolute; top: calc(50% + 18px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; font: 700 0.75rem/1.2 var(--font-ui); color: #1E2A33;
  background: rgba(251, 244, 232, 0.92); padding: 3px 8px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(30, 42, 51, 0.18); pointer-events: none;
}
@media (max-width: 899px) { .map-pin-label { display: none; } .map-pin.is-active .map-pin-label { display: block; } }

.place-card {
  background: var(--card); border-radius: 18px; padding: 26px 24px; position: relative;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(30, 42, 51, 0.5);
}
.place-card:focus { outline: none; }
.place-card h2 { font-size: 2rem; margin: 6px 0 10px; }
.place-card .place-blurb { color: var(--muted); }
.place-card-empty p { color: var(--muted); }
.place-card-close { display: none; }
@media (min-width: 900px) { .place-card { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; } }
@media (max-width: 899px) {
  .place-card-empty { display: none; }
  .place-card {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    max-height: 72vh; overflow: auto; overscroll-behavior: contain;
    border-radius: 22px 22px 0 0; padding: 30px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    transform: translateY(105%); transition: transform 0.32s cubic-bezier(.2,.8,.2,1);
    box-shadow: 0 -18px 40px -12px rgba(0, 0, 0, 0.35);
  }
  .place-card.is-open { transform: none; }
  .place-card::before { content: ""; position: absolute; top: 10px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: var(--line); }
  .place-card-close {
    display: grid; place-items: center; position: absolute; top: 12px; right: 12px; width: 44px; height: 44px;
    border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
  }
  .place-card h2 { padding-right: 44px; font-size: 1.75rem; }
}
.moments { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 16px; }
.moment { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: start; }
.moment:not(:has(picture)) { grid-template-columns: 1fr; }
.moment picture img { width: 88px; height: 116px; object-fit: cover; border-radius: 10px; display: block; }
.moment-body { display: grid; gap: 4px; }
.moment-where { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.moment-body strong { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; }
.moment-body q { font-family: var(--font-read); font-style: italic; font-size: 0.95rem; line-height: 1.55; quotes: "“" "”"; }
.moment-link { font-weight: 700; font-size: 0.9rem; padding-block: 6px; }
.moments-left { margin-top: 16px; }

.map-list-wrap { margin-top: 40px; }
.map-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.map-list-item {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-height: 60px;
  font: inherit; color: var(--ink);
}
.map-list-item:hover { border-color: var(--gold); }
.map-list-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 0.9rem; }
.is-locked .map-list-n { background: transparent; color: var(--muted); border: 2px dashed var(--line); }
.is-locked .map-list-item { opacity: 0.75; }
.map-list-text { display: grid; line-height: 1.3; flex: 1; min-width: 0; }
.map-list-text span { font-size: 0.875rem; color: var(--muted); }
.map-new { flex: none; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--amber); color: #1E2A33; padding: 3px 8px; border-radius: 999px; }
.map-catchup { margin-top: 14px; }

.extras-cross { margin-top: 36px; }
.extras-cross-card { display: grid; gap: 4px; max-width: 520px; padding: 20px 22px; border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none; }
.extras-cross-card strong { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; }
.extras-cross-card span:last-child { color: var(--muted); }

/* Toast in the reader */
.map-toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px);
  padding: 10px 18px 10px 12px; border-radius: 999px; text-decoration: none;
  background: #1E2A33; color: #FBF4E8; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, 140%); opacity: 0; transition: transform 0.35s ease, opacity 0.35s ease;
}
.map-toast.is-shown { transform: translate(-50%, 0); opacity: 1; }
.map-toast:hover { color: #FBF4E8; }
.map-toast span:last-child { display: grid; line-height: 1.2; min-width: 0; }
.map-toast small { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: #F2B35C; font-weight: 700; }
.map-toast strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-toast-pin { flex: none; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #B9501B; border: 2px solid #FBF4E8; }
.is-pointed { background: rgba(242, 179, 92, 0.28); box-shadow: 0 0 0 10px rgba(242, 179, 92, 0.28); border-radius: 4px; transition: background 0.6s, box-shadow 0.6s; }

/* --- Letters & keepsakes --- */
.keepsake-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.keepsake-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start;
  padding: 16px; border-radius: 18px; background: var(--card); color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); transition: transform 0.2s ease, border-color 0.2s ease;
}
a.keepsake-card:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--ink); }
.keepsake-card-art img { width: 96px; height: 128px; object-fit: cover; border-radius: 10px; display: block; }
.keepsake-card-copy { display: grid; gap: 6px; align-content: start; min-width: 0; }
.keepsake-card-copy .eyebrow { font-size: 0.7rem; }
.keepsake-card-copy strong { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; line-height: 1.15; }
.keepsake-card-copy > span:not(.eyebrow):not(.keepsake-card-cta):not(.progress) { color: var(--muted); font-size: 0.95rem; }
.keepsake-card-cta { font-weight: 700; color: var(--rust); font-size: 0.95rem; }
.keepsake-sealed { grid-template-columns: 56px 1fr; align-items: center; border-style: dashed; background: transparent; }
.seal { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #8F2E1B; color: #F2C46B; font-family: var(--font-display); font-size: 1.5rem; box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.15); }
.extras-join { margin-top: 28px; }

.keepsake { max-width: 720px; margin-inline: auto; padding-block: 32px 72px; }
.keepsake-back { display: table; font-weight: 700; text-decoration: none; margin-bottom: 18px; padding-block: 6px; }
.keepsake-head h1 { font-size: clamp(2rem, 7vw, 3rem); margin: 8px 0 10px; }
.keepsake-lead { color: var(--muted); }
.keepsake-spoiler { margin-top: 16px; }
.keepsake-body { margin-top: 28px; position: relative; }
.keepsake-body.is-preview { max-height: 520px; overflow: hidden; }
.keepsake-body.is-preview::after { content: ""; position: absolute; inset: auto 0 0; height: 180px; background: linear-gradient(transparent, var(--bg)); }
.keepsake-after { margin-top: 26px; color: var(--muted); font-family: var(--font-read); font-style: italic; text-align: center; padding-inline: 8px; }
.keepsake-paywall { margin-top: 8px; padding: 28px 24px; border-radius: 18px; background: var(--ember); color: var(--on-ember); text-align: center; }
.keepsake-paywall .eyebrow { color: var(--amber); }
.keepsake-paywall h2 { font-size: 2rem; margin: 6px 0 8px; }
.keepsake-paywall .btn-row { justify-content: center; margin-top: 16px; }
.keepsake-paywall .btn-ghost { color: var(--on-ember); border-color: rgba(255, 244, 230, 0.5); }
.keepsake-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }

/* Martin's letter: thick cream paper, neat slanting ink */
.paper {
  position: relative; padding: clamp(28px, 7vw, 56px) clamp(22px, 7vw, 60px);
  background: #FBF6EA; color: #23303B; border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 22px 44px -22px rgba(30, 42, 51, 0.5);
  background-image: linear-gradient(rgba(201, 128, 47, 0.06), transparent 30%, rgba(201, 128, 47, 0.05));
  font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500;
  font-size: clamp(1.2rem, 4.4vw, 1.45rem); line-height: 1.55;
}
.paper p + p { margin-top: 0.9em; }
.paper del { color: #6D7680; text-decoration-color: rgba(35, 48, 59, 0.75); text-decoration-thickness: 1.5px; }
.paper-address { text-align: right; font-size: 0.9em; color: #4A5560; }
.paper-signoff { margin-top: 1.4em !important; }
.paper-ps { font-size: 0.9em; }
.paper-margin {
  display: inline-block; margin-left: 6px; padding: 0 6px; font-family: "Caveat", cursive; font-style: normal;
  font-size: 1.05em; line-height: 1; color: #A8451F; transform: rotate(-4deg); border-left: 2px solid rgba(168, 69, 31, 0.5);
}

/* Dee's jar: masking tape totals and scraps of paper */
.jar-intro { font-family: var(--font-read); font-size: 1.05rem; line-height: 1.7; }
.jar-years { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; }
.jar-years li { display: grid; gap: 8px; justify-items: start; }
.jar-years li:nth-child(even) { justify-items: end; }
.tape {
  display: inline-flex; align-items: baseline; gap: 12px; padding: 7px 18px;
  background: rgba(232, 214, 168, 0.92); color: #3B2E22; font-family: "Caveat", cursive; font-size: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); transform: rotate(-1.5deg);
  clip-path: polygon(2% 0, 98% 4%, 100% 50%, 97% 100%, 1% 96%, 0 50%);
}
.tape b { font-size: 1.6rem; font-weight: 700; color: #6B2A12; }
.jar-years li:nth-child(3n) .tape { transform: rotate(1.2deg); }
.scrap {
  max-width: min(100%, 460px); padding: 14px 18px; background: #FFFDF6; color: #23303B;
  font-family: "Caveat", cursive; font-size: 1.45rem; line-height: 1.25;
  box-shadow: 0 8px 20px -12px rgba(30, 42, 51, 0.5); transform: rotate(0.8deg);
  background-image: repeating-linear-gradient(transparent 0 29px, rgba(47, 93, 138, 0.15) 29px 30px);
}
.jar-years li:nth-child(even) .scrap { transform: rotate(-1deg); }
.jar-years li:last-child .scrap { background-color: #FFF5E0; border-left: 4px solid #B9501B; }
@media (prefers-reduced-motion: reduce) {
  .map-art.is-new, .map-pin.is-new .map-pin-dot { animation: none; }
  .place-card, .map-toast { transition: none; }
}
.end-extras { display: grid; gap: 12px; margin-top: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.end-extras a { display: grid; gap: 4px; align-content: start; padding: 18px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-family: var(--font-ui); }
.end-extras a:hover { border-color: var(--gold); color: var(--ink); }
.end-extras .eyebrow { font-size: 0.7rem; }
.end-extras strong { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; line-height: 1.15; }
.end-extras a > span:last-child { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.end-extras-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

@media (max-width: 760px) {
  .map-toast { left: 16px; right: 84px; max-width: none; transform: translateY(140%); }
  .map-toast.is-shown { transform: none; }
  .map-toast strong { white-space: normal; }
  .map-toast small { letter-spacing: 0.08em; }
}
/* On phones the pin floats just above its building so the drawing stays visible. */
@media (max-width: 899px) { .map-pin { transform: translate(-50%, -88%); } }

/* ===================== Phones ===================== */
[hidden] { display: none !important; }
.header-cta, .nav-toggle { display: none; }
.pay-check li { display: grid; grid-template-columns: 1.2em minmax(0, 1fr); }
.pay-check .pay-text { overflow-wrap: anywhere; }

@media (max-width: 760px) {
  /* Slim header: brand, Subscribe, and a Menu button that opens the links */
  .site-header .wrap { flex-wrap: nowrap; gap: 8px; padding-block: 8px; position: relative; }
  .brand { font-size: 1.15rem; gap: 8px; margin-right: auto; min-width: 0; white-space: nowrap; }
  .brand svg { width: 28px; height: 28px; }
  .header-cta {
    display: inline-flex; align-items: center; min-height: 40px; padding-inline: 14px; border-radius: 999px;
    background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 0.9rem; text-decoration: none; flex: none;
  }
  .header-cta:hover { color: var(--on-accent); background: var(--rust); }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0; margin-right: -6px; flex: none;
    background: none; border: 0; color: var(--ink); font: 700 0.95rem var(--font-ui); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars span, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
  .nav-toggle-bars { position: relative; background: none; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; transition: transform 0.2s ease; }
  .nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
  .is-open .nav-toggle-bars span { opacity: 0; }
  .is-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .is-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(30, 42, 51, 0.45);
    padding: 4px max(16px, env(safe-area-inset-left, 0px)) 16px; max-height: calc(100vh - 60px); overflow-y: auto;
  }
  .is-open .nav { display: flex; align-items: stretch; }
  .nav a { display: flex; align-items: center; min-height: 52px; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .nav a.nav-cta { display: none; }

  /* Footer links big enough to tap */
  .footer-links { gap: 0 20px; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

  /* Home hero: words first, then the painting underneath (no text on top of the art) */
  .hero { display: flex; flex-direction: column; }
  .hero-art { position: relative; inset: auto; order: 2; aspect-ratio: 16 / 10; }
  .hero-art::after { background: linear-gradient(180deg, #EBB873 0%, rgba(235, 184, 115, 0) 28%); }
  .hero-copy { padding-block: 36px 4px; gap: 16px; }

  /* Characters: swipe through them instead of scrolling past five tall portraits */
  .cast {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 4px max(16px, env(safe-area-inset-left, 0px)) 14px;
    scroll-padding-inline: max(16px, env(safe-area-inset-left, 0px)); scrollbar-width: none;
  }
  .cast::-webkit-scrollbar { display: none; }
  .cast .person { flex: 0 0 min(78%, 320px); scroll-snap-align: start; }
  .cast-hint { display: block !important; }

  /* Episode lists: "Coming soon" sits beside the title rather than under it */
  .eps li:not(:has(a, button)) { grid-template-columns: 2.5rem minmax(0, 1fr) auto; padding-block: 12px; }
  .eps li:not(:has(a, button)) .ep-status { grid-column: auto; font-size: 0.8rem; }

  /* Rows of buttons stack full-width on narrow phones */
  .btn-row > .btn { flex: 1 1 100%; }
  .btn { text-align: center; }
  .btn-lg { padding-inline: 20px; }
  .keepsake-foot .btn { flex: 1 1 100%; }
  .extras-hero { margin-bottom: 20px; }
  .map-page, .extras-page { padding-block: 24px 56px; }
}
.cast-hint { display: none; color: var(--muted); font-size: 0.9rem; margin-top: -6px; }
@media (max-width: 399px) { .brand-the { display: none; } .btn-lg { font-size: 1rem; } }
.pay-check li .pay-text { width: auto; font-weight: 400; color: inherit; }
.admin .chip, .admin td .chip { white-space: nowrap; }
