/*
 * Inter Font - self-hosted (WLS-1272)
 * Per architecture.md Section 3: Component library styling
 *
 * InterVariable is vendored under app/assets/fonts/inter/ from the official
 * rsms/inter v4.1 release (SIL OFL 1.1 - licence sits alongside the files).
 * Propshaft rewrites the url() references below to digested /assets/ paths.
 * Serving the face same-origin keeps every page render - and the system
 * suite - off the Google Fonts CDN, so no third-party outage or blocked
 * network can stall rendering or the tests. Never reintroduce a remote
 * @import here; test/integration/font_delivery_test.rb guards this file.
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/inter/InterVariable-884c49a1.woff2") format("woff2");
}

/* Real italics: .memory-prose renders user Markdown, so *emphasis* is
   user-visible. Without this face the browser would synthesise an oblique. */
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/inter/InterVariable-Italic-0aa7a4b3.woff2") format("woff2");
}

/* Set Inter as the default font family */
:root {
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
               'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}

body {
  font-family: var(--font-sans);
}
