/* Self-hosted fonts - replaces the Google Fonts <link> on every page.
   Files live in ../fonts/ (assets/fonts/).

   font-display: optional (not swap) — 2026-09-16. A PageSpeed run showed CLS 0.686
   ("poor", body:0.681 - nearly the whole page shifting), traced to the large hero
   heading swapping from its fallback serif to Cormorant Garamond after first paint and
   reflowing everything below it. `swap` always does that swap once the font arrives,
   regardless of whether this stylesheet itself is render-blocking or deferred — the
   swap timing is controlled by font-display, not by how the CSS loads. `optional`
   removes the swap entirely: the browser gets a short window (~100ms) to use the real
   font, and if it's not ready by then, keeps the fallback for that page view with no
   later reflow. Trade-off: on a slow/uncached first load some visitors briefly see the
   fallback serif/sans instead of the brand font — acceptable given the font files are
   small, preloaded at high priority, and cached after the first visit. */

/* -- Cormorant Garamond -- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: optional;
  src: url('../fonts/cormorant-garamond-v21-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('../fonts/cormorant-garamond-v21-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url('../fonts/cormorant-garamond-v21-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: optional;
  src: url('../fonts/cormorant-garamond-v21-latin-300italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: optional;
  src: url('../fonts/cormorant-garamond-v21-latin-italic.woff2') format('woff2');
}

/* -- DM Sans -- */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: optional;
  src: url('../fonts/dm-sans-v17-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('../fonts/dm-sans-v17-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url('../fonts/dm-sans-v17-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url('../fonts/dm-sans-v17-latin-600.woff2') format('woff2');
}
