/*
 * Inter 4.1, self-hosted. Replaces the @import of
 * https://rsms.me/inter/inter.css at the top of aurora.css.
 *
 * That @import was the worst of the third-party asset loads: a CSS
 * @import inside a stylesheet cannot be discovered by the browser's
 * preload scanner, so it serialises behind aurora.css and blocks first
 * paint on an origin nobody here controls.
 *
 * Only the variable faces are vendored. Upstream inter.css also declares
 * around forty static faces for browsers without
 * font-variation-settings; every browser OCM supports has had it since
 * 2018, and the static set is roughly 3 MB. The `Inter` and `Inter var`
 * family names both resolve to the variable font so the existing
 * declarations in aurora.css (--font-sans) and custom.css keep working
 * unchanged.
 *
 * font-display: swap is deliberate: text renders immediately in the
 * fallback and reflows when Inter arrives, rather than leaving the page
 * blank while a 350 KB font downloads.
 */

@font-face {
  font-family: InterVariable;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: 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");
}

/* Legacy family name, used by aurora.css line 513. */
@font-face {
  font-family: "Inter var";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("font-files/InterVariable.woff2") format("woff2");
}

@font-face {
  font-family: "Inter var";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("font-files/InterVariable-Italic.woff2") format("woff2");
}

/*
 * The plain `Inter` name is what --font-sans in aurora.css and the rule
 * in custom.css ask for. Upstream maps it to the static optical-size
 * faces; mapping it to the variable font is what makes those existing
 * declarations render Inter without touching them.
 */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: 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");
}
