/*
 * Inter — vendored locally.
 *
 * Was loaded from fonts.googleapis.com, which meant a third-party request on
 * every page load: a hard dependency on hospital Wi-Fi reaching Google, and
 * staff IP addresses leaving the hospital network on every request.
 *
 * ONE FILE PER SUBSET, because the file is a variable font.
 *
 * The ten files this used to ship — `inter-{latin,vietnamese}-{400,500,600,
 * 700,800}.woff2` — were byte-for-byte identical within each subset. The
 * fetched Inter carries `fvar`, `HVAR` and `MVAR` tables, i.e. it is the
 * variable font, so a single file covers the whole weight axis and the browser
 * picks the weight from `font-weight`. The duplicates were therefore 196 KB of
 * dead weight (67% of the directory) and a `@font-face` block per weight that
 * misdescribed what was actually shipped.
 *
 * Two subsets, because those are the only characters this app renders:
 *   - `latin`      — ASCII, punctuation, the digits in clock times
 *   - `vietnamese` — the entire UI. `latin-ext` was dropped: it covers Central
 *                    European characters that appear nowhere here.
 *
 * The two `unicode-range` lists are disjoint, so a Vietnamese character pulls
 * the 10 KB file and never the 48 KB one.
 *
 * Licence: SIL Open Font License 1.1, bundled with the font files.
 *
 * Regenerating: see the note in README.md.
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  /* The variable axis range, not one weight. A single value here would pin every
     `font-bold` / `font-extrabold` / `font-black` in the UI to the same weight
     and the interface would lose all of its emphasis. */
  font-weight: 100 900;
  font-display: swap;
  src: url(./inter-vietnamese.woff2) format('woff2-variations');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(./inter-latin.woff2) format('woff2-variations');
  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;
}
