@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&display=swap");
/* ============================================================
   One look for the whole site — Charles Gannsen Research
   Added 22 Oct 2026. Loaded LAST on every standalone page (by
   scripts/inject-site-nav.py), so it settles the differences
   between the page families that grew up separately:
     - "cinema" heroes set titles in thin Cormorant Garamond;
     - story chapters, evidence cards and book pages used
       Source Serif 4 with their own header bands;
     - a few page families never loaded the dark theme.
   The model is the home page: Source Serif 4 throughout, cream
   bold titles, gold small-caps eyebrows, an italic standfirst,
   and the deep-ink gradient ground. Colours come from the
   theme.css / dark-mode.css tokens, so the light theme still
   works; only the dark ground gradient is dark-only.
   ------------------------------------------------------------ */

/* One typeface family. cinematic.css points headings at
   --font-display (Cormorant) and labels at --font-ui (Inter);
   both now resolve to the site's book serif. */
:root {
  --font-display: 'Source Serif 4', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-ui:      'Source Serif 4', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --unify-rule:   rgba(216, 179, 102, 0.32);
}

/* The home page's ground: deep ink to warm walnut. */
html.theme-dark body {
  background: linear-gradient(160deg, var(--bg-deep, #101823) 0%, var(--bg-deep-grad, #151f2e) 45%, #172334 100%) fixed;
  background-color: var(--bg-deep, #101823);
}

/* ---- Page headers -------------------------------------------------- */
header.cinema-section-hero,
header.bd-hero, header.st-hero, header.ch-hero, header.card-hero,
header.nr-hero, header.sec-hero, header.about-hero, header.child-hero,
header.story-hero, header.tab-hero {
  border-bottom: 1px solid var(--unify-rule) !important;
}
html.theme-dark header.cinema-section-hero,
html.theme-dark header.bd-hero, html.theme-dark header.st-hero,
html.theme-dark header.ch-hero, html.theme-dark header.card-hero,
html.theme-dark header.nr-hero, html.theme-dark header.sec-hero {
  background: transparent !important;
}
html.theme-dark header.card-hero.major {
  background: linear-gradient(135deg, rgba(90, 58, 34, 0.35) 0%, rgba(44, 31, 20, 0) 70%) !important;
}

/* Titles: cream, bold, balanced — like "Charles Gannsen" on the home page. */
header.cinema-section-hero h1,
header.bd-hero h1, header.st-hero h1, header.ch-hero h1, header.card-hero h1,
header.nr-hero h1, header.sec-hero h1, header.child-hero h1,
header.story-hero h1, header.tab-hero h1, main > h1:first-child {
  font-family: var(--font-serif) !important;
  font-weight: 700 !important;
  font-style: normal !important;
  letter-spacing: 0.005em !important;
  line-height: 1.12 !important;
  text-wrap: balance;
}
html.theme-dark header.cinema-section-hero h1,
html.theme-dark header.bd-hero h1, html.theme-dark header.st-hero h1,
html.theme-dark header.ch-hero h1, html.theme-dark header.card-hero h1,
html.theme-dark header.nr-hero h1, html.theme-dark header.sec-hero h1,
html.theme-dark header.child-hero h1, html.theme-dark main > h1:first-child {
  color: var(--text-on-dark, #f6f1e7) !important;
}
/* One title size for every page family. */
header.cinema-section-hero h1,
header.bd-hero h1, header.st-hero h1, header.ch-hero h1, header.card-hero h1,
header.nr-hero h1, header.sec-hero h1, header.child-hero h1, main > h1:first-child,
body > h1:first-of-type, .page-column > h1:first-of-type, header.auto-hero h1 {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 2.9rem) !important;
  font-family: var(--font-serif) !important;
  font-weight: 700 !important;
  margin-top: 0.4rem;
}
header.cinema-section-hero h1 em, header.card-hero h1 em, header.bd-hero h1 em {
  font-style: italic !important;
  font-weight: 600 !important;
}

/* Eyebrows and breadcrumbs: gold small caps. */
header.cinema-section-hero .crumbs, header.bd-hero .crumbs, header.card-hero .crumbs,
header.st-hero .crumbs, header.ch-hero .crumbs, header.nr-hero .crumbs,
header .eyebrow, header .kicker, header .cardnum, .ch-hero .chapnum {
  font-family: var(--font-serif) !important;
  font-size: 0.74rem !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
}
html.theme-dark header .crumbs a, html.theme-dark header .crumbs,
html.theme-dark header .eyebrow, html.theme-dark header .kicker, html.theme-dark header .cardnum {
  color: var(--brand, #d8b366) !important;
}

/* Standfirst under the title: italic, softer cream, readable width. */
header.cinema-section-hero .sub, header.bd-hero .sub, header.st-hero .sub,
header.ch-hero .sub, header.card-hero .when, header.nr-hero .sub, header .standfirst {
  font-family: var(--font-serif) !important;
  font-style: italic !important;
  max-width: 46rem;
  line-height: 1.6 !important;
}
html.theme-dark header.cinema-section-hero .sub, html.theme-dark header.bd-hero .sub,
html.theme-dark header.st-hero .sub, html.theme-dark header.ch-hero .sub,
html.theme-dark header.nr-hero .sub, html.theme-dark header .standfirst {
  color: var(--text-on-dark-d, #c8b896) !important;
}

/* ---- Body headings ---------------------------------------------------- */
main h2, main h3, article h2, article h3, .content h2, .content h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
main h2 em, main h3 em { font-weight: 600; }

/* ---- Cards and panels: one gold hairline, one radius ------------------- */
html.theme-dark .ev-card, html.theme-dark .door, html.theme-dark .pathway,
html.theme-dark .src-card, html.theme-dark .tile, html.theme-dark .ask {
  border-radius: 5px;
}

/* ---- Quiet finishing ------------------------------------------------------ */
::selection { background: rgba(216, 179, 102, 0.35); }
html.theme-dark hr { border: 0; border-top: 1px solid var(--unify-rule); }

/* ---- Stragglers (22 Oct 2026 check) ------------------------------------- */
/* Some page stylesheets name Cormorant or Georgia directly for titles. */
html body :is(h1, h2, h3, h4):not(#_) {
  font-family: 'Source Serif 4', 'Iowan Old Style', Georgia, 'Times New Roman', serif !important;
}
/* Generated book-* pages: long citations and URLs wrap on phones. */
.page-column { overflow-wrap: anywhere; }
.page-column :not(pre) > code { white-space: normal; }
/* Their :target highlight was a light yellow; keep it legible on dark. */
html.theme-dark li:target, html.theme-dark h3:target { background: rgba(216, 179, 102, 0.18) !important; }

/* ---- Standard header for pages that had none (built by site-nav.js) ---- */
header.auto-hero {
  margin: 0.4rem 0 1.6rem;
  padding: 0.6rem 0 1.1rem;
  border-bottom: 1px solid var(--unify-rule);
}
header.auto-hero h1 { margin: 0.2rem 0 0.4rem !important; line-height: 1.12 !important; text-wrap: balance; }
html.theme-dark header.auto-hero h1 { color: var(--text-on-dark, #f6f1e7) !important; }
header.auto-hero .crumbs {
  font-family: 'Source Serif 4', Georgia, serif !important;
  font-size: 0.74rem !important; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  margin: 0 0 0.4rem;
}
html.theme-dark header.auto-hero .crumbs, html.theme-dark header.auto-hero .crumbs a { color: var(--brand, #d8b366) !important; border-bottom: 0; }
header.auto-hero .sub {
  font-style: italic; max-width: 46rem; line-height: 1.6; margin: 0.2rem 0 0;
}
html.theme-dark header.auto-hero .sub { color: var(--text-on-dark-d, #c8b896); }
