/* ==========================================================================
   Typefaces — self-hosted, subset, latin.

   `font-src 'self'` in public/_headers rules out any CDN, so these ship from
   /fonts.

   P22 Mackinac Pro Book is Patch's own serif — the face the wordmark is drawn
   in — and it sets the instruction and the document, because the document is
   what the page is about. General Sans (Fontshare Free License) carries the
   interface: labels, the address, the small print. It is the same face the
   customer emails already use, so the site and the inbox speak with one voice.

   LICENSING: the Mackinac file supplied is a MyFonts webfont kit build
   (`wfkit2` in its version string), which is the right kind of licence for
   this, but those licences are bound to a domain and a pageview tier. Confirm
   the deployed domain is covered before this goes public. Nothing else here
   needs checking: General Sans travels with FFL-GeneralSans.txt.

   Both files are subsets — latin, the punctuation the page actually uses, and
   the kern/liga/onum features. WOFF rather than WOFF2 only because the build
   environment has no brotli; regenerate as WOFF2 when it does.
   ========================================================================== */

@font-face {
  font-family: "Mackinac";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/mackinac-400.woff") format("woff");
}

@font-face {
  font-family: "General Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/general-sans-600.woff2") format("woff2");
}

/* Metric-matched fallback for Mackinac, derived from the file rather than
   eyeballed — upem 1000, xHeight 522, ascent 795, descent 205:

     size-adjust      = webfont(xHeight/upem) / Arial(1062/2048 = 0.5186)
     ascent-override  = webfont(ascent/upem)  / size-adjust
     descent-override = webfont(descent/upem) / size-adjust

   General Sans gets no such block: its binary is WOFF2 and this environment
   cannot read the metrics out of it, and inventing the numbers would be worse
   than the small swap it carries across a label and an address. */

@font-face {
  font-family: "Mackinac Fallback";
  src: local("Georgia"), local("Times New Roman"), local("Times");
  size-adjust: 100.7%;
  ascent-override: 78.9%;
  descent-override: 20.4%;
  line-gap-override: 0%;
}
