/*
 * Self-hosted DejaVu — the faces mPDF renders with.
 *
 * GENERATED by scripts/build-fonts.mjs. Do not hand-edit: the filenames carry a
 * content hash and a fresh build will overwrite anything written here. Rebuild
 * with `node scripts/build-fonts.mjs`; verify with `--check`.
 *
 * WHY
 * ---
 * Every resume template's CSS pins a 'DejaVu …' face first, because mPDF
 * renders with the DejaVu fonts it bundles in vendor/mpdf/mpdf/ttfonts/. No
 * browser ships DejaVu, so without this file the builder canvas fell straight
 * through each stack to whatever the machine happened to have — Arial, Georgia,
 * Segoe UI, Verdana — and the exported PDF came out in a typeface the user had
 * never seen. Nothing errored and the font SIZES matched, so the only symptom
 * was "the PDF doesn't look like the builder".
 *
 * These WOFF2s are subset from mPDF's own TTFs, so the browser and the PDF use
 * the same build of the same font. Do not swap in a copy from a font CDN: a
 * different build of "DejaVu Sans" has different metrics, and the divergence
 * comes back in a form far harder to see.
 *
 * WHERE THIS LOADS — AND WHERE IT MUST NOT
 * ----------------------------------------
 * Only the surfaces that have to agree with the PDF:
 *   - the builder canvas (views/pages/builder.php)
 *   - the preview render path (scripts/generate-previews.php, and the browser
 *     half of scripts/parity-audit.php, which inlines this same file so the
 *     audit measures what actually ships)
 * Marketing and SEO pages keep their system stack and link none of this. They
 * have no PDF to agree with, so web fonts would buy them nothing but
 * render-blocking weight on the pages whose speed matters most.
 *
 * font-display: block, NOT swap
 * -----------------------------
 * swap paints fallback text first and restyles when the face arrives. On a
 * WYSIWYG canvas that means the user watches their resume reflow mid-edit into
 * a layout with different metrics — and until the swap lands they are looking
 * at a page the PDF will not match, which is the exact bug this file exists to
 * fix. block holds the text invisible briefly instead; these are small,
 * same-origin, immutably-cached files, so that is the first paint of the first
 * visit and nothing after it.
 */

@font-face {
    font-family: 'DejaVu Sans';
    src: url('/assets/fonts/dejavu-sans-400.c452945c.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}
@font-face {
    font-family: 'DejaVu Sans';
    src: url('/assets/fonts/dejavu-sans-700.81e6883d.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: block;
}
@font-face {
    font-family: 'DejaVu Sans';
    src: url('/assets/fonts/dejavu-sans-400i.56cba6ca.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: block;
}
@font-face {
    font-family: 'DejaVu Sans';
    src: url('/assets/fonts/dejavu-sans-700i.d819b1f2.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: block;
}
@font-face {
    font-family: 'DejaVu Serif';
    src: url('/assets/fonts/dejavu-serif-400.f276c0b1.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}
@font-face {
    font-family: 'DejaVu Serif';
    src: url('/assets/fonts/dejavu-serif-700.f7499087.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: block;
}
@font-face {
    font-family: 'DejaVu Serif';
    src: url('/assets/fonts/dejavu-serif-400i.b0b962f3.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: block;
}
@font-face {
    font-family: 'DejaVu Serif';
    src: url('/assets/fonts/dejavu-serif-700i.6434b27c.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: block;
}
@font-face {
    font-family: 'DejaVu Sans Mono';
    src: url('/assets/fonts/dejavu-sans-mono-400.05487576.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}
@font-face {
    font-family: 'DejaVu Sans Mono';
    src: url('/assets/fonts/dejavu-sans-mono-700.e65cb4cc.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: block;
}
