/* @font-face declarations for the Quality Company Formations brand.
   Linked conditionally from src/app/(frontend)/layout.tsx so 1FF / Rapid
   pages never declare or download these binaries.

   Source: the live QCF marketing site self-hosts Roboto Condensed via its
   S3 CDN (cdn-quality.s3.amazonaws.com/assets/custom/files/fonts/roboto/).
   The woff2 binaries under /public/fonts/clone/roboto/ were re-hosted from
   that source on 2026-06-22 (T12) so the clone stack has no runtime
   dependency on their S3 bucket.

   Family / weight / file mapping is taken verbatim from the live site's
   base-min-gzip.css @font-face blocks. Three family names match exactly:
     "robotobold"    → Roboto Condensed Bold (weight 700)
     "robotolight"   → Roboto Condensed Light (weight 300)
     "robotoregular" → Roboto Condensed Regular (weight 400)

   These CSS family names are used verbatim in QCF's captured cascade.
   The Tailwind fontFamily config (tailwind.config.mjs) also exposes
   "Roboto Condensed Regular" / "Roboto Condensed Bold" / etc. aliases
   that the clone blocks emit; both names resolve to the same woff2 binary.

   2026-06-25 (geometry-F0) — CORRECTION to the note below. The original
   assumption that "the cloned QCF blocks only reference the Roboto Condensed
   family" was WRONG. Ground-truth walker snapshots show the QCF site's
   DOMINANT computed font-family is plain `Roboto, sans-serif` — 6231 captured
   nodes (body copy, nav, headings) vs only ~30 for canada-type-gibson. With no
   @font-face for the exact family `Roboto`, the clone fell back to system
   sans-serif (Arial), whose glyph metrics differ from Roboto — shifting BOTH
   text-box width (wrap points) and height (line-box metrics × line count) on
   the dominant text, machine-dependently (only matched where the box happened
   to have Roboto installed). Prod self-hosts `Roboto` at weights 400 + 700 only
   (it synthesizes 500/600/900 from those), src on its S3 CDN:
     .../fonts/roboto/roboto-regular.woff2       (400)
     .../fonts/roboto/roboto-regular-bold.woff2  (700)
   Those exact binaries are re-hosted under /public/fonts/clone/roboto/ and
   wired below. `local()` is intentionally omitted (prod lists it first) so the
   self-hosted file is ALWAYS used — deterministic across every machine/CI.

   Note on Adobe Typekit fonts (karmina, myriad-pro-semi-condensed):
   The QCF site also loads karmina (wt 400/700) and myriad-pro-semi-condensed
   (wt 300/400/700) via Typekit kit vyg0tnc. These are LICENSED Adobe fonts
   served exclusively from use.typekit.net — they cannot be re-hosted. The
   clone does not need them: the cloned QCF blocks (T13, T14, etc.) only
   reference the Roboto Condensed family from the captured CSS cascade. The
   Typekit fonts appear on legacy inner-page templates (package purchase,
   checkout flows) that are not in scope for the QCF clone effort. */

/* Plain Roboto — the QCF site's DOMINANT body/nav/heading family
   (`font-family: Roboto, sans-serif`, 6231 captured nodes). Prod defines only
   weights 400 + 700; the browser synthesizes the 500/600/900 seen in snapshots.
   Re-hosted from prod S3 (.../fonts/roboto/roboto-regular[-bold].woff2). No
   local() → the self-hosted binary is always used (deterministic). geometry-F0. */
@font-face {
  font-family: 'Roboto';
  src: url('/fonts/clone/roboto/roboto-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('/fonts/clone/roboto/roboto-regular-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Roboto Light (300) — re-hosted from prod's /about-us/ base64-embedded
   @font-face (T1305 / CORE-6650). Prod serves it as an inline base64 `woff`
   data URI with no woff2 fallback; decoded to a binary file here. Without
   this face, 300-weight body copy (the site's dominant body-text weight)
   fell back to the loaded Roboto 400 face and rendered visibly heavier. */
@font-face {
  font-family: 'Roboto';
  src: url('/fonts/clone/roboto/roboto-light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Roboto Condensed Bold — maps to CSS family "robotobold" */
@font-face {
  font-family: 'robotobold';
  src: url('/fonts/clone/roboto/roboto-condensed.bold-webfont.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Roboto Condensed Light — maps to CSS family "robotolight" */
@font-face {
  font-family: 'robotolight';
  src: url('/fonts/clone/roboto/roboto-condensed.light-webfont.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Roboto Condensed Regular — maps to CSS family "robotoregular" */
@font-face {
  font-family: 'robotoregular';
  src: url('/fonts/clone/roboto/roboto-condensed.regular-webfont.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Aliases matching the Tailwind fontFamily tokens added for T16.
   The QCF clone blocks emit classes like font-roboto-condensed which
   Tailwind resolves to font-family: "Roboto Condensed Regular", sans-serif.
   These @font-face rules ensure the browser can load the correct binary
   for that family name. */
@font-face {
  font-family: 'Roboto Condensed Bold';
  src: url('/fonts/clone/roboto/roboto-condensed.bold-webfont.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Condensed Light';
  src: url('/fonts/clone/roboto/roboto-condensed.light-webfont.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Condensed Regular';
  src: url('/fonts/clone/roboto/roboto-condensed.regular-webfont.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
