/* Shared SIL design tokens for the static journal site and the
   Janeway jot_style plugin. Adopted 2026-10-29 (Drew: "Apply it"); the investigation is in
   sil-theme-proposal\REPORT.md.
   Home: D:\dev\journal-platform\brand\sil-tokens.css, with fonts\ and sil-logo.svg beside it.
   build_site copies brand\ to _site\assets\brand\; install-jot-plugins.sh copies it to
   jot_style\static\jot_style\brand\. Font URLs are relative to this file, so the folder moves as one unit.

   Sources:
   - palette: sil.org theme variables --theme-palette-color-1..8 (saved page 2026-10-29) = Brand Manual v1.1
     p. 39 (SIL Blue #005CB9, SIL Bright Blue #00A7E1, #034D8A, orange #FF6B00 and its dark #C24F00, yellow #FFB71B);
   - type: Brand Manual v1.1 pp. 36-37 (Playfair headlines, Lora body, Source Sans 3 subheads/interface);
   - fallback faces: Gentium 7 (SIL, OFL 1.1), the PDF cover sheets' text font (make_cover.py, layout VGLS).
   Departures from sil.org, for WCAG AA: links SIL Blue (sil.org: navy, hover #FF6B00); buttons #C24F00
   (sil.org: #FF6B00, hover sky); hover #C24F00; focus ring SIL Blue, yellow on navy. */

/* ---- Brand faces: unchanged WOFF2 conversions of the Google Fonts TTFs (as jot_style ships today) ---- */
@font-face { font-family: "Playfair Display"; src: url("fonts/PlayfairDisplay-VariableFont_wght.woff2") format("woff2");
             font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("fonts/PlayfairDisplay-Italic-VariableFont_wght.woff2") format("woff2");
             font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/Lora-VariableFont_wght.woff2") format("woff2");
             font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/Lora-Italic-VariableFont_wght.woff2") format("woff2");
             font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/SourceSans3-VariableFont_wght.woff2") format("woff2");
             font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/SourceSans3-Italic-VariableFont_wght.woff2") format("woff2");
             font-weight: 200 900; font-style: italic; font-display: swap; }

/* ---- Coverage faces: Gentium 7, loaded only when a page uses a character in the range ----
   "JOT Greek" goes FIRST in the serif stacks so a whole Greek word comes from one font (Lora has only
   π μ Δ of Greek; Playfair only π μ Δ Ω-type letters; without this, "πνεῦμα" would mix two fonts).
   "JOT Extended" goes AFTER Lora/Playfair and fills IPA, African Latin, Latin Extended Additional
   (Ḥ ṣ ṭ ...), combining marks and arrows that Lora and Playfair lack.
   Files: SIL's published Gentium 7 WOFF2 (or a plain TTF->WOFF2 conversion, as for the brand faces);
   check the OFL Reserved Font Name terms before shipping a *subset* under the Gentium name. */
@font-face { font-family: "JOT Greek"; src: url("fonts/Gentium-Regular.woff2") format("woff2");
             font-weight: 400 500; font-style: normal; font-display: swap;
             unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: "JOT Greek"; src: url("fonts/Gentium-Italic.woff2") format("woff2");
             font-weight: 400 500; font-style: italic; font-display: swap;
             unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: "JOT Greek"; src: url("fonts/Gentium-Bold.woff2") format("woff2");
             font-weight: 600 800; font-style: normal; font-display: swap;
             unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: "JOT Extended"; src: url("fonts/Gentium-Regular.woff2") format("woff2");
             font-weight: 400 500; font-style: normal; font-display: swap;
             unicode-range: U+0100-024F, U+0250-02FF, U+0300-036F, U+1D00-1DFF, U+1E00-1EFF, U+2190-21FF,
                            U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JOT Extended"; src: url("fonts/Gentium-Italic.woff2") format("woff2");
             font-weight: 400 500; font-style: italic; font-display: swap;
             unicode-range: U+0100-024F, U+0250-02FF, U+0300-036F, U+1D00-1DFF, U+1E00-1EFF, U+2190-21FF,
                            U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JOT Extended"; src: url("fonts/Gentium-Bold.woff2") format("woff2");
             font-weight: 600 800; font-style: normal; font-display: swap;
             unicode-range: U+0100-024F, U+0250-02FF, U+0300-036F, U+1D00-1DFF, U+1E00-1EFF, U+2190-21FF,
                            U+2C60-2C7F, U+A720-A7FF; }

/* Option B only (report): Gentium as the whole article-text face. Not downloaded unless --font-text uses it. */
@font-face { font-family: "JOT Text"; src: url("fonts/Gentium-Regular.woff2") format("woff2");
             font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "JOT Text"; src: url("fonts/Gentium-Italic.woff2") format("woff2");
             font-weight: 400 500; font-style: italic; font-display: swap; }
@font-face { font-family: "JOT Text"; src: url("fonts/Gentium-Bold.woff2") format("woff2");
             font-weight: 600 800; font-style: normal; font-display: swap; }

:root {
  /* Brand palette (Brand Manual p. 39; sil.org --theme-palette-color-N in brackets) */
  --sil-blue: #005cb9;        /* SIL Blue [1] */
  --sil-blue-dark: #034d8a;   /* SIL Blue dark (p. 39) */
  --sil-sky: #00a7e1;         /* SIL Bright Blue [2]: rules and accents only, never text (2.76:1 on white) */
  --sil-orange: #ff6b00;      /* [3]: accents only, never text or a text background (2.86:1 with white) */
  --sil-orange-dark: #c24f00; /* p. 39 dark orange: buttons, hover */
  --sil-yellow: #ffb71b;      /* p. 39: focus ring on navy only */
  --sil-grey: #666666;        /* SIL Gray (Brand Manual; Drew, 2026-11-11; sil.org [4] is #727272): muted text, 5.74:1 on white, 5.49:1 on #f9fafb */
  --sil-navy: #003049;        /* [5]: headings, footer */
  --sil-bg: #f9fafb;          /* [6]: page */
  --sil-rule: #e4e4e4;        /* [7]: hairlines */
  --sil-white: #ffffff;       /* [8]: cards, header */
  --sil-text: #000000;        /* sil.org --theme-text-color */

  /* Roles: what pages should use */
  --c-page: var(--sil-bg);
  --c-surface: var(--sil-white);
  --c-text: var(--sil-text);
  --c-heading: var(--sil-navy);
  --c-muted: var(--sil-grey);
  --c-link: var(--sil-blue);
  --c-link-hover: var(--sil-orange-dark);
  --c-rule: var(--sil-rule);
  --c-accent: var(--sil-sky);
  --c-button: var(--sil-orange-dark);
  --c-button-hover: var(--sil-blue);
  --c-on-dark: #e8eef2;
  --c-focus: var(--sil-blue);
  --c-focus-on-dark: var(--sil-yellow);

  /* Type (Brand Manual pp. 36-37) */
  --font-head: "JOT Greek", "Playfair Display", "JOT Extended", Georgia, "Times New Roman", serif;
  --font-body: "JOT Greek", "Lora", "JOT Extended", Georgia, "Times New Roman", serif;
  --font-ui: "Source Sans 3", "JOT Extended", "Segoe UI", system-ui, sans-serif;
  /* Long-form article text (OCR first page, full text, references). Same as body by default; set to
     var(--font-text-gentium) to read article text in Gentium throughout (report, option B). */
  --font-text-gentium: "JOT Text", Georgia, "Times New Roman", serif;
  --font-text: var(--font-body);

  --radius: 4px;
  --radius-pill: 34px;        /* sil.org --theme-button-border-radius */
  --tracking-subhead: .14em;  /* "tracking 140", Brand Manual p. 37 */
}
