/*
  Brand fonts — Denim INK WD (display) and Inter (body), self-hosted.
  Loaded from the layout <head>; also defines the font stacks used by
  Tailwind's font-sans / font-display utilities (see @theme in app.css).
*/

/*
  Inter — the body face, and the same face the product's own UI is set in, so
  the site and the app now read as one thing (it was PP Mori here and Inter in
  the app). SIL Open Font License 1.1, OFL.txt beside the files: free to use
  commercially and to embed. Four static cuts rather than the variable font —
  the same four weights PP Mori carried, plus Medium, which the app leans on.
*/
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter/Inter-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

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

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/*
  Denim INK WD — the display face (headings). One cut, Medium: it's the weight
  the licence covers and the one the brand is set in.

  The face is declared across the whole 100-900 range on purpose. It is the only
  face in the family, so without that range a heading asking for 600 or 700 would
  get a browser-synthesised fake bold of it; claiming the range means every weight
  resolves to the real Medium drawing instead. The display-* utilities also set
  font-synthesis-weight: none (see utilities/typography.pcss).

  Licensed from Dinamo (order DP-410354) and self-hosted — the files ship with
  the code, nothing is fetched from a foundry CDN at runtime.
*/
@font-face {
  font-family: "Denim INK WD";
  src: url("/assets/fonts/Denim/DenimINKWD-Medium.woff2") format("woff2"),
    url("/assets/fonts/Denim/DenimINKWD-Medium.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/*
  JetBrains Mono — the accent and numeric face, in place of both cuts of OT
  Brut. SIL Open Font License 1.1 (OFL.txt sits beside the file), so it costs
  nothing to use commercially and may be embedded. Tabular by construction,
  with the slashed zero the old face was carried for. One weight, as OT Brut
  shipped.
*/
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: "Denim INK WD", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-accent: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-numeric: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
