/*
Inter font family - Local version
Variable font for modern browsers, with fallback to system fonts
*/

/* Variable font - supports all weights from 100-900 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/InterVariable-2bf3d951bf9d6109437ea0874bbf12fb.woff2?vsn=d') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/InterVariable-Italic-8d1dc86da25893737b6bb8a9c64b790e.woff2?vsn=d') format('woff2');
}

/* Feature settings for Inter */
@font-feature-values 'Inter' {
  @character-variant {
    cv01: 1; cv02: 2; cv03: 3; cv04: 4; cv05: 5; cv06: 6; cv07: 7; cv08: 8;
    cv09: 9; cv10: 10; cv11: 11; cv12: 12; cv13: 13;
  }
}

/* Apply Inter as default font */
:root {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-feature-settings: 'liga' 1, 'calt' 1; /* Enable ligatures and contextual alternates */
}

/* Support for browsers that support variable fonts */
@supports (font-variation-settings: normal) {
  :root {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  }
}

/*
Fira Code - Local version (OFL-1.1, license in FiraCode-OFL.txt)
Fixed-width font for code/API samples. Variable weights 300-700.
*/
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/FiraCode-c29c722cce2677cabab3330559319eb8.woff2?vsn=d') format('woff2');
}

/*
Disable Fira Code's programming ligatures for reference-doc readability.
The :root rule above enables 'calt' for Inter, so we must explicitly turn
ligatures off on code surfaces, otherwise =>, !=, -> would combine into
glyphs that no longer match the raw characters.
*/
code,
pre,
.font-mono,
[class*="font-mono"] {
  font-feature-settings: 'liga' 0, 'calt' 0;
  font-variant-ligatures: none;
}