/* ============================================================
 * fonts.css
 * Self-hosted @font-face declarations. Place matching .woff2
 * files in /assets/fonts/. See assets/fonts/README.md for the
 * exact filenames expected.
 *
 * "Geist" and "JetBrains Mono" each have weight-specific files
 * so the browser only downloads what a page actually uses.
 * "Instrument Serif" ships a single regular + italic.
 *
 * We deliberately do NOT declare @font-face for 'Inter Tight'
 * and 'Fraunces' — those are optional alternates exposed by
 * the Tweaks panel. If a user picks them, the page falls back
 * to Google Fonts (still linked in index.html), otherwise the
 * extra bytes aren't downloaded.
 * ============================================================ */

/* ---------- Geist (display / UI sans) ---------- */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../assets/fonts/geist-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/geist-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/geist-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/geist-600.woff2') format('woff2');
}

/* ---------- JetBrains Mono (labels, code, numbers) ---------- */

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

/* ---------- Instrument Serif (italic emphasis) ---------- */

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/instrument-serif-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/instrument-serif-italic.woff2') format('woff2');
}
