/* KookFaNum — drop the six files from your archive into the /fonts folder
   at the project root. Paths below are relative to this stylesheet. */

/*
 * The one fallback stack, declared here on purpose.
 *
 * fonts.css is the only stylesheet every context loads: the desktop, the login
 * page, the wizard, and the print popup - which links fonts.css and print.css
 * and nothing else, so it can never read a token defined in tokens.css. While
 * print.css named a shorter list of its own, a host without KookFaNum and
 * without Vazirmatn previewed an invoice in one face and printed it in another;
 * the rows that fitted on screen did not fit on the page. Both sides now
 * degrade to the same face in the same order.
 */
:root {
    --font-stack: 'KookFaNum', 'Vazirmatn', 'IRANSans', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}

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

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

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

/* 500/600 requests fall back to Bold instead of a synthesised weight. */
@font-face {
    font-family: 'KookFaNum';
    src: url('../../fonts/KookFaNum-Bold.woff2') format('woff2'),
         url('../../fonts/KookFaNum-Bold.woff') format('woff');
    font-weight: 500 600;
    font-style: normal;
    font-display: swap;
}
