/* design/tokens.css
 *
 * GENERATED by tools/build_tokens.py from design/palette.json. Do not edit;
 * change the palette in the canon, then palette.json, then run the tool.
 *
 * The system of 2026-09-28: white for reading and the herald, stone for slabs,
 * charcoal for stages; one colour per letter of the code; the five-step ramp;
 * the house red, cream and linen retired. The action is tone 1 of the ramp.
 */

/* the three faces, self-hosted since 2026-10-12 (tools/fetch_fonts.py), so no page calls Google */
/* design/fonts/fonts.css
 * Written by tools/fetch_fonts.py: the three faces, self-hosted, latin and latin-ext. SIL Open Font License. */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/bricolagegrotesque-normal-500-800-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/bricolagegrotesque-normal-500-800-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibmplexmono-normal-500-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibmplexmono-normal-500-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibmplexmono-normal-600-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibmplexmono-normal-600-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: 'Source Serif 4';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/sourceserif4-italic-400-600-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/sourceserif4-italic-400-600-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: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/sourceserif4-normal-400-600-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/sourceserif4-normal-400-600-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;
}

:root {
  color-scheme: light dark;
  /* -- the grounds ------------------------------------------------------------ */
  --white: #fbfbf9;      /* reading, and the herald's charges, ribbon, roundel and point */
  --ground: var(--white);
  --stone: #eceeed;      /* slabs: the test canvas, the candidates, a soft button */
  --charcoal: #14232b;   /* every keyline, the outline, the code, the ink, the stage */
  --ink: var(--charcoal);
  --cream: var(--white);  /* retired 2026-09-28: an alias so older pages keep rendering */
  --linen: var(--stone);  /* retired 2026-09-28: an alias so older pages keep rendering */

  /* -- the action: tone 1; hover darkens, pressed darkens further ------------- */
  --action: #374e5a;          /* white text 8.4:1 */
  --action-hover: #2a3d47;
  --action-deep: #1f2f37;
  --action-tint: rgba(55, 78, 90, 0.08);
  --action-tint-deep: rgba(55, 78, 90, 0.16);
  --on-action: var(--white);
  --lift: 0 6px 16px -8px rgba(20, 35, 43, 0.45);   /* a hovered primary rises: offset and blur, never a halo */

  /* -- the stage: a charcoal band in the light theme ------------------------ */
  --stage: #14232b;
  --on-stage: #fbfbf9;
  --on-stage-dim: #a9b4ba;
  --stage-line: #2f3e46;
  --stage-raised: #1c2d36;

  /* -- neutrals, cool ----------------------------------------------------------- */
  --paper: #ffffff;  /* a card or a field, one step above the page */
  --line: #dde1e2;  /* hairlines, dividers, card borders, the bar track */
  --line-strong: #c3cacd;  /* a control's border at rest */
  --ink-dim: #5a646a;  /* secondary text; 5.9:1 on white, 5.2:1 on stone */
  --ink-muted: #7a848a;  /* disabled marks only, never a word */

  /* -- the tonal ramp, every drawing's tones -------------------------------- */
  --tone-0: #14232b;
  --tone-1: #374e5a;
  --tone-2: #5c7d8f;
  --tone-3: #9aacb6;
  --tone-4: #e4dccb;

  /* -- the eight: one colour per letter of the code ------------------------- */
  --letter-f: #c85806;   /* Focused */
  --letter-v: #bd2f3e;   /* Varied */
  --letter-r: #07761d;   /* Rooted */
  --letter-w: #0468b3;   /* Widespread */
  --letter-c: #00707e;   /* Competence */
  --letter-m: #6f56b1;   /* Mastery */
  --letter-s: #b72b79;   /* Serial */
  --letter-p: #2d363d;   /* Parallel */

  /* -- type: three faces, six roles, fixed sizes -------------------------------- */
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --text-display: clamp(2.2rem, 1.6rem + 2vw, 2.625rem);
  --weight-display: 700;
  --leading-display: 1.1;
  --track-display: -0.015em;  /* a page title's one line, the home page's one sentence */
  --text-headline: 1.777rem;
  --weight-headline: 700;
  --leading-headline: 1.2;
  --track-headline: -0.01em;  /* a result section */
  --text-title: 1.333rem;
  --weight-title: 600;
  --leading-title: 1.3;
  --track-title: 0;  /* a card title, an aspect's name */
  --text-body: 1rem;
  --weight-body: 400;
  --leading-body: 1.55;
  --track-body: 0;  /* all reading text, 70ch measure */
  --text-label: 0.8125rem;
  --weight-label: 500;
  --leading-label: 1.3;
  --track-label: 0.06em;  /* uppercase labels; never a kicker above a heading */
  --text-data: 0.9375rem;
  --weight-data: 500;
  --leading-data: 1.3;
  --track-data: 0.02em;  /* a type code, a score, an item id; tabular figures on */
  --text-hero: clamp(3rem, 1.4rem + 5.4vw, 6rem);  /* the type name on the result reveal and the type page, one per page */
  --text-statement: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);  /* a test item's statement */
  --text-button: 1rem;  /* a button's label, Bricolage 600 */
  --text-button-lg: 1.125rem;  /* the one large call, start the test */
  --text-button-sm: 0.875rem;  /* a small button on a card or a banner */
  --text-code-lg: 1.75rem;  /* the type code in the comparison */
  --text-code-xl: 2.5rem;  /* the type code on the result reveal */
  --text-small: 0.9375rem;  /* a card's supporting line, a help line */
  --text-micro: 0.6875rem;  /* an end label on a phone bar; never body text */
  --text-wordmark: 1.25rem;  /* the name beside the icon in the site header */
  --track-wordmark: -0.03em;
  --measure: 70ch;

  /* -- the aspect bar ------------------------------------------------------ */
  --bar-track: 24px;
  --bar-marker: 30px;
  --bar-end: 124px;

  /* -- space: a 4px base, nine steps; sections 48 apart (compact, ruled) --- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --section: var(--s-7);
  --container: 1120px;
  --container-wide: 1280px;
  --container-read: 720px;

  /* -- shape ---------------------------------------------------------------- */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 24px;   /* a phone-width card or field, home (2026-10-14) */
  --r-pill: 999px;
  --hair: 1px;
  --rule: 1.5px;

  /* -- motion -------------------------------------------------------------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 900ms;

  /* -- the site, 2026-10-12: the values the locked type page used, as tokens -- */
  --ink-2: #454e53;  /* secondary text on the site, 8.2:1 on white */
  --card: #ffffff;  /* a card's ground, lifted off white or stone */
  --plate-light: #fbfbf9;  /* the light plate a drawing sits on */
  --tile-mute: #dde1e2;  /* a muted code tile on white, letter 12.2:1 */
  --tile-mute-ink: #14232b;  /* the letter on a muted tile */
  --tile-mute-ground: #ffffff;  /* a muted tile on stone or a tint */
  --tile-mute-dark: rgba(255, 255, 255, 0.14);  /* a muted tile on a dark ground */
  --tile-mute-ink-dark: #eef1f0;  /* its letter */
  --p-light: #56626b;  /* the Parallel tile and plate, lightened on dark grounds */
  --p-track-light: #6b7882;  /* the Parallel end of a track on dark grounds */
  --on-letter: #fbfbf9;  /* a letter on its colour, a line on a drawing's field */
  --stage-ink: #fbfbf9;  /* text on the charcoal stage */
  --stage-ink-dim: #c3ccd0;  /* secondary text on the stage */
  --stage-paper: #1c2d36;  /* a raised panel on the stage */
  --stage-line-strong: #56656d;  /* a control's border on the stage */
  --stage-edge: #3a4b55;  /* the hairline round a raised dark panel */
  --pure-white: #ffffff;  /* the hover of the white action on a stage */
  --word-mix: 85%;  /* a letter's colour on a word is this much the letter, the rest the ink, so it reads at 4.5:1 on white and stone (the launch audit, 2026-10-15; Focused alone was 4.3:1) */
  --r-chip: 10px;  /* a chip: the S tile's 6px plus its 4px inset, so the corners nest */
  --r-round: 50%;  /* a circle */
  --r-tile-s: 6px;  /* the S code tile */
  --r-tile-m: 8px;  /* the M code tile */
  --r-tile-l: 14px;  /* the L code tile */
  --r-tile-xl: 16px;  /* the XL code tile, the code taken apart */
  --track-s: 8px;  /* a quiet track, a worked example placed on the scale */
  --track-m: 14px;  /* the scale on a method page, the result's lenses */
  --track-l: 24px;  /* the aspect bar */
  --sh-card: 0 0 0 1px var(--line), 0 18px 36px -30px color-mix(in srgb, var(--charcoal) 45%, transparent);  /* the one card shadow: a hairline and a soft drop */
  --sh-lit: 0 0 0 2.5px var(--ink), 0 22px 40px -28px color-mix(in srgb, var(--charcoal) 60%, transparent);  /* the card that is this type, ringed */
  --sh-panel: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(20, 35, 43, 0.5);  /* a menu or panel over the page */
  --sh-drop: 0 1px 0 var(--line), 0 24px 40px -24px rgba(20, 35, 43, 0.45);  /* the phone strip's open list */
  --sh-float: 0 0 0 1px var(--line), 0 10px 24px -12px rgba(20, 35, 43, 0.55);  /* a floating button */
  --sh-toast: 0 0 0 1px #3a4b55, 0 10px 24px -12px rgba(20, 35, 43, 0.6);  /* a short message */
  --sh-pick: 0 1px 3px rgba(20, 35, 43, 0.18);  /* the theme switch's chosen button */
  --sh-badge: 0 6px 14px -6px color-mix(in srgb, var(--charcoal) 50%, transparent);  /* a badge riding a card's edge */
  --sh-hover: 0 14px 28px -20px rgba(20, 35, 43, 0.55);  /* a small card lifted on hover */
  --sh-raised-dark: 0 0 0 1px #3a4b55, 0 18px 36px -30px rgba(0, 0, 0, 0.7);  /* a charcoal panel on the dark theme */
  --sh-rule: 0 1px 0 var(--line);  /* the hairline under a bar */
  --sh-rule-up: 0 -1px 0 var(--line);  /* the hairline over the footer on the dark theme */
  --sh-under: inset 0 -2px 0 var(--ink);  /* the current item in a strip */
  --drop-shield: drop-shadow(0 24px 30px rgba(20, 35, 43, 0.28));  /* the hero shield's shadow, a filter */
  --ring-1: inset 0 0 0 1px;  /* a hairline ring; the colour follows it */
  --ring-15: inset 0 0 0 1.5px;  /* a control's ring */
  --ring-2: inset 0 0 0 2px;  /* a hover ring */
  --ring-25: inset 0 0 0 2.5px;  /* a heavy ring */
  --ring-35: inset 0 0 0 3.5px;  /* the open marker's ring */
  --halo-2: 0 0 0 2px;  /* an outer ring */
  --halo-3: 0 0 0 3px;  /* an outer ring that cuts a marker from its track */
  --halo-4: 0 0 0 4px;  /* the or's ring */
  --halo-5: 0 0 0 5px;  /* the or's ring on a figure */
}

/* the dark theme: the same tokens, a second set; the eight and the ramp do not change */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --white: #11181c;
    --ground: #11181c;
    --stone: #1a242a;
    --paper: #182127;
    --line: #2f3a41;
    --line-strong: #43505a;
    --ink: #eef1f0;
    --ink-dim: #a3adb2;
    --ink-muted: #6f7a80;
    --action: #fbfbf9;
    --action-hover: #ffffff;
    --action-deep: #dfe5e8;
    --on-action: #14232b;
    --action-tint: rgba(251, 251, 249, 0.10);
    --action-tint-deep: rgba(251, 251, 249, 0.18);
    --ink-2: #b6bfc3;
    --card: #1f2a31;
    --plate-light: #e6eae8;
    --tile-mute: rgba(255, 255, 255, 0.14);
    --tile-mute-ink: #eef1f0;
    --tile-mute-ground: rgba(255, 255, 255, 0.14);
    --sh-card: 0 0 0 1px var(--line), 0 18px 36px -30px rgba(0, 0, 0, 0.7);
    --word-mix: 50%;
  }
}
:root[data-theme="dark"] {
  --white: #11181c;
  --ground: #11181c;
  --stone: #1a242a;
  --paper: #182127;
  --line: #2f3a41;
  --line-strong: #43505a;
  --ink: #eef1f0;
  --ink-dim: #a3adb2;
  --ink-muted: #6f7a80;
  --action: #fbfbf9;
  --action-hover: #ffffff;
  --action-deep: #dfe5e8;
  --on-action: #14232b;
  --action-tint: rgba(251, 251, 249, 0.10);
  --action-tint-deep: rgba(251, 251, 249, 0.18);
  --ink-2: #b6bfc3;
  --card: #1f2a31;
  --plate-light: #e6eae8;
  --tile-mute: rgba(255, 255, 255, 0.14);
  --tile-mute-ink: #eef1f0;
  --tile-mute-ground: rgba(255, 255, 255, 0.14);
  --sh-card: 0 0 0 1px var(--line), 0 18px 36px -30px rgba(0, 0, 0, 0.7);
  --word-mix: 50%;
}

/* a stage: any element with .stage takes the charcoal band and a white action */
.stage { background: var(--stage); color: var(--on-stage); --ink: var(--on-stage); --ink-dim: var(--on-stage-dim); --line: var(--stage-line); --paper: var(--stage-raised);
  --action: var(--white); --action-hover: #ffffff; --action-deep: #dfe5e8; --on-action: var(--charcoal); --action-tint: rgba(251, 251, 249, 0.10); --action-tint-deep: rgba(251, 251, 249, 0.18); --lift: 0 6px 18px -6px rgba(0, 0, 0, 0.6); }

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur: 0ms; --dur-slow: 0ms; }
}

/* Role classes: the six type roles as one class each. */
.t-display { font-family: var(--font-display); font-size: var(--text-display); font-weight: var(--weight-display); line-height: var(--leading-display); letter-spacing: var(--track-display); }
.t-headline { font-family: var(--font-display); font-size: var(--text-headline); font-weight: var(--weight-headline); line-height: var(--leading-headline); letter-spacing: var(--track-headline); }
.t-title { font-family: var(--font-display); font-size: var(--text-title); font-weight: var(--weight-title); line-height: var(--leading-title); letter-spacing: var(--track-title); }
.t-body { font-family: var(--font-body); font-size: var(--text-body); font-weight: var(--weight-body); line-height: var(--leading-body); letter-spacing: var(--track-body); }
.t-label { font-family: var(--font-display); font-size: var(--text-label); font-weight: var(--weight-label); line-height: var(--leading-label); letter-spacing: var(--track-label); text-transform: uppercase; }
.t-data { font-family: var(--font-mono); font-size: var(--text-data); font-weight: var(--weight-data); line-height: var(--leading-data); letter-spacing: var(--track-data); font-variant-numeric: tabular-nums; }

