/*
    Backoffice interface font — SELF-HOSTED.

    The prototype pulled Syne and JetBrains Mono from fonts.googleapis.com. That is a third-party request on
    every page load which sends the staff member's IP to Google before anything is rendered, and it is a
    render-blocking dependency on a host we do not control. Serving from our own origin removes both.

    Inter is SIL Open Font License 1.1, so redistribution from our own server is permitted.

    One VARIABLE file per subset covers every weight from 400 to 800 — four files, ~163 KB in total, against
    the nine static files the two Google families needed. The browser downloads only the subsets the page
    actually uses: a screen with no Greek on it never fetches the Greek file.

    Files come from the Google Fonts CDN and are refreshed by tools/fetch-inter.ps1. The unicode-range values
    below are Google's own, copied verbatim — they are what makes the per-subset loading work, and guessing
    them would silently pull the wrong file for Greek text.

    font-display: swap — the interface is behind a login and every screen is text, so showing the fallback
    immediately beats holding a blank page while a font arrives.
*/

/* greek-ext — polytonic. Rarely hit by the interface, but a lead's name can carry it. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/inter-greek-ext.woff2') format('woff2');
    unicode-range: U+1F00-1FFF;
}

/* greek — the whole Greek interface lives here. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/inter-greek.woff2') format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* latin-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin — also carries the euro sign, the arrows and the minus the tables use. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/inter-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
