/* ==========================================================================
   Fonts and typography tokens
   All text uses Trebuchet MS, as on the live site. It is a licensed
   Microsoft font that can't be redistributed, so the visitor's installed
   copy is used first, then the self-hosted open-licence Fira Sans
   (400, 400 italic, 500, 600, 700) as the fallback.
   The fallback is not preloaded: most visitors have Trebuchet MS, and a
   preload would download a font they never use (and log a browser warning).
   ========================================================================== */

@font-face {
  font-family: "Fira Sans";
  src: url("../fonts/FiraSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("../fonts/FiraSans-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("../fonts/FiraSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("../fonts/FiraSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("../fonts/FiraSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Families */
  --font-body: "Trebuchet MS", "Fira Sans", "Lucida Grande", Arial, sans-serif;
  --font-display: var(--font-body);

  /* Weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Line heights */
  --lh-body: 1.65;
  --lh-heading: 1.2;
}

html {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
}

h1, h2, h3, h4, h5, h6 {
  line-height: var(--lh-heading);
  text-wrap: balance; /* avoid awkward wraps in long headings */
}

/* Site title, page titles and the tagline (weights set in style.css) */
.site-title,
.page-title,
.tagline {
  font-family: var(--font-display);
  line-height: var(--lh-heading);
}

/* Bold-weight safety: never let the browser synthesise missing weights/styles */
body { font-synthesis: none; }
