/* Self-hosted fonts — replaces the Google Fonts <link> used on the design canvas.
   Total ≈ 92 KB for all three (Google Fonts version ≈ 200 KB+ and an extra connection to fonts.gstatic.com).
   In <head>, preload only the two fonts seen above the fold:
     <link rel="preload" href="/assets/fonts/archivo-headings.woff2" as="font" type="font/woff2" crossorigin>
     <link rel="preload" href="/assets/fonts/inter-latin-var.woff2" as="font" type="font/woff2" crossorigin>
   Licences: all three are SIL Open Font License 1.1 — free to self-host. */

/* Archivo — headings only. Cut to width 75–80 %, weight 500–800, Latin letters, digits and pipe-size symbols (″ ′ ½ ¼ ¾ ⅛ ⅜ ×).
   If a heading ever needs another character (e.g. Urdu), it falls back to the next font in the stack. */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-headings.woff2') format('woff2');
  font-weight: 500 800;
  font-stretch: 75% 80%;
  font-style: normal;
  font-display: swap;
}
/* Inter — body text, variable weight 100–900, Latin */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* JetBrains Mono — small labels only; one weight (the canvas also uses 500 in a few labels — use 400) */
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: optional; /* labels can render in the fallback mono on slow connections */
}
/* Fallback metrics close to Inter, so text does not jump when the font arrives */
@font-face { font-family: 'Inter Fallback'; src: local('Arial'); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }
body { font-family: Inter, 'Inter Fallback', system-ui, sans-serif; }
