/* Horror / Gothic / Cthulhu preset
   For: CoC, Regency Cthulhu, gothic horror, dark mystery */

:root {
  --bg: #1a1410;
  --bg-card: #241e16;
  --bg-header: #0f0c08;
  --bg-hero: #0f0c08;
  --text: #d4c5a9;
  --text-muted: #928671;
  /* 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: #d4c5a9;
  --text-muted-on-header: #928671;
  --accent: #c9a55a;
  --accent-on-header: #c9a55a;
  --accent-dim: rgba(201, 165, 90, 0.12);
  --border: #3a3020;
  --danger: #c0392b;
  --warning: #d4a017;
  --success: #6b8f3c;
  --font-heading: "Georgia", "Times New Roman", serif;
  --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: #f5f0e8;
    --bg-card: #fffcf5;
    --bg-header: #2a2018;
    --bg-hero: #2a2018;
    --text: #2a2018;
    --text-muted: #6b5e4a;
    --accent: #896714;
    /* the header and hero stay dark in the light palette: the bright accent reads there */
    --accent-on-header: #c9a55a;
    --text-muted-on-header: #958a75;
    --accent-dim: rgba(139, 105, 20, 0.08);
    --border: #d4c5a9;
    --danger: #c0392b;
    --warning: #b8860b;
    --success: #4a7c2e;
    /* 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: #f5f0e8;
    --bg-card: #fffcf5;
    --bg-header: #2a2018;
    --bg-hero: #2a2018;
    --text: #2a2018;
    --text-muted: #6b5e4a;
    --accent: #896714;
    /* the header and hero stay dark in the light palette: the bright accent reads there */
    --accent-on-header: #c9a55a;
    --text-muted-on-header: #958a75;
    --accent-dim: rgba(139, 105, 20, 0.08);
    --border: #d4c5a9;
    --danger: #c0392b;
    --warning: #b8860b;
    --success: #4a7c2e;
    /* 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: #f5f0e8;
    --bg-card: #fffcf5;
    --bg-header: #2a2018;
    --bg-hero: #2a2018;
    --text: #2a2018;
    --text-muted: #6b5e4a;
    --accent: #896714;
    /* the header and hero stay dark in the light palette: the bright accent reads there */
    --accent-on-header: #c9a55a;
    --text-muted-on-header: #958a75;
    --accent-dim: rgba(139, 105, 20, 0.08);
    --border: #d4c5a9;
    --danger: #c0392b;
    --warning: #b8860b;
    --success: #4a7c2e;
    /* 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 */
/* Book furniture: a fleuron between chapters, small-capital labels, an italic overview, dotted leaders. */
.story-contents-chapter + .story-contents-chapter::before {
  content: "❦";
  display: block;
  color: var(--text-muted);
  font-size: 1.25rem;
  margin-bottom: var(--space-1500);
}
p.story-chapter-label { font-variant: small-caps; letter-spacing: 0.12em; font-size: var(--font-size-1000); }
p.story-chapter-overview, .story-contents .story-chapter-teaser { font-style: italic; font-family: var(--font-heading); }
.story-contents-sessions { font-family: var(--font-heading); }
.story-contents-sessions .n { font-variant-numeric: oldstyle-nums; }
p.story-chapter-now { text-transform: none; font-variant: small-caps; letter-spacing: 0.08em; }
.story-contents-end[data-ending="continues"]::before { content: "To be continued…"; }
.story-contents-end[data-ending="ended"]::before { content: "Finis"; }
.story-contents-end { font-family: var(--font-heading); }
.story-contents .story-chapter-teaser p { font-family: var(--font-heading); }
/* chapter pages: end */
