/* eezyprint's two typefaces, per the approved design (docs/branding/approved/cap-design-20261104-approved.html):
   Space Grotesk for headings, buttons, prices and labels; Hanken Grotesk for everything else.  Bob 11/04 rejected Inter ("i like
   the SpaceGrotesk not the body font"), Hanken replaced it and that design was approved.  Bob 11/06: "these are still Futura."
   The fleet's design suite sets Eagle and Futura with !important on every site; this wins on this site only.  Loaded last, from
   the CDN (hanken-grotesk.css, space-grotesk.css), never from Google at runtime.  Measured by scripts/branding/test-fonts.py,
   which reads the font actually drawn, not the CSS.  :not(#_) lifts specificity above the suite's rules. */

:root {
    --ep-font-head: 'Space Grotesk', system-ui, sans-serif;
    --ep-font-body: 'Hanken Grotesk', system-ui, sans-serif;
    --ep-font-display: var(--ep-font-head);
    --eezy-font-heading: var(--ep-font-head);
    --eezy-font-accent: var(--ep-font-head);
    --eezy-font-body: var(--ep-font-body);
    --eezy-font-light: var(--ep-font-body);
}

html body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* everything: Hanken.  Icon fonts, code and the SVG marks keep their own. */
html body:not(#_),
html body *:not(#_):not(svg):not(svg *):not(i):not(code):not(pre):not(kbd):not([class*="dashicons"]):not([class*="fa-"]):not([class*="material-"]) {
    font-family: var(--ep-font-body) !important;
}

/* headings, buttons, prices, labels: Space Grotesk */
html body :is(h1, h2, h3, h4, h5, h6, button, summary, input[type="submit"], .eezy-hdr-cta, .eezy-hdr-login, .epai-btn, .eezy-flip__cta,
    .eezy-pcard-price, .bde-text-5057-133, .epai-section-title, .epai-quote__brand, .epai-label, .epai-cart-item__brand):not(#_):not(#__),
html body :is(h1, h2, h3, h4, h5, h6, button, summary, .eezy-hdr-cta, .eezy-hdr-login, .epai-btn, .eezy-flip__cta,
    .eezy-pcard-price, .bde-text-5057-133, .epai-section-title):not(#_):not(#__) *:not(svg):not(svg *):not(i) {
    font-family: var(--ep-font-head) !important;
}

html body :is(h1, h2, .eezy-pcard-price, .bde-text-5057-133, .epai-section-title):not(#_) { font-weight: 700 !important; }
html body :is(h3, h4, h5, h6, summary, button, input[type="submit"], .eezy-hdr-cta, .eezy-hdr-login, .epai-btn, .eezy-flip__cta):not(#_) { font-weight: 600 !important; }

/* Title Case from the data, never forced capitals */
html body :is(h1, h2, h3, h4, h5, h6, .epai-magazine__card-brand):not(#_) { text-transform: none !important; }
