/*
 * Self-hosted default fonts for storefront-next — Vazirmatn (body/UI)
 * + Sahel (display/headings). Mirror of platform-admin/public/fonts/fonts.css
 * so both apps render identically and neither hits Google Fonts (blocked /
 * slow on Iran's national internet — the very reason platform-admin
 * self-hosts).
 *
 * `size-adjust` + `ascent-override` + `descent-override` give the
 * fallback `system-ui` stack metrics close enough to Vazirmatn that the
 * font-display: swap handoff stops causing CLS. Tuned against Vazirmatn's
 * own metrics (em-ascent 1050, em-descent 270, em-square 1000).
 *
 * Optional theme-switchable fonts are still lazy-loaded by utils/fontLoader.ts.
 */

/* ── Vazirmatn ── */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/vazirmatn/Vazirmatn-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 100%;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 100%;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/vazirmatn/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 100%;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/vazirmatn/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 100%;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 100%;
}

/* ── Sahel ── upstream ships no Medium; weight 500 maps to 400 explicitly
   below so the UA does NOT synthesize a fake medium (which renders blurry).  */
@font-face {
  font-family: 'Sahel';
  src: url('/fonts/sahel/Sahel-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sahel';
  src: url('/fonts/sahel/Sahel-Regular.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sahel';
  src: url('/fonts/sahel/Sahel-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sahel';
  src: url('/fonts/sahel/Sahel-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
