/* PermitPal type system — DIN Pro (licensed) from the paid font library.
   Sources (do not re-download; convert/copy only from the library):
   - /Users/gurbakshchahal/fonts/sans/DIN-Pro/DINPro-{Regular,Medium,Bold}.woff
     (converted to self-hosted WOFF2 with fontTools 4.62.1 on 2026-10-14)
   - /Users/gurbakshchahal/fonts/sans/TT-Commons-Pro/TT-Commons-Pro-Mono-Regular.woff2
   DIN Pro is the highway/engineering signage face for this app (fonts README,
   "Technical docs" + "Government/wayfinding" occasions; house metric face).
   Weight system: Regular body, Medium controls/labels/headings, Bold only for
   display-scale signage numerals, the wordmark, and warning callouts.
   The mono face is for machine identifiers only (progress share codes). */

@font-face {
  font-family: "DIN Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./dinpro-regular.woff2") format("woff2");
}

@font-face {
  font-family: "DIN Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./dinpro-medium.woff2") format("woff2");
}

@font-face {
  font-family: "DIN Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./dinpro-bold.woff2") format("woff2");
}

/* Metric-matched fallback so a late swap does not reflow the layout.
   Values measured from DINPro-Regular.woff (hhea 1041/-237/10, UPM 1000,
   mixed-case advance ratio) against macOS Helvetica.ttc on 2026-10-14. */
@font-face {
  font-family: "DIN Pro Fallback";
  src: local("Helvetica Neue"), local("Helvetica"), local("Arial");
  size-adjust: 95.08%;
  ascent-override: 109.49%;
  descent-override: 24.93%;
  line-gap-override: 1.05%;
}

@font-face {
  font-family: "TT Commons Pro Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./tt-commons-pro-mono-regular.woff2") format("woff2");
}

/* Metric-matched mono fallback (0.6em advance both faces; measured against
   macOS Menlo.ttc on 2026-10-14). */
@font-face {
  font-family: "TT Commons Pro Mono Fallback";
  src: local("Menlo"), local("SF Mono"), local("Consolas");
  size-adjust: 99.66%;
  ascent-override: 103.85%;
  descent-override: 28.60%;
  line-gap-override: 0%;
}
