/* =========================================================
   Self-hosted fonts — served from this repo, no CDN, no
   Google Fonts request at runtime.

   Latin  → Poppins        (400 / 600 / 700), split into
                             latin + latin-ext subsets
   Persian → Vazirmatn      (400 / 500 / 600 / 700 / 800)
   Persian digits → Vazirmatn FD (same weights, Farsi digits
                             instead of Latin 0–9) — used only
                             on numeric strings in FA mode
   ========================================================= */

/* ---------- Poppins (Latin) ---------- */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/poppins-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    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: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/poppins-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/poppins-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    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: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/poppins-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/poppins-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    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: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/poppins-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Vazirmatn (Persian) ---------- */
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/Vazirmatn-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/Vazirmatn-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/Vazirmatn-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/Vazirmatn-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
}

/* ---------- Vazirmatn FD (Persian digits) ----------
   Same shapes, but 0–9 render as ۰۱۲۳۴۵۶۷۸۹. Opt into it with
   the .fd-digits utility class on elements that show FA-locale
   numbers (dates, stats) while in Persian mode. */
@font-face {
  font-family: "Vazirmatn FD";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/Vazirmatn-FD-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Vazirmatn FD";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/Vazirmatn-FD-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Vazirmatn FD";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/Vazirmatn-FD-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Vazirmatn FD";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/Vazirmatn-FD-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Vazirmatn FD";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/Vazirmatn-FD-ExtraBold.woff2") format("woff2");
}

html[dir="rtl"] .fd-digits { font-family: "Vazirmatn FD", var(--font-fa); }
