/* MEEEZ — self-hosted typefaces.
 *
 * D-009: no Google Fonts, no Bunny Fonts, no CDN. Filament's default font
 * provider points at fonts.bunny.net; AdminPanelProvider overrides it with
 * LocalFontProvider pointed at this file.
 *
 * Vazirmatn v33.003, SIL Open Font License 1.1 — see /fonts/OFL.txt
 */

/* Variable font: one 111 KB file covers weights 100-900.
   Five static weights would cost ~255 KB and five requests. */
@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/vazirmatn-var.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Fallback for the rare engine without variable-font support.
   Lower in the cascade, so it only wins if the block above fails to parse. */
@font-face {
    font-family: 'Vazirmatn Static';
    src: url('/fonts/vazirmatn-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --meeez-font-sans: 'Vazirmatn', 'Vazirmatn Static', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Persian digits render inconsistently across weights in some UI contexts;
   tabular figures keep table columns and counters from jittering. */
.fi-ta-table td,
.fi-ta-table th,
[data-meeez-numeric] {
    font-variant-numeric: tabular-nums;
}
