/* Inter Display, subset and re-wrapped as WOFF2.

   The Webflow export ships four raw .ttf files. TrueType barely compresses —
   the four together are 757K over the wire even gzipped, which was about
   three quarters of the compressed weight of a page, all of it in front of
   the first line of text. Subset to the Latin range the site actually uses
   and wrapped in WOFF2, the same four are 99K. Hinting is kept: it costs 7K
   a weight and dropping it changes how the type renders on Windows.

   This file must load AFTER the Webflow stylesheet. Nothing here edits that
   file — it is regenerated on every export and any change would be lost. The
   two sets of rules coexist instead:

     - Webflow declares Interdisplay with no unicode-range, so its faces cover
       everything.
     - These declare the same family and weights over the Latin range, and
       being later in document order they win wherever they apply.

   A font is only fetched when a character actually needs it, so on a normal
   page the .ttf files are never requested. The arrangement is also the
   fallback: set a name in Polish or Vietnamese and the character falls
   outside the ranges below, Webflow's face is still the one that covers it,
   and that page — only that page — pulls the full .ttf. Nothing breaks, it
   just costs what it used to.

   Rebuild after a font change (needs fonttools + brotli):

     pyftsubset <src>.ttf --output-file=assets/fonts/inter-display-<w>.woff2 \
       --flavor=woff2 --unicodes="<the range below, as one comma-joined list>"
*/

/* Latin, matching the range Google Fonts uses, plus two additions the copy
   needs: U+2190-2193, the arrows set as text, and U+20B9, the rupee sign the
   pricing page uses 18 times. Inter Display has a glyph for each, so both are
   worth subsetting in — adding the rupee cost 640 bytes across the four
   weights and saved /pricing a 403K .ttf on every load.

   Anything rendered on the site that Inter Display has no glyph for has to
   come out of the markup, not be worked around here. A browser that cannot
   find a glyph in the face it picked walks the rest of the family before it
   gives up, so a single such character reaches Webflow's .ttf faces and pulls
   one down whole. Adding the codepoint to the ranges below does not help: it
   only changes which face is asked first. The modal's close button was one
   ✕ and cost 394K a page load until it became an SVG. */

@font-face {
  font-family: Interdisplay;
  src: url("/assets/fonts/inter-display-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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+2074, U+20AC, U+20B9, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Interdisplay;
  src: url("/assets/fonts/inter-display-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  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+2074, U+20AC, U+20B9, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Interdisplay;
  src: url("/assets/fonts/inter-display-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  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+2074, U+20AC, U+20B9, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Interdisplay;
  src: url("/assets/fonts/inter-display-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  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+2074, U+20AC, U+20B9, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
