/* Self-hosted webfonts for the D13 homepage direction.
   Latin subset only, weights actually used on the site — nothing more.
   Downloaded from Google Fonts (Source Sans 3, Source Serif 4, JetBrains
   Mono), served locally: no CDN request on page load. */

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4-MediumItalic.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* Metric-matched fallbacks: until the webfonts arrive, text is set in a local
   font scaled to the same width, so the swap does not re-wrap lines and push
   the page around (layout shift). size-adjust ratios were measured as
   webfont width / fallback width on the site's own copy. */
@font-face {
  font-family: "Source Sans 3 Fallback";
  src: local("Arial");
  font-weight: 400; size-adjust: 94.5%;
}
@font-face {
  font-family: "Source Sans 3 Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 600 700; size-adjust: 89.8%;
}
@font-face {
  font-family: "Source Serif 4 Fallback";
  src: local("Times New Roman");
  font-weight: 400; size-adjust: 118.6%;
}
@font-face {
  font-family: "Source Serif 4 Fallback";
  src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT");
  font-weight: 600 700; size-adjust: 113.3%;
}
