﻿/* =========================================================
 * fonts-optimized.css — بارگذاری بهینه فونت وزیرمتن
 * فقط وزن‌های موردنیاز + font-display: swap
 * ========================================================= */

/* وزن 400 — متن معمولی */
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Regular.woff2") format("woff2");
}

/* وزن 700 — عنوان‌های bold */
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Bold.woff2") format("woff2");
}

/* وزن 800 — عنوان‌های اصلی (extrabold) */
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-ExtraBold.woff2") format("woff2");
}

/* ===== بهبود رندر متن ===== */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ===== اعداد فارسی ===== */
.fa-num {
  font-feature-settings: "ss01";
}
