/*
 * Self-hosted fonts for thoughtleaders.ai.
 *
 * Two families only: Inter (display + UI + body) and JetBrains Mono
 * (commands, paths, terminals). Each is a single variable woff2 — the weight
 * axis covers the whole range in one file, so 400/500/600/700/800 cost no
 * extra requests. Latin subset, downloaded from fonts.gstatic.com.
 *
 * "Inter Fallback" below is Arial re-metricked to Inter's proportions so the
 * font-display: swap handoff does not reflow the page. It is the first entry
 * in --font-sans's fallback stack (see src/styles/global.css).
 */

/* Inter — variable, weight 100–900, latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-variable.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;
}

/* Metric-compatible fallback: Arial adjusted to Inter's box. */
@font-face {
  font-family: 'Inter Fallback';
  font-style: normal;
  font-weight: 100 900;
  src: local('Arial'), local('Helvetica Neue'), local('Liberation Sans');
  ascent-override: 90.20%;
  descent-override: 22.48%;
  line-gap-override: 0%;
  size-adjust: 107.40%;
}

/* JetBrains Mono — variable, weight 100–800, latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-variable.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;
}
