/*
 * Yekan Bakh — the site's typeface, and the panel's.
 *
 * Kept as a standalone file in public/ rather than compiled into the Tailwind bundle
 * because Filament's LocalFontProvider needs a stylesheet URL it can link directly. Both
 * the public site and the admin panel point at this one file, so the font is defined in
 * exactly one place and the browser caches it across both.
 *
 * Four of the eight supplied weights are declared, chosen by what the stylesheets actually
 * ask for: 700 appears about a hundred times, 800 forty-five, 600 thirty-seven, 400 eight.
 * Declaring only three of them — which is what this file did while Vazirmatn was in front —
 * left 800 with nothing to match, and a browser with no 800 does not decline: it smears the
 * 700 sideways and calls it bold. Every display heading on the site ran on that.
 *
 * Two weights are deliberately absent:
 *
 * 500 is asked for eighteen times and Yekan Bakh ships no Medium, so those fall to Regular.
 * Adding Light would not help — that is 300, and the gap is at 500.
 *
 * 900 is asked for exactly once, in portfolio-single.css. A fifty-kilobyte download for one
 * declaration is not a trade worth making; it falls to ExtraBold, which is next to it.
 *
 * `font-display: swap` throughout, which is the behaviour to keep: the page is drawn
 * immediately in whatever the reader's device already has, and re-drawn in this face the
 * moment it arrives. Nothing is ever invisible while a font is in flight.
 *
 * Worth doing, and the reason this is heavier than it should be: these files are ~50KB each
 * because they carry the full character set. Subsetting to Persian plus Latin digits
 * typically cuts each to 15-25KB, which would take the four here from roughly 200KB to 80.
 */

@font-face {
    font-family: 'Yekan Bakh';
    src: url('../fonts/YekanBakh/YekanBakh-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Yekan Bakh';
    src: url('../fonts/YekanBakh/YekanBakh-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Yekan Bakh';
    src: url('../fonts/YekanBakh/YekanBakh-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Yekan Bakh';
    src: url('../fonts/YekanBakh/YekanBakh-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
