/* ==========================================================================
   Riverview Vets - webfonts

   Written at BLD-06 on 2026-09-16. This file REPLACES the design export's
   _ds/tokens/fonts.css, which did two things this one deliberately does not.

   1. Its first line @imported Figtree from Google Fonts: a render-blocking
      stylesheet from a third party, on all three pages, followed by font
      requests to a second third-party host. That is now gone. No page
      requests Google's font CSS or its font CDN at all.

      Neither Google host is named anywhere in this file, and that is not
      squeamishness. Grepping src/ for those host names is a cheap audit and
      CNS-06 runs the same shape of check before launch; a comment explaining
      why they are absent would match it and hand the auditor a false
      positive. So the explanation is here and the strings are not. The
      removed line is the first line of _ds/tokens/fonts.css if you need to
      read it.

      BLD-03 copies the rest of _ds/tokens/ across as-is and MUST NOT copy
      that file.

   2. It served Judson as a 212 KB .ttf. It is a 20 KB .woff2 here.

   The family names below are exactly the ones --font-sans and --font-serif
   in tokens/typography.css already ask for. Nothing in that file changes.

   Both faces are SIL Open Font License 1.1. The notices travel with the
   files, in assets/fonts/OFL.txt, because the licence requires it.

   Rebuild either file with:  bash tools/build-fonts.sh
   That script is where the subsetting decisions are written down, and it is
   byte-reproducible, so `bash tools/build-fonts.sh --check` proves the two
   .woff2 files in this repo are what it says they are.
   ========================================================================== */


/* --- Figtree, the body face -----------------------------------------------
   One variable file covering every weight the design uses: 400 body, 500 h3,
   600 h2 / buttons / eyebrow, 700 h1. The upstream axis runs 300-900 and has
   been cut to 400-700, which is why `font-weight: 400 700` below is a range
   and not a single value - it is what the file actually contains.

   Measured consequence, so a later task does not have to guess: a weight
   outside 400-700 CLAMPS to the nearest end of the axis and renders
   silently. font-weight:800 draws pixel-identical to 700, font-weight:300
   pixel-identical to 400. No synthetic bold, no console warning, no visible
   fault - just a weight that never appears. If something genuinely needs 300
   or 800, widen the axis in tools/build-fonts.sh; do not write the number
   and assume.

   Every word on all three pages is set in this, so it keeps its full 391
   character set rather than the Latin-only subset. That costs 4.9 KB and
   buys the accented characters that turn up in surnames and in the client's
   registered entity name, which nobody has typed yet.

   IN THE INITIAL VIEWPORT ON ALL THREE PAGES. BLD-07 preloads this file, and
   only this file:
     <link rel="preload" href="/assets/fonts/figtree-variable.woff2"
           as="font" type="font/woff2" crossorigin>
   `crossorigin` is required even same-origin; without it the preload is
   discarded and fetched a second time.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}


/* --- Judson, the quote face -----------------------------------------------
   Used in exactly four places: the testimonial quotes on the landing page,
   below the fold, at 400 normal. Not used on the legal pages at all.

   Subset to the Latin range, which is the opposite call to Figtree's and is
   deliberate. Judson is a SIL font carrying African language, phonetic and
   Greek repertoires; keeping them costs 43.5 KB to render four curated
   sentences of British English. If a future testimonial ever needs a
   character outside Latin-1, that one glyph falls back to Georgia and the fix
   is to widen $LATIN in tools/build-fonts.sh and re-run.

   Not preloaded. It is below the fold on one page.

   No italic is declared because no italic exists: the export ships Judson
   Regular only. tokens/typography.css defines --type-quote as `italic ...
   var(--font-serif)`, which is unused on all three pages. If BLD-02 ever
   reaches for it, the browser will synthesise a slant - check that against
   the rendered design before shipping it.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Judson";
  src: url("../fonts/judson-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
