/**
 * Self-hosted V2T type stack.
 *
 * Families and scale are exactly those locked by V2T_DESIGN_SYSTEM section 5.1.
 * Only the DELIVERY MECHANISM differs from that section, which specifies the
 * Google Fonts CDN with a preconnect pair.
 *
 * WHY THE DEVIATION
 * The demo must run on a laptop with the wifi switched off. With no network the
 * CDN stylesheet resolves to nothing, `display=swap` paints the fallbacks, and
 * every heading renders in Georgia while every figure renders in Consolas. Section
 * 5.1 calls the serif-display-against-sans pairing "the single strongest brand
 * signal in the system", so following the mechanism would destroy the outcome the
 * mechanism exists to produce. Self-hosting is the only way to actually comply
 * with section 5. No token value changes. Recorded in docs/DECISIONS.md, CR-02.
 *
 * WHY VARIABLE FILES
 * Google no longer distributes static instances for these families: every weight
 * URL returns the same variable woff2 (verified by hashing the downloads). Three
 * latin files, 99.5 KB total, versus roughly 250 KB for eight upstream statics.
 * The weight allowlist that section 5.1 intends is still enforced, by the
 * --font-light through --font-bold tokens being the only weights any stylesheet
 * references.
 *
 * All three families are SIL Open Font License 1.1. See the OFL.txt beside each.
 */

@font-face {
    font-family: 'DM Serif Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/dm-serif-display/DMSerifDisplay-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    /* Range covers exactly the mandated stops: 300, 400, 500, 600, 700. */
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/ibm-plex-sans/IBMPlexSans-Variable.woff2') format('woff2-variations'),
         url('../fonts/ibm-plex-sans/IBMPlexSans-Variable.woff2') format('woff2');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    /* Mandated stops: 400 and 500. */
    font-weight: 400 500;
    font-display: swap;
    src: url('../fonts/jetbrains-mono/JetBrainsMono-Variable.woff2') format('woff2-variations'),
         url('../fonts/jetbrains-mono/JetBrainsMono-Variable.woff2') format('woff2');
}
