/* ── Fonts ─────────────────────────────────────────────────────────────── */
/*
   Self-hosted, and the same faces the apps bundle — see docs/FONT-LICENSES.md for the
   subsetting commands and the licences. Not a webfont CDN: a request to one is a third party
   watching every visitor, a second DNS lookup before any text can paint, and a dependency
   that decides when your marketing site has no typography.

   `font-display: swap` because the alternative is invisible text. A visitor on a slow South
   African mobile connection should read the page in the system face and have it re-set a
   moment later, rather than look at a blank rectangle.
*/
/* The apps' faces since 2026-10-05, in line with Ledgr: DM Sans for words, Outfit for headings and figures
   (it has tabular digits; DM Sans has none), JetBrains Mono for code. 700 and 800 both resolve to Bold, so the
   browser never synthesises a faux-bold over a face that is already bold. */
@font-face {
  font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/site/assets/fonts/dmsans_regular.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/site/assets/fonts/dmsans_medium.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/site/assets/fonts/dmsans_semibold.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans'; font-style: normal; font-weight: 700 800; font-display: swap;
  src: url('/site/assets/fonts/dmsans_bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/site/assets/fonts/outfit_medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/site/assets/fonts/outfit_semibold.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit'; font-style: normal; font-weight: 700 800; font-display: swap;
  src: url('/site/assets/fonts/outfit_bold.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/site/assets/fonts/jetbrainsmono_regular.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url('/site/assets/fonts/jetbrainsmono_bold.woff2') format('woff2');
}

/*
   The faces text is set in while DM Sans and Outfit arrive: the platform's Arial, scaled to their proportions, so
   the swap does not re-flow every line (Lighthouse measured the features page's hero jumping 0.13 under the old
   faces, T-15.1). Ascent and descent are the fonts' own hhea values; size-adjust is the width of a pangram with
   digits in each face against Arial, calibrated on Inter's published 107.4% (measured 2026-10-05).
*/
@font-face {
  font-family: 'DM Sans Fallback';
  src: local('Arial'), local('ArialMT'), local('Helvetica');
  size-adjust: 104.1%; ascent-override: 99.2%; descent-override: 31%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Outfit Fallback';
  src: local('Arial'), local('ArialMT'), local('Helvetica');
  size-adjust: 99.8%; ascent-override: 100%; descent-override: 26%; line-gap-override: 0%;
}
