/*
 * Selbst gehostete Schriften (SIL Open Font License, Lizenztexte in /static/fonts/OFL-*.txt).
 * Subset: Latin, Latin-1, Latin Extended-A (ô, ē …), Cyrillic (Russisch inkl. Ё/ё), Satzzeichen, €, №.
 * Preload im <head> nur die zwei Hauptdateien:
 *   <link rel="preload" href="/static/fonts/cormorant-var.woff2" as="font" type="font/woff2" crossorigin>
 *   <link rel="preload" href="/static/fonts/jost-var.woff2" as="font" type="font/woff2" crossorigin>
 */

@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-var.woff2") format("woff2-variations"),
       url("../fonts/cormorant-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-italic-var.woff2") format("woff2-variations"),
       url("../fonts/cormorant-italic-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Great Vibes";
  src: url("../fonts/great-vibes.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;   /* dekorativ; Fallback ist akzeptabel */
}

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-var.woff2") format("woff2-variations"),
       url("../fonts/jost-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* Metrik-angepasste Fallbacks gegen Layout-Shift beim Font-Swap */
@font-face {
  font-family: "Cormorant Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 88%;
  ascent-override: 102%;
  descent-override: 32%;
}
@font-face {
  font-family: "Jost Fallback";
  src: local("Avenir Next"), local("Segoe UI"), local("Arial");
  size-adjust: 98%;
}
