/* ---------------------------------------------------------------------------
   Brand faces, self-hosted. Files come from @fontsource via tools/sync-assets.ps1.

   The legacy site pulled these from Google, which put a render-blocking request
   to a third-party host at the top of every page. Serving them from our own
   origin removes that hop and the DNS/TLS setup behind it.

   font-display: swap — the page renders in the fallback immediately and
   re-flows when the face lands. The alternative, blocking on the font, leaves
   the hero blank on a slow connection.

   woff2 only, and latin only. See the note in tools/sync-assets.ps1.

   THE ICON FONTS ARE PATCHED, and not from here. FontAwesome ships its
   @font-face with font-display:block, which hides every icon on the page for up
   to three seconds and then paints them — Lighthouse charged 1,040 ms to it.
   Both faces were changed to swap by hand, in:

       shared/fontawesome/css/solid.min.css
       shared/fontawesome/css/brands.min.css

   Those are vendored files. tools/sync-assets.ps1 does not currently reach
   them — its FontAwesome entries still point at website/ and partner/ paths
   that no longer exist, from before the three panels were pointed at shared/ —
   so a re-run will not revert this. If that script is ever corrected to write
   shared/, the patch has to be re-applied or, better, made part of the copy.
   --------------------------------------------------------------------------- */

/* Poppins carries the whole site: headings, body and the uppercase button and
   nav labels, which is why five weights are needed rather than the usual two. */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/poppins-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/poppins-500.woff2') format('woff2');
}

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

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

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

/* The handwriting accent — section kickers and the footer sign-off only.
   One weight, because the family ships only one. */
@font-face {
    font-family: 'Vujahday Script';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/vujahday-script-400.woff2') format('woff2');
}
