/* Sit Down First (formerly Choices and Considerations): design tokens.
   Every value here traces to a decision written in the build brief
   (COWORK/_COMMAND-CENTER/INBOX/BRIEF_CHOICES-AND-CONSIDERATIONS_2026-10-02_build-handoff.md).
   Contrast measured 2026-10-02 (WCAG relative luminance). */

/* Type, hosted here (no third-party request). Archivo and EB Garamond, SIL Open Font License 1.1:
   assets/fonts/OFL-*.txt. Files are Google Fonts' own woff2 cuts, Latin and Latin Extended only. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("/assets/fonts/archivo-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/eb-garamond-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Colour. Paper near-neutral, not cream. Ink is iron-gall blue-black. */
  --paper: #F5F5F2;
  --paper-2: #E6E7E3;      /* the one tinted surface tier; ink on it 13.3:1 */
  --ink: #13202E;          /* on paper 15.1:1 */
  --ink-2: #4A5664;        /* secondary text, derived from the ink hue; on paper 6.9:1, on paper-2 6.0:1 */
  --rule: #13202E;
  --hair: #C3C8CC;         /* decorative hairlines only (exempt from 3:1) */
  --line: #7F8994;         /* outlines of controls: 3.25:1 on paper (WCAG 1.4.11 needs 3:1) */
  --blue: #1E4E7A;         /* Prussian blue: links and option A. On paper 7.9:1; paper on blue 7.9:1 */
  --yellow: #F2C230;       /* lamp yellow: insight and option B. Ink on yellow 9.8:1. Never yellow text on paper */
  --night: #0F1C2B;        /* the one dark surface per page, for Scripture */
  --night-ink: #F5F5F2;    /* on night 15.7:1 */
  --night-ink-2: #A9B4BF;  /* on night 8.2:1 */
  --night-blue: #7FA6CC;   /* links on night 6.7:1 */
  --red: #B3261E;          /* warnings only. On paper 6.0:1 */
  --on-yellow: #13202E;    /* text that sits on lamp yellow (highlighter, selection), in both themes */

  --a: var(--blue);
  --b: var(--yellow);

  /* Type. Archivo teaches; EB Garamond carries Scripture only. */
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;

  --fs-body: 1.125rem;     /* 18px */
  --fs-small: 1rem;        /* 16px floor */
  --fs-meta: 0.8125rem;    /* 13px, metadata and credits only */
  --fs-h3: 1.375rem;
  --fs-h2: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --fs-h1: clamp(2.5rem, 1.2rem + 5.4vw, 6rem);
  --fs-display: clamp(2.75rem, 1rem + 7vw, 7.5rem);
  --lh-body: 1.6;
  --lh-tight: 0.98;

  /* Space: one scale. */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 7rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --measure: 40rem;        /* about 68 characters at 18px */
  --wide: 78rem;

  /* Shape. Panels and rules square; buttons and tokens 6px; round only for weights that are data. */
  --r-control: 6px;
  --bw: 1px;
  --bw-strong: 2px;

  /* Motion. Two curves, few durations. Instruments move only when touched. */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-swing: cubic-bezier(0.34, 1.4, 0.64, 1);
  --t-fast: 120ms;
  --t-mid: 220ms;
  --t-slow: 420ms;

  color-scheme: light;
}

/* Evening: a setting, never the default (light reads better; usability file). Iron-gall night blue at hue
   210 to 211, never lavender or brown (SLOP-REGISTER 2.1); accents softened to 51 to 54% saturation so
   nothing glows. Every pair measured 2026-10-04: ink 14.5:1, ink-2 8.1:1, links 7.8:1, control
   outlines 3.9:1, red 5.7:1, dark ink on evening yellow 7.7:1. */
:root[data-theme="evening"] {
  color-scheme: dark;
  --paper: #121D29;
  --paper-2: #1A2735;
  --ink: #E9EDF0;
  --ink-2: #A9B4BF;
  --rule: #E9EDF0;
  --hair: #2F3C4A;
  --line: #6C7A88;
  --blue: #8DB4DA;
  --yellow: #CDAE5C;
  --night: #0B141D;
  --night-ink: #E9EDF0;
  --night-ink-2: #A9B4BF;
  --night-blue: #8DB4DA;
  --red: #E57368;
  --on-yellow: #13202E;
}
