/* Homepage only (linked from index.html, after oak-and-ash.css).
   Metric-matched fallbacks so the web-font swap does not reflow main.content.
   size-adjust is the web font's average advance divided by the local font's.
   Overrides are the web font's hhea metrics divided by that size-adjust. */

@font-face {
  font-family: "Atkinson Metric Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 96.81%;
  ascent-override: 98.13%;
  descent-override: 29.96%;
  line-gap-override: 0%;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Metric Fallback";
  src: local("Times New Roman"), local("Liberation Serif"), local("Times");
  size-adjust: 94.74%;
  ascent-override: 97.53%;
  descent-override: 30.29%;
  line-gap-override: 0%;
  font-display: swap;
}

body.sanctum {
  --font-sans: "Atkinson Hyperlegible", "Atkinson Metric Fallback", sans-serif;
  --font-serif: "Cormorant Garamond", "Cormorant Metric Fallback", "Times New Roman", serif;
  font-family: "Atkinson Hyperlegible", "Atkinson Metric Fallback", sans-serif !important;
}

body.sanctum :is(h1, h2, h3, .card-title, .site-word, .mast-tag, .moon-name) {
  font-family: "Cormorant Garamond", "Cormorant Metric Fallback", "Times New Roman", serif !important;
}
