/*
 * Local @font-face declarations for Inter, Newsreader, JetBrains Mono, and
 * Make It Sans. Inter/Newsreader/JetBrains Mono are sourced from @fontsource;
 * Make It Sans comes from the AS24 public CDN, pinned in scripts/vendor-fonts.sh.
 *
 * All fonts committed under /public/fonts/ so the iframe sandbox doesn't need
 * `font-src` permissions for external origins.
 *
 * Upgrading: bump the pinned version in `scripts/vendor-fonts.sh`, run
 * `yarn vendor:fonts`, commit the resulting binaries.
 */

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

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

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

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter/inter-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/newsreader/newsreader-500.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/jetbrains-mono/jetbrains-mono-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Make It Sans';
  font-style: normal;
  /* Make It Sans ships only regular + bold (no 500). Claim the 400–500 range
   * for the regular file so any `font-weight: 500` / Tailwind `font-medium`
   * (used throughout the dashboard, which renders in this font) resolves to the
   * REAL regular glyphs instead of a browser-synthesized faux-medium. Bold (700)
   * stays its own face below. */
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/make-it-sans/make-it-sans-regular.v1.woff2') format('woff2');
}

@font-face {
  font-family: 'Make It Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/make-it-sans/make-it-sans-bold.v1.woff2') format('woff2');
}
