/* Military / Tactical / Modern preset
   For: GURPS tactical, modern ops, sci-fi military */

:root {
  --bg: #1a1f16;
  --bg-card: #232820;
  --bg-header: #0d1108;
  --bg-hero: #0d1108;
  --text: #bfc9b8;
  --text-muted: #87927d;
  /* 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: #bfc9b8;
  --text-muted-on-header: #87927d;
  --accent: #4ade80;
  --accent-on-header: #4ade80;
  --accent-dim: rgba(74, 222, 128, 0.1);
  --border: #2e3828;
  --danger: #ef4444;
  --warning: #eab308;
  --success: #4ade80;
  --font-heading: system-ui, -apple-system, sans-serif;
  --font-reading: var(--font-heading);
  --font-body: system-ui, -apple-system, sans-serif;
  --font-heading-weight: 800;
}

@media screen and (prefers-color-scheme: light) {
  :root:not(:where([data-theme="dark"])) {
    --bg: #f0f4ec;
    --bg-card: #fafcf8;
    --bg-header: #1a1f16;
    --bg-hero: #1a1f16;
    --text: #1a1f16;
    --text-muted: #5a6550;
    --accent: #117d39;
    /* the header and hero stay dark in the light palette: the bright accent reads there */
    --accent-on-header: #4ade80;
    --accent-dim: rgba(22, 163, 74, 0.08);
    --border: #bfc9b8;
    /* 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: #f0f4ec;
    --bg-card: #fafcf8;
    --bg-header: #1a1f16;
    --bg-hero: #1a1f16;
    --text: #1a1f16;
    --text-muted: #5a6550;
    --accent: #117d39;
    /* the header and hero stay dark in the light palette: the bright accent reads there */
    --accent-on-header: #4ade80;
    --accent-dim: rgba(22, 163, 74, 0.08);
    --border: #bfc9b8;
    /* 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: #f0f4ec;
    --bg-card: #fafcf8;
    --bg-header: #1a1f16;
    --bg-hero: #1a1f16;
    --text: #1a1f16;
    --text-muted: #5a6550;
    --accent: #117d39;
    /* the header and hero stay dark in the light palette: the bright accent reads there */
    --accent-on-header: #4ade80;
    --accent-dim: rgba(22, 163, 74, 0.08);
    --border: #bfc9b8;
    /* 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 */
/* An after-action file: a file-tab bar, a COMPLETE stamp, set left, solid leaders, END OF FILE. */
.story-contents-chapter {
  text-align: left;
  border-top: 4px solid var(--text-muted);
  background: var(--bg-card);
  padding: var(--space-1250) var(--space-1500);
}
.story-contents-chapter[data-chapter-status="active"] { border-top-color: var(--accent); }
.story-contents-chapter h3, .story-chapter > .page-title { text-transform: uppercase; letter-spacing: 0.02em; }
.story-contents .story-chapter-teaser, .story-contents p.story-chapter-overview { margin-left: 0; }
p.story-chapter-label, p.story-chapter-dates { text-transform: uppercase; letter-spacing: 0.18em; font-size: var(--font-size-750); font-weight: 700; }
.story-contents-sessions .n { font-family: var(--font-mono); font-size: var(--font-size-875); }
.story-contents-sessions li::after { border-bottom-style: solid; }
.story-contents-chapter[data-chapter-status="complete"] h3::after,
.story-chapter[data-chapter-status="complete"] > .page-title::after {
  content: "Complete";
  display: inline-block;
  margin-left: var(--space-750);
  padding: 0 var(--space-500);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-label, var(--font-body));
  font-size: var(--font-size-750);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  vertical-align: middle;
  transform: rotate(-2deg);
}
.story-contents-end { font-style: normal; font-size: var(--font-size-750); font-weight: 700; letter-spacing: 0.2em; }
.story-contents-end[data-ending="continues"]::before { content: "— FILE OPEN —"; }
.story-contents-end[data-ending="ended"]::before { content: "— END OF FILE —"; }
p.story-chapter-overview, .story-contents .story-chapter-teaser p { font-family: var(--font-body); }
/* chapter pages: end */
