/*
 * وزن‌های IRANYekanX. همه محلی هستند و هیچ درخواستی به خارج نمی‌رود.
 *
 * نکته مهم درباره سرعت: صرفِ تعریف کردن یک @font-face هزینه‌ای ندارد؛
 * مرورگر فقط وزن‌هایی را دانلود می‌کند که واقعاً روی متنی از صفحه به کار
 * رفته باشند. پس Thin و UltraLight اینجا تعریف می‌شوند تا در دسترس باشند،
 * ولی تا وقتی جایی استفاده نشوند حتی یک بایت هم دانلود نمی‌شوند.
 *
 * font-display: swap یعنی متن بلافاصله با فونت جایگزین دیده می‌شود و
 * صفحه منتظر فونت نمی‌ماند.
 */

/* وزن نازک - Thin (100) */
@font-face {
    font-family: 'IRANYekanX';
    src: url('../fonts/IRANYekanX-Thin.woff2') format('woff2'),
         url('../fonts/IRANYekanX-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

/* وزن خیلی سبک - UltraLight (200) */
@font-face {
    font-family: 'IRANYekanX';
    src: url('../fonts/IRANYekanX-UltraLight.woff2') format('woff2'),
         url('../fonts/IRANYekanX-UltraLight.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

/* وزن معمولی - Regular (400) */
@font-face {
    font-family: 'IRANYekanX';
    src: url('../fonts/IRANYekanX-Regular.woff2') format('woff2'),
         url('../fonts/IRANYekanX-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* وزن متوسط - Medium (500) */
@font-face {
    font-family: 'IRANYekanX';
    src: url('../fonts/IRANYekanX-Medium.woff2') format('woff2'),
         url('../fonts/IRANYekanX-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* وزن ضخیم - Bold (700) */
@font-face {
    font-family: 'IRANYekanX';
    src: url('../fonts/IRANYekanX-Bold.woff2') format('woff2'),
         url('../fonts/IRANYekanX-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* کلاسی که به کل سایت اعمال می‌کنیم */
.font-iranyekan {
    font-family: 'IRANYekanX', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}