/* =============================================================================
   NESHARIM FOUNDATION — FONTS
   =============================================================================
   Gilda Display — self-hosted STATIC font (replaces Newsreader/Fraunces).
   Only ships as Regular (weight 400), no italic, no variable axes — this is
   a real constraint the previous two typefaces didn't have. See notes below
   the @font-face block for how that affects h1/h2/h3/.mark .name/.values-label.
   ========================================================================== */

/* ============================================
   GILDA DISPLAY — self-hosted (single static cut)
   ============================================ */
@font-face {
  font-family: 'Gilda Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/gildadisplay-regular.woff2') format('woff2');
}
/* No italic file exists for Gilda Display. Any font-style:italic text set in
   --font-heading will be browser-synthesized (faux-oblique) unless you
   supply a real italic cut or fall back to a different italic font for
   those spots — see notes below. */

/* ============================================
   KARLA — self-hosted (unchanged from before)
   ============================================ */
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/karla-v33-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/karla-v33-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/karla-v33-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/karla-v33-latin-600.woff2') format('woff2');
}

/* ============================================
   Metric-matched fallback
   ============================================
   ascent-override / descent-override / line-gap-override computed directly
   from Gilda Display's own OS/2 typo metrics (USE_TYPO_METRICS flag is set,
   so browsers key off sTypoAscender/Descender/LineGap):
     sTypoAscender   892 / unitsPerEm 1000 = 89.2%
     sTypoDescender -285 / unitsPerEm 1000 = 28.5%
     sTypoLineGap      0 / unitsPerEm 1000 =  0%
   These are exact, not estimated.

   size-adjust is a rendered-width match between Gilda Display and the
   fallback (Georgia) and can't be read from font tables — it needs actual
   glyph rendering in a browser. 100% is a starting point; confirm with
   https://www.industrialempathy.com/perfect-ish-font-fallback/ for a
   pixel-accurate value.
   ============================================ */
@font-face {
  font-family: 'Gilda Display Fallback';
  src: local('Georgia'), local('Times New Roman');
  size-adjust: 100%;    /* placeholder — confirm with the fallback tool */
  ascent-override: 89.2%;
  descent-override: 28.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Karla Fallback';
  src: local('Arial'), local('Helvetica');
  size-adjust: 100%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}
