/* Inter, self-hosted.
 *
 * Replaces the Google Fonts <link> that base.html used to carry. That link was the one
 * request every page in the console made to a third party -- including the login page, before
 * anyone had authenticated -- and it made the "works on an isolated LAN" claim in
 * ../README.md false for the whole hub rather than just for the pages with charts.
 *
 * ONE VARIABLE FONT, NOT FIVE STATIC WEIGHTS. The old link requested 300/400/500/600/700; a
 * variable font covers 100-900 continuously in a single file, so this is one request instead
 * of five and the weights in between stop snapping to the nearest cut.
 *
 * The family is declared as `Inter` rather than fontsource's `Inter Variable` so that
 * tokens.css's --font-sans keeps working unchanged. That token also carries a real fallback
 * chain: if these files ever fail to load, the console must land on the platform UI font and
 * not on Times.
 *
 * font-display: swap -- text paints immediately in the fallback and re-renders when the font
 * arrives. The alternative (`block`) hides text for up to three seconds, which on a dashboard
 * someone is watching for an alert is the wrong trade.
 *
 * Two subsets: latin covers English, and latin-ext is what the de and es catalogues need.
 * Deliberately not subset further -- the console renders machine names, which are arbitrary
 * text from remote machines, and a missing glyph there is a hostname nobody can read.
 */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('./inter-latin-wght-normal.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;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('./inter-latin-ext-wght-normal.woff2') format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
        U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
