/*
  Loggad — self-hosted fonts (replaces the design system's Google Fonts @import).
  Latin subsets cover Swedish (å ä ö live in the latin range).
  Instrument Sans is a variable font: one file serves weights 400–700.
*/

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url('../fonts/instrument-sans-400-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-sans-400-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  /* A cold route may first use the display face after its shell has painted.
     `optional` never swaps a late face into that already-painted layout; the
     head preload below keeps the normal path on-brand. */
  font-display: optional;
  src: url('../fonts/instrument-serif-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-400-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/space-mono-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-mono-700.woff2') format('woff2');
}
