/* לזלול 2026 — Self-hosted webfonts (Hebrew, RTL).
   Replaces the design-system Google Fonts @import. No external request ships to the
   browser (speed + GDPR). Karantina = display, Heebo = body.

   Heebo is a VARIABLE font: one Hebrew file + one Latin file each cover the whole
   100–900 weight axis, so we declare a font-weight RANGE rather than one face per weight.
   Karantina is static — two weights (400, 700) shipped as separate files.

   Subsets: Hebrew (running text) + Latin (digits, ₪, ':' in times, prices, scores).
   font-display:swap so text paints immediately in the fallback and never blocks LCP. */

/* ---------- Heebo (body) — variable, 100–900 ---------- */
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 100 900;
  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;
}
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 100 900;
  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;
}

/* ---------- Karantina (display) — static 400 + 700 ---------- */
@font-face {
  font-family: 'Karantina';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/karantina-hebrew-400.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Karantina';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/karantina-latin-400.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: 'Karantina';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/karantina-hebrew-700.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Karantina';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/karantina-latin-700.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;
}

/* ---------- metric-matched fallbacks (CLS) ----------
   A system-font (Arial/Arial Hebrew) shaped to the real metrics of each webfont so that
   when the webfont swaps in, the text box doesn't reflow. Values computed from the shipped
   woff2 (unitsPerEm, hhea ascent/descent, avg Hebrew advance) vs a ~0.56em Hebrew-sans
   fallback. Referenced as the 2nd family in --font-body / --font-display. */
@font-face {
  font-family: 'Heebo Fallback';
  src: local('Arial'), local('Arial Hebrew');
  size-adjust: 111%;
  ascent-override: 94.3%;
  descent-override: 37.9%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Karantina Fallback';
  src: local('Arial'), local('Arial Hebrew');
  size-adjust: 74%;
  ascent-override: 116.2%;
  descent-override: 20.7%;
  line-gap-override: 0%;
}
