/*
 * Roboto Condensed https://fonts.google.com/specimen/Roboto+Condensed
 *
 * Same family name as before. Prefer compact woff2; keep static TTF as
 * fallback. Weights match theme tokens (body 400, display 500, nav 600, headings/buttons 700).
 */
@font-face {
  font-family: "Roboto Condensed";
  src:
    url("../woff2/roboto-condensed-400.woff2") format("woff2"),
    url("../static/RobotoCondensed-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Condensed";
  src:
    url("../woff2/roboto-condensed-500.woff2") format("woff2"),
    url("../static/RobotoCondensed-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Condensed";
  src:
    url("../woff2/roboto-condensed-600.woff2") format("woff2"),
    url("../static/RobotoCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Condensed";
  src:
    url("../woff2/roboto-condensed-700.woff2") format("woff2"),
    url("../static/RobotoCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/*
 * Sized fallback to reduce CLS during the font-display: swap window.
 * Metrics extracted from RobotoCondensed-Regular.ttf vs Arial.ttf
 * (unitsPerEm, hhea ascent/descent/lineGap, OS/2 xAvgCharWidth):
 * size-adjust matches average glyph width; ascent/descent/line-gap
 * are then divided by size-adjust so the rendered fallback approximates
 * Roboto Condensed's real vertical metrics. Re-derive if either font changes.
 */
@font-face {
  font-family: "Roboto Condensed Fallback";
  src:
    local("Arial"),
    local("Liberation Sans"),
    local("Helvetica Neue"),
    local("Helvetica");
  size-adjust: 112.72%;
  ascent-override: 82.3%;
  descent-override: 21.66%;
  line-gap-override: 0%;
}
