/* Self-hosted webfonts.
 *
 * These were loaded from fonts.googleapis.com, which cost two extra DNS
 * lookups, two TLS handshakes and a render-blocking stylesheet on a
 * third-party origin before a single glyph could paint — for the largest
 * asset on seven of the eight surfaces. Serving them from our own origin
 * removes the third party from the critical path entirely, and removes a
 * third party from the privacy story on a page that promises no third-party
 * requests.
 *
 * Both are VARIABLE fonts: one file each covers every weight the site uses,
 * which is why four Archivo weights and three JetBrains Mono weights resolve
 * to two files totalling 66 KB.
 *
 * Latin subset only (U+0000-00FF and friends) — the site is English. If
 * another script is ever needed, take the matching subset from the same
 * Google CSS rather than shipping the full face.
 *
 * Licence: both are SIL Open Font License 1.1, which permits redistribution
 * and self-hosting. See fonts/OFL.txt.
 *
 * To refresh: fetch the Google CSS with a modern browser User-Agent, take the
 * @font-face blocks whose unicode-range begins U+0000-00FF, and download the
 * woff2 each one points at.
 */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  /* Variable: one file serves the whole range the site uses (400-700). */
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/archivo-latin-var.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin-var.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;
}
