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

@font-face {
    font-family: 'Rozanova Humanist';
    src: url('./rozanova-humanist-thin.woff2') format('woff2'),
         url('./rozanova-humanist-thin.woff') format('woff');
    font-style: normal;
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Rozanova Humanist';
    src: url('./rozanova-humanist-semibold.woff2') format('woff2'),
         url('./rozanova-humanist-semibold.woff') format('woff');
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Rozanova Geometric';
    src: url('./rozanova-geometric-thin.woff2') format('woff2'),
         url('./rozanova-geometric-thin.woff') format('woff');
    font-style: normal;
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Rozanova Geometric';
    src: url('./rozanova-geometric-semibold.woff2') format('woff2'),
         url('./rozanova-geometric-semibold.woff') format('woff');
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

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

/*
 * GnuMICR — the E13B face for the MICR line on a printed check.
 *
 * NOT a CannaFlow brand font. It lives in this file because this is the one stylesheet the
 * layout loads BEFORE everything that uses it, and a second @font-face sheet would be a
 * second place to look.
 *
 * BOTH CONSUMERS TAKE THE TTF, AND I FIRST GOT THIS WRONG IN BOTH DIRECTIONS.
 *
 * I shipped this rule against the OTF, reasoning that browsers render the author's own CFF build
 * correctly while Dompdf cannot embed CFF. The second half is true and measured. The first half
 * was an ASSUMPTION and it is false: Chrome REFUSES this OTF.
 *
 *     new FontFace('p', 'url(/fonts/gnumicr/GnuMICR.otf) format("opentype")').load()
 *       -> "A network error occurred."      (the file itself serves HTTP 200)
 *     the same probe against GnuMICR.ttf    -> LOADED
 *
 * document.fonts reported the family as "GnuMICR error" while the MICR band drew in the monospace
 * fallback — a check preview that looks like a rendering quirk and is a font the browser threw
 * away. Brandon caught it by eye: "It doesn't look like a micr font from those screenshots."
 *
 * NO font-display: swap. A swap would paint the MICR line in a fallback face first, and on the one
 * element in this product where the wrong face means an unbankable cheque, a flash of
 * plausible-looking Courier is worse than a moment of nothing.
 *
 * The OTF stays in public/fonts/gnumicr/ because it is the author's own build from his Type 1
 * source and is the better artifact — it is simply not one this browser will load.
 *
 * GPL v2, Eric Sandeen. Licence, author and the .raw source travel with it in
 * public/fonts/gnumicr/ — the GPL requires the source alongside the compiled font.
 */
@font-face {
    font-family: 'GnuMICR';
    src: url('../gnumicr/GnuMICR.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
}
