/*
 * The Dangify web typeface — one family ("Damoon") that renders each script with the right font,
 * mirroring the Flutter app (Poppins for Latin, Damoon for Arabic script).
 *
 * Per-script split via `unicode-range`: the browser downloads/uses the face whose range matches
 * each character, so a mixed string like "Dangify دانگیفای" gets Latin letters in Poppins and
 * Arabic-script letters (Persian/Kurdish/Arabic, incl. their numerals) in Damoon — automatically.
 * A pure-Latin page only fetches the Poppins faces; an RTL page also fetches Damoon.
 *
 * Poppins = Latin subset, woff2 (~11 KB/weight). Damoon = Arabic-script, woff2 + woff fallback.
 * font-display:swap so text paints immediately, then swaps in.
 *
 * Ranges (no overlap → deterministic):
 *   Latin  → U+0000–024F, U+0259, U+1E00–1EFF, U+2000–20BF, U+2100–214F, U+2212
 *   Arabic → U+0600–06FF, U+0750–077F, U+08A0–08FF, U+200C–200D, U+FB50–FDFF, U+FE70–FEFF
 */

/* ---- Latin → Poppins ------------------------------------------------------ */
@font-face {
    font-family: 'Damoon';
    src: url('/fonts/damoon/Poppins-Regular.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
    unicode-range: U+0000-024F, U+0259, U+1E00-1EFF, U+2000-20BF, U+2100-214F, U+2212;
}
@font-face {
    font-family: 'Damoon';
    src: url('/fonts/damoon/Poppins-Medium.woff2') format('woff2');
    font-weight: 500; font-style: normal; font-display: swap;
    unicode-range: U+0000-024F, U+0259, U+1E00-1EFF, U+2000-20BF, U+2100-214F, U+2212;
}
@font-face {
    font-family: 'Damoon';
    src: url('/fonts/damoon/Poppins-SemiBold.woff2') format('woff2');
    font-weight: 600; font-style: normal; font-display: swap;
    unicode-range: U+0000-024F, U+0259, U+1E00-1EFF, U+2000-20BF, U+2100-214F, U+2212;
}
@font-face {
    font-family: 'Damoon';
    src: url('/fonts/damoon/Poppins-Bold.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
    unicode-range: U+0000-024F, U+0259, U+1E00-1EFF, U+2000-20BF, U+2100-214F, U+2212;
}
@font-face {
    font-family: 'Damoon';
    src: url('/fonts/damoon/Poppins-ExtraBold.woff2') format('woff2');
    font-weight: 800; font-style: normal; font-display: swap;
    unicode-range: U+0000-024F, U+0259, U+1E00-1EFF, U+2000-20BF, U+2100-214F, U+2212;
}
@font-face {
    font-family: 'Damoon';
    src: url('/fonts/damoon/Poppins-Black.woff2') format('woff2');
    font-weight: 900; font-style: normal; font-display: swap;
    unicode-range: U+0000-024F, U+0259, U+1E00-1EFF, U+2000-20BF, U+2100-214F, U+2212;
}

/* ---- Arabic script (Persian / Kurdish / Arabic) → Damoon ------------------ */
@font-face {
    font-family: 'Damoon';
    src: url('/fonts/damoon/DAMOON-Regular.woff2') format('woff2'),
         url('/fonts/damoon/DAMOON-Regular.woff') format('woff');
    font-weight: 400; font-style: normal; font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200D, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
    font-family: 'Damoon';
    src: url('/fonts/damoon/DAMOON-Medium.woff2') format('woff2'),
         url('/fonts/damoon/DAMOON-Medium.woff') format('woff');
    font-weight: 500; font-style: normal; font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200D, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
    font-family: 'Damoon';
    src: url('/fonts/damoon/DAMOON-SemiBold.woff2') format('woff2'),
         url('/fonts/damoon/DAMOON-SemiBold.woff') format('woff');
    font-weight: 600; font-style: normal; font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200D, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
    font-family: 'Damoon';
    src: url('/fonts/damoon/DAMOON-Bold.woff2') format('woff2'),
         url('/fonts/damoon/DAMOON-Bold.woff') format('woff');
    font-weight: 700; font-style: normal; font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200D, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
    font-family: 'Damoon';
    src: url('/fonts/damoon/DAMOON-ExtraBold.woff2') format('woff2'),
         url('/fonts/damoon/DAMOON-ExtraBold.woff') format('woff');
    font-weight: 800; font-style: normal; font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200D, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
    font-family: 'Damoon';
    src: url('/fonts/damoon/DAMOON-Black.woff2') format('woff2'),
         url('/fonts/damoon/DAMOON-Black.woff') format('woff');
    font-weight: 900; font-style: normal; font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200D, U+FB50-FDFF, U+FE70-FEFF;
}
