/* =====================================================================
   Site-wide typography — one family, one scale. Loaded LAST so it wins.
   Change --t-* here to retune every page at once.
   ===================================================================== */
:root {
    --t-font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --t-h1: clamp(1.85rem, 1.1rem + 2.1vw, 2.5rem);   /* page hero heading  ~30 → 40px */
    --t-h2: clamp(1.45rem, 1rem + 1.3vw, 1.85rem);    /* section heading    ~23 → 30px */
    --t-h3: 1.125rem;                                   /* card title          18px */
    --t-h4: 1rem;                                       /* small title         16px */
    --t-body: .9375rem;                                 /* body copy           15px */
    --t-lead: 1.0625rem;                                /* hero / intro lead   17px */
    --font-head: var(--t-font);
    --fs-h1: var(--t-h1); --fs-h2: var(--t-h2); --fs-h3: var(--t-h3); --fs-h4: var(--t-h4);
}

/* Headings — :not(#_) lifts specificity above every page stylesheet */
h1:not(#_):not(header *):not(footer *):not(dialog *):not(.ct-ways *),
h2:not(#_):not(header *):not(footer *):not(dialog *),
h3:not(#_):not(header *):not(footer *):not(dialog *):not(.ct-ways *),
h4:not(#_):not(header *):not(footer *):not(dialog *) {
    font-family: var(--t-font) !important;
    font-style: normal;
    letter-spacing: -.015em !important;
}
h1:not(#_):not(header *):not(footer *):not(dialog *) { font-size: var(--t-h1) !important; font-weight: 700 !important; line-height: 1.15 !important; }
h2:not(#_):not(header *):not(footer *):not(dialog *) { font-size: var(--t-h2) !important; font-weight: 700 !important; line-height: 1.2 !important; }
h3:not(#_):not(header *):not(footer *):not(dialog *):not(.ct-ways *) { font-size: var(--t-h3) !important; font-weight: 600 !important; line-height: 1.3 !important; }
h4:not(#_):not(header *):not(footer *):not(dialog *) { font-size: var(--t-h4) !important; font-weight: 600 !important; line-height: 1.35 !important; }
h1 em, h2 em, h3 em { font-style: normal; }

/* Hero / intro lead paragraphs */
.lead:not(#_), .sv-lead:not(#_), .pg-lead:not(#_), .hero p.lead:not(#_) { font-size: var(--t-lead) !important; line-height: 1.7 !important; }

/* Body copy */
main p:not(#_):not(.lead):not(.sv-lead):not(.pg-lead) { font-size: var(--t-body); line-height: 1.65; }

@media (max-width: 640px) {
    :root { --t-h1: 1.65rem; --t-h2: 1.3rem; --t-h3: 1.05rem; --t-lead: 1rem; --t-body: .9rem; }
}
