/*
 * فونت‌های سرویس — همین فایل در لندینگ و پنل یکسان است.
 *
 * تقسیم کار: متن با **IRANSansX** و ارقام با **IRANYekanX**. این کار با یک
 * font-family جداگانه‌ی «IRANYekanXNum» انجام می‌شود که unicode-range آن فقط
 * ارقام و نشانه‌های میان عدد است؛ چون در فهرست font-family جلوتر از IRANSansX
 * می‌آید، مرورگر ارقام را از آن و بقیه‌ی متن را از IRANSansX برمی‌دارد.
 *
 * فایل ارقام subset شده (فقط همان چند گلیف): ۲۶ کیلوبایت به ۳.۵ کیلوبایت رسید،
 * پس پنج وزن ارقام روی هم از یک وزن فونت کامل هم سبک‌تر است.
 *
 * font-display: swap — متن فارسی بلافاصله با فونت سیستم دیده می‌شود و با آمدن
 * فونت جا‌به‌جا می‌شود؛ بهتر از چند صد میلی‌ثانیه صفحه‌ی خالی.
 */

/* --------------------------------------------------------------- متن */

@font-face {
  font-family: 'IRANSansX';
  src: url('fonts/IRANSansX-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSansX';
  src: url('fonts/IRANSansX-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSansX';
  src: url('fonts/IRANSansX-DemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSansX';
  src: url('fonts/IRANSansX-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSansX';
  src: url('fonts/IRANSansX-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------- ارقام */

@font-face {
  font-family: 'IRANYekanXNum';
  src: url('fonts/IRANYekanX-Num-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+06F0-06F9, U+0660-0669, U+066B, U+066C, U+002C, U+002E, U+002F, U+003A, U+0025, U+002B, U+002D, U+00D7;
}

@font-face {
  font-family: 'IRANYekanXNum';
  src: url('fonts/IRANYekanX-Num-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+06F0-06F9, U+0660-0669, U+066B, U+066C, U+002C, U+002E, U+002F, U+003A, U+0025, U+002B, U+002D, U+00D7;
}

@font-face {
  font-family: 'IRANYekanXNum';
  src: url('fonts/IRANYekanX-Num-DemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+06F0-06F9, U+0660-0669, U+066B, U+066C, U+002C, U+002E, U+002F, U+003A, U+0025, U+002B, U+002D, U+00D7;
}

@font-face {
  font-family: 'IRANYekanXNum';
  src: url('fonts/IRANYekanX-Num-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+06F0-06F9, U+0660-0669, U+066B, U+066C, U+002C, U+002E, U+002F, U+003A, U+0025, U+002B, U+002D, U+00D7;
}

@font-face {
  font-family: 'IRANYekanXNum';
  src: url('fonts/IRANYekanX-Num-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+06F0-06F9, U+0660-0669, U+066B, U+066C, U+002C, U+002E, U+002F, U+003A, U+0025, U+002B, U+002D, U+00D7;
}
