/*
 * Self-hosted Inter Variable font (latin subset).
 *
 * Inter Variable: rsms.me/inter, MIT license. Single woff2 file ~46KB latin
 * subset (vs Montserrat regular + bold ~60KB). Variable fonts allow
 * every weight 100-900 from a single file -> zero extra round trips.
 *
 * Setup (one-time):
 *
 *   curl -sL -o tools/resources/fonts/inter-var-latin.woff2 \
 *     'https://cdn.jsdelivr.net/npm/@fontsource-variable/inter@5.0.16/files/inter-latin-wght-normal.woff2'
 *   ~/.local/venvs/fonttools/bin/python tools/resources/scripts/map-inter-arrows.py
 *
 * The second step maps U+2190/2192/2194/21D2/21D4 to the arrow glyphs the
 * subset already carries for its ligatures: without it those characters come
 * from a system font, a different one on every machine (BUILD.md section 5).
 *
 * Replaces Montserrat. Old pages referencing 'Montserrat' in the
 * font-family get Inter as the first match thanks to the fallback chain.
 *
 * font-display: swap avoids FOIT while keeping rendering fast.
 */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/tools/resources/fonts/inter-var-latin.woff2') format('woff2-variations'),
         url('/tools/resources/fonts/inter-var-latin.woff2') format('woff2');
    unicode-range: U+0000-024F, U+0259, U+1E00-1EFF, U+2000-206F, U+2074, U+20A0-20CF, U+2100-2150, U+2190-21FF, U+2212, U+2215, U+2C60-2C7F, U+A720-A7FF, U+FB00-FB06, U+FEFF, U+FFFD;
}

/*
 * Legacy fallback: Montserrat. The Montserrat woff2 files were removed
 * from the repo in the 2026-04-25 refactor. The @font-face entries are kept only
 * to avoid 404s on legacy templates that hard-code 'Montserrat'.
 * The font-family chain in public.css uses 'Inter' as the first match.
 */
