/* Site type: Cabinet Grotesk for headings, Satoshi for everything else.
   Loaded last. The :not(#..) chains outrank the older per-section font rules. */
html {
    --font-display: "Cabinet Grotesk", "Satoshi", system-ui, sans-serif;
    --font-body: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html body,
html body *:not(code):not(pre):not(kbd):not(samp):not(#f1):not(#f2):not(.ab-live-term *):not(.ab-live-term):not(.ab-deck-count) {
    font-family: var(--font-body) !important;
}

html body :is(h1, h2, h3, h1 *, h2 *, h3 *, .ab-flow-name, .ab-flow-name span, .ab-why-num, .ab-deck-quote, .ab-hero-v2-title, .ab-say p, .ab-say p span):not(#f1):not(#f2):not(#f3):not(#f4) {
    font-family: var(--font-display) !important;
}

/* these were set in a single-weight condensed or serif face */
html body :is(.kx-process h2, .kx-row-line, .ab-flow-head h2, .ab-flow-pane h3, .ab-flow-name, .ab-why-head h2, .ab-why-num, .ab-deck-eyebrow, .ab-deck-quote, .ch-closing h2):not(#f1):not(#f2):not(#f3):not(#f4) {
    font-weight: 800 !important;
    letter-spacing: -0.015em !important;
}

/* Cabinet Grotesk is much wider than the condensed face it replaces */
html body section.kx-process h3.kx-row-line:not(#f1) { font-size: clamp(20px, 4.4vw, 56px) !important; }
html body section.kx-process .kx-process-head h2:not(#f1) { font-size: clamp(44px, 7vw, 92px) !important; max-width: 7em !important; }
html body section.ch-closing h2:not(#f1) { font-size: clamp(34px, 4.8vw, 60px) !important; }
html body .ab h1.ab-hero-v2-title:not(#f1) { font-size: clamp(38px, 10vw, 160px) !important; }

@media (max-width: 760px) {
    html body section.kx-process h3.kx-row-line:not(#f1) { font-size: clamp(18px, 5.8vw, 38px) !important; }
}

html body :is(h1, h2, h3) { text-wrap: balance; }
