@layer page {
/*
 * Shared typography for every Klyrio front-end (fly-away, voyager, fly-landing).
 *
 * The apps used to declare `font-family: 'Segoe UI', 'Inter', sans-serif`, but
 * neither family is installed on Linux and neither was self-hosted, so both
 * names were skipped and each browser resolved the generic `sans-serif` from
 * its *own* default-font preference: Firefox took fontconfig's DejaVu Sans
 * (wide, heavy) while Chrome took Liberation Sans (Arial metrics, lighter).
 * Same page, visibly different weight. Self-hosting Inter removes the guess:
 * every browser on every OS now downloads and renders the exact same face.
 *
 * Served from the `/neutrino` mount that all three services already expose, so
 * there is a single copy of both the font files and this stack. The `url()`
 * paths are relative to this file on purpose — they stay correct whatever
 * router base path a service is deployed under.
 */

/* Inter variable, weight axis 100-900. Subsets are split by `unicode-range` so
   a French page never pays for the Greek glyphs. Codepoints outside every range
   below (Chinese, for the ZHO locale) fall through to the next family in
   `--app-font`. */

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

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('fonts/inter-greek-wght-normal.woff2') format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1,
        U+03A3-03FF;
}

:root {
    /* The one place to change the app typeface. `Segoe UI` stays as the first
       fallback so a Windows client still looks right if the webfont fails to
       load, followed by families that actually exist on Linux and macOS rather
       than a bare `sans-serif` the browser resolves however it likes. */
    --app-font: 'Inter', 'Segoe UI', 'Liberation Sans', Arial, Helvetica, sans-serif;
}

/* Form controls do NOT inherit `font-family`: the UA stylesheet gives them the
   browser's own default UI font, so `body { font-family: var(--app-font) }`
   stops at their border. That is why the main bar — whose nav items are
   `<button>`s and whose accommodation picker is a `<select>` — kept rendering
   in a different, heavier face than the page around it, Chrome and Firefox each
   picking their own. Only `font-family` is reset here; `font-size` stays with
   the UA default so no existing layout shifts. */
button,
input,
select,
optgroup,
textarea {
    font-family: inherit;
}

}
