/* ==========================================================================
   Self-hosted fonts — NO Google Fonts, NO foreign CDN (CLAUDE.md §2).
   Files ship from our origin / ArvanCloud. All subset woff2, font-display swap.
   Acquire the actual files per FONTS.md. Paths resolve against the CDN base
   at build time (see tools/asset pipeline); the ../fonts/ paths below are the
   dev fallback.
   ========================================================================== */

/* Primary family — Vazirmatn (OFL): body + display (per owner). Regular/Medium/SemiBold/Bold. */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn/Vazirmatn-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* Display — Morabba (OFL): the characterful display face (wordmark, H1, section titles).
   TODO(assets): drop Morabba-Bold.woff2 / Morabba-Medium.woff2 into ../fonts/morabba/ and
   uncomment. Until then the --font-display stack falls back to Estedad (below), which IS
   installed, so the site renders in a real Persian face — just not the display personality.
@font-face {
  font-family: "Morabba";
  src: url("../fonts/morabba/Morabba-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Morabba";
  src: url("../fonts/morabba/Morabba-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
*/

/* Body — Estedad (OFL) — running text + UI */
@font-face {
  font-family: "Estedad";
  src: url("../fonts/estedad/Estedad-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Estedad";
  src: url("../fonts/estedad/Estedad-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Estedad";
  src: url("../fonts/estedad/Estedad-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Estedad";
  src: url("../fonts/estedad/Estedad-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Utility/data — JetBrains Mono (Apache-2.0), LATIN-ONLY subset.
   Persian numerals/data use Estedad tabular (font-feature-settings: "tnum").
   This face is for Latin technical tokens (mm, 42×42, g, min) + Z-height readout. */
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono/JetBrainsMono-Regular-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF, U+2200-22FF;
}
