/*
 * Inter, self-hosted.
 *
 * Replaces the fonts.googleapis.com stylesheet that used to be enqueued as 'lichtwerk-fonts'.
 * Two reasons: every visitor's IP reached Google (and fonts.gstatic.com) before a single glyph
 * rendered, and the font files could only be discovered after Google's stylesheet had already
 * come back — an extra round trip on the critical path.
 *
 * This is the VARIABLE font, one file per subset covering the whole 100–900 range, instead of the
 * seven static cuts the old URL requested (300/400/500/600/700/800/900 — all seven are used in
 * style.css). `font-weight: 100 900` on the @font-face tells the browser it can interpolate any
 * weight in that range from this single file, so nothing in style.css has to change.
 *
 * Both subsets are declared, but a German page only ever downloads `latin` (48 KB): the
 * unicode-range on latin-ext means the browser fetches it only if a character from that range
 * actually appears — Polish, Czech or Hungarian spellings in a reference name, for instance.
 *
 * Files come from Google's own CDN (Inter is SIL Open Font License 1.1, so redistribution with
 * the project is permitted). To refresh them, request
 * https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap with a current
 * browser User-Agent and take the latin / latin-ext woff2 URLs out of the response.
 */

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

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