/*
  The House faces (D-641). Served at https://houseofmastery.co/brand/fonts.css.

  Inter for display, UI and body; Source Serif 4 for the epigraph, covenant
  names and a reader's quote only (BRAND.md §3, D-503). The files sit beside
  this one in ./fonts/ and every url is relative, so the same file works on
  houseofmastery.co and on any origin that vendors brand/ with its fonts/
  folder. Same origin is the point: browsers keep a separate font cache per
  site, so a face fetched from another host is never shared and costs a second
  connection. No Google Fonts request anywhere in the kit.

  Weights load 500 to 700 only (BRAND §3.1): the variable files cover the
  range, and a weight outside it renders at the nearest step.

  Do not preload a face. The browser asks for Inter at its first paint; a
  preload only takes bandwidth from the hero photograph and the stylesheets,
  and on houseofmastery.co it measured about 200 ms worse on LCP on a
  throttled phone. The fallback faces below hold the layout meanwhile.
  Source Serif 4 loads only where a page uses it.

  The fallback faces are Arial and Georgia, resized to the House faces' metrics
  (capsize: xWidthAvg, ascent, descent), so text set while a web font is still
  loading takes the same room and the page does not move when it swaps.
  The token stacks in tokens.css name them second: 'Inter', 'Inter Fallback'.

  File names carry the font version, so a new version is a new name and the
  old one can be cached for a year. Licence: SIL OFL 1.1, fonts/OFL.txt.

  fonts/inter-v4.001-latin-500.ttf, -600.ttf and -700.ttf are static instances
  of the Inter file above at weights 500, 600 and 700, and
  fonts/source-serif-4-v4.004-latin-600-italic.ttf is the serif italic above at
  600 (fontTools varLib.instancer, same latin subset, same OFL licence). No
  @font-face names them: they are for what cannot read a variable woff2, such
  as resvg on /api/og (G-1), a PDF engine, Pillow and Apps Script (D-643).
*/
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('./fonts/inter-v4.001-latin-wght-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('./fonts/source-serif-4-v4.004-latin-opsz-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
  src: url('./fonts/source-serif-4-v4.004-latin-opsz-italic.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter 4.001 on Arial: size 978/2048 over 913/2048 = 107.12%; ascent 1984,
   descent 494, line gap 0, each over 2048 x 1.0712. Liberation Sans shares
   Arial's metrics, so Linux gets the same fallback. */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial'), local('ArialMT'), local('Liberation Sans');
  size-adjust: 107.12%;
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
}
/* Source Serif 4.004 on Georgia: size 479/1000 over 913/2048 = 107.45%; ascent
   1036, descent 335, line gap 0, each over 1000 x 1.0745. */
@font-face {
  font-family: 'Source Serif 4 Fallback';
  src: local('Georgia');
  size-adjust: 107.45%;
  ascent-override: 96.42%;
  descent-override: 31.18%;
  line-gap-override: 0%;
}
