/* plus-jakarta-sans.css — the font, served by us, never by Google.

   WHY THIS FILE EXISTS:
   Linking fonts.googleapis.com made every page wait on Google before it could
   paint text: a DNS lookup and a TLS handshake to googleapis, then ANOTHER
   pair to gstatic where the actual font lives. Four round trips to an outside
   company, on the critical path of our own site, on every first visit.
   Now it is two files off our own server, cached forever after the first load.

   IT IS A VARIABLE FONT, which is why there are only two files and not ten.
   One file per alphabet carries every weight from 400 to 800 inside it, so
   `font-weight: 400 800` below is a RANGE, not a typo. Google was already
   serving it this way; ten @font-face blocks all pointed at these same two
   files.

   font-display: swap means text paints immediately in a system font and
   upgrades when ours lands. Nobody stares at a blank page.

   unicode-range is why the browser is smart about this: a page with no
   accented characters downloads latin only and never fetches latin-ext at all.

   NOTE: this font ships no Greek subset, so a character like the tau in
   "Rado | τsc" falls back to a system font for that one glyph. That was
   already true when Google served it. Nothing changed.

   To change weights or add a subset, rerun scratchpad/grab_fonts.py.
*/

/* latin-ext: accented characters. Only downloaded if the page uses one. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(./plus-jakarta-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin: the one nearly every page actually needs. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(./plus-jakarta-sans-latin.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;
}
