/* ============================================================================
   Self-hosted typefaces.

   `tokens.css` has always asked for Inter and Heebo; until now neither shipped,
   so every screen fell back to whatever the operating system happened to have,
   and `font-feature-settings: "cv05" "ss01"` in base.css addressed a font that
   was not there. These are the same two families, served from this origin so the
   strict `default-src 'self'` policy stays intact and no third party learns who
   is reading a kitchen's numbers.

   Both files are variable (weight 400–700), so one request covers every weight
   the product uses. Subsets are split the way Google Fonts splits them: a
   Hebrew page never downloads Latin Extended, and vice versa.

   `font-display: swap` on purpose. The product is used on tablets over kitchen
   Wi-Fi; text that is readable in the fallback face beats text that is invisible
   until a font arrives.
   ========================================================================== */

/* ── Inter — Latin, the interface face ──────────────────────────────────── */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter-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;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter-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;
}

/* ── Heebo — Hebrew, the default language of the product ────────────────── */
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/heebo-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

/*
 * Heebo's Latin subset covers the digits and the roman words that appear inside
 * Hebrew sentences — supplier codes, SKUs, "PO", "kg". Without it those letters
 * would come from Inter mid-word at a different vertical rhythm, which is
 * precisely the mixed-script seam a Hebrew-first product must not show.
 */
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/heebo-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;
}
