/*
 * Yekan Bakh — the organisation's typeface.
 *
 * Three cuts are installed. Regular carries the reading text, Bold the
 * headings and emphasis, and Fat is reserved for the few places that want real
 * weight. Declaring them separately is what stops the browser from rendering
 * an entire page in whichever single face it has, which is what happened while
 * only Fat existed.
 *
 * The ranges below are deliberately wide: a page asking for 500 or 600 gets
 * Regular rather than jumping to Bold, so ordinary text stays readable however
 * a given app labels its weights.
 *
 * «swap», not «optional»: with «optional» a face that is not already in the
 * browser's cache is skipped for that whole page load, and the page is drawn
 * in Vazirmatn instead — which reads as the numbers having changed shape.
 * The organisation's typeface must be the one on screen, so it is waited for
 * and swapped in. The two preload links in the page's head mean it is almost
 * always there before the first paint and nothing visibly changes.
 */
@font-face {
    font-family: "Yekan Bakh";
    src: url("fonts/YekanBakh-Regular.woff2") format("woff2"),
         url("fonts/YekanBakh-Regular.woff") format("woff"),
         url("fonts/YekanBakh-Regular.ttf") format("truetype");
    font-weight: 100 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Yekan Bakh";
    src: url("fonts/YekanBakh-Bold.woff2") format("woff2"),
         url("fonts/YekanBakh-Bold.woff") format("woff"),
         url("fonts/YekanBakh-Bold.ttf") format("truetype");
    font-weight: 601 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Yekan Bakh";
    src: url("fonts/YekanBakh-Fat.woff2") format("woff2"),
         url("fonts/YekanBakh-Fat.woff") format("woff"),
         url("fonts/YekanBakh-Fat.ttf") format("truetype");
    font-weight: 801 1000;
    font-style: normal;
    font-display: swap;
}
