/* The app's own two faces, SELF-HOSTED and served from our domain only.
 *
 * Linked from public/index.html. This file replaced an @import from Google's
 * font CDN, which had every page — a fan phone included — contacting a third
 * party.
 *
 * TWO RULES LEARNED THE HARD WAY, both enforced by
 * backend/tests/test_design_fonts_and_sizes.py:
 *
 * 1. EVERY AXIS IS KEPT. `font-optical-sizing` is `auto` by default, so the
 *    browser drives DM Sans's `opsz` axis from the font size; pinning it made
 *    text up to 9% wider. The full weight range is kept too — the app uses
 *    font-black (900) and font-extralight (200), both outside a 300–800 clip.
 *
 * 2. LATIN AND LATIN-EXTENDED ARE SEPARATE FILES, with unicode-range, exactly
 *    as the CDN did it. English and French live entirely in `latin` (it carries
 *    é à ç ô û î ï and the œ/Œ pair), so an EN/FR page never downloads the
 *    extended file at all. The italic files are fetched only when italic text
 *    is actually on the page.
 *
 * Licence: SIL Open Font License 1.1 for both families —
 * /fonts/licences/dm-sans-OFL.txt and /fonts/licences/manrope-OFL.txt.
 */

/* ── DM Sans ─────────────────────────────────────────────────────────── */
@font-face {
    font-family: 'DM Sans';
    src: url('/fonts/dm-sans-latin.woff2') format('woff2');
    font-weight: 100 1000;
    font-style: normal;
    font-display: swap;
    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;
}
@font-face {
    font-family: 'DM Sans';
    src: url('/fonts/dm-sans-ext.woff2') format('woff2');
    font-weight: 100 1000;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2113, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'DM Sans';
    src: url('/fonts/dm-sans-italic-latin.woff2') format('woff2');
    font-weight: 100 1000;
    font-style: italic;
    font-display: swap;
    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;
}
@font-face {
    font-family: 'DM Sans';
    src: url('/fonts/dm-sans-italic-ext.woff2') format('woff2');
    font-weight: 100 1000;
    font-style: italic;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2113, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Manrope ─────────────────────────────────────────────────────────── */
@font-face {
    font-family: 'Manrope';
    src: url('/fonts/manrope-latin.woff2') format('woff2');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
    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;
}
@font-face {
    font-family: 'Manrope';
    src: url('/fonts/manrope-ext.woff2') format('woff2');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2113, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
