/* ניקיתי 2026 — self-hosted webfonts (Hebrew, RTL).
   No external request ships to the browser (speed + no license needed — both fonts are
   free on Google Fonts per CLAUDE.md's Round-3 typography decision).
   Heebo = body (variable, 100–900). Frank Ruhl Libre = display, weight 800 only
   (CLAUDE.md hard rule: the serif is used at >=22px ONLY — smaller headings use
   Heebo 900 with letter-spacing:-.03em instead; see tokens.css / theme.css).

   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;
}

/* ---------- Frank Ruhl Libre (display) — static, weight 800 only ---------- */
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/frank-ruhl-libre-800-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: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/frank-ruhl-libre-800-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;
}

/* ---------- 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 directly from
   the shipped woff2 files (unitsPerEm, hhea ascent/descent/lineGap, OS/2 xAvgCharWidth)
   against Arial's standard metrics (unitsPerEm 2048, xAvgCharWidth 904), via the
   capsize/Fontaine-style size-adjust formula. Referenced as the 2nd family in
   --font-body / --font-display (tokens.css). Re-verify against a real CLS measurement
   in the milestone-7 QA pass, per CLAUDE.md's lesson from the sibling theme. */
@font-face {
  font-family: 'Heebo Fallback';
  src: local('Arial'), local('Arial Hebrew');
  size-adjust: 120.1%;
  ascent-override: 87.2%;
  descent-override: 35%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Frank Ruhl Libre Fallback';
  src: local('Arial'), local('Arial Hebrew');
  size-adjust: 119.4%;
  ascent-override: 80.2%;
  descent-override: 28%;
  line-gap-override: 0%;
}
