/* Brand web fonts for the Dusk presell markup.
 *
 * The presell templates style type with Tailwind arbitrary font-family classes
 * (e.g. font-['TT_Octosquares',sans-serif], font-['TT_Norms_Pro',sans-serif],
 * font-['TT_Norms_Pro_Mono',monospace]) — Tailwind turns the underscores into
 * spaces, so the resolved CSS families are "TT Octosquares", "TT Norms Pro" and
 * "TT Norms Pro Mono". No @font-face declared those *spaced* names, so every
 * one fell back to ui-sans-serif. These declarations make them load. This file
 * is @font-face ONLY — it intentionally sets no component styles, so it cannot
 * regress layout/CTA/colour.
 *
 * Served at /dusk/css/fonts.css, so ../fonts/ resolves to /dusk/fonts/.
 * NOTE: Font files (.woff2/.woff) must be added to dusk/src/dusk/assets/fonts/
 */

@font-face {
  font-family: "TT Octosquares";
  src: url("../fonts/TTOctosquares-Bold.woff2") format("woff2"),
       url("../fonts/TTOctosquares-Bold.woff") format("woff");
  font-weight: 400 700; /* display face ships Bold only; cover the range */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Norms Pro";
  src: url("../fonts/TTNormsPro-Rg.woff2") format("woff2"),
       url("../fonts/TTNormsPro-Rg.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TT Norms Pro";
  src: url("../fonts/TTNormsPro-DmBd.woff2") format("woff2"),
       url("../fonts/TTNormsPro-DmBd.woff") format("woff");
  font-weight: 500 600; /* DemiBold covers the 500/600 specs */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TT Norms Pro";
  src: url("../fonts/TTNormsPro-Bd.woff2") format("woff2"),
       url("../fonts/TTNormsPro-Bd.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Norms Pro Mono";
  src: url("../fonts/TTNormsProMono-Rg.woff2") format("woff2"),
       url("../fonts/TTNormsProMono-Rg.woff") format("woff");
  font-weight: 400; /* Regular only — browser synthesises bold when font-bold is applied */
  font-style: normal;
  font-display: swap;
}

/* Fallback class rules — backs the three exact Tailwind arbitrary classes the
 * templates use, in case Tailwind CDN does not emit them. Underscores stay
 * literal in the class name; they become spaces in the family name to match
 * the @font-face names above. */
.font-\[\'TT_Octosquares\'\,sans-serif\] { font-family: "TT Octosquares", sans-serif; }
.font-\[\'TT_Norms_Pro\'\,sans-serif\] { font-family: "TT Norms Pro", sans-serif; }
.font-\[\'TT_Norms_Pro_Mono\'\,monospace\] { font-family: "TT Norms Pro Mono", monospace; }
