/*
 * assets/css/fonts.css
 *
 * Lokale Schriften statt fonts.googleapis.com. Alle drei Familien stehen unter
 * der SIL Open Font License, lokales Hosten ist ausdruecklich erlaubt.
 *
 * Dateien liegen unter assets/fonts/ im Theme, in der Benennung von
 * gwfh.mranftl.com (Zeichensatz "latin", Format "woff2").
 *
 * ACHTUNG bei spaeteren Aktualisierungen: die Versionsnummer im Dateinamen
 * ("v31", "v20", "v24") zaehlt Google bei jeder Ueberarbeitung hoch. Wer die
 * Schriften neu herunterlaedt, bekommt andere Dateinamen und muss die Pfade
 * hier mit anpassen — sonst laedt keine Schrift mehr.
 *
 * font-display: swap ist wichtig. Ohne diese Zeile bleibt der Text unsichtbar,
 * solange die Schrift laedt (Flash of Invisible Text).
 *
 * Im Theme verwendet:
 *   Montserrat  300, 400, 500, 600, 700   (font-display, Ueberschriften)
 *   Inter       400, 500, 600, 700        (font-body, Fliesstext)
 *   JetBrains   400, 700                  (font-mono, Ziffernmarken)
 *
 * Caveat (caveat-latin-600.woff2) liegt ebenfalls im fonts-Ordner, wird aber
 * an anderer Stelle eingebunden und ist deshalb hier nicht aufgefuehrt.
 */

/* ---------------- Montserrat (Display) ---------------- */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/montserrat-v31-latin-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-v31-latin-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/montserrat-v31-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/montserrat-v31-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-v31-latin-700.woff2') format('woff2');
}

/* ---------------- Inter (Body) ---------------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-700.woff2') format('woff2');
}

/* ---------------- JetBrains Mono ---------------- */

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

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