/* ==========================================================================
   SmartAGM v2 — Typography
   Font files are loaded from Google Fonts in templates/home/v2/base.html
   (<link> + preconnect is faster than @import). This file holds the family,
   weight and size tokens plus the Arabic font switch.
   ========================================================================== */

:root {
  /* ---- Families --------------------------------------------------------- */

  --font-latin: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-arabic: "Noto Kufi Arabic", "Poppins", system-ui, sans-serif;
  --font-body: var(--font-latin);

  /* ---- Weights ---------------------------------------------------------- */

  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* ---- Size scale ------------------------------------------------------- */

  --text-2xs: 10px;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-md: 14px;
  --text-base: 15px;
  --text-lg: 17px;
  --text-xl: 19px;
  --text-2xl: 21px;
  --text-3xl: 32px;
  --text-4xl: 40px;
  --text-display: 60px;   /* hero headline, desktop max */

  /* ---- Line heights & tracking ------------------------------------------ */

  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.6;

  --tracking-tight: -0.02em;
  --tracking-snug: -0.01em;
  --tracking-eyebrow: 0.16em;
  --tracking-label: 0.10em;
}

/* Arabic pages (<html lang="ar">) and inline Arabic snippets
   (e.g. the "العربية" language link on English pages). */
:lang(ar) {
  --font-body: var(--font-arabic);
  font-family: var(--font-arabic);
}

/* Inline English snippets on Arabic pages (e.g. the "English" link). */
:lang(en) {
  --font-body: var(--font-latin);
  font-family: var(--font-latin);
}
