/* ==========================================================================
   Tamasa — self-hosted Persian type (SIL OFL 1.1, licence beside the file)
   ONE family for the whole site (founder, 6 Oct): Vazirmatn variable.
   Weights used: body 400, labels 500, headings 600 (700 max, never 800/900).
   ========================================================================== */
@font-face {
  font-family: "Vazirmatn";
  src: url("vazirmatn/Vazirmatn-Variable.woff2") format("woff2-variations"),
       url("vazirmatn/Vazirmatn-Variable.woff2") format("woff2");
  /* range capped at 700: an 800/900 request renders at 700, never heavier */
  font-weight: 300 700; font-style: normal; font-display: swap;
}

:root {
  --font-site: "Vazirmatn", Tahoma, system-ui, sans-serif;
  --font-ui:   "Vazirmatn", Tahoma, system-ui, sans-serif;
  --w-light: 300; --w-regular: 400; --w-medium: 500; --w-semibold: 600; --w-bold: 700;
}

html { font-family: var(--font-site); font-kerning: normal;
       -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
       text-rendering: optimizeLegibility; font-synthesis: none; }

/* Persian is never tracked: letter-spacing breaks the joining line. */
:lang(fa) { letter-spacing: 0; }

/* Tabular figures: anything that animates, counts or sits in a column. */
.num-tab { font-family: var(--font-ui); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.num-display { font-variant-numeric: proportional-nums; font-feature-settings: "tnum" 0; }

/* Platform UI-2 root */
.ui-2 { font-family: var(--font-ui); font-feature-settings: "tnum" 1; font-variant-numeric: tabular-nums; }
