/* ============================================================
   MADISON AVE CONSTRUCTION — fonts.css
   Font faces live here, not in style.css, so the homepage can inline
   them and load style.css late without the faces being declared twice
   (a second declaration makes a late font swap in and shift the layout).
   Every other page links this file before style.css.
   Keep the inline copy in index.html in sync with this file.
   ============================================================ */

/* Self-hosted fonts — all weights served locally, no Google Fonts requests.
   font-display: optional means no layout shift: a font that isn't ready at
   first paint is skipped for that page view (and cached for the next one).
   The three files used above the fold are preloaded in each page <head>. */
@font-face {
  font-family: 'Barlow Condensed';
  src: url('assets/fonts/barlow-condensed-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: optional;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('assets/fonts/barlow-condensed-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: optional;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('assets/fonts/barlow-condensed-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: optional;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('assets/fonts/barlow-condensed-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: optional;
}
@font-face {
  font-family: 'DM Sans';
  /* One variable file covers every weight (it used to be four identical copies) */
  src: url('assets/fonts/dm-sans-400.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: optional;
}

/* Fallback fonts tuned to match metrics — minimises layout shift on first visit */
@font-face {
  font-family: 'BarlowCondensed-fallback';
  src: local('Arial Narrow Bold'), local('Arial Narrow'), local('Helvetica Neue Condensed Bold');
  size-adjust: 92%;
  ascent-override: 95%;
  descent-override: 22%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'DMSans-fallback';
  src: local('Arial');
  size-adjust: 100%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}
