/* TYPOGRAPHY: the one place to change the typefaces (enqueued last, so it wins over the sections).
   For now the operating system font stack: the client has not chosen the final typefaces yet
   (two families: one for the big display titles, one for the lighter text).

   To add self-hosted fonts later (see README.md, "Font"):
   1. put the woff2 files in assets/fonts/
   2. uncomment and adapt the @font-face blocks below (font-display: swap)
   3. set --f-display / --f-text (and the weights) to the new families
   4. preload only the critical weights (inc/enqueue.php, "Font preload")

@font-face {
  font-family: 'Display';
  src: url('../fonts/display-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Text';
  src: url('../fonts/text-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
*/

:root {
  --f-system: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --f-display: var(--f-system); /* big titles */
  --f-text: var(--f-system);    /* body, UI, forms */
  --fw-display: 500;            /* weight of the display titles */
  --fw-text: 400;               /* weight of running text */
}

body { font-family: var(--f-text); font-weight: var(--fw-text); }

/* Display role: every title set large */
.t-xl, .t-l, .hero__title, .quick__title, .menu__link, .footer__word, .error__title {
  font-family: var(--f-display);
  font-weight: var(--fw-display);
}
