/*
 * fonts.css — self-hosted font faces.
 * Spec: Docs/Study/design/erp_design.md §3.2.
 *
 * Three families, two weights each (Latin) + Arabic + Mono medium.
 * unicode-range splits Latin and Arabic so a Latin-only page never fetches the Arabic file.
 * font-display: swap keeps first paint fast.
 */

/* Inter — Latin body + headings ------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Inter/Inter-Regular.da03732a27e1.woff2") format("woff2");
  unicode-range:
    U+0000-024F, U+0259, U+1E00-1EFF, U+2000-206F, U+2074, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Inter/Inter-SemiBold.2ede57db1a3a.woff2") format("woff2");
  unicode-range:
    U+0000-024F, U+0259, U+1E00-1EFF, U+2000-206F, U+2074, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Noto Sans Arabic — Arabic body + headings ------------------------- */
@font-face {
  font-family: "Noto Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/NotoSansArabic/NotoSansArabic-Regular.24f329fc6c2b.woff2")
    format("woff2");
  unicode-range:
    U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Noto Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/NotoSansArabic/NotoSansArabic-SemiBold.758b66cd934b.woff2")
    format("woff2");
  unicode-range:
    U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

/* JetBrains Mono — money, IDs, code -------------------------------- */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/JetBrainsMono/JetBrainsMono-Medium.a21e038a03f7.woff2") format("woff2");
  unicode-range: U+0000-024F, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD;
}

/* Body default stack (§3.2). Bootstrap's --bs-body-font-family is overridden here
   so Bootstrap utility classes inherit the right stack without further tweaks. */
:root {
  --bs-body-font-family:
    "Inter", "Noto Sans Arabic", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --bs-font-monospace:
    "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    monospace;
}

body {
  font-family: var(--bs-body-font-family);
}
