/* tokens.css: the book's palette and type for the website, loaded first on the pages of the book online (read/).
   Part of the design of the book online (Jed, 20 Nov 2026:
   "make it award winning design and matching the book"). Values: book/book.css (ink, soft ink, rules, tint), the
   printed interior's accent, the printed maps (Union navy, Confederate slate, house red for Charles), and the site's
   masthead navy, gilt and paper. Every name begins --bk- (the book), so that no older site variable of the same name (--rule, --gilt, --font-display and others in unify.css, cinematic.css, site-repairs.css, site-improve.css) can override it. Other style sheets read these names; nothing here styles an element by itself
   except the font stacks on :root. */
:root {
  /* the book (book/book.css) */
  --bk-ink: #111111;
  --bk-ink-soft: #444444;
  --bk-rule: #999999;
  --bk-rule-light: #cccccc;
  --bk-tint: #f2efe9;
  --bk-accent: #7a2a1d;          /* the printed chapter label, heading and table rules */
  /* the printed maps */
  --bk-union: #1f4e79;           /* Union navy */
  --bk-slate: #5f6670;           /* Confederates */
  --bk-charles: #9b1c1c;         /* house red: Charles only, on maps and charts */
  /* the site's masthead and page (the book's cover: navy and gilt) */
  --bk-navy: #1c2a3f;
  --bk-navy-deep: #141f30;
  --bk-gilt: #d8b366;
  --bk-gilt-deep: #8a6420;
  --bk-paper: #fbf7ee;
  --bk-paper-card: #fffaf0;
  --bk-frame: #a8874f;           /* the thin rule round a record image, as in book.css */
  /* the mat round a picture: the paper of the printed maps; in the dark theme the same paper dimmed (the tone a white
     picture takes there), and the ink of a caption laid on that dimmed paper (8.75:1 on it) */
  --bk-mat: #f8f3e9;
  --bk-mat-dim: #dad4c9;
  --bk-ink-mat: #3a3024;
  /* type: the book's own face first where the reader's device has it (Apple devices ship Iowan Old Style) */
  --bk-font-display: "Iowan Old Style", "Source Serif 4", "Palatino Linotype", Palatino, Georgia, serif;
  --bk-font-text: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --bk-font-ui: -apple-system, "Segoe UI", Roboto, sans-serif;
  /* links on paper: the site's one link blue and its hover */
  --bk-link: #24497a;
  --bk-link-hover: #16345c;
  /* one focus ring */
  --bk-focus: #8a6420;          /* 3:1 or more on paper (WCAG 1.4.11) */
  --bk-muted: #6a5a42;          /* small print at the foot of a page: 6.6:1 on paper */
}
html.theme-dark {
  --bk-ink: #efe8da;
  --bk-ink-soft: #c8b896;
  --bk-rule: #6f7a8c;
  --bk-rule-light: #3a4a63;
  --bk-tint: #1f2e45;
  --bk-accent: #e0a090;          /* the accent lifted for a dark page (contrast 7:1 on #131d2b) */
  --bk-charles: #e07a6e;         /* house red lifted for a dark page */
  --bk-paper: #131d2b;
  --bk-paper-card: #1f2e45;
  --bk-frame: #8a7444;
  --bk-focus: #e8cd8a;
  --bk-muted: #c8b896;
  /* links on a dark page: the gilt that dark chapter pages already give their links, and a paler gilt for the hover */
  --bk-link: #e8cd8a;
  --bk-link-hover: #fadea0;
}
