/* Veraius Design System — Font Self-host
 * ---------------------------------------------------------------
 * Manrope is the canonical typeface (DESIGN.md: "Manrope only — no font mixing").
 * We self-host the variable-axis WOFF2 instead of pulling from Google Fonts CDN
 * to remove a third-party origin from the critical render path, gain stable
 * (non-rotating) URLs that work behind strict CSP/SRI, and unlock `<link rel=preload>`.
 *
 * Files:
 *   /fonts/manrope/latin.woff2       - Latin (24KB, weight 200..800 axis)
 *   /fonts/manrope/latin-ext.woff2   - Latin Extended for Turkish/Polish/etc. (15KB)
 *
 * Source: jsDelivr fontsource Manrope variable build (matches Google Fonts).
 * License: SIL Open Font License 1.1 (https://github.com/sharanda/manrope).
 *
 * IMPORTANT: this file is intentionally separated from veraius-base.css so it
 * has its own cache lifetime (rarely changes) and so the @font-face block does
 * not invalidate on every base.css edit. Loaded via <link> in App.razor head.
 * ---------------------------------------------------------------
 */

/* Latin Extended subset MUST be declared before Latin: browsers pick the first
 * matching @font-face whose unicode-range covers the requested glyph, but rules
 * declared earlier win on tie-breaks. Listing latin-ext first ensures Turkish
 * dotted-i / dotted-I / Ş / Ğ / Ç / Ö / Ü resolve to the proper subset font. */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('../fonts/manrope/latin-ext.woff2') format('woff2');
    unicode-range:
        U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
        U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('../fonts/manrope/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+2074, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono — fenced code blocks, terminals, log viewers, JSON inspectors.
 * License: SIL OFL 1.1 (https://github.com/JetBrains/JetBrainsMono).
 * Same subset-order rationale as Manrope above. */
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url('../fonts/jetbrains-mono/latin-ext.woff2') format('woff2');
    unicode-range:
        U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
        U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url('../fonts/jetbrains-mono/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+2074, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
