/* design-system-fonts.css — the two design-system faces, self-hosted (U-E8.0b).
 *
 * WHY THIS FILE IS NOT design-system/fonts.css, which is what it replaces.
 *
 * Everything under css/design-system/ is a VERBATIM copy of the Lani Prime
 * Design System, and architecture/mock-tokens-are-served.test.js asserts every
 * file there is byte-identical to its source — that row is the floor under the
 * typography ratchet's exclusion for that directory. A hand-written sheet
 * dropped in there would either redden that row or force it to be weakened,
 * and the exclusion is only honest while the copies are copies. So the
 * upstream design-system/fonts.css stays exactly as it is (one @import of
 * fonts.googleapis.com, copied, deliberately not linked, the record of what
 * the mocks asked for) and the self-hosted declarations live here, one
 * directory up, under the ratchet like every other Shell stylesheet.
 *
 * WHY SELF-HOSTED AT ALL. The Shell is font-src 'self' by ruling (AB#13470 /
 * D3): it makes no font request off-origin. The mocks name "Hanken Grotesk"
 * and "JetBrains Mono" first in --lp-font-ui and --lp-font-mono, and until
 * U-E8.0b both fell straight through to system faces — so every comparison
 * image differed from its mock on type, for a reason no styling could fix.
 *
 * WHY TTF AND NOT WOFF2. No woff2 compressor is on this box (checked:
 * woff2_compress and fontTools both absent), and the orchestrator's recipe
 * says ship the TTF rather than convert with something unavailable. The cost
 * is honest and worth writing down: these are ~130KB and ~300KB where woff2
 * would be roughly half. Converting them is a later, separate change —
 * re-record the sha256 when it happens, because the whole point of the lines
 * below is that the byte on disk is the byte upstream published.
 *
 * RENAMED ON THE WAY IN, and the sha256 below is of the unchanged BYTES. Upstream
 * calls these HankenGrotesk[wght].ttf and JetBrainsMono[wght].ttf. This dev server
 * does not percent-decode request paths - measured: the literal-bracket URL answers
 * 200 and the %5B/%5D form answers 404 - so a bracketed name is one client-side
 * encoding decision away from a font that silently does not load. The content is
 * byte-identical; only the filename differs, and checking a hash against upstream
 * means hashing their file, not matching their name.
 *
 * PROVENANCE. Downloaded 2026-09-22 from canonical upstream, not a CDN:
 *
 *   Hanken Grotesk — google/fonts, ofl/hankengrotesk, main
 *     https://raw.githubusercontent.com/google/fonts/main/ofl/hankengrotesk/HankenGrotesk%5Bwght%5D.ttf
 *     SIL Open Font License 1.1 — css/fonts/HankenGrotesk-OFL.txt
 *     Copyright 2021 The Hanken Grotesk Project Authors
 *     132892 bytes
 *     sha256 813b3f8fa0965405669a89b38e51bbefd95eef6b8e20d1cb2d8c10cce062662f
 *
 *   JetBrains Mono — JetBrains/JetBrainsMono, release tag v2.304
 *     https://raw.githubusercontent.com/JetBrains/JetBrainsMono/v2.304/fonts/variable/JetBrainsMono%5Bwght%5D.ttf
 *     SIL Open Font License 1.1 — css/fonts/JetBrainsMono-OFL.txt
 *     Copyright 2020 The JetBrains Mono Project Authors
 *     303144 bytes
 *     sha256 662a196d58f1183bf2d77428b6d5283fe3f45161ab021bea4036bc98e5cac016
 *
 * Both carry an fvar table (verified), so one file covers every weight the
 * design system asks for and there are no static weights to keep in step.
 */

@font-face {
    font-family: 'Hanken Grotesk';
    /* The variable range the family publishes. Naming it lets the browser
       synthesise nothing: a weight outside it would otherwise be faked. */
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    src: url('fonts/HankenGrotesk-Variable.ttf') format('truetype-variations');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-weight: 100 800;
    font-style: normal;
    font-display: swap;
    src: url('fonts/JetBrainsMono-Variable.ttf') format('truetype-variations');
}
