/* Self-hosted variable fonts (SIL OFL 1.1, licences in /fonts-site/).
   Subset from the upstream google/fonts files to Latin plus the site's own symbols
   (arrows, ≈ ≠ ≤ ≥ − × · … dashes, curly quotes, Şş). The file names change whenever
   the files do, because /fonts-site/ is cached as immutable. */

/* Archivo: instanced to wght 400-800, wdth 100-125 (what the site uses) */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url('/fonts-site/archivo-latin-2.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+015E-015F, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+2248, U+2260, U+2264-2265, U+FEFF, U+FFFD;
}

/* JetBrains Mono: wght 400-800 */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts-site/jetbrains-mono-latin-2.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+015E-015F, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+2248, U+2260, U+2264-2265, U+FEFF, U+FFFD;
}

/* Metric-matched stand-ins while the fonts load (font-display: swap), so the text
   reflows less when they arrive. Archivo's regular width is within 1.5% of Arial's. */
@font-face {
  font-family: 'Archivo fallback';
  src: local('Arial'), local('ArialMT'), local('Helvetica'), local('Liberation Sans');
  size-adjust: 99%;
  ascent-override: 88.7%;
  descent-override: 21.2%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'JetBrains Mono fallback';
  src: local('Menlo'), local('Consolas'), local('Courier New'), local('Liberation Mono'), local('DejaVu Sans Mono');
  size-adjust: 100%;
  ascent-override: 102%;
  descent-override: 30%;
  line-gap-override: 0%;
}
