/* ============================================================================
   Inter, self-hosted.

   Loaded only when the font files are on disk. inc/fonts.php checks for the
   regular weight before it enqueues this file, so a theme installed without
   running tools/fetch-inter.ps1 makes no request that 404s and falls through to
   "Segoe UI", system-ui and -apple-system instead, which is the chain
   docs/brand/identity.md section 5 specifies.

   THE LICENSE TRAVELS WITH THE FONT. Inter is under the SIL Open Font License
   1.1, which requires the license to accompany the font files. OFL.txt sits
   beside the .woff2 files in assets/fonts, copied out of the upstream release
   rather than retyped, and the family is not renamed: the OFL forbids a
   derivative under the Reserved Font Name, and calling this "Orris Sans" would
   be exactly that.

   WHY NOT A VARIABLE FONT. One InterVariable.woff2 covering 100 to 900 is a
   single request, which is the usual argument for it, and it is around 110 KB
   for the latin subset against roughly 22 KB for each of three static cuts.
   This design uses exactly three weights and identity.md forbids the others
   outright ("There is no Light and no Black"), so the variable file would be
   paying for six weights nothing may use. Three statics also means the page
   fetches only the cuts it actually renders.
   ============================================================================ */

/* --------------------------------------------------------------------------
   font-display: swap, on all three.

   The alternatives were considered and rejected. `block` hides text for up to
   three seconds, which on a product page means the ingredient list is invisible
   while a font loads; that is the wrong trade on a page whose argument is that
   the reader can read what is in the bottle. `optional` gives the browser
   permission to ignore the font entirely on a slow connection, which produces a
   site that is a different shape for different readers.

   `swap` costs one reflow of the type. The layout does not move around it,
   because the fallback stack is metrically close enough at these sizes and
   because the header's mark carries explicit width and height, so the shift is
   confined to text reflowing in place rather than to boxes changing size.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  /* The latin range, so a page that happens to contain a Cyrillic or Greek
     character falls back for that character rather than the browser deciding
     the file is unsuitable. */
  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+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

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

/* NO ITALIC FILE IS SHIPPED.

   Italic has exactly one role in this system: a value that is an estimate
   rather than a measurement (identity.md section 5, and the application's own
   .estimated role, which is italic plus 0.7 opacity). That role appears on a
   figure, in short runs, and a synthesized oblique is acceptable on a figure in
   a way it would not be on a page of prose. A fourth request for a face used on
   one word per product page is not a trade worth making. */
