/* Inter — self-hosted slim build.
 *
 * Only ships the InterVariable woff2 files (~720KB total). The variable
 * font carries every weight from 100 (Thin) to 900 (Black) plus an
 * italic axis, so we don't need to host the 36-file static set.
 *
 * Replaces the third-party hit to rsms.me — see CLAUDE.md "Privacy /
 * no third-party requests". Same font, same designer (Rasmus Andersson),
 * just served from our own origin.
 */

@font-face {
  font-family: 'InterVariable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('font-files/InterVariable.woff2') format('woff2-variations'),
       url('font-files/InterVariable.woff2') format('woff2');
}
@font-face {
  font-family: 'InterVariable';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('font-files/InterVariable-Italic.woff2') format('woff2-variations'),
       url('font-files/InterVariable-Italic.woff2') format('woff2');
}

/* The rest of the site asks for ``Inter`` (the non-variable alias) so
 * existing CSS keeps working. Map it to the variable font on browsers
 * that support variable fonts; everything since 2020 does. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('font-files/InterVariable.woff2') format('woff2-variations'),
       url('font-files/InterVariable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('font-files/InterVariable-Italic.woff2') format('woff2-variations'),
       url('font-files/InterVariable-Italic.woff2') format('woff2');
}

:root {
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}
