/* ============================================================
   فونت وزیرمتن — نسخهٔ محلی (بدون نیاز به اینترنت)
   Vazirmatn self-hosted. The app previously pulled this font from
   fonts.googleapis.com at runtime, which broke offline: Persian text
   fell back to Tahoma with different metrics and shifted the layout.
   Variable font, weights 100-900, so 400/500/600/700/800 all resolve
   from this single 111 KB file.
   ============================================================ */

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

/* پایهٔ راست‌به‌چپ — RTL baseline, set once at the root */
html {
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  /* اعداد فارسی/لاتین در جدول‌ها هم‌عرض بمانند */
  font-variant-numeric: tabular-nums;
}

/* قطعه‌های لاتین (نام فایل، شناسهٔ پرونده) داخل متن فارسی نباید به هم بریزند */
[dir='ltr'] { direction: ltr; unicode-bidi: isolate; }

/* حرکت کمتر برای کاربرانی که آن را غیرفعال کرده‌اند */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
