/* Theme for morbid, generated from shows/morbid/show.json - edit it there. */
@font-face { font-family: "Libre Franklin"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/morbid/fonts/libre-franklin-latin-wght-normal.woff2) format("woff2-variations"), url(/morbid/fonts/libre-franklin-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Courier Prime"; font-style: normal; font-display: swap; font-weight: 400;
  src: url(/morbid/fonts/courier-prime-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Courier Prime"; font-style: normal; font-display: swap; font-weight: 700;
  src: url(/morbid/fonts/courier-prime-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root { --bg: #183018; --surface: #2a422a; --surface-2: #223a22; --ink: #ede6d6; --ink-2: #b9b3a5; --line: #45633d; --rule: #6b4e33; --accent: #8dba72; --accent-ink: #181818; --accent-2: #e8b04a; --focus: #e8b04a; --saved: #e8b04a; --playing: #a9cf92; --playing-ink: #181818; --footer-bg: #112311; --footer-ink: #ede6d6; --footer-ink-2: #b9b3a5; --footer-ink-3: #b9b3a5; --footer-fine: #b9b3a5; --footer-rule: #6b4e33; --footer-field-bg: #ede6d6; --footer-field-ink: #181818; --danger: #f49a85; --danger-strong: #f49a85; --danger-ink: #181818; --error-bg: #3a1a14; --error-ink: #f6c7bb; --error-line: #8a3b2c; --backdrop: rgba(8,14,8,.72); --c0: #ede6d6; --c1: #e8b04a; --c2: #c49a6c; --c3: #8fc7c1; --c4: #8dba72; --c5: #a07850; --c6: #609048; --c7: #b9b3a5; --c8: #d98c5f; --c9: #6b4e33; --serif: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif; --sans: "Courier Prime", "Courier New", Courier, monospace; --texture: none; --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M1 7.5h198v2.6H1z' fill='%23a07850'/%3E%3Cpath d='M1 7.5h198v.8H1z' fill='%236b4e33'/%3E%3C/svg%3E"); --map-cluster: #8dba72; --map-place: #e8b04a; --map-ring: #ede6d6; --map-label: #ede6d6; --map-halo: #183018; --map-stroke: #183018; --map-land: #22391f; --map-water: #0e1c12; --map-line: #3a5434; --map-text: #a9b39c; --map-bg: #0e1c12; --map-status-bg: #183018; --map-status-ink: #ede6d6; --map-ctrl-line: #6b4e33; --r: 4px; --t: 160ms ease; }
/* shows/morbid/theme.css */
/* Morbid - theme layer 2. Dusk in a pine forest: the brief's sampled greens, bone text, plank browns and one
   lantern amber, typewriter caps (Courier Prime Bold) for labels and buttons, Libre Franklin for reading. Restyles
   only; new structure lives in signature.js and the view modules. Episode details open as a bone case file.
   Text pairs used (from the brief's contrast table, recomputed for the lighter lichen): bone on pine-night 11.5:1,
   bone-dim on pine-night 6.8:1, lichen-light #8dba72 on cards 4.9:1, soot on lantern 9.1:1, soot on bone 14.3:1. */
:root { color-scheme: dark; }
body { font-size: 16px; line-height: 1.55; letter-spacing: 0; }
::selection { background: #e8b04a; color: #181818; }

/* ---------------------------------------------------------------- header, tabs */
header.top { background: var(--bg); border-bottom: 1px solid var(--rule); }
.wordmark { font-family: var(--sans); font-weight: 700; letter-spacing: .06em; color: #ffffff; font-size: 28px; }
.fan-tag { font-family: var(--sans); color: #e8b04a; border-color: #e8b04a; border-radius: 2px; letter-spacing: .04em; text-transform: uppercase; font-size: 11px; }
.brand p, #stats { font-family: var(--sans); font-size: 13px; }
nav.tabs { gap: 2px; }
nav.tabs a { font-family: var(--sans); text-transform: uppercase; letter-spacing: .06em; font-size: 15px; border-radius: 4px 4px 0 0; color: var(--ink-2); }
nav.tabs a:hover { color: var(--ink); background: var(--surface-2); }
nav.tabs a[aria-current="page"] { background: var(--rule); color: var(--ink); box-shadow: inset 0 -3px 0 #e8b04a; }
nav.tabs a[aria-current="page"] .pill { background: #e8b04a; color: #181818; }
.pill { border-radius: 999px; font-family: var(--sans); }
.content-box { border-top-color: var(--line); padding: var(--sp2) 0; font-family: var(--sans); font-size: 13px; }
.content-box label { text-transform: uppercase; letter-spacing: .08em; color: #e8b04a; }
.content-box select { min-height: 40px; border: 1px solid var(--line); border-radius: 4px; background-color: var(--surface); padding: 0 40px 0 12px; font-family: var(--serif); font-size: 14px;
  appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.content-note { font-family: var(--serif); font-size: 13px; }
.filterbar { font-family: var(--serif); }
.filterbar.active { background: color-mix(in srgb, #e8b04a 12%, var(--surface-2)); border-bottom-color: #e8b04a; }

/* ---------------------------------------------------------------- buttons, chips: typewriter caps, worn corners */
.btn { font-family: var(--sans); text-transform: uppercase; letter-spacing: .06em; font-size: 14px; border-radius: var(--r); }
.btn.small { font-size: 13px; }
.btn.primary:hover { background: #a9cf92; border-color: #a9cf92; color: #181818; }
.linkbtn { color: var(--accent); text-underline-offset: 3px; }
.chip { border-radius: 999px; }
button.chip:hover { border-color: var(--accent); }
.chip.guest { border-color: var(--accent); color: var(--accent); }
.dot { border-radius: 50%; }
.star { border-color: var(--line); }
.star[aria-pressed="true"] svg { fill: #181818; stroke: #181818; }
.star.heard-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.star.heard-btn[aria-pressed="true"] svg { stroke: #181818; }
.heard-tag { color: var(--accent); }
.field label { font-family: var(--sans); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; color: var(--ink-2); }
.field input[type="search"], .field select, select.inline { border-radius: var(--r); }
.rail h2 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: #e8b04a; }
details.more summary { font-family: var(--sans); font-size: 13px; }

/* ---------------------------------------------------------------- where to start, strip, groups and cards */
details.start { background: var(--surface-2); border-color: var(--line); border-radius: var(--r); }
details.start > summary h2 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .06em; font-size: 20px; }
details.start > summary .hint { font-family: var(--sans); }
.sc { border-radius: var(--r); border-color: var(--line); }
.sc h3 { font-family: var(--sans); letter-spacing: .1em; }
.strip { background: var(--surface-2); }
.strip-head h2 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .06em; font-size: 18px; }
.bar .lbl, .bar .cnt { font-family: var(--sans); }
.group-head { border-bottom-color: var(--rule); }
.group-head h2 { font-family: var(--sans); letter-spacing: .06em; font-size: 22px; }
.group-head .mix { border-radius: 999px; }
.card { border-color: var(--surface); border-top: 1px solid #487830; position: relative; }
.card .ttl { font-size: 16px; font-weight: 650; }
.card .sub { font-family: var(--sans); font-size: 13px; }
/* a saved episode wears a toe tag (the brief's nod to Alaina's autopsy-tech years) - formats and lists only, never a victim */
.card.saved { border-color: var(--surface); border-top-color: #e8b04a; box-shadow: inset 4px 0 0 #e8b04a; }
.card.saved::before, .erow.saved .body::before, .mb-row.is-saved .mb-row-main::before {
  content: "On your string"; display: inline-block; font: 700 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #ede6d6;
  background: radial-gradient(circle at 9px 50%, var(--bg) 0 2.5px, transparent 3px), #6b4e33; padding: 4px 9px 4px 17px; clip-path: polygon(7px 0, 100% 0, 100% 100%, 7px 100%, 0 50%); }
.card.saved::before { position: absolute; top: -9px; right: 70px; }
.erow.saved .body::before { margin: 0 0 4px; }
.mb-row.is-saved .mb-row-main::before { margin: 0 8px 2px 0; vertical-align: 2px; }
.erow.saved .body { display: flex; flex-direction: column; align-items: flex-start; }
.erow.saved { box-shadow: inset 3px 0 0 #e8b04a; }
.empty { border-radius: var(--r); background: var(--surface-2); }
.empty h2 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .05em; }

/* ---------------------------------------------------------------- panels, timeline, map */
.panel { border-color: var(--line); background: var(--surface-2); }
.panel > h2 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .05em; }
.ltabs button { font-family: var(--sans); text-transform: uppercase; letter-spacing: .04em; font-size: 16px; }
.ltabs button[aria-selected="true"] { background: var(--rule); color: var(--ink); box-shadow: inset 0 -3px 0 #e8b04a; }
h3.era-h { font-family: var(--sans); letter-spacing: .06em; }
.erow .yr { font-family: var(--sans); }
svg text { font-family: var(--sans); }
.mapbox { border-color: var(--rule); border-radius: var(--r); }
.mappanel { background: var(--surface-2); border-radius: var(--r); }
.mappanel h2 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .05em; }
.map-reset { background: var(--bg); }
.mapbox .maplibregl-ctrl-group { background: var(--bg); }
.mapbox .maplibregl-ctrl-group button + button { border-top-color: var(--rule); }
.mapbox .maplibregl-ctrl-icon { filter: invert(.9); }
.mapbox .maplibregl-ctrl-attrib { background: rgba(24, 48, 24, .85); color: var(--ink); }
.mapbox .maplibregl-ctrl-attrib a { color: var(--ink); }
.mapbox .maplibregl-ctrl-attrib-button { filter: invert(.9); }
.maplibregl-ctrl-scale { background: rgba(24, 48, 24, .8); color: var(--ink); border-color: var(--ink-2); }
/* the engine's tooltip for SVG marks, as a toe tag */
.tip { background: #6b4e33; color: #ede6d6; font: 400 13px/1.35 var(--sans); padding: 6px 12px 6px 22px; clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
  background-image: radial-gradient(circle at 12px 50%, #183018 0 3px, transparent 3.5px); }

/* ---------------------------------------------------------------- saved */
.saved-head .big { font: 700 22px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; background: radial-gradient(circle at 14px 50%, var(--bg) 0 4px, transparent 4.5px), #6b4e33;
  padding: 12px 20px 12px 30px; clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%); }
table.list { border-radius: var(--r); overflow: hidden; }
table.list th { font-family: var(--sans); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }

/* ---------------------------------------------------------------- the episode drawer, as a bone case file */
dialog.drawer {
  --bg: #ede6d6; --ink: #181818; --ink-2: #4d4a42; --surface: #f5f0e4; --surface-2: #e2d9c4; --line: #c6b99c; --rule: #6b4e33;
  --accent: #2f5a22; --accent-ink: #ffffff; --accent-2: #7a4d00; --saved: #7a4d00; --playing: #2f5a22; --playing-ink: #ffffff; --focus: #8a5a00;
  --c0: #3d3a33; --c1: #a06a00; --c2: #7a5230; --c3: #2a6e66;
  background-color: #ede6d6; color: #181818; border-left: 8px solid #6b4e33;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
dialog.drawer .star[aria-pressed="true"] svg { fill: #ffffff; stroke: #ffffff; }
dialog.drawer .star.heard-btn[aria-pressed="true"] svg { stroke: #ffffff; }
/* the typed header strip: plank-dark, bone type */
#drawerHead { --bg: #6b4e33; --ink: #ede6d6; --ink-2: #e6dcc6; --accent: #ede6d6; --accent-ink: #181818; --focus: #e8b04a; --playing: #e8b04a; --playing-ink: #181818;
  background: #6b4e33; color: #ede6d6; margin: calc(-1 * var(--sp4)) calc(-1 * var(--sp5)) 0; padding: var(--sp4) var(--sp5) var(--sp3); }
#drawerHead h2 { font-size: 26px; line-height: 1.2; }
#drawerHead .btn.primary:hover { background: #e8b04a; border-color: #e8b04a; color: #181818; }
.drawer .facts dt { font: 700 11px/1.9 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.drawer .facts dd { font-size: 15px; }
.drawer .desc.own .hook { font-size: 18px; line-height: 1.5; font-weight: 400; }
.drawer .desc { font-weight: 400; }
.drawer h3 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .06em; font-size: 15px; }
details.fold > summary { font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--accent-2); font-weight: 700; }
.rerun-line > span:first-child { font-family: var(--sans); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
@media (max-width: 600px) { #drawerHead { margin: calc(-1 * var(--sp3)) calc(-1 * var(--sp3)) 0; padding: var(--sp3); } }

/* ---------------------------------------------------------------- dialogs, player, toast, footer */
dialog.ask { border-color: var(--rule); border-radius: var(--r); }
.ask-top h2 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .05em; font-size: 20px; }
.ask input, .ask textarea { border-radius: var(--r); }
.player { background: #112311; border-top-color: var(--rule); }
.pl-label { font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.pl-skip, .pl-close { font-family: var(--sans); border-radius: var(--r); }
.toast { border-radius: var(--r); font-family: var(--serif); }
.foot { border-top: 1px solid var(--rule); }
.foot h2 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .06em; font-size: 24px; }
.foot h3 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .04em; font-size: 15px; }
.foot p { font-weight: 400; }
.foot a { color: var(--accent); }
.foot .btn { color: var(--ink); border-color: var(--ink-2); }
.note-box input, .note-box textarea { border-radius: var(--r); }

/* ================================================================ Morbid's components: shared pieces */
.bw [hidden], .mb-view [hidden] { display: none !important; }
.mb-eyebrow { font: 700 12px/1.35 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0; }
.mb-meta { font: 400 13px/1.45 var(--sans); color: var(--ink-2); margin: 2px 0 0; }
.mb-status { font: 700 13px/1.45 var(--sans); margin: 0; }
.mb-heavy { font-size: 13px; color: var(--ink-2); margin: 0; }
.mb-heavy span { color: var(--ink); font-weight: 600; }
.mb-cn { font-size: 14px; }
.mb-cn > summary { cursor: pointer; font: 700 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); min-height: 28px; display: inline-flex; align-items: center; }
.mb-cn p { margin: 4px 0 0; color: var(--ink-2); font-family: var(--sans); font-size: 13px; }
.mb-ttl { background: none; border: 0; padding: 2px 0; text-align: left; cursor: pointer; color: var(--ink); font: 600 16px/1.3 var(--serif); min-height: 24px; }
.mb-ttl:hover { text-decoration: underline; text-underline-offset: 3px; }
.mb-rows { list-style: none; margin: 0; padding: 0; }
.mb-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp2) var(--sp3); align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.mb-row[style*="--plank"] { border-left: 10px solid var(--plank); }
.mb-row-main { min-width: 0; }
.mb-acts { display: flex; gap: 6px; flex: none; }
.mb-ic { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: background var(--t); }
.mb-ic:hover { border-color: var(--accent); color: var(--ink); }
.mb-ic svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 0; }
.mb-ic.mb-save[aria-pressed="true"] { background: #e8b04a; border-color: #e8b04a; color: #181818; }
.mb-ic.mb-heard[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.mb-ic.mb-play[aria-pressed="true"] { background: var(--playing); border-color: var(--playing); color: var(--playing-ink); }
.mb-view { min-height: 40vh; }
.mb-view h2.mb-h { font: 700 clamp(26px, 4vw, 44px)/1.05 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: #ffffff; margin: 0 0 var(--sp2); }
.mb-view .mb-lede { font-size: 17px; line-height: 1.55; max-width: 70ch; margin: 0 0 var(--sp3); }
.mb-note { color: var(--ink-2); font-size: 14px; margin: 0 0 var(--sp3); }
.mb-seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--sp3); align-items: center; }
.mb-seg .mb-seg-l { font: 700 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #e8b04a; margin-right: 4px; }
.mb-empty { padding: var(--sp5) var(--sp3); text-align: center; color: var(--ink-2); background: var(--surface-2); border-radius: var(--r); }
/* a case-file card: bone paper, soot type (the brief's episode-detail panel) */
.mb-paper { --ink: #181818; --ink-2: #4d4a42; --surface: #f5f0e4; --surface-2: #e2d9c4; --line: #c6b99c; --accent: #2f5a22; --accent-ink: #ffffff; --accent-2: #7a4d00; --playing: #2f5a22; --playing-ink: #ffffff; --focus: #8a5a00;
  background: #ede6d6; color: #181818; border-radius: var(--r); }
.mb-paper :focus-visible { outline-color: #8a5a00; }

/* ================================================================ the Boardwalk */
.signature { margin: calc(-1 * var(--sp4)) calc(-1 * var(--sp4)) var(--sp4); }
.bw { position: relative; background: linear-gradient(#183018, #142814); padding: var(--sp2) var(--sp4) var(--sp4); border-bottom: 1px solid var(--rule); }
.bw-defs { position: absolute; }
.bw-fine { margin: 0 0 var(--sp2); font: 400 12px/1.4 var(--sans); color: var(--ink-2); }
.bw-head { display: flex; flex-wrap: wrap; gap: var(--sp2) var(--sp4); align-items: flex-end; justify-content: space-between; margin-bottom: var(--sp2); }
.bw-hello { flex: 1 1 420px; min-width: 0; }
.bw-hey { position: relative; font: 700 clamp(36px, 5vw, 60px)/1.02 var(--sans); letter-spacing: .06em; color: #ffffff; margin: 0; filter: url(#mb-ink); }
.bw-reserve { visibility: hidden; }
.bw-typed { position: absolute; left: 0; top: 0; }
.bw-lede { margin: 6px 0 0; font-size: 17px; line-height: 1.45; max-width: 60ch; }
.bw-random { display: flex; flex-wrap: wrap; gap: var(--sp2); }
.bw-pick { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 16px 6px 8px; border: 1px solid var(--accent); border-radius: var(--r); background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; transition: background var(--t); }
.bw-pick:hover { background: #304830; }
.bw-pick-t { display: flex; flex-direction: column; font: 700 15px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.bw-pick-s { font: 400 12px/1.3 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink-2); max-width: 22ch; }
.bw-box { width: 56px; height: 42px; flex: none; }
.bw-box .ant, .bw-box .needle, .bw-box .grille path, .bw-box .lines { stroke: #ede6d6; stroke-width: 2; fill: none; stroke-linecap: round; }
.bw-box .body { fill: #6b4e33; stroke: #a07850; stroke-width: 2; }
.bw-box .dial { fill: #183018; stroke: #e8b04a; stroke-width: 2; }
.bw-box .static path { stroke: #e8b04a; stroke-width: 1.6; fill: none; opacity: 0; }
.bw-box .tabf { fill: #a07850; }
.bw-box .paper { fill: #ede6d6; }
.bw-box .lines { stroke: #4d4a42; stroke-width: 1.6; }
.bw-box .front { fill: #c49a6c; stroke: #6b4e33; stroke-width: 1.5; }
.bw-pick.crackling .static path { animation: mb-static .45s steps(5) both; }
.bw-pick.crackling .bw-box { animation: mb-jitter .45s steps(6); }
.bw-casefile.crackling .paper, .bw-casefile.crackling .lines { animation: mb-pull .45s ease-out both; }
@keyframes mb-static { 0%, 100% { opacity: 0; } 20%, 60% { opacity: 1; } 40%, 80% { opacity: .2; } }
@keyframes mb-jitter { 0%, 100% { transform: none; } 25% { transform: translate(1px, -1px); } 50% { transform: translate(-1px, 1px); } 75% { transform: translate(1px, 1px); } }
@keyframes mb-pull { to { transform: translateY(-10px); } }
.bw-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp2) var(--sp3); margin-bottom: var(--sp2); }
.bw-bar .btn[aria-pressed="true"] { background: #e8b04a; border-color: #e8b04a; color: #181818; }
.bw-count { margin: 0; font: 400 13px/1.4 var(--sans); color: var(--ink-2); }
.bw-stage { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--sp3); align-items: start; }
.bw-scene { position: relative; overflow: hidden; border: 1px solid var(--rule); border-radius: var(--r); background: #0b160f; min-height: 380px; }
.bw-scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E"); }
.bw-svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.bw-plank { cursor: pointer; }
.bw-plank:focus { outline: none; }
.bw-board { stroke: rgba(24, 24, 24, .6); stroke-width: 1; }
.bw-plank.feet .bw-board { stroke: #ede6d6; stroke-width: 1.5; }
.bw-plank.feet:focus-visible .bw-board { stroke: #e8b04a; stroke-width: 4; }
.bw-plank.playing .bw-board { stroke: #e8b04a; stroke-width: 2.5; }
.bw-plank.echo .bw-board { stroke: #ede6d6; stroke-dasharray: 7 5; }
.bw-hl { fill: #ede6d6; opacity: 0; pointer-events: none; transition: opacity var(--t); }
.bw-plank.hover .bw-hl, .bw-plank.feet:focus-visible .bw-hl { opacity: .14; }
.bw-grain { stroke: rgba(24, 24, 24, .25); stroke-width: 1; fill: none; pointer-events: none; }
.bw-labels { pointer-events: none; }
.bw-svg .bw-t { fill: #181818; font-family: var(--serif); font-weight: 650; pointer-events: none; }
.bw-svg .bw-d { fill: #181818; font-family: var(--sans); font-weight: 700; text-anchor: end; pointer-events: none; }
.bw-string { stroke: #e8b04a; stroke-width: 1.4; fill: none; }
.bw-toe { fill: #6b4e33; stroke: #e8b04a; stroke-width: 1; }
.bw-hole { fill: #183018; }
.bw-foot { fill: #181818; opacity: .38; }
.bw-rails { stroke: #6b4e33; stroke-width: 3; fill: none; stroke-linecap: round; pointer-events: none; }
.bw-post rect { fill: #6b4e33; }
.bw-post .bw-board-s { stroke: #a07850; stroke-width: 1; }
.bw-svg .bw-post text { fill: #ede6d6; font-family: var(--sans); font-weight: 700; text-anchor: middle; }
.bw-air { pointer-events: none; }
.bw.beast .bw-beast { animation: mb-beast .6s steps(2); }
@keyframes mb-beast { 0%, 100% { opacity: 0; } 20%, 60% { opacity: .5; } 40%, 80% { opacity: .12; } }
.bw-marker { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; background: #6b4e33; color: #ede6d6; border: 1px solid #a07850; border-radius: 2px; font: 400 12px/1.3 var(--sans); box-shadow: 0 2px 0 rgba(0, 0, 0, .35); pointer-events: none; }
.bw-marker:empty { display: none; }
.bw-marker strong { font-size: 18px; letter-spacing: .04em; text-transform: uppercase; }
.bw-mm { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #e6dcc6; }
.bw-tip { position: absolute; z-index: 3; max-width: 250px; pointer-events: none; display: flex; flex-direction: column; gap: 2px; background: #6b4e33; color: #ede6d6; padding: 7px 12px 7px 24px; font: 400 12px/1.35 var(--sans);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); background-image: radial-gradient(circle at 13px 50%, #183018 0 3px, transparent 3.5px); }
.bw-tip strong { font: 600 14px/1.3 var(--serif); }
.bw-tag { --ink: #181818; --ink-2: #4d4a42; --surface: #f5f0e4; --line: #c6b99c; --accent: #2f5a22; --accent-ink: #ffffff; --accent-2: #7a4d00; --playing: #2f5a22; --playing-ink: #ffffff; --focus: #8a5a00;
  background: #ede6d6; color: #181818; border-radius: var(--r); padding: 0 var(--sp3) var(--sp3); display: flex; flex-direction: column; gap: var(--sp2); border-top: 34px solid #6b4e33; position: relative; min-height: 300px; }
.bw-tag::before { content: "Case file"; position: absolute; top: -26px; left: var(--sp3); font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #ede6d6; }
.bw-tag .mb-eyebrow { margin-top: var(--sp3); }
.bw-tag-t { margin: 0; }
.bw-tag-t .mb-ttl { font-size: 20px; line-height: 1.25; font-weight: 700; }
.bw-hook { margin: 0; font-size: 15px; line-height: 1.5; }
.bw-tag-acts { display: flex; flex-wrap: wrap; gap: var(--sp2); align-items: center; margin-top: auto; padding-top: var(--sp2); }
.bw-series, .bw-end { margin: 0; font-size: 14px; }
.bw-end { font-family: var(--sans); color: var(--ink-2); }
.bw-empty { margin: var(--sp3) 0; color: var(--ink-2); }
.bw-walk { display: flex; flex-wrap: wrap; gap: var(--sp2) var(--sp4); align-items: center; margin-top: var(--sp3); }
.bw-steps { display: flex; flex-wrap: wrap; gap: var(--sp2); }
.bw-slide { display: flex; align-items: center; gap: var(--sp2); flex: 1 1 280px; font: 400 12px/1 var(--sans); color: var(--ink-2); }
.bw-slide label, .bw-jump label { font: 700 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #e8b04a; }
.bw-slide input { flex: 1; min-width: 120px; accent-color: #e8b04a; height: 32px; }
.bw-jump { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp2); }
.bw-jump select { width: auto; min-width: 120px; }
.bw-ep { width: 84px; min-height: 40px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 0 8px; }
.bw-hint { flex: 1 1 100%; margin: 0; font-size: 13px; color: var(--ink-2); }
.bw-legend { list-style: none; margin: var(--sp3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px var(--sp3); font-size: 13px; color: var(--ink-2); }
.bw-legend li { display: inline-flex; align-items: center; gap: 6px; }
.bw-sw { width: 26px; height: 10px; border-radius: 1px; display: inline-block; flex: none; border: 1px solid rgba(24, 24, 24, .6); }
.bw-sw-mini { width: 18px; }
.bw-sw-echo { opacity: .55; border: 1px dashed #ede6d6; }
.bw-sw-rail { height: 3px; border: 0; background: #6b4e33; box-shadow: 0 -1px 0 #a07850; }
.bw-sw-post { width: 14px; height: 12px; background: #6b4e33; border-color: #a07850; }
.bw-sw-tag { width: 20px; height: 12px; background: #6b4e33; border: 1px solid #e8b04a; clip-path: polygon(5px 0, 100% 0, 100% 100%, 5px 100%, 0 50%); }
.bw-sw-feet { width: 18px; height: 16px; border: 0; background: radial-gradient(3px 6px at 5px 7px, #b9b3a5 92%, transparent 100%), radial-gradient(3px 6px at 13px 9px, #b9b3a5 92%, transparent 100%); }
.bw-list { margin-top: var(--sp2); }
.bw-yr { margin-bottom: var(--sp4); }
.bw-yr-h { font: 700 22px/1.2 var(--sans); letter-spacing: .06em; padding: var(--sp2) 0; border-bottom: 1px solid var(--rule); margin: 0; }
.bw-yr-h span { font-size: 13px; font-weight: 400; color: var(--ink-2); letter-spacing: 0; margin-left: var(--sp2); }
.bw-list .mb-row { background: var(--surface); margin-top: 6px; border-radius: 0 var(--r) var(--r) 0; border-bottom: 0; }
.bw-more { text-align: center; margin: var(--sp3) 0; }
@media (prefers-reduced-motion: reduce) { .bw-pick.crackling .static path, .bw-pick.crackling .bw-box { animation: none; } }
@media (max-width: 960px) {
  .bw-stage { grid-template-columns: minmax(0, 1fr); }
  .bw-tag { min-height: 0; }
}
@media (max-width: 600px) {
  .signature { margin: calc(-1 * var(--sp3)) calc(-1 * var(--sp3)) var(--sp3); }
  .bw { padding: var(--sp2) var(--sp3) var(--sp3); }
  .bw-lede { font-size: 16px; }
  .bw-random { width: 100%; }
  .bw-pick { flex: 1 1 140px; min-height: 52px; padding: 4px 10px 4px 6px; gap: 6px; }
  .bw-pick-s { display: none; }
  .bw-box { width: 44px; height: 33px; }
  .bw-pick-t { font-size: 14px; }
  .bw-marker { top: 8px; left: 8px; padding: 6px 8px; }
  .bw-marker strong { font-size: 15px; }
  .mb-row { grid-template-columns: minmax(0, 1fr); }
  .mb-acts { justify-content: flex-start; }
}

/* ================================================================ the Long Hauls: trailhead signs */
.lh-sec { font: 700 20px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; margin: var(--sp4) 0 var(--sp3); padding-bottom: var(--sp2); border-bottom: 1px solid var(--rule); }
.lh-sec span { font: 400 13px/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink-2); margin-left: var(--sp2); }
.lh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--sp3); align-items: start; }
.lh-grid.small { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.lh-trail { background: var(--surface); border-radius: var(--r); padding: var(--sp3); display: flex; flex-direction: column; gap: var(--sp2); border-top: 3px solid #a07850; }
.lh-trail.done { border-top-color: #e8b04a; }
.lh-sign { background: #6b4e33; color: #ede6d6; padding: 12px 14px; border-radius: 2px; box-shadow: 0 3px 0 #4a3523; position: relative; }
.lh-name { margin: 0; font: 700 19px/1.2 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.lh-trail:not(.big) .lh-name { font-size: 16px; }
.lh-facts { margin: 4px 0 0; font: 400 13px/1.3 var(--sans); color: #e6dcc6; }
.lh-markers { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 8px 0 0; }
.lh-markers > span:not(.lh-heard) { width: 12px; height: 12px; border: 1.5px solid #e6dcc6; background: transparent; border-radius: 1px; }
.lh-markers > span.on { background: #e8b04a; border-color: #e8b04a; }
.lh-heard { font: 400 12px/1 var(--sans); color: #e6dcc6; margin-left: 6px; }
.lh-path { height: 6px; margin-top: 10px; background: repeating-linear-gradient(90deg, rgba(237, 230, 214, .25) 0 6px, transparent 6px 10px); border-radius: 3px; }
.lh-path span { display: block; height: 100%; background: repeating-linear-gradient(90deg, #ede6d6 0 6px, transparent 6px 10px); border-radius: 3px; }
.lh-acts { display: flex; flex-wrap: wrap; gap: var(--sp2); }
.lh-acts .btn[aria-pressed="true"] { background: var(--playing); border-color: var(--playing); color: var(--playing-ink); }
.lh-parts > summary { cursor: pointer; font: 700 13px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); min-height: 36px; display: flex; align-items: center; }
.lh-parts .mb-rows { margin-top: var(--sp1); border-top: 1px solid var(--line); }
.lh-parts .mb-row { padding: 8px 0; }
.lh-hidden .mb-meta { font-style: normal; }
.lh-rerun { font-size: 14px; color: var(--ink-2); margin: var(--sp2) 0 0; }

/* ================================================================ the Weirdo Atlas: a surveyor's sheet */
.at-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--sp3); align-items: start; margin-bottom: var(--sp3); }
.at-sheetbox { min-width: 0; }
.at-sheet { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: var(--r); }
.at-bg { fill: #10220f; }
.at-grid line { stroke: #2f4a2c; stroke-width: 1; }
.at-sheet .at-gl { fill: #9aa58e; font: 400 13px var(--sans); }
.at-town { fill: none; stroke: #b9b3a5; stroke-width: 1.5; }
.at-sheet .at-tl { fill: #b9b3a5; font: 400 15px var(--sans); }
.at-pin { stroke: #10220f; stroke-width: 1.5; }
.at-mark { cursor: pointer; }
.at-mark:focus { outline: none; }
.at-ring { fill: rgba(237, 230, 214, .04); stroke: #ede6d6; stroke-width: 1.5; stroke-dasharray: 3 3; transition: fill var(--t); }
.at-mark:hover .at-ring { fill: rgba(237, 230, 214, .14); stroke-dasharray: none; }
.at-mark.on .at-ring { stroke: #e8b04a; stroke-width: 3; stroke-dasharray: none; fill: rgba(232, 176, 74, .16); }
.at-mark:focus-visible .at-ring { stroke: #e8b04a; stroke-width: 4; stroke-dasharray: none; }
.at-words { pointer-events: none; }
.at-sheet .at-n { fill: #181818; font: 700 14px var(--sans); paint-order: stroke; stroke: #e8b04a; stroke-width: 7px; stroke-linejoin: round; }
.at-sheet .at-ml { fill: #ede6d6; font: 700 15px var(--sans); text-anchor: middle; paint-order: stroke; stroke: #10220f; stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.at-key { list-style: none; margin: var(--sp2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px var(--sp3); font-size: 13px; color: var(--ink-2); }
.at-key li { display: inline-flex; align-items: center; gap: 6px; }
.at-key span { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.at-key span.town { border-radius: 0; border: 1.5px solid #b9b3a5; }
.at-panel { background: var(--surface-2); border-radius: var(--r); padding: var(--sp3); max-height: min(80vh, 820px); overflow-y: auto; display: flex; flex-direction: column; gap: var(--sp2); }
.at-panel > .btn { align-self: flex-start; }
.at-ph { margin: 0; font: 700 20px/1.2 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.at-panel .mb-note { margin: 0; }
.at-places { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.at-place { width: 100%; display: flex; justify-content: space-between; gap: var(--sp2); background: none; border: 0; border-bottom: 1px solid var(--line); padding: 8px 2px; min-height: 40px; cursor: pointer; color: var(--ink); text-align: left; font: 500 15px/1.3 var(--serif); }
.at-place:hover span:first-child { text-decoration: underline; }
.at-place .n { font-family: var(--sans); color: #e8b04a; font-weight: 700; }
.at-stack .mb-row { background: var(--surface); margin-top: 6px; border-bottom: 0; border-left: 4px solid #6b4e33; border-radius: 0 var(--r) var(--r) 0; }

/* ================================================================ the Campfire: envelopes by the fire */
.cf-top { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--sp4); align-items: center; margin-bottom: var(--sp3); }
.cf-fire svg { width: 100%; height: auto; display: block; }
/* the fire flickers for a few seconds when the view opens, then settles (an endless animation would keep the page from settling) */
.cf-flames path { transform-origin: 76px 114px; animation: mb-flame 1.3s ease-in-out 4 alternate; }
.cf-flames .f2 { animation-duration: 1.1s; animation-delay: -.4s; }
.cf-flames .f3 { animation-duration: .9s; animation-delay: -.2s; }
.cf-sparks circle { animation: mb-spark 2.4s ease-out 2 both; }
.cf-sparks circle:nth-child(2) { animation-delay: -.8s; }
.cf-sparks circle:nth-child(3) { animation-delay: -1.6s; }
@keyframes mb-flame { from { transform: scale(1, 1) skewX(0deg); } to { transform: scale(.94, 1.06) skewX(-3deg); } }
@keyframes mb-spark { from { transform: translateY(20px); opacity: 1; } to { transform: translateY(-14px); opacity: 0; } }
.cf-progress { font-family: var(--sans); font-size: 14px; color: #e8b04a; margin: 0 0 var(--sp2); }
.cf-pull { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp2) var(--sp3); }
.cf-pick { margin: 0; font-size: 14px; color: var(--ink-2); }
.cf-stamps .cf-stamp { font-family: var(--sans); text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
.cf-pile { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--sp3); }
.cf-env { position: relative; background: #ede6d6; color: #181818; border-radius: 2px; padding: 46px var(--sp3) var(--sp3); display: flex; flex-direction: column; gap: 6px;
  --ink: #181818; --ink-2: #4d4a42; --surface: #f5f0e4; --line: #c6b99c; --accent: #2f5a22; --accent-ink: #ffffff; --playing: #2f5a22; --playing-ink: #ffffff; --focus: #8a5a00;
  box-shadow: 0 2px 0 #6b4e33; }
/* the envelope's flap: a darker V across the top, behind the number and the stamp */
.cf-env::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40px; background: #ddd2ba; clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 2px 2px 0 0; }
.cf-no, .cf-ed { z-index: 1; }
.cf-env:nth-child(3n + 1) { transform: rotate(-.5deg); }
.cf-env:nth-child(3n + 2) { transform: rotate(.4deg); }
.cf-env.pulled { outline: 4px solid #e8b04a; outline-offset: 3px; }
.cf-no { position: absolute; top: 10px; left: var(--sp3); margin: 0; font: 700 18px/1 var(--sans); letter-spacing: .04em; }
.cf-ed { position: absolute; top: 8px; right: 10px; margin: 0; max-width: 55%; text-align: center; font: 700 10px/1.25 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #7a1f14; border: 2px solid #7a1f14; padding: 4px 6px; transform: rotate(4deg); background: rgba(237, 230, 214, .9); }
.cf-t { margin: 6px 0 0; }
.cf-t .mb-ttl { font-size: 16px; }
.cf-read { margin: 0; font: 700 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #7a4d00; }
.cf-env .mb-acts { margin-top: auto; padding-top: 6px; }
.cf-env.is-saved::after { content: "On your string"; position: absolute; bottom: 12px; right: 12px; font: 700 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #ede6d6;
  background: radial-gradient(circle at 9px 50%, #ede6d6 0 2.5px, transparent 3px), #6b4e33; padding: 4px 9px 4px 17px; clip-path: polygon(7px 0, 100% 0, 100% 100%, 7px 100%, 0 50%); }
.cf-pile > .mb-empty { grid-column: 1 / -1; }

/* ================================================================ the Spooky Field Guide: a shelf, then a spread */
.fg-shelf { display: flex; align-items: flex-end; gap: 6px; min-height: 280px; padding: var(--sp3) var(--sp3) 0; overflow-x: auto; background: linear-gradient(transparent calc(100% - 18px), #6b4e33 calc(100% - 18px)); border-radius: var(--r); border-bottom: 4px solid #4a3523; }
.fg-spine { flex: none; width: 58px; height: calc(250px * var(--h) / 100); margin-bottom: 18px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 4px 10px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .28), transparent 18%, transparent 82%, rgba(0, 0, 0, .3)), var(--cloth); color: #ede6d6; border: 0; border-radius: 3px 3px 0 0; cursor: pointer; transition: transform var(--t); box-shadow: inset 0 2px 0 rgba(237, 230, 214, .25); }
.fg-spine:hover { transform: translateY(-6px); }
.fg-spine.out { transform: translateY(-16px); box-shadow: 0 0 0 3px #e8b04a; }
.fg-spine-t { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 14px/1.1 var(--sans); letter-spacing: .06em; text-transform: uppercase; max-height: 150px; overflow: hidden; text-align: center; }
.fg-bands { display: flex; flex-direction: column; gap: 2px; }
.fg-bands span { font: 700 9px/1 var(--sans); padding: 2px 4px; border: 1px solid rgba(237, 230, 214, .6); border-radius: 1px; min-width: 26px; text-align: center; }
.fg-bands span.on { background: #e8b04a; color: #181818; border-color: #e8b04a; }
.fg-vols { font: 400 10px/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; }
.fg-open { margin-top: var(--sp4); }
.fg-hint { color: var(--ink-2); margin: 0; }
.fg-book { display: grid; grid-template-columns: 1fr 1fr; border-left: 14px solid var(--cloth); border-right: 14px solid var(--cloth); box-shadow: 0 4px 0 #4a3523; }
.fg-page { padding: var(--sp4); min-width: 0; }
.fg-left { border-right: 1px solid #c6b99c; box-shadow: inset -18px 0 24px -20px rgba(0, 0, 0, .35); }
.fg-title { margin: 4px 0 0; font: 700 clamp(24px, 3vw, 34px)/1.1 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.fg-set { margin: var(--sp2) 0; font: 700 13px/1.3 var(--sans); color: #7a4d00; }
.fg-vol-list .mb-row { padding: 10px 0; }
.fg-notes { list-style: none; margin: var(--sp2) 0; padding: 0; display: grid; gap: var(--sp3); }
.fg-notes li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: var(--sp2); }
.fg-n { font: 700 14px/1.6 var(--sans); color: #7a4d00; }
.fg-hk { margin: 0; font-size: 15px; line-height: 1.5; }
.fg-places { font-size: 14px; color: var(--ink-2); }
.fg-topics { display: flex; flex-wrap: wrap; gap: 6px; }
.fg-topics .chip { background: transparent; border-color: #a07850; }

@media (prefers-reduced-motion: reduce) { .cf-flames path, .cf-sparks circle { animation: none; } .cf-sparks { display: none; } }
@media (max-width: 960px) {
  .at-wrap { grid-template-columns: minmax(0, 1fr); }
  .at-panel { max-height: none; }
  .fg-book { grid-template-columns: minmax(0, 1fr); }
  .fg-left { border-right: 0; border-bottom: 1px solid #c6b99c; box-shadow: none; }
}
@media (max-width: 600px) {
  .lh-grid, .lh-grid.small { grid-template-columns: minmax(0, 1fr); }
  .cf-top { grid-template-columns: 110px minmax(0, 1fr); gap: var(--sp3); }
  .cf-pile { grid-template-columns: minmax(0, 1fr); }
  .fg-page { padding: var(--sp3); }
  .fg-book { border-left-width: 8px; border-right-width: 8px; }
}

