/* =========================================================
   StayFritz — Self-hosted font declarations
   Two families only: Cormorant Garamond (serif) + Switzer (sans)
   All files served from /static/fonts/ — no CDN roundtrip.

   Exactly two font files are requested on every public page:
     1. cormorant-garamond-500.woff2  (preloaded — upright, weights 400-500)
     2. switzer-variable.woff2        (preloaded — upright variable, 100-900)

   Italic synthesis is handled by the browser for both families:
     - Switzer is a variable font; browsers produce high-quality obliques.
     - Cormorant italic is synthesized from the upright (acceptable for
       editorial headers at display sizes). Keeping both families to two
       physical files is more important than optical italic at this stage.
   ========================================================= */

/* ---- Cormorant Garamond — Upright (weights 400–500, Latin) ---- */
/*
 * Latin subset covers U+0000-00FF, which includes all German characters
 * (ä U+00E4, ö U+00F6, ü U+00FC, ß U+00DF). This single file handles
 * every public-page use case; the browser will not request a second file.
 */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/static/fonts/cormorant-garamond-500.woff2') format('woff2');
}

/* ---- Switzer Variable — Upright (preloaded, covers 100–900) ---- */
@font-face {
  font-family: 'Switzer';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/fonts/switzer-variable.woff2') format('woff2');
}

/* ---- Override Bootstrap/Tailwind mono utility classes ---- */
/*
 * Bootstrap's .font-monospace and Tailwind's .font-mono previously rendered
 * IBM Plex Mono / JetBrains Mono. Both now use Switzer so no third
 * font family is ever requested. Payment IDs, IBANs, etc. stay readable
 * in a proportional sans — no uppercase/letter-spacing here since these
 * are data fields, not labels.
 */
.font-mono,
.font-monospace {
  font-family: 'Switzer', system-ui, -apple-system, 'Helvetica Neue', sans-serif !important;
}
