/*
 * Self-hosted web fonts.
 *
 * The redesign prototype loaded these from fonts.googleapis.com. That is not
 * done here, and the reason is not performance: a stylesheet fetched from
 * Google hands every visitor's IP address to Google on page load, before the
 * consent banner has asked anything. Both /privacy/ and /cookie/ state in
 * writing that this site loads no fonts or libraries from external servers and
 * contacts nobody but Google Analytics, and only with consent. Keeping that
 * true is why these four files are in the repository.
 *
 * Only the `latin` and `latin-ext` subsets are here. The site is Italian and
 * English; cyrillic, greek and vietnamese were offered and are not needed.
 *
 * Both are variable fonts, so each @font-face declares RANGES for weight and
 * width rather than one value — that is what makes `font-stretch: 62%` on the
 * display headings work from a single file.
 *
 * Note for anybody chasing a glyph: U+2192 (the right arrow) is in NO Google
 * subset of either family, latin or otherwise. It was already falling back to a
 * system font in the prototype, so it does so here too and nothing was lost by
 * self-hosting. Where the arrow matters it is drawn as SVG instead.
 *
 * Licensing, since these are now redistributed from this repository rather
 * than linked: Archivo (Omnibus-Type) and JetBrains Mono (JetBrains) are both
 * under the SIL Open Font License 1.1, which permits this. See LICENSES.md
 * beside them.
 */

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  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: 'Archivo';
  src: url('/assets/fonts/archivo-latin-ext.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrainsmono-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  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: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrainsmono-latin-ext.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
