/* shamsi — Vazirmatn font for flatbb.
 * Font: Vazirmatn v33.003 (https://github.com/rastikerdar/vazirmatn)
 * License: SIL Open Font License 1.1 — see fonts/OFL.txt
 *
 * This file is linked from the page <head> by the shamsi plugin (request-time,
 * after assets/app.css), so the :root override below wins the cascade at equal
 * specificity and every rule keeps the core design system (--font is what
 * body, buttons and inputs use; code/pre use --mono and are untouched).
 * Font URLs are relative to this file's own location, so they resolve correctly
 * in root installs, subfolder installs and with clean URLs on or off. */

/* Static weights — fallback for browsers without variable-font support. */
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/Vazirmatn-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/Vazirmatn-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/Vazirmatn-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/Vazirmatn-Bold.woff2') format('woff2'); }

/* Variable font — one file, every weight from 100 to 900. Declared last: the
 * last matching face wins, so modern browsers use it and render the exact
 * intermediate weights flatbb uses (e.g. 550 and 650); older browsers keep
 * the static faces above. */
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/Vazirmatn-Variable.woff2') format('woff2'); }

/* Vazirmatn first, the original flatbb stack as fallback. */
:root { --font: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
