/* ORYN Design System v1 — Self-hosted fonts.
 *
 * Doctrine:
 *   All ORYN fonts are self-hosted. No runtime dependency on
 *   external font providers. No fonts.googleapis.com. No
 *   fonts.gstatic.com.
 *
 * Distribution:
 *   The .woff2 files live alongside this stylesheet under
 *   /design_system/assets/fonts/ and ship with the design system to
 *   every panel via scripts/build_panels.sh Step 1.5.
 *
 * Fallback discipline:
 *   Every @font-face declares font-display: swap so the page never
 *   blocks on font I/O. Until the operator drops the woff2 files
 *   into this directory, every face soft-fails to the system fallback
 *   stack already declared in --font-sans / --font-display /
 *   --font-mono — the page remains fully readable.
 *
 * Files expected (drop in by operator):
 *   inter-400.woff2          inter-500.woff2
 *   inter-600.woff2          inter-700.woff2
 *   space-grotesk-500.woff2  space-grotesk-600.woff2
 *   space-grotesk-700.woff2
 *   jetbrains-mono-400.woff2 jetbrains-mono-600.woff2
 *
 * If any file is missing, that weight degrades to the next fallback
 * font in the stack. No 404 prevents the page from loading.
 */

/* ── Inter (body / sans) ─────────────────────────────────────────── */
@font-face {
  font-family: "Inter";
  src: url("/design_system/assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/design_system/assets/fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/design_system/assets/fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/design_system/assets/fonts/inter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Space Grotesk (display) ─────────────────────────────────────── */
@font-face {
  font-family: "Space Grotesk";
  src: url("/design_system/assets/fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/design_system/assets/fonts/space-grotesk-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/design_system/assets/fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── JetBrains Mono (mono) ───────────────────────────────────────── */
@font-face {
  font-family: "JetBrains Mono";
  src: url("/design_system/assets/fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/design_system/assets/fonts/jetbrains-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
