@import url('fonts/literata.css');
/* Stealth Fiction demo v3 (2026-11-01): generated pages, jump bar, chapter reader, index tools.
   Loaded after cinema.css; overrides only what the new pages need. */
html { scroll-padding-top: 136px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* footer */
footer .cols.cols-3 { grid-template-columns: 2fr 1fr 1.4fr; }
footer .wordmark { display: inline-block; margin-bottom: 8px; }
.footer-tag { color: var(--muted); font-size: .85rem; max-width: 36ch; margin: 0; }
@media (max-width: 768px) { footer .cols.cols-3 { grid-template-columns: 1fr 1fr; } footer .cols.cols-3 > div:first-child { grid-column: 1 / -1; } }

/* ---------- story hero (compact, one-line meta) ---------- */
.story-hero.compact .hero-inner { min-height: 300px; padding-top: 36px; padding-bottom: 36px; gap: 12px; }
.story-hero.compact .breadcrumb { margin-bottom: 14px; }
.story-hero.compact h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); max-width: 18ch; }
.story-frame.no-art::before { background: radial-gradient(circle at 25% 20%, rgba(255,159,67,.16), transparent 55%), radial-gradient(circle at 85% 85%, rgba(94,234,212,.12), transparent 55%), linear-gradient(0deg, rgba(6,9,18,.6), transparent); }
@media (max-width: 639px) { .story-hero.compact .hero-inner { min-height: 230px; padding-top: 24px; padding-bottom: 26px; } }

/* ---------- sticky jump-pill bar ---------- */
.jump-bar { position: sticky; top: 64px; z-index: 45; background: rgba(6,9,18,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.jump-row { display: flex; gap: 8px; padding-top: 10px; padding-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.jump-row::-webkit-scrollbar { display: none; }
/* 16 Nov 2026: with the React pill a page can have eleven pills (The Death Agreement); the phones' 6 px gap keeps the
   whole row on screen at 1280 px instead of scrolling by 5 px */
.jump-row:has(> :nth-child(11)) { gap: 6px; }
/* 16 Nov 2026 (Mr. Everett's Storyboards pill, 44 px wider than Extras): eleven pills on a desktop also trim the pills' side
   padding 16 -> 14 px (22 px a pill across the row), so the row fits 1280 px with the lit "More" pill clear of the edge */
@media (min-width: 640px) { .jump-row:has(> :nth-child(11)) .jump-pill { padding-left: 14px; padding-right: 14px; } }
/* 17 Nov 2026 (Mr. Everett gained its Watch pill: twelve pills, 96 px too wide at 1280): twelve or more pills on a desktop
   tighten further (pill sides 10 px, icon gap 6 px, row gap 4 px) so the row still fits 1280 px, lit "More" clear of the edge */
@media (min-width: 640px) { .jump-row:has(> :nth-child(12)) { gap: 4px; } .jump-row:has(> :nth-child(12)) .jump-pill { padding-left: 10px; padding-right: 10px; gap: 6px; } }
.jump-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); color: #b9c0cf; font-size: .82rem; font-weight: 600; white-space: nowrap; transition: color .2s, border-color .2s, background .2s; }
.jump-pill .icon { width: 18px; height: 18px; }
.jump-pill:hover { color: var(--ink); border-color: var(--amber); }
.jump-pill.is-active { background: var(--amber); border-color: var(--amber); color: var(--bg); }
/* on phones the pill row scrolls sideways; a fade at the right edge says so */
@media (max-width: 639px) { .jump-bar { position: sticky; } .jump-bar::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 36px; pointer-events: none; background: linear-gradient(90deg, rgba(6,9,18,0), rgba(6,9,18,.95)); } .jump-row { gap: 6px; padding-left: 16px; padding-right: 40px; } .jump-pill { padding: 7px 12px; font-size: .76rem; gap: 6px; } .jump-pill .icon { width: 16px; height: 16px; } }

/* ---------- synopsis ---------- */
.story-wrap { padding-bottom: 8px; }
.synopsis { padding: 48px 0 40px; }
.synopsis.with-cover { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; align-items: start; }
.synopsis .story-synopsis { max-width: 70ch; }
.synopsis .story-blurb { font-size: 1.15rem; color: #c9cfdb; line-height: 1.7; }
.note { color: var(--muted); font-size: .88rem; line-height: 1.6; margin: 14px 0 0; padding-left: 14px; border-left: 2px solid rgba(94,234,212,.4); }
.alias-note { color: #d6dae3; border-left-color: var(--amber); }
.facts { list-style: none; padding: 16px 0 0; margin: 20px 0 0; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: .8rem; }
@media (max-width: 639px) { .synopsis { padding: 28px 0 24px; } .synopsis.with-cover { grid-template-columns: 96px minmax(0,1fr); gap: 18px; } .synopsis .cover-frame { width: auto; max-width: none; margin: 0; padding: 4px; } .synopsis .story-blurb { font-size: 1rem; } }

/* ---------- reader v3: flowing article, chapters, TOC ---------- */
.reader-section { padding: 0 0 56px; }
.reader { overflow: visible; background: #0d1220; }
.reader-toolbar { position: relative; border-radius: 6px 6px 0 0; }
.reader-tools { position: relative; }
/* K, 2 Nov: full-screen button is an icon only, so the toolbar fits one line on phones; the icon swaps when the reader is full screen */
.rbtn.reader-focus .icon { width: 18px; height: 18px; display: block; }
.rbtn.reader-focus .ic-collapse, .rbtn.reader-focus[aria-pressed="true"] .ic-expand { display: none; }
.rbtn.reader-focus[aria-pressed="true"] .ic-collapse { display: block; }
.toc-drop { position: relative; display: none; }
.toc-menu { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; width: min(320px, 86vw); max-height: 60vh; overflow: auto; margin: 0; padding: 6px; list-style: none; background: #121831; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.toc-menu a, .reader-toc a { display: flex; gap: 10px; align-items: baseline; padding: 9px 10px; border-radius: 6px; color: var(--muted); font-size: .86rem; line-height: 1.35; }
.toc-menu a:hover, .reader-toc a:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.toc-n { color: var(--faint); font-variant-numeric: tabular-nums; min-width: 1.4em; }
.toc-menu a[aria-current="true"], .reader-toc a[aria-current="true"] { color: var(--amber); background: rgba(255,159,67,.08); }
.toc-menu a[aria-current="true"] .toc-n, .reader-toc a[aria-current="true"] .toc-n { color: var(--amber); }
.reader-resume { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; background: rgba(94,234,212,.07); border-bottom: 1px solid var(--rule); }
.reader-resume[hidden] { display: none; }
.resume-btn { min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--cyan); background: transparent; color: var(--cyan); font-size: .85rem; cursor: pointer; }
.resume-btn:hover { background: rgba(94,234,212,.12); }
.resume-dismiss { min-width: 40px; min-height: 40px; border: 0; background: none; color: var(--faint); cursor: pointer; }
.reader-layout { display: block; }
.reader.has-chapters .reader-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.reader-toc { position: sticky; top: 136px; align-self: start; max-height: calc(100vh - 156px); overflow: auto; padding: 24px 10px 24px 16px; border-right: 1px solid var(--rule); }
.reader-toc .credits { color: var(--faint); font-size: .62rem; margin: 0 0 10px 10px; }
.reader-toc ol { list-style: none; margin: 0; padding: 0; }
.reader .reader-screen { display: block; min-height: 0; padding: clamp(28px, 4.5vw, 64px) clamp(18px, 4vw, 56px) 40px; }
.reader-body { --reader-fs: 1.18rem; max-width: 70ch; margin: 0 auto; font-family: Georgia, 'Times New Roman', serif; color: #dadde6; }
.chapter-text p, .chapter-text blockquote { font-size: var(--reader-fs); line-height: 1.85; margin: 0 0 1.1em; }
.chapter-text blockquote { margin-left: 0; padding-left: 1.2em; border-left: 2px solid rgba(255,255,255,.18); color: #c3c8d4; }
.chapter-text blockquote p { margin: 0; font-size: inherit; }
.chapter-text a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.chapter-text > p.dropcap::first-letter { float: left; font-size: 3.6em; line-height: .9; margin: .08em .12em 0 0; color: var(--amber); }
.chapter-text .scene-head { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; letter-spacing: .04em; font-size: calc(var(--reader-fs) * .95); margin-top: 1.8em; color: var(--ink); }
.chapter-text .scene-num { text-align: center; color: var(--faint); font-family: 'Space Grotesk', system-ui, sans-serif; letter-spacing: .2em; margin: 1.6em 0 1em; }
.chapter-text .sign { text-align: center; font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; letter-spacing: .12em; margin: .2em 0; }
.scene-break { border: 0; height: 1px; width: 120px; margin: 2.2em auto; background: linear-gradient(90deg, transparent, rgba(255,159,67,.6), transparent); }
.chapter-head { margin: 0 0 28px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.chapter-head .credits { color: var(--cyan); font-size: .62rem; }
.chapter-head h3 { font: 700 clamp(1.4rem, 3vw, 1.9rem)/1.2 'Space Grotesk', system-ui, sans-serif; margin: 8px 0 0; color: var(--ink); }
.chapter-end { margin: 40px 0 8px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: flex-end; }
.next-chapter { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; min-height: 44px; padding: 12px 20px; border-radius: 6px; background: var(--amber); color: var(--bg); font: 700 .95rem/1.2 'Space Grotesk', system-ui, sans-serif; }
.next-chapter span { font-weight: 500; font-size: .78rem; opacity: .85; }
.next-chapter:hover { background: #ffb366; }
.the-end { margin: 0 auto; color: var(--faint); }
.status-note { flex: 0 0 100%; max-width: 100%; margin: 10px 0 0; padding: 0 15%; box-sizing: border-box; text-align: center; color: var(--amber); font-size: .9rem; line-height: 1.5; }
.reader-source { max-width: 70ch; margin: 24px auto 0; color: var(--faint); font-size: .75rem; }
@media (max-width: 999px) {
  .reader.has-chapters .reader-layout { display: block; }
  .reader-toc { display: none; }
  .toc-drop { display: block; }
}
@media (max-width: 720px) {
  .reader-section { margin-inline: -24px; }
  .reader { border-left: 0; border-right: 0; border-radius: 0; }
  .reader-body { --reader-fs: 1.0625rem; }
  .reader .reader-screen { padding: 26px 18px 32px; }
  .chapter-text p, .chapter-text blockquote { line-height: 1.75; }
  .reader-tools { gap: 8px; }
  .reader-tools .rbtn { padding: 5px 10px; }
  .font-grid button { padding: 4px 10px; }
  .font-grid .fs-label { min-width: 46px; }
  .next-chapter { width: 100%; align-items: center; text-align: center; }
}
/* focus mode */
body.reader-focus #reader { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; background: #0b101d; border: 0; border-radius: 0; }
body.reader-focus #reader .reader-layout { flex: 1 1 auto; min-height: 0; display: block; overflow: hidden; }
body.reader-focus #reader .reader-toc { display: none; }
body.reader-focus #reader .toc-drop { display: block; }
body.reader-focus #reader .reader-screen { height: 100%; overflow-y: auto; }
body.reader-focus .read-progress { z-index: 130; }
body.reader-focus .to-top { z-index: 130; }

/* progress bar and back-to-top */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--amber), var(--cyan)); transition: width .1s linear; }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 65; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(18,23,42,.92); color: var(--ink); font-size: .82rem; cursor: pointer; box-shadow: 0 10px 28px rgba(0,0,0,.45); }
.to-top:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- Listen / Watch / Reddit / Buy / Download sections ---------- */
.story-section { padding: 40px 0; border-top: 1px solid var(--rule); }
.story-section .section-head { margin-bottom: 22px; }
.story-section .section-head h2 { font-size: 1.3rem; }
.story-section .section-head .sub a { color: var(--amber); }
.appearances { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.appearance { position: relative; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); color: var(--muted); font-size: .88rem; line-height: 1.6; overflow-wrap: anywhere; }
.appearance strong { color: var(--ink); }
.appearance a { color: var(--cyan); }
.appearance a:hover { text-decoration: underline; }
.flag { display: inline-block; margin: 0 8px 6px 0; padding: 2px 9px; border-radius: 999px; border: 1px solid rgba(255,159,67,.6); color: var(--amber); font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.video-card { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: var(--panel); transition: border-color .2s, transform .2s; }
.video-card:hover { border-color: rgba(255,159,67,.45); transform: translateY(-2px); }
.video-card .thumb { position: relative; aspect-ratio: 16/9; background: #05070d; display: block; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-card .play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; transform: translate(-50%,-50%); color: #fff; stroke-width: 1.4; filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); }
.video-copy { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; font-size: .82rem; color: var(--muted); }
.video-copy strong { color: var(--ink); font-size: .92rem; }
.copies { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.copies li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); font-size: .88rem; }
.copies li > a { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.copies li > a:hover { color: var(--amber); }
.copy-meta { color: var(--faint); font-size: .78rem; white-space: nowrap; }
/* date · sub · account and the Part pill stay on one line together (1 Nov: two-digit days pushed the pill down) */
.copy-line { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; max-width: 100%; }
@media (max-width: 479px) { .copy-meta .acct { display: none; } .copy-line { gap: 8px; } }
.copy-note { flex-basis: 100%; color: var(--muted); font-size: .8rem; }
.tag { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--rule); border-radius: 999px; padding: 2px 8px; color: var(--faint); }
.tag.canon { border-color: rgba(94,234,212,.5); color: var(--cyan); }
.buy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; }
@media (max-width: 479px) { .buy-grid { grid-template-columns: 1fr; } }
.buy-card, .dd-book { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); transition: border-color .2s; }
.buy-card:hover, .dd-book:hover { border-color: var(--amber); }
.buy-card img, .dd-book img { width: 64px; height: auto; border-radius: 3px; flex: 0 0 auto; }
.buy-card > span, .dd-book > span { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; color: var(--muted); align-items: flex-start; }
.buy-card strong, .dd-book strong { color: var(--ink); font-size: .95rem; }
.dd-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 18px; max-width: 640px; }
/* the More section: the bar is a row of plain links, no rule above it, then the two cards (K, 2 Nov) */
.more-section .story-pagination { border-top: 0; padding: 4px 0 22px; }
.more-section .after-end .credits { color: var(--cyan); font-size: .62rem; margin: 0 0 10px; }
/* one row at every width: three columns, long titles trimmed with an ellipsis, arrows always shown (K, 2 Nov) */
.story-pagination { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 14px; }
.story-pagination a { display: flex; min-width: 0; white-space: nowrap; }
.story-pagination a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.story-pagination .prev-story { grid-column: 1; }
.story-pagination .to-archive { grid-column: 2; }
.story-pagination .next-story { grid-column: 3; justify-content: flex-end; }
@media (max-width: 639px) { .story-section { padding: 30px 0; } }

/* ---------- index ---------- */
.index-masthead.slim > .wrap { padding-top: 26px; padding-bottom: 20px; }
.index-masthead.slim h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); max-width: none; margin: 0 0 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.index-masthead.slim h1 span { font: 500 .9rem/1.4 Inter, system-ui, sans-serif; color: var(--muted); letter-spacing: 0; }
.index-tools { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
/* K, 2 Nov: all filters and the sort in one collapsed bar above the search, so the list gets the space */
.filters-bar { border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: var(--bg); }
.filters-bar summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 14px; color: var(--muted); font: 700 .72rem/1 'Space Grotesk', system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.filters-bar summary::-webkit-details-marker { display: none; }
.filters-bar summary:hover { color: var(--ink); }
.filters-on { color: var(--amber); font-weight: 700; letter-spacing: .04em; text-transform: none; font-size: .78rem; }
.filters-chev { margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.filters-bar[open] .filters-chev { transform: rotate(-135deg); }
.filters-bar .filters { padding: 4px 14px 14px; }
.search input { min-height: 42px; width: 100%; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: var(--bg); color: var(--ink); font-size: .9rem; }
.search input::placeholder { color: var(--faint); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: var(--muted); font-size: .8rem; cursor: pointer; }
@media (hover: hover) { .filter:hover { color: var(--ink); border-color: var(--amber); } }  /* no sticky hover border after a tap (K, 2 Nov) */
.filter[aria-pressed="true"] { background: rgba(255,159,67,.14); border-color: var(--amber); color: var(--amber); }
.sort { display: inline-flex; align-items: center; gap: 8px; color: var(--faint); font-size: .78rem; }
.sort select { min-height: 38px; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.16); background: var(--bg); color: var(--ink); font-size: .85rem; }
.index-count { color: var(--faint); font-size: .78rem; margin: 18px 0 0; }
.index-empty { color: var(--muted); padding: 40px 0; }
.release-index { margin-top: 6px; }
.index-row { grid-template-columns: 56px minmax(0, 1fr) auto; padding: 18px 12px; align-items: start; }
.index-meta { color: var(--cyan) !important; font-size: .74rem !important; letter-spacing: .04em; margin: 0 0 6px !important; }
.index-parts { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .78rem; }
.index-parts a { color: var(--muted); }
.index-parts a:hover { color: var(--amber); }
.index-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 360px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); color: #b9c0cf; font-size: .76rem; font-weight: 600; white-space: nowrap; transition: color .2s, border-color .2s; }
.pill .icon { width: 16px; height: 16px; }
.pill:hover { color: var(--ink); border-color: var(--amber); }
/* K, 2 Nov: no pill is highlighted in Archive rows (the amber first pill looked like a selection) */
.series-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.series-list a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); color: var(--muted); font-size: .8rem; }
.series-list a:hover { border-color: var(--amber); }
.series-list strong { color: var(--ink); font-size: .98rem; }
.dd-head { font: 700 1.2rem/1.3 'Space Grotesk', system-ui, sans-serif; margin: 36px 0 8px; }
@media (max-width: 1000px) { .index-pills { max-width: 220px; } }
@media (max-width: 639px) {
  .index-tools { gap: 10px; }
  .search, .search input { width: 100%; }
  .sort { margin-left: 0; }
  .index-row { grid-template-columns: 44px minmax(0,1fr); padding: 18px 0; gap: 12px; }
  .index-thumb { width: 44px; height: 44px; }
  .index-pills { grid-column: 2; justify-content: flex-start; max-width: none; }
  .pill { min-height: 34px; padding: 5px 10px; font-size: .72rem; }
}

/* ---------- home ---------- */
.home-hero .hero-inner { padding-top: 56px; padding-bottom: 56px; }
.story .poster { color: inherit; }
.dd-shelf .dd-books { margin-top: 8px; }
/* home: a rule between Now Showing and the Daylight Dims shelf, inside the page gutters (K, 2 Nov) */
.home-shelf { padding-top: 0; }
.home-shelf > .wrap { border-top: 1px solid var(--rule); padding-top: 56px; }
@media (max-width: 639px) { .home-shelf > .wrap { padding-top: 36px; } }
.watch-card a + a { margin-left: 14px; }

/* ---------- audio page ---------- */
.page-title { font: 700 clamp(2rem, 4vw, 3rem)/1.1 'Space Grotesk', system-ui, sans-serif; margin: 0 0 12px; }
.dek { color: var(--muted); max-width: 70ch; line-height: 1.65; }
.audio-story h3 { margin: 0 0 12px; }
.audio-story h3 a:hover { color: var(--amber); }
.audio-story .appearances { margin-bottom: 22px; }
/* the story title already sits in the hero; the toolbar shows it only in focus mode */
.reader-toolbar .reader-title { display: none; }
body.reader-focus .reader-toolbar .reader-title { display: inline; }
.series > div { min-width: 0; }
.dd-books { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }

/* ---------- Art section (2026-11-01): every piece of a story's artwork, with its role and standard size ---------- */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.art-piece { margin: 0; background: #0e1321; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; overflow: hidden; }
.art-piece a { display: block; background: #05070d; }
.art-piece img { display: block; width: 100%; height: auto; }
.art-piece.art-cover, .art-piece.art-interior { grid-row: span 2; }
.art-piece figcaption { display: grid; gap: 3px; padding: 12px 14px 14px; font-size: .82rem; color: var(--muted); }
.art-piece figcaption strong { color: var(--ink); font-size: .9rem; }
.art-piece figcaption .now { color: var(--faint); font-size: .72rem; }
@media (max-width: 639px) { .art-grid { grid-template-columns: 1fr 1fr; gap: 12px; } .art-piece figcaption { padding: 10px; font-size: .74rem; } .art-piece figcaption .use { display: none; } }

/* ---------- Notes section (2026-11-01): the author's note on a story ---------- */
.author-notes { max-width: 68ch; font: 1.05rem/1.8 Georgia, 'Times New Roman', serif; color: #d9dce5; }
.author-notes p { margin: 0 0 1em; }
.author-notes strong { color: var(--amber); font-family: 'Space Grotesk', system-ui, sans-serif; font-size: .95em; letter-spacing: .02em; }

/* ---------- Watch and Buy cards (1 Nov): local thumbnails, pulled titles, store covers ---------- */
.video-card .thumb { aspect-ratio: 16 / 9; }
.video-card .video-copy > span { display: block; }
.video-card .yt, .buy-card .store { color: var(--amber); font-weight: 600; font-size: .8rem; margin-top: 6px; }
.buy-card img { width: 120px; height: auto; border-radius: 3px; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
/* Buy card facts (5 Nov 2026): edition/date · words · read time, then the price beside the store */
.buy-card .buy-facts { font-size: .78rem; line-height: 1.45; }
.buy-card .buy-row { display: flex; align-items: baseline; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.buy-card .buy-row .store { margin-top: 0; }
.buy-card .price { color: var(--ink); font-weight: 700; font-size: 1.05rem; }

/* ---------- Share (1 Nov) ---------- */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-row a, .share-row button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 44px; height: 44px; padding: 0; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: none; color: #b9c0cf; font: 600 .82rem/1 inherit; font-family: inherit; cursor: pointer; white-space: nowrap; }
.share-row .icon { width: 20px; height: 20px; }
/* share-native: same plain circle as the other share icons (K: no amber pill, 5 Nov) */
.share-row a:hover, .share-row button:hover { color: var(--ink); border-color: var(--amber); }
.share-done { color: var(--cyan); font-size: .8rem; min-width: 6ch; }

/* ---------- Tip jar (K, 5 Nov 2026; one page first, 7 Nov): Ko-fi's tip panel open on the page, loaded on scroll ---------- */
/* K, 7 Nov: "make the block itself smaller". The card is a window onto Ko-fi's frame: the frame is 420 × 636 px, the
   window starts 120 px down (below the avatar; the heading is at 134 px) and is 448 px tall (through "Powered by Ko-fi",
   which ends at 560 px), and on wide screens the frame is scaled to 85% (357 × 381 px on the page). Phones: full width, no scale. */
.tip-panel { --tip-w: 420px; --tip-top: 120px; --tip-h: 448px; --tip-scale: .85; position: relative; overflow: hidden; width: calc(var(--tip-w) * var(--tip-scale)); height: calc(var(--tip-h) * var(--tip-scale)); max-width: 100%; border-radius: 12px; background: #f9f9f9; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.tip-panel iframe { position: absolute; top: calc(var(--tip-top) * -1 * var(--tip-scale)); left: 0; width: var(--tip-w); height: 636px; border: 0; background: #f9f9f9; transform: scale(var(--tip-scale)); transform-origin: 0 0; }
@media (max-width: 479px) { .tip-panel { --tip-scale: 1; width: 100%; } .tip-panel iframe { width: 100%; } }
.tip-panel noscript { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.tip-panel noscript a { color: #1a1a2e; font-weight: 600; text-decoration: underline; }
.tip-apple { max-width: calc(420px * .85); margin: 10px 0 0; color: #9aa3b5; font-size: .8rem; line-height: 1.5; text-align: right; }  /* as wide as the window (--tip-w × --tip-scale); K, 7 Nov: Apple Pay only on Ko-fi's own page */
.tip-apple a { color: var(--amber); white-space: nowrap; }
@media (max-width: 479px) { .tip-apple { max-width: 100%; } }
.art-piece figcaption .what { color: #d9dce5; font-style: italic; }


/* ---------- reading typeface and themes (1 Nov) ---------- */
.chapter-text p, .chapter-text blockquote, .author-notes { font-family: 'Literata', Georgia, 'Times New Roman', serif; font-optical-sizing: auto; }
.reader { --rd-bg: #0e1321; --rd-ink: #d9dce5; --rd-muted: #9aa3b5; --rd-rule: rgba(255,255,255,.12); --rd-accent: var(--amber); }
.reader[data-theme="light"] { --rd-bg: #fbfaf7; --rd-ink: #1d1f24; --rd-muted: #5c6270; --rd-rule: rgba(0,0,0,.12); --rd-accent: #b4541a; }
.reader[data-theme="sepia"] { --rd-bg: #f4ecd8; --rd-ink: #3b2f20; --rd-muted: #7a6a52; --rd-rule: rgba(60,40,10,.18); --rd-accent: #9c4a12; }
.reader { background: var(--rd-bg); }
.reader .reader-screen, .reader .chapter-text p, .reader .chapter-text blockquote, .reader .chapter-head h3, .reader .scene-head { color: var(--rd-ink); }
.reader .chapter-text blockquote { color: var(--rd-muted); border-left-color: var(--rd-rule); }
.reader .chapter-head, .reader .chapter-end, .reader .reader-toc, .reader .reader-toolbar { border-color: var(--rd-rule); }
.reader .chapter-text > p.dropcap::first-letter, .reader .chapter-head .credits, .reader .reader-toc a[aria-current="true"] { color: var(--rd-accent); }
.reader[data-theme="light"] .reader-toolbar, .reader[data-theme="sepia"] .reader-toolbar { background: rgba(0,0,0,.04); }
.reader[data-theme="light"] .reader-toolbar .credits, .reader[data-theme="sepia"] .reader-toolbar .credits, .reader[data-theme="light"] .reader-source, .reader[data-theme="sepia"] .reader-source, .reader[data-theme="light"] .reader-toc a, .reader[data-theme="sepia"] .reader-toc a, .reader[data-theme="light"] .reader-toc .credits, .reader[data-theme="sepia"] .reader-toc .credits, .reader[data-theme="light"] .the-end, .reader[data-theme="sepia"] .the-end { color: var(--rd-muted); }
.reader[data-theme="light"] .rbtn, .reader[data-theme="light"] .font-grid button, .reader[data-theme="light"] .fs-label, .reader[data-theme="sepia"] .rbtn, .reader[data-theme="sepia"] .font-grid button, .reader[data-theme="sepia"] .fs-label { color: var(--rd-ink); border-color: var(--rd-rule); background: rgba(255,255,255,.4); }
.reader[data-theme="light"] .reader-toc a[aria-current="true"], .reader[data-theme="sepia"] .reader-toc a[aria-current="true"] { background: rgba(0,0,0,.06); }
.reader[data-theme="light"] .next-chapter, .reader[data-theme="sepia"] .next-chapter { color: var(--rd-accent); }
body.reader-focus[data-reader-theme="light"] #reader { background: #fbfaf7; }
body.reader-focus[data-reader-theme="sepia"] #reader { background: #f4ecd8; }
.theme-grid { display: inline-flex; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.theme-btn { width: 34px; height: 34px; border: 0; cursor: pointer; font: 700 .72rem/1 'Space Grotesk', system-ui, sans-serif; }
.theme-btn[data-theme="dark"] { background: #0e1321; color: #d9dce5; }
.theme-btn[data-theme="light"] { background: #fbfaf7; color: #1d1f24; }
.theme-btn[data-theme="sepia"] { background: #f4ecd8; color: #3b2f20; }
.theme-btn[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--amber); }
.reader-left { color: var(--faint); font-size: .62rem; letter-spacing: .08em; text-transform: none; }

/* ---------- header tucks away while reading ---------- */
header.site { transition: transform .25s ease; }
body.hdr-hidden header.site { transform: translateY(-100%); }
body.hdr-hidden .jump-bar { top: 0; }
.jump-bar { transition: top .25s ease; }

/* ---------- Art grid previews ---------- */
.art-piece img { background: #05070d; }

/* ---------- Play here on narration cards ---------- */
.video-card { position: relative; }
.video-card .play-here { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(6,9,18,.75); color: var(--ink); font: 600 .72rem/1 'Space Grotesk', system-ui, sans-serif; cursor: pointer; }
.video-card .play-here:hover { border-color: var(--amber); color: var(--amber); }
.video-card.playing .thumb { aspect-ratio: 16 / 9; }
.video-card.playing .thumb iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-card.playing .play { display: none; }

/* ---------- after the end ---------- */
.after-end { margin: 0; padding: 0; border: 0; background: none; }
.after-end .credits { color: var(--cyan); font-size: .62rem; }
.after-end h3 { font: 700 1.1rem/1.3 'Space Grotesk', system-ui, sans-serif; margin: 6px 0 14px; color: var(--ink); }
.after-end .next-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.after-end a.next-card { display: block; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 6px; color: var(--ink); background: rgba(255,255,255,.02); }
.after-end a.next-card:hover { border-color: var(--amber); }
.after-end a.next-card strong { display: block; margin-bottom: 4px; }
.after-end a.next-card span { color: var(--muted); font-size: .82rem; }
.after-end .also { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.reader[data-theme="light"] .after-end, .reader[data-theme="sepia"] .after-end { background: rgba(0,0,0,.04); border-color: var(--rd-rule); }
.reader[data-theme="light"] .after-end h3, .reader[data-theme="sepia"] .after-end h3, .reader[data-theme="light"] .after-end a.next-card, .reader[data-theme="sepia"] .after-end a.next-card { color: var(--rd-ink); }

/* ---------- print: the story, nothing else ---------- */
@media print {
  header.site, .jump-bar, .reader-toolbar, .reader-resume, .reader-toc, .toc-drop, .read-progress, .to-top, .story-section, .story-pagination, footer, .hero-art, .after-end, .chapter-end .next-chapter { display: none !important; }
  body, .reader, .reader-screen { background: #fff !important; color: #000 !important; }
  .chapter[hidden] { display: block !important; }
  .chapter { break-before: page; }
  .chapter:first-of-type { break-before: auto; }
  .chapter-text p, .chapter-text blockquote, .chapter-head h3, .scene-head { color: #000 !important; font-size: 11.5pt !important; line-height: 1.5 !important; }
  .chapter-text > p.dropcap::first-letter { color: #000 !important; }
  .story-hero.compact .hero-inner { min-height: 0; padding: 0; }
  .story-hero h1 { color: #000 !important; font-size: 24pt; }
  .story-meta, .breadcrumb { color: #333 !important; }
  .reader.has-chapters .reader-layout { display: block; }
  .synopsis { page-break-after: avoid; }
  a { color: #000; text-decoration: none; }
}

/* ---------- the Continue bar follows the reading theme (1 Nov) ---------- */
.reader { --rd-resume-bg: rgba(94,234,212,.07); --rd-resume: var(--cyan); --rd-resume-hover: rgba(94,234,212,.12); }
.reader[data-theme="light"] { --rd-resume-bg: rgba(180,84,26,.07); --rd-resume: #b4541a; --rd-resume-hover: rgba(180,84,26,.12); }
.reader[data-theme="sepia"] { --rd-resume-bg: rgba(156,74,18,.09); --rd-resume: #9c4a12; --rd-resume-hover: rgba(156,74,18,.14); }
.reader .reader-resume { background: var(--rd-resume-bg); border-bottom-color: var(--rd-rule); }
.reader .resume-btn { border-color: var(--rd-resume); color: var(--rd-resume); }
.reader .resume-btn:hover { background: var(--rd-resume-hover); }
.reader[data-theme="light"] .resume-dismiss, .reader[data-theme="sepia"] .resume-dismiss { color: var(--rd-muted); }

/* ---------- synopsis grid (1 Nov): cover | blurb; facts under the blurb; files under the cover ---------- */
/* The cover and its files are one left-column group (.cover-col). Phone: the files sit in that column, flush
   under the art's bottom edge. Desktop: the files leave the column and go under the description (K, 1 Nov). */
.synopsis.with-cover { grid-template-rows: auto; }
.synopsis.with-cover .cover-col { grid-column: 1; grid-row: 1; display: grid; gap: 12px; align-content: start; }
.synopsis.with-cover .cover-col .cover-frame { margin: 0; }
.synopsis.with-cover .story-synopsis { grid-column: 2; grid-row: 1; }
@media (min-width: 640px) {
  /* desktop: the files move under the description. The group keeps the cover; the files are placed by the grid
     into the right column's second row. */
  .synopsis.with-cover { grid-template-rows: auto auto; }
  .synopsis.with-cover .cover-col { display: contents; }
  .synopsis.with-cover .cover-col .cover-frame { grid-column: 1; grid-row: 1 / span 2; }
  .synopsis.with-cover .get-files { grid-column: 2; grid-row: 2; align-self: start; margin-top: 18px; grid-template-columns: repeat(2, minmax(160px, 220px)); }
  .synopsis.with-cover .get-files .credits { grid-column: 1 / -1; }  /* the label sits above both buttons */
}
.get-files { display: grid; gap: 8px; align-content: start; }
.get-files .credits { color: var(--cyan); font-size: .6rem; margin: 0; }
.get-file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.get-file:hover { border-color: var(--amber); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.get-file .icon { width: 24px; height: 24px; color: var(--amber); flex: 0 0 auto; }
.get-copy { display: grid; line-height: 1.25; }
.get-copy strong { font: 700 .9rem/1.2 'Space Grotesk', system-ui, sans-serif; }
.get-copy span { color: var(--muted); font-size: .72rem; }
@media (max-width: 639px) {
  .synopsis.with-cover { grid-template-columns: 96px minmax(0,1fr); gap: 16px; align-items: start; }
  .synopsis.with-cover .cover-col { gap: 8px; }
  .synopsis .story-blurb { font-size: 1rem; line-height: 1.55; }
  .note { font-size: .82rem; margin-top: 10px; padding-left: 10px; }
  .get-files { gap: 6px; }
  .get-files .credits { display: none; }
  .get-file { flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 8px; text-align: center; }
  .get-file .icon { width: 18px; height: 18px; }
  .get-copy { display: grid; justify-items: center; line-height: 1.2; }
  .get-copy strong { font-size: .78rem; }
  .get-copy span { font-size: .62rem; }
}
}

/* ---------- Listen page: poster wall (2 Nov). Classes are lp-* because cinema.css already owns ".poster". ---------- */
.audio-head .page-title { margin-bottom: 8px; }
.audio-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 26px; }
.audio-stats .stat { padding: 14px 16px; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); }
.audio-stats .stat b { display: block; font: 700 1.6rem/1.1 'Space Grotesk', system-ui, sans-serif; color: var(--amber); }
.audio-stats .stat span { color: var(--muted); font-size: .78rem; }
.poster-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.lp-card { display: block; border-radius: 10px; overflow: hidden; background: var(--panel); border: 1px solid var(--rule); color: var(--ink); text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; }
.lp-card:hover { transform: translateY(-3px); border-color: var(--amber); box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.lp-art { position: relative; display: block; aspect-ratio: 16 / 9; background: #05070d; overflow: hidden; }  /* 16 Nov 2026: was 16/10, which cropped the sides of the 16:9 titled thumbnails and cut letters off their titles (Worse Than Death, The Truth About Mickey, …); the tile now has the picture's own shape */
.lp-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-card.is-cover .lp-art img.lp-blur { filter: blur(18px) saturate(1.2) brightness(.6); transform: scale(1.3); }
.lp-card.is-cover .lp-art img:not(.lp-blur) { object-fit: contain; padding: 8px; }
.lp-card.no-art .lp-art { display: grid; place-items: center; padding: 20px; }
.lp-title { font: 700 clamp(1rem, 2.4vw, 1.3rem)/1.15 'Space Grotesk', system-ui, sans-serif; text-align: center; color: var(--ink); }
.lp-card.no-art.p1 .lp-art { background: linear-gradient(135deg, #1b2240, #0a0e1a); }
.lp-card.no-art.p2 .lp-art { background: linear-gradient(135deg, #3a1f1f, #0a0e1a); }
.lp-card.no-art.p3 .lp-art { background: linear-gradient(135deg, #1f3a35, #0a0e1a); }
.lp-card.no-art.p4 .lp-art { background: linear-gradient(135deg, #3a2f1f, #0a0e1a); }
.lp-card.no-art.p5 .lp-art { background: linear-gradient(135deg, #2f1f3a, #0a0e1a); }
.lp-card.no-art.p6 .lp-art { background: linear-gradient(135deg, #1f2a3a, #0a0e1a); }
.poster-badge { position: absolute; left: 10px; top: 10px; z-index: 2; padding: 4px 9px; border-radius: 999px; background: rgba(6,9,18,.8); border: 1px solid rgba(255,159,67,.6); color: var(--amber); font: 700 .68rem/1 'Space Grotesk', system-ui, sans-serif; letter-spacing: .04em; }
.lp-copy { display: grid; gap: 4px; padding: 12px 14px 14px; }
.lp-copy strong { font: 700 1rem/1.25 'Space Grotesk', system-ui, sans-serif; }
.lp-meta { color: var(--muted); font-size: .78rem; }
.lp-go { color: var(--amber); font-size: .78rem; font-weight: 600; margin-top: 2px; }
.families { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.families li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); font-size: .9rem; }
.families li a { color: var(--ink); font-weight: 600; }
.families li a:hover { color: var(--amber); }
.fam-n { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.dek.small { font-size: .82rem; color: var(--faint); margin-top: 14px; }
.comps { margin-top: 18px; color: var(--muted); font-size: .85rem; }
.comps summary { cursor: pointer; color: var(--ink); }
@media (max-width: 639px) { .poster-wall { grid-template-columns: 1fr 1fr; gap: 12px; } .lp-copy { padding: 10px; } .lp-copy strong { font-size: .88rem; } .lp-meta { font-size: .7rem; } .lp-title { font-size: .95rem; } .audio-stats { grid-template-columns: 1fr 1fr; gap: 8px; } .audio-stats .stat b { font-size: 1.3rem; } .families li { flex-direction: column; gap: 2px; } }
.audio-statline { color: var(--muted); font-size: .82rem; margin: 0 0 14px; }
.audio-statline b { color: var(--amber); font-family: 'Space Grotesk', system-ui, sans-serif; }
.audio-head { padding-bottom: 20px; }
/* 2 Nov: cards are equal-height grid items; the copy is a column with "Listen →" pinned to the bottom, so it sits in the
   same spot on every card however long the text above it is */
.poster-wall { align-items: stretch; }
.lp-card { display: flex; flex-direction: column; }
.lp-copy { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; }
.lp-go { margin-top: auto; padding-top: 8px; }
/* every card the same size, not just within a row: title and meta get fixed two-line boxes (overflow faded), so the
   "Listen →" sits at exactly the same spot on all of them */
.lp-copy strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: calc(2 * 1.25em); }
.lp-meta { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; height: calc(3 * 1.45em); line-height: 1.45; }
/* home: About as plain text, not a card (K, 2 Nov) */
.about-plain { max-width: 70ch; color: var(--muted); font-size: .95rem; line-height: 1.65; margin: 0; }
/* appearance rows (2 Nov): the meta reuses .copy-meta, which is nowrap for the Reddit cards; here it must wrap */
.appearance .copy-meta { white-space: normal; }
.appearance .appearance-text { overflow-wrap: anywhere; }
.appearances li.appearance { max-width: 100%; }
/* Now Showing: daily programme + shuffle (2 Nov) */
.section-head .shuffle { background: none; border: 1px solid var(--rule); border-radius: 999px; color: var(--amber); font: 600 .72rem/1 'Space Grotesk', system-ui, sans-serif; padding: 5px 10px; cursor: pointer; letter-spacing: .04em; }
.section-head .shuffle:hover { border-color: var(--amber); }
/* Archive filters in labelled rows (2 Nov): Genre / Form / Also */
.filters { display: grid; gap: 8px; }
.filter-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: start; gap: 6px; }
.filter-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-label { padding-top: 11px; }
.filter-label { width: 92px; flex: 0 0 92px; color: var(--faint); font: 700 .62rem/1 'Space Grotesk', system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.filter { min-height: 34px; padding: 5px 12px; font-size: .78rem; }
@media (max-width: 639px) { .filter { min-height: 32px; padding: 4px 10px; font-size: .74rem; } .filter-row { grid-template-columns: 74px minmax(0, 1fr); } .filter-label { width: 74px; flex-basis: 74px; font-size: .56rem; letter-spacing: .06em; padding-top: 10px; } }
.story-pagination a[hidden] { display: none; }
/* source cards (podcast artwork is square): show it whole on a dark backdrop (2 Nov) */
.source-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #05070d; }
.video-grid { align-items: stretch; }  /* K, 5 Nov 2026: cards in a row the same size */
.source-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; }
/* finished a story: the Continue bar turns green (2 Nov) */
.reader { --rd-done: #3ddc97; --rd-done-bg: rgba(61,220,151,.09); --rd-done-hover: rgba(61,220,151,.16); }
.reader[data-theme="light"] { --rd-done: #1f8f5f; --rd-done-bg: rgba(31,143,95,.08); --rd-done-hover: rgba(31,143,95,.14); }
.reader[data-theme="sepia"] { --rd-done: #2f7a4f; --rd-done-bg: rgba(47,122,79,.1); --rd-done-hover: rgba(47,122,79,.16); }
.reader .reader-resume.is-done { background: var(--rd-done-bg); }
.reader .reader-resume.is-done .resume-btn { border-color: var(--rd-done); color: var(--rd-done); }
.reader .reader-resume.is-done .resume-btn:hover { background: var(--rd-done-hover); }
/* footer Elsewhere: icon + handle on one line each (2 Nov) */
footer a.elsewhere { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
footer a.elsewhere .icon { width: 16px; height: 16px; flex: 0 0 auto; opacity: .85; }
/* About and Books pages (2 Nov) */
.about-text { max-width: 70ch; font-family: 'Literata', Georgia, serif; font-size: 1.08rem; line-height: 1.75; color: #d9dce5; }
.about-text p { margin: 0 0 1.1em; }
.books-dd { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
/* Read page: All / Amazon releases / Apple releases (K, 16 Nov 2026); the Archive's .filter buttons */
.book-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.book-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); color: var(--ink); text-decoration: none; transition: border-color .2s; }
.book-card:hover { border-color: var(--amber); }
.book-card img { width: 96px; height: auto; border-radius: 3px; box-shadow: 0 6px 18px rgba(0,0,0,.5); flex: 0 0 auto; }
.book-copy { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); }
.book-copy strong { color: var(--ink); font: 700 1rem/1.25 'Space Grotesk', system-ui, sans-serif; }
/* Books page buttons (K, 3 Nov 2026): Amazon ↗, Read free (book icon), Free ePub / PDF, About — pills with icons */
.book-meta { color: var(--muted); font-size: .82rem; }
.book-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.book-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule); font: 600 .78rem/1.2 'Space Grotesk', system-ui, sans-serif; text-decoration: none; transition: border-color .2s, background .2s; white-space: nowrap; }
.book-btn .icon { width: 16px; height: 16px; flex: 0 0 auto; }
.book-btn.store { color: var(--amber); border-color: rgba(255,159,67,.45); }
.book-btn.onsite { color: var(--cyan); border-color: rgba(94,234,212,.45); }
.book-btn.files, .book-btn.about { color: var(--ink); }
.book-btn:hover { background: rgba(255,255,255,.06); border-color: currentColor; text-decoration: none; }

/* Now Showing bill (K, 2 Nov): a marquee strip over each tier — "Opening night" (the two newest, fixed) and
   "Also showing" (four that rotate every visit). The strip is a letter board: amber caps between rows of bulbs. */
.bill-strip { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 20px; padding: 10px 0; border-block: 1px solid var(--rule); text-align: center; flex-wrap: wrap; }
.bill-strip strong { font: 700 .78rem/1 'Space Grotesk', system-ui, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--amber); }
.bill-strip em { font-style: normal; color: var(--muted); font-size: .82rem; }
.bill-strip .bulbs { flex: 1 1 40px; max-width: 120px; height: 6px; background: radial-gradient(circle, var(--amber) 0 1.6px, transparent 2px) 0 50% / 12px 6px repeat-x; opacity: .7; }
.stories.premieres { margin-bottom: 36px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.poster .ribbon { position: absolute; top: 12px; right: 12px; background: var(--amber); color: #141005; font: 700 .62rem/1 'Space Grotesk', system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; padding: 6px 8px; border-radius: 3px; }
@media (max-width: 639px) { .bill-strip { gap: 10px; } .bill-strip em { order: 2; flex-basis: 100%; margin-top: -2px; } .bill-strip .bulbs { max-width: 72px; } .stories.premieres { grid-template-columns: 1fr; margin-bottom: 28px; } }

/* About: links inside the prose, the email one lit amber (K, 2 Nov) */
.about-text a { color: var(--amber); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }  /* K, 2 Nov: all four contact links lit the same */
.about-text a:hover { color: var(--ink); }

/* Mobile menu (K, 2 Nov 2026: links sat on the screen edge; the panel's padding shorthand wiped the .wrap gutter) */
.mobile-nav { padding: 8px 24px 16px; gap: 0; }
.mobile-nav a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 4px; border-bottom: 1px solid var(--rule); color: var(--ink); font-size: 1.05rem; font-weight: 600; letter-spacing: .01em; }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--faint); border-top: 2px solid var(--faint); transform: rotate(45deg); }
.mobile-nav a[aria-current="page"] { color: var(--amber); }
.mobile-nav a[aria-current="page"]::after { border-color: var(--amber); }
.menu-btn[aria-expanded="true"] { color: var(--amber); border-color: var(--amber); }
@media (max-width: 639px) { .mobile-nav { padding: 6px 16px 12px; } }

/* Archive: search and sort on one row, sort without a label (K, 2 Nov) */
.search-row { display: flex; gap: 10px; align-items: center; }
.search-row .search { flex: 1 1 auto; min-width: 0; }
.search-row .sort { flex: 0 0 auto; margin: 0; }
.search-row .sort select { min-height: 42px; border-radius: 999px; padding: 8px 32px 8px 14px; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%), linear-gradient(135deg, var(--faint) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

/* K, 2 Nov: iPhones zoom the page when a field with text smaller than 16px gets focus; every field is 16px on phones */
@media (max-width: 768px) { input, select, textarea, .search input, .sort select, .index-tools input, .index-tools select { font-size: 16px !important; } }
/* Extras (K, 3 Nov 2026): story media, e.g. The Death Agreement's voicemail */
.extras-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.extra-card { margin: 0; padding: 16px; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); display: grid; gap: 12px; grid-column: 1 / -1; align-content: start; }
.extra-card.half { grid-column: auto; } /* K, 7 Nov 2026: two half blocks sit side by side (Addendum A and B) */
.extra-card.half .extra-images a { max-width: none; }
.extra-card.half .extra-images img { height: 380px; }
@media (max-width: 640px) { .extra-card.half { grid-column: 1 / -1; } }
.extra-card figcaption { display: grid; gap: 4px; }
.extra-card strong { color: var(--ink); font: 700 1rem/1.3 'Space Grotesk', system-ui, sans-serif; }
.extra-card span { color: var(--muted); font-size: .88rem; }
.extra-card audio { width: 100%; }
.extra-images { display: flex; flex-wrap: wrap; gap: 10px; }
.extra-images a { flex: 1 1 160px; max-width: 320px; display: block; border-radius: 6px; overflow: hidden; background: var(--rule); }
.extra-images img { display: block; width: 100%; height: 260px; object-fit: contain; }

/* Books page: the title links to the story page (K, 3 Nov 2026: no "Read" pill) */
.book-copy a.book-title { color: inherit; text-decoration: none; }
.book-copy a.book-title:hover, .book-copy a.book-title:focus-visible { text-decoration: underline; }

/* The watcher (K, 4 Nov 2026: "add our stealthfiction logo (without the text) as imbedded into the background of the
   site like a ghostly image … top right ancored"; then "make it stronger, maybe invert so it's black and blue shades. No
   glowing flashing eye"). The hooded figure from the Stealth Fiction Noir logo, black ink with its face and fingers in
   cold blue, the whole figure in view, pinned top right behind everything. Reading areas keep their own background. */
/* the image's name carries its hash (sf-watcher-<hash>.webp): a changed image needs a new name, or browsers keep the old copy */
:root { --ghost-w: min(50vw, 780px); --ghost-top: 76px; --ghost-right: 2vw; --ghost-o: .8; }
body::before {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  top: var(--ghost-top); right: var(--ghost-right); width: var(--ghost-w); aspect-ratio: 1000 / 590;
  background: url("sf-watcher-57b05305.webp") no-repeat center / contain; opacity: 0; animation: sf-ghost-in 7s ease-in .5s forwards;  /* a very slow fade-in on load (K, 4 Nov 2026) */
}
/* the home intro's own dark panel would hide it: solid behind the text on the left, clear on the right where it watches */
.home-hero { background: linear-gradient(90deg, rgba(6,9,18,.94) 0%, rgba(6,9,18,.6) 50%, rgba(6,9,18,0) 100%); }
@keyframes sf-ghost-in { to { opacity: var(--ghost-o); } }
@media (max-width: 639px) {
  :root { --ghost-w: 62vw; --ghost-top: 70px; --ghost-right: 2vw; --ghost-o: .4; }  /* phones: smaller and dimmer, clear of the headline */
  .home-hero { background: linear-gradient(180deg, rgba(6,9,18,.15) 0%, rgba(6,9,18,.8) 45%, rgba(6,9,18,.94) 100%); }
}
@media (prefers-reduced-motion: reduce) { body::before { animation: none; opacity: var(--ghost-o); } }
/* the same size and place on every page, story pages included (K, 4 Nov 2026: "I want the image same size same location across all pages") */
@media print { body::before { display: none; } }

/* The "Skip to content" link (keyboard and screen-reader users) sat just above the top edge, and the Mac's bounce when
   scrolling up past the top pulled it into view (K, 4 Nov 2026). Fully hidden now until it has keyboard focus. */
.skip-link:not(:focus):not(:focus-visible) { clip-path: inset(50%); width: 1px; height: 1px; padding: 0; overflow: hidden; white-space: nowrap; }

/* footer Here: on desktop the links flow side by side and wrap when the space runs out, like Elsewhere; phones keep the
   stacked list (K, 4 Nov 2026: "On desktop the Here items are static as 4 … i think it needs to be dynamic") */
/* Here and Elsewhere switch together (K, 4 Nov 2026: "link them together so when they change from 1 row of 4 each they
   both switch to 2 rows of 2 each"): wide screens one row of 4 each, from 520 px up to that 2 rows of 2 each, phones stacked */
@media (min-width: 520px) {
  footer .here, footer .elsewhere-list { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; column-gap: 28px; align-content: start; }
  footer .here h4, footer .elsewhere-list h4 { grid-column: 1 / -1; }
}
@media (max-width: 519px) { footer a.elsewhere { display: flex; } }   /* phones: both lists stacked, one link per line */
@media (min-width: 1360px) {
  footer .cols.cols-3 { grid-template-columns: 1fr auto auto; column-gap: 64px; }
  footer .here, footer .elsewhere-list { grid-template-columns: repeat(4, auto); }
}

/* ---------- Stealth Fiction narration (K, 5 Nov 2026) ---------- */

/* ---------- Read / Listen / Buy colours (K, 5 Nov 2026: "different colors to match our style guide like on the books page") ----------
   Same mapping as the Books page buttons: on-site reading = cyan (.book-btn.onsite), stores = amber (.book-btn.store),
   audio and video = ink white; Download and Reddit keep the quiet grey. The first button on a home card is filled in its colour. */
.sec-read { --sec: var(--cyan); --sec-rule: rgba(94,234,212,.45); }
.sec-buy { --sec: var(--amber); --sec-rule: rgba(255,159,67,.45); }
.sec-listen { --sec: var(--ink); --sec-rule: rgba(232,236,244,.42); }
/* K, 5 Nov 2026: Watch gets its own standard colour — violet, the fourth in the set (Read cyan, Listen white, Buy amber) */
:root { --violet: #b794f6; }
.sec-watch { --sec: var(--violet); --sec-rule: rgba(183,148,246,.5); }
.pill.sec-read, .pill.sec-buy, .pill.sec-listen, .pill.sec-watch,
.actions a.sec-read, .actions a.sec-buy, .actions a.sec-listen, .actions a.sec-watch { color: var(--sec); border-color: var(--sec-rule); }
.pill.sec-read:hover, .pill.sec-buy:hover, .pill.sec-listen:hover, .pill.sec-watch:hover,
.actions a.sec-read:hover, .actions a.sec-buy:hover, .actions a.sec-listen:hover, .actions a.sec-watch:hover { color: var(--sec); border-color: currentColor; background: rgba(255,255,255,.06); }
.actions a.primary.sec-read, .actions a.primary.sec-buy, .actions a.primary.sec-listen, .actions a.primary.sec-watch { background: var(--sec); border-color: var(--sec); color: #0a0e1a; }
.actions a.primary.sec-read:hover, .actions a.primary.sec-buy:hover, .actions a.primary.sec-listen:hover, .actions a.primary.sec-watch:hover { background: var(--sec); color: #0a0e1a; filter: brightness(1.08); }

/* ---------- uniform audio/video cards (K, 5 Nov 2026) ----------
   Every title box holds exactly 3 lines: longer titles stop at 3 with an ellipsis, a one-line title keeps two blank
   lines. Cards in a row are the same height and "Listen on YouTube" sits at the same place at the bottom. */
.video-card .thumb { cursor: pointer; }
.video-card .video-copy { flex: 1; }
.video-card .video-copy strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; line-height: 1.35; min-height: calc(1.35em * 3); }
.video-card .video-copy .yt { margin-top: auto; padding-top: 6px; }
.video-card .video-copy .meta { min-height: calc(1.45em * 2); line-height: 1.45; }  /* the date/views line: room for two lines on every card, so stacked cards on a phone match too */

/* ---------- our narration as a standard card (K, 5 Nov 2026: "the same standard size of our youtube block") ---------- */
.nar-card .thumb { overflow: hidden; }
.nar-card .thumb audio { position: absolute; left: 10px; right: 10px; bottom: 10px; width: calc(100% - 20px); height: 40px; display: none; }
.nar-card.playing .thumb audio { display: block; }
.nar-card.playing .play { display: none; }
.video-card .video-copy > .nar-links { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }  /* a plain line, like "Listen on YouTube" */
.nar-card .nar-dl + .nar-dl { margin-left: 10px; }
.nar-card .nar-dl { color: var(--amber); font-weight: 600; }
.nar-card .nar-dl:hover { text-decoration: underline; }
.nar-card .nar-dl span { color: var(--muted); font-weight: 400; margin-left: 2px; }
.nar-card:hover { transform: none; }
.nar-card .nar-dl .icon { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }
.video-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }  /* 5 Nov 2026: room for the narration card's two downloads with sizes on one line */
.video-card .video-copy > .nar-links { font-size: .76rem; line-height: 1.2rem; }  /* same line height as "Listen on YouTube" (19.2 px) */
/* while selecting story text, the pinned bars let the pointer through to the text below (K, 5 Nov 2026; site.js) */
html.sf-selecting .jump-bar, html.sf-selecting .to-top, html.sf-selecting .read-progress { pointer-events: none; }
.jump-bar { -webkit-user-select: none; user-select: none; }
/* …and the selection itself stays inside the story while dragging (auto-scroll past the chapter start no longer lights up the page) */
html.sf-selecting body { -webkit-user-select: none; user-select: none; }
html.sf-selecting .reader-body { -webkit-user-select: text; user-select: text; }
/* Safari / WebKit (K, 5 Nov 2026: the highlight ran the full width of the window in the full-screen reader). WebKit
   paints the space beside selected lines out to the nearest "selection root" box — in the reader that was the full-width
   scrolling screen. A positioned box is a selection root, so the text column now bounds the highlight. Chrome unaffected. */
.reader .chapter-text { position: relative; }

/* Archive descriptions (K, 5 Nov 2026): at least one line, never more than two — longer text ends in "…" */
.index-copy > p:not(.index-meta) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; min-height: 1lh; }
.after-end.collection { margin-bottom: 26px; }  /* collection cards above Recommended tales (K, 5 Nov 2026) */
/* Home page card titles: one colour, gold (K, 5 Nov 2026). The cinema mock-up's p1/p2 poster styles coloured the title
   by the card's position in the row (1st amber, 2nd cyan, rest white); the gradient backgrounds stay for cards without art. */
.story .poster h3 { color: var(--amber); }

/* K, 5 Nov 2026: Greatest hits cards carry the play and upvote totals under the facts line */
.story-body .hits-line { font-size: .78rem; letter-spacing: .04em; color: var(--amber, #f2b544); margin: 2px 0 6px; }
/* K, 5 Nov 2026: Reddit rows now carry upvotes and comments; on phones the line wraps instead of scrolling sideways */
@media (max-width: 479px) { .copy-line { white-space: normal; flex-wrap: wrap; } .copy-meta { white-space: normal; } }
/* K, 5 Nov 2026: icons, not words, on the Greatest hits stats */
.story-body .hits-line { display: flex; gap: 14px; align-items: center; font-size: .82rem; letter-spacing: .02em; }
.hits-line .stat { display: inline-flex; align-items: center; gap: 5px; }
.hits-line .stat .icon { width: 1.2em; height: 1.2em; }
/* 5 Nov 2026: an unbroken run (The Diary's 75 dots) wraps instead of pushing the page sideways on phones; normal words are untouched */
.chapter-text p, .chapter-text blockquote { overflow-wrap: break-word; }
/* K, 5 Nov 2026: the facts block as icons, total reach first */
.facts.facts-icons { gap: 10px 22px; font-size: .86rem; color: var(--faint); }
.facts-icons .fi { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.facts-icons .fi .icon { width: 17px; height: 17px; color: var(--cyan); flex: none; }
.facts-icons .reach { color: var(--ink); }
.facts-icons .reach .icon, .facts-icons .reach b, .facts-icons a { color: var(--amber); }
.facts-icons .fi-note { flex-basis: 100%; }
@media (max-width: 767px) { .facts.facts-icons { column-gap: 14px; } .facts-icons .reach { flex-basis: 100%; } }  /* 14px: both dates fit one line at 390px (K, 5 Nov 2026) */
/* K, 5 Nov 2026: two-digit years on phones so the posted and edited dates share one line (an iPhone at 375 pt missed by a few px) */
.facts-icons .d-short { display: none; }
@media (max-width: 767px) { .facts-icons .d-long { display: none; } .facts-icons .d-short { display: inline; } }
/* safety margin for Safari's wider text: tighter icon/text and item spacing on phones */
@media (max-width: 767px) { .facts.facts-icons { column-gap: 12px; } .facts-icons .fi { gap: 5px; } }
/* K, 5 Nov 2026: Archive descriptions get three lines on phones (two cut them off); desktop keeps two */
@media (max-width: 767px) { .index-copy > p:not(.index-meta) { -webkit-line-clamp: 3; line-clamp: 3; } }
/* the pill-fit script hides a Buy pill with [hidden]; pills are inline-flex, so hidden needs this to take effect */
.index-pills > [hidden], .story-body .actions > [hidden] { display: none !important; }
/* K, 5 Nov 2026 (pills never fold): tablets give the pills room for three; phones narrower than 375 drop the pill icons */
@media (max-width: 1000px) { .index-pills { max-width: 300px; } }
@media (max-width: 767px) { .index-pills { max-width: none; } }
@media (max-width: 370px) { .index-pills .pill .icon, .story-body .actions .icon { display: none; } }

/* ---------- Buy: one card per book, stores as pills (K, 6 Nov 2026; Death Agreement first) ---------- */
.buy-grid:has(.buy-card.one) { grid-template-columns: 1fr; max-width: 640px; }
@media (max-width: 479px) { .buy-card.one { align-items: flex-start; } }
.buy-card.one > span { gap: 6px; }
.buy-card.one .buy-facts { margin-top: 2px; }
.buy-stores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
/* K, 6 Nov 2026: "the buttons the same size and color" — every store pill outlined amber, equal width, text centred */
.buy-card.one .buy-stores { align-self: stretch; }
.buy-stores .book-btn { flex: 0 1 172px; justify-content: center; }
.buy-stores .book-btn .amt { color: var(--ink); font-weight: 700; margin-left: 2px; }
@media (max-width: 479px) { .buy-card.one img { width: 96px; } .buy-stores { gap: 6px; } .buy-stores .book-btn { padding: 6px 10px; font-size: .74rem; } }

/* ---------- Titled versions line under the Art grid (K, 7 Nov 2026: "Do Line under Grid", picked from six examples) ---------- */
.art-titled-line { color: var(--muted); font-size: .85rem; line-height: 1.6; margin: 18px 0 0; }
.art-titled-line a { color: var(--amber); white-space: nowrap; }
.art-titled-line a:hover { text-decoration: underline; }

/* Listen page downloads (K, 8 Nov 2026: inside the card, on the same line as "Listen →", MP3 / M4B, no sizes): the card is
   a div; the picture, the title and "Listen →" are links to the story's Listen section, and "Listen →" covers the whole
   card through its ::after layer so the card clicks as one; the two download links sit above that layer. "Listen →"
   keeps its amber (K: never restyle it). */
.lp-card { position: relative; }
.lp-art, .lp-title-link { display: block; color: inherit; text-decoration: none; }
.lp-go::after { content: ""; position: absolute; inset: 0; }
.lp-foot { display: flex; align-items: baseline; gap: 12px; margin-top: auto; padding-top: 8px; white-space: nowrap; min-width: 0; }
.lp-foot .lp-go { margin-top: 0; padding-top: 0; }
.lp-dl { position: relative; z-index: 2; display: flex; gap: 12px; font-size: .78rem; line-height: 1.2rem; }
.lp-dl .nar-dl { color: var(--amber); font-weight: 600; text-decoration: none; white-space: nowrap; }
.lp-dl .nar-dl:hover { text-decoration: underline; }
.lp-dl .nar-dl .icon { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }
/* phone (375 pt, Safari text runs wider): the whole line at .66rem so MP3, M4B and Listen → fit a half-width card with ~12 px spare */
/* phone: four-line title and show boxes so nothing is cut to "The Special Christmas…" (K, 8 Nov 2026: review of the cards' text; the check fails on any cut text) */
/* K, 8 Nov 2026 ("remove some of the white space between the title and the start of the meta data on mobile"): on phones the
   title and show line take their natural height (clamped at 4 rows at most); the spare space sits above the buttons */
@media (max-width: 639px) { .lp-copy strong { font-size: .8rem; -webkit-line-clamp: 4; height: auto; max-height: calc(4 * 1.25em); } .lp-meta { -webkit-line-clamp: 4; height: auto; max-height: calc(4 * 1.45em); } }
@media (max-width: 639px) { .lp-foot { gap: 5px; } .lp-foot .lp-go { font-size: .66rem; } .lp-dl { gap: 5px; font-size: .66rem; } .lp-dl .nar-dl .icon { width: 10px; height: 10px; margin-right: 2px; } }
/* K, 8 Nov 2026: Listen page card footer = real buttons (the text links were too small to tap on a phone), all the same
   quiet outline, two to a row: YouTube (the most-watched upload) · "See all →" (the story's Listen section; the whole card goes
   there too through its ::after layer), then MP3 · M4B on the bottom row in white, as the Books page's ePub/PDF button
   (.book-btn.files). An odd last button spans its row. K: nothing prominent. */
.lp-foot.lp-btns { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; margin-top: auto; padding-top: 10px; white-space: normal; }
.lp-btn { position: relative; z-index: 2; flex: 1 1 40%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,159,67,.55); color: var(--amber); font: 700 .76rem/1 'Space Grotesk', system-ui, sans-serif; text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.lp-btn .icon { width: 15px; height: 15px; flex: none; margin: 0; vertical-align: 0; }
.lp-btn:hover { border-color: var(--amber); background: rgba(255,159,67,.12); text-decoration: none; }
.lp-btns .lp-dl { flex: 1 1 100%; display: flex; gap: 6px; position: static; font-size: inherit; line-height: inherit; }
.lp-btns .lp-dl .lp-btn { flex: 1 1 0; }
.lp-btn.files { color: var(--ink); border-color: var(--rule); font-weight: 600; }
.lp-btn.files:hover { background: rgba(255,255,255,.06); border-color: currentColor; }
/* K, 8 Nov 2026: "The Youtube and See All pills appear to be different sizes": every button in the footer is the same fixed
   height and font, the older .lp-go rules (bigger font, extra top padding) overridden here */
.lp-foot .lp-btn, .lp-foot .lp-go.lp-btn { box-sizing: border-box; height: 36px; min-height: 0; margin: 0; padding: 0 10px; font: 700 .76rem/1 'Space Grotesk', system-ui, sans-serif; }
/* phones: a footer is ~135 px wide, so the buttons drop their icons and arrows and pair up two to a row */
@media (max-width: 639px) { .lp-foot.lp-btns { gap: 5px; padding-top: 8px; } .lp-btns .lp-dl { gap: 5px; } .lp-foot .lp-btn, .lp-foot .lp-go.lp-btn { font-size: .7rem; height: 34px; padding: 0 6px; min-width: 0; } .lp-btn .icon, .lp-btn span[aria-hidden] { display: none; }  }

/* Books page (K, 9 Nov 2026): the card clicks through to the story page like the Listen cards — the title link
   stretches over the card — and the ePub / PDF / store buttons sit above that layer and do only their own thing. */
.book-card { position: relative; }
.book-card a.book-title::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
.book-card .book-btn { position: relative; z-index: 2; }
.book-card:has(a.book-title) { cursor: pointer; }

/* Screenplay layout (K, 9 Nov 2026, Old Friends): build.py SCREENPLAY_LAYOUT / screenplay_blocks(). Courier, the way a
   script is typed; indents in % so a 375 px phone keeps the shape. */
.chapter-text p.sp { font-family: 'Courier Prime', 'Courier New', Courier, monospace; font-size: calc(var(--reader-fs) * .94); line-height: 1.6; margin: 0 0 1.1em; }
.chapter-text p.sp-scene { display: flex; gap: .9em; font-weight: 700; color: var(--ink); margin: 2.4em 0 1.1em; }
.chapter-text p.sp-scene .sp-num { color: var(--amber); min-width: 2ch; text-align: right; flex: none; }
.chapter-text p.sp-shot { font-weight: 700; color: var(--ink); }
.chapter-text p.sp-cue { margin: 1.7em 0 0 38%; color: var(--ink); }
.chapter-text p.sp-paren { margin: 0 0 0 30%; color: var(--muted); }
.chapter-text p.sp-dialogue { margin: 0 14% 1.1em 20%; }
.chapter-text p.sp-dialogue + p.sp-paren { margin-top: -1.1em; }
.chapter-text p.sp-trans-right { text-align: right; margin: 1.4em 0; }
.chapter-text p.sp-trans { margin: 1.4em 0; }
@media (max-width: 479px) {
  .chapter-text p.sp-cue { margin-left: 26%; }
  .chapter-text p.sp-paren { margin-left: 18%; }
  .chapter-text p.sp-dialogue { margin: 0 2% 1.1em 9%; }
  .chapter-text p.sp-scene { gap: .6em; }
}
/* Extras card download link (Old Friends' storyboard PDF, 9 Nov 2026) */
.extra-link { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.extra-link a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); color: var(--ink); font-size: .86rem; font-weight: 600; }
.extra-link a:hover { border-color: var(--amber); color: var(--amber); }
/* the 4K panel set beside the PDF (K, 10 Nov 2026, the Secretary): one button, the other panels are hidden links the viewer steps through */
.extra-link .panel-set { display: contents; }
.extra-link a[hidden] { display: none; }
/* Extras slider (K, 10 Nov 2026): an images block with more than 3 pictures shows 3 at a time (2 on a phone) with arrows */
.extra-slider { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.extra-images.slider { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.extra-images.slider::-webkit-scrollbar { display: none; }
.extra-images.slider a { flex: 0 0 calc((100% - 20px) / 3); max-width: none; scroll-snap-align: start; }
.extra-images.slider img { height: auto; aspect-ratio: 640 / 495; }
.slide-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rule); background: var(--panel); color: var(--ink); font: 400 1.6rem/1 system-ui, sans-serif; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.slide-btn:hover:not(:disabled) { border-color: var(--ink); }
.slide-btn:disabled { opacity: .3; cursor: default; }
.slide-count { grid-column: 1 / -1; margin: 0; text-align: center; color: var(--muted); font-size: .82rem; }
@media (max-width: 640px) {
  .extra-slider { gap: 4px; }
  .extra-images.slider a { flex-basis: calc((100% - 10px) / 2); }
  .slide-btn { width: 30px; height: 30px; font-size: 1.4rem; }
}
/* PhotoSwipe caption (art-viewer.js, K 10 Nov 2026) */
html .sf-pswp-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px max(16px, env(safe-area-inset-left, 0px)) max(14px, env(safe-area-inset-bottom, 0px)); text-align: center; color: #d6dae3; font-size: .9rem; line-height: 1.35; pointer-events: none; }
html .sf-pswp-caption:empty { display: none; }
/* K asked for buttons: PhotoSwipe hides its arrows on touch screens, so show them everywhere; on a phone they sit in
   a row along the bottom with the caption between, so they never cover the picture */
html .pswp { --pswp-bg: #05070c; }
html .pswp--touch .pswp__button--arrow { visibility: visible; }
@media (max-width: 640px) {
  html .pswp__button--arrow { top: auto; bottom: env(safe-area-inset-bottom, 0px); margin-top: 0; width: 64px; height: 64px; }
  html .pswp__button--arrow .pswp__icn { top: 50%; margin-top: -22px; width: 44px; height: 44px; }
  html .pswp__button--arrow--next .pswp__icn { right: 10px; }
  html .pswp__button--arrow--prev .pswp__icn { left: 10px; }
  html .sf-pswp-caption { padding-left: 68px; padding-right: 68px; padding-bottom: max(22px, env(safe-area-inset-bottom, 0px)); }
}
html .pswp .sf-pswp-caption { pointer-events: none; z-index: 1; }
html .pswp .pswp__button--arrow { z-index: 2; }
/* K, 13 Nov 2026: the Archive's Collections row — the chosen collection's About paragraph above the list */
.coll-about { margin: 14px 0 4px; padding: 14px 16px; border-left: 3px solid var(--amber); background: rgba(255,159,67,.07); max-width: 70ch; }
.coll-about p { margin: 0; line-height: 1.55; }
/* K, 13 Nov 2026: label column widened for "Collections" (it ran into the first button at 375 px) */

/* ---------- 404 (K, 14 Nov 2026: "I need a cool 404 page built.") ----------
   A cinema screen with nothing on it: a huge flickering 404 projected behind the text, film grain and a scratch line
   crawling over it. The watcher stays in its usual place. Motion stops for prefers-reduced-motion. */
.nf-hero { position: relative; overflow: hidden; background: radial-gradient(ellipse 70% 60% at 30% 45%, rgba(94,234,212,.07), transparent 70%), linear-gradient(90deg, rgba(6,9,18,.94) 0%, rgba(6,9,18,.55) 55%, rgba(6,9,18,0) 100%); }
.nf-hero .hero-inner { position: relative; z-index: 1; min-height: 560px; justify-content: center; }
.nf-screen { position: absolute; inset: 0; pointer-events: none; }
.nf-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 700 clamp(9rem, 30vw, 26rem)/1 'Space Grotesk', system-ui, sans-serif; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px rgba(94,234,212,.22); text-shadow: 0 0 60px rgba(94,234,212,.08); animation: nf-flicker 6s steps(1, end) infinite; user-select: none; }
.nf-grain { position: absolute; inset: -50%; opacity: .09; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: nf-grain .9s steps(4) infinite; }
.nf-scratch { position: absolute; top: 0; bottom: 0; left: 62%; width: 1px; background: linear-gradient(180deg, transparent, rgba(232,236,244,.35) 30%, rgba(232,236,244,.1) 70%, transparent); animation: nf-scratch 7s linear infinite; }
.nf-hero h1 { max-width: 14ch; }
.nf-seen { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 18px 0 0; color: var(--faint); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.nf-seen code { font: 500 .9rem/1.3 'Courier Prime', 'Courier New', monospace; letter-spacing: 0; text-transform: none; color: var(--amber); background: rgba(255,159,67,.08); border: 1px dashed rgba(255,159,67,.35); padding: 4px 10px; border-radius: 4px; overflow-wrap: anywhere; }
.nf-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 26px; }
.hero .cta.nf-ghost { background: transparent; color: var(--ink); border: 1px solid rgba(255,255,255,.28); }
.hero .cta.nf-ghost:hover { border-color: var(--amber); color: var(--amber); background: transparent; }
.nf-more { padding-top: 8px; }
@media (min-width: 900px) { #nf-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@keyframes nf-flicker { 0% { opacity: 1; } 41% { opacity: .55; } 42% { opacity: 1; } 43% { opacity: .2; } 44% { opacity: 1; } 78% { opacity: .8; } 79% { opacity: .35; } 80% { opacity: 1; } }
@keyframes nf-grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-6%, 4%); } 50% { transform: translate(5%, -7%); } 75% { transform: translate(-3%, -4%); } 100% { transform: translate(0, 0); } }
@keyframes nf-scratch { 0% { left: 62%; opacity: 0; } 8% { opacity: 1; } 30% { left: 58%; } 55% { left: 71%; opacity: .7; } 60% { opacity: 0; } 100% { left: 66%; opacity: 0; } }
@media (max-width: 639px) {
  .nf-hero { background: linear-gradient(180deg, rgba(6,9,18,.2) 0%, rgba(6,9,18,.85) 45%, rgba(6,9,18,.95) 100%); }
  .nf-hero .hero-inner { min-height: 470px; }
  .nf-big { top: 34%; font-size: 46vw; }
  .nf-ctas .cta { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .nf-big, .nf-grain, .nf-scratch { animation: none; } .nf-scratch { display: none; } }

/* Writing prompt above the story (K, 14 Nov 2026, test on The Peach Notebook: build.py PROMPT_ABOVE): the prompt in
   italics, a little quieter than the story, a scene break under it; the drop cap stays on the story's first paragraph */
.chapter-text > p.story-prompt { color: var(--muted); }
.reader .chapter-text > p.story-prompt { color: inherit; opacity: .78; }
