/* ==========================================================================
   iWON webfonts — self-hosted

   Replaces the Google Fonts stylesheet this theme used to enqueue. Nothing
   here requests fonts.googleapis.com or fonts.gstatic.com any more, so the
   site has no third-party font dependency and no cross-origin request on
   first paint.

   WHAT WAS ACTUALLY NEEDED, MEASURED RATHER THAN ASSUMED
   -----------------------------------------------------
   The old URL requested seven faces: Space Grotesk 500/600/700, IBM Plex
   Mono 400/500, Inter 400/500. Walking every text-bearing element across all
   template types (home, page, service, blog index, single post, archive,
   search, 404) and reading the COMPUTED family + weight showed what is really
   rendered:

     Inter 400 . . . . 634    Space Grotesk 700 .  71
     IBM Plex Mono 400 240    Inter 500 . . . . .  84
     Space Grotesk 600 222    Inter 700 . . . . .   9  (from <strong>)
     Inter italic  . . .  8   Inter 900 . . . . .   6  (bare <h3>, see below)

   Space Grotesk 500 and IBM Plex Mono 500 were being downloaded and never
   used; they are not vendored.

   THREE FILES, NOT FIVE: Google serves Inter and Space Grotesk as VARIABLE
   fonts — one file per family covering the whole weight axis — which is why
   the 600 and 700 faces of Space Grotesk shared a URL. Declaring each file
   over its real axis (rather than pinning it to one weight) is free: same
   bytes, and every weight in range renders as a true instance instead of
   being synthesised by the browser.

   That is a small improvement over the old setup for Inter 700 and Inter 900,
   which were used but never served, so the browser was faking them. Inter
   ITALIC is still synthesised: italic is a separate file on a separate axis
   and the old stylesheet never requested it either, so this is unchanged.

   `font-display: swap` on every face — text paints immediately in the
   fallback and reflows once the webfont lands, which is the right trade for
   a content site.
   ========================================================================== */

/* Latin only. The unicode-range is copied verbatim from the stylesheet Google
   served, so a page containing a character outside it simply falls through to
   the next family in the stack rather than rendering tofu. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900; /* variable axis */
  font-display: swap;
  src: url('../fonts/inter-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;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700; /* variable axis */
  font-display: swap;
  src: url('../fonts/space-grotesk-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;
}

/* IBM Plex Mono is NOT variable on Google's side — this is the static 400
   face, the only mono weight the site renders. */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400-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;
}
