/**
 * Self-hosted, and that is the point: nothing here reaches a CDN, so the page
 * renders the same whether or not fonts.googleapis.com is having a day.
 *
 * Space Grotesk and JetBrains Mono ship latin only. The interface exists in
 * thirteen languages, five of which are not latin at all, so Golos Text covers
 * cyrillic and everything else falls through to the system stack — which on
 * every platform that reads Chinese, Korean or Japanese already has a better
 * face for it than anything worth shipping over the wire.
 */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./space-grotesk/space-grotesk-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./space-grotesk/space-grotesk-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./space-grotesk/space-grotesk-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./jetbrains-mono/jetbrains-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./jetbrains-mono/jetbrains-mono-latin-500-normal.woff2') format('woff2');
}

/*
 * unicode-range keeps this one out of the way of the latin faces above: a
 * browser only downloads it once a cyrillic character is actually on the page,
 * so English readers never pay for it.
 */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./golos-text/golos-text-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./golos-text/golos-text-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
