﻿/* /assets/fonts/fonts.css */

/* ====== اصلی: فونت Vazirmatn با وزن‌های مختلف ====== */

@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

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

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

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

@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}


/* ====== سازگاری با کدهای قدیمی: Vazir و Vazir FD ====== */
/* هرجا در پروژه نوشته شده باشد 'Vazir' یا 'Vazir FD'، در عمل همان Vazirmatn لود می‌شود */

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

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

/* اگر جایی 'Vazir FD' استفاده شده باشد، همان رفتار Vazir را داشته باشد */
@font-face {
  font-family: 'Vazir FD';
  src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* ====== استک پیش‌فرض و متغیر سراسری ====== */

:root {
  --vazir: 'Vazirmatn', 'Vazir', 'Vazir FD',
           system-ui, -apple-system, "Segoe UI", Roboto,
           "Helvetica Neue", Arial, "Noto Naskh Arabic", "Noto Sans", sans-serif;
}

/* پیش‌فرض کلی برای صفحه‌ها */
html, body {
  font-family: var(--vazir);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
