/**
 * Site fonts — metric-matched fallbacks + no layout jump on load.
 * Pair with includes/site_fonts.html (Cormorant Garamond + Montserrat).
 */

/* Sized to match web fonts and reduce CLS when they apply. */
@font-face {
  font-family: "Cormorant Garamond Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 107.5%;
  ascent-override: 88%;
  descent-override: 22%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Montserrat Fallback";
  src: local("Segoe UI"), local("Arial");
  size-adjust: 105.2%;
  ascent-override: 88%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  --font-serif: "Cormorant Garamond", "Cormorant Garamond Fallback", "Iowan Old Style", Palatino, Georgia, serif;
  --font-sans: "Montserrat", "Montserrat Fallback", "Segoe UI", system-ui, -apple-system, sans-serif;
}

html {
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

html.fonts-loading body {
  visibility: hidden;
}

html.fonts-ready body {
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  html.fonts-loading body {
    visibility: visible;
  }
}
