/* ==========================================================================
   Pingo — self-hosted web fonts (latin subset)
   --------------------------------------------------------------------------
   Sora
     Copyright 2019 The Sora Project Authors
     (https://github.com/sora-xor/sora-font)
     Licensed under the SIL Open Font License, Version 1.1 (OFL-1.1).

   JetBrains Mono
     Copyright 2020 The JetBrains Mono Project Authors
     (https://github.com/JetBrains/JetBrainsMono)
     Licensed under the SIL Open Font License, Version 1.1 (OFL-1.1).

   Both faces are used under the SIL Open Font License 1.1, which permits
   embedding, redistribution and self-hosting. Full licence text:
   https://openfontlicense.org/

   --------------------------------------------------------------------------
   NOTE ON THE FILES

   Google serves both families as VARIABLE fonts. The css2 endpoint returns a
   separate @font-face block per requested weight, but every block for a family
   points at the SAME woff2 (one variable file with a `wght` axis). So the six
   rules below are backed by two files, not six — this is byte-for-byte the
   same bytes the Google Fonts CDN served before, just delivered from our
   own origin.

   Declaring a single `font-weight` value against a variable font pins the
   `wght` axis to that value (CSS Fonts 4), so rendering is identical to the
   current Google-hosted setup — including the snapping behaviour, e.g. a
   `font-weight: 500` element falls to the 400 face rather than interpolating.

     sora-latin-var.woff2            25,284 bytes  (Sora 400/600/700/800)
     jetbrains-mono-latin-var.woff2  31,432 bytes  (JetBrains Mono 500/700)
                                     ------
                                     56,716 bytes total (~55 KB)

   Only the `latin` subset is shipped. See fonts-prep/nonascii-audit.txt — the
   three non-latin glyphs the site uses (U+2192 →, U+25AE ▮, U+25B3 △) are not
   covered by ANY subset Google serves today either, so they already render in
   a fallback font. Dropping latin-ext/greek/cyrillic/vietnamese changes
   nothing visually.
   ========================================================================== */

/* ---------------------------------------------------------------- Sora --- */

/* latin */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/sora-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;
}

/* latin */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/sora-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;
}

/* latin */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/sora-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;
}

/* latin */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/sora-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;
}

/* ------------------------------------------------------ JetBrains Mono --- */

/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  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;
}

/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  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;
}
