/* Noir / Industrial / Heist preset
   For: Blades in the Dark, cyberpunk, crime */

:root {
  --bg: #0d0d0d;
  --bg-card: #1a1a1a;
  --bg-header: #050505;
  --bg-hero: #050505;
  --text: #b0b0b0;
  --text-muted: #858585;
  /* The header and hero stay dark in both schemes, so their text keeps the
     dark palette's ink even when light mode darkens --text (#259). */
  --text-on-header: #b0b0b0;
  --text-muted-on-header: #858585;
  --accent: #c084fc;
  --accent-on-header: #c084fc;
  --accent-dim: rgba(192, 132, 252, 0.1);
  --border: #2a2a2a;
  --danger: #ef4444;
  --warning: #eab308;
  --success: #22c55e;
  --font-heading: "Fira Code", ui-monospace, monospace;
  --font-reading: var(--font-heading);
  --font-body: system-ui, -apple-system, sans-serif;
}

@media screen and (prefers-color-scheme: light) {
  :root:not(:where([data-theme="dark"])) {
    --bg: #f0f0f0;
    --bg-card: #ffffff;
    --bg-header: #1a1a1a;
    --bg-hero: #1a1a1a;
    --text: #1a1a1a;
    --text-muted: #666666;
    --accent: #7c3aed;
    /* the header and hero stay dark in the light palette: the bright accent reads there */
    --accent-on-header: #c084fc;
    --accent-dim: rgba(124, 58, 237, 0.08);
    --border: #d0d0d0;
    /* the Story page's Memorable Moments: deeper kind colours for the light card */
    --moment-dramatic: #b42318; --moment-intriguing: #0b5cad; --moment-funny: #7a4f00; --moment-epic: #6b3fb5; --moment-tragic: #475569;
  }
}
@media screen {
  :root:where([data-theme="light"]) {
    --bg: #f0f0f0;
    --bg-card: #ffffff;
    --bg-header: #1a1a1a;
    --bg-hero: #1a1a1a;
    --text: #1a1a1a;
    --text-muted: #666666;
    --accent: #7c3aed;
    /* the header and hero stay dark in the light palette: the bright accent reads there */
    --accent-on-header: #c084fc;
    --accent-dim: rgba(124, 58, 237, 0.08);
    --border: #d0d0d0;
    /* the Story page's Memorable Moments: deeper kind colours for the light card */
    --moment-dramatic: #b42318; --moment-intriguing: #0b5cad; --moment-funny: #7a4f00; --moment-epic: #6b3fb5; --moment-tragic: #475569;
  }
}
@media print {
  :root {
    --bg: #f0f0f0;
    --bg-card: #ffffff;
    --bg-header: #1a1a1a;
    --bg-hero: #1a1a1a;
    --text: #1a1a1a;
    --text-muted: #666666;
    --accent: #7c3aed;
    /* the header and hero stay dark in the light palette: the bright accent reads there */
    --accent-on-header: #c084fc;
    --accent-dim: rgba(124, 58, 237, 0.08);
    --border: #d0d0d0;
    /* the Story page's Memorable Moments: deeper kind colours for the light card */
    --moment-dramatic: #b42318; --moment-intriguing: #0b5cad; --moment-funny: #7a4f00; --moment-epic: #6b3fb5; --moment-tragic: #475569;
  }
}

/* chapter pages: start */
/* A case file: typed labels, each chapter a folder with its status stamped, a ledger of sessions. */
.story-contents-chapter {
  text-align: left;
  border-left: 3px solid var(--accent);
  padding: var(--space-500) 0 var(--space-500) var(--space-1250);
}
.story-contents .story-chapter-teaser, .story-contents p.story-chapter-overview { margin-left: 0; }
p.story-chapter-label, p.story-chapter-dates, p.story-chapter-now { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; }
p.story-chapter-label::before { content: "File · "; }
.story-contents-sessions { font-family: var(--font-mono); font-size: var(--font-size-950); }
.story-contents-sessions li::after { border-bottom-style: dashed; }
.story-contents-chapter[data-chapter-status="complete"] h3::after { content: " [closed]"; color: var(--text-muted); font-family: var(--font-mono); font-size: var(--font-size-750); }
.story-contents-chapter[data-chapter-status="active"] h3::after { content: " [open]"; color: var(--accent); font-family: var(--font-mono); font-size: var(--font-size-750); }
.story-contents-end { font-family: var(--font-mono); font-style: normal; letter-spacing: 0.12em; }
.story-contents-end[data-ending="continues"]::before { content: "Case open."; }
.story-contents-end[data-ending="ended"]::before { content: "Case closed."; }
p.story-chapter-overview, .story-contents .story-chapter-teaser p { font-family: var(--font-body); }
/* chapter pages: end */
