/*
 * Self-hosted fonts, replacing the fonts.googleapis.com stylesheets.
 *
 * Built by scripts/build-fonts.js. Inter carries Cyrillic because the /ru/ pages render in it —
 * subsetting Latin-only would have left every Russian page in a fallback system font.
 *
 * Inter and JetBrains Mono are variable fonts, so one file each covers every weight the site asks
 * for (Inter is used at 100..900) — fewer requests than the Google stylesheet made.
 *
 * Note for the /cn/ and /jp/ pages: Inter has no CJK glyphs, so their body text falls back to the
 * reader's system font. That was already true when the fonts came from Google; self-hosting neither
 * causes nor fixes it. Shipping a CJK webfont is a multi-megabyte decision of its own.
 */

@font-face {
  font-family: 'Inter';
  src: url('../font/Inter-subset.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../font/JetBrainsMono-subset.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Audiowide';
  src: url('../font/Audiowide-subset.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
