/*
AKABER — Self-hosted fonts.
Arabic-first: IBM Plex Sans Arabic is the primary typeface (loaded first).
Inter is the secondary/Latin typeface for numerals and any English content.

Both are open-source (SIL OFL 1.1) and safe to self-host and redistribute.

SETUP NOTE: place the corresponding .woff2 files in /assets/fonts/ using the
filenames referenced below. Recommended sources (official, OFL-licensed):
- IBM Plex Sans Arabic: https://github.com/IBM/plex
- Inter: https://github.com/rsms/inter
Only 4 weights per family are used, matching the type system (Document 06 §2.2).
*/

/* ===== IBM Plex Sans Arabic (primary) ===== */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== Inter (secondary / Latin / numerals) ===== */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Apply Inter automatically to Latin-script runs and numerals inside Arabic
   text, without affecting overall page direction or layout. */
:lang(en), .latin-text {
  font-family: "Inter", system-ui, sans-serif;
}
