/* A shared editorial type scale keeps headings clear across the public site. */
:root {
    --thm-heading-font-family: 'Rubik', 'Rubik Fallback', sans-serif;
    --thm-heading-font-weight: 600;
}

body :is(main, .fnd-page) :is(h1, h2, h3, h4, h5, h6) {
    font-family: 'Rubik', 'Rubik Fallback', sans-serif;
    letter-spacing: -.025em;
    overflow-wrap: break-word;
}

body :is(main, .fnd-page) :is(h1, h2) {
    font-weight: 600;
    line-height: 1.13;
    text-wrap: balance;
}

body :is(main, .fnd-page) :is(h3, h4, h5, h6) {
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.015em;
}

/* The wider headline face needs a more measured display size than the old condensed face. */
body .rh-copy :is(h1, h2) {
    font-family: 'Rubik', 'Rubik Fallback', sans-serif;
    font-size: clamp(48px, 5vw, 72px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.04em;
    max-width: 13ch;
}

body :is(.ab-page .ab-hero, .contact-new .contact-hero, .faq-new .faq-hero, .blog-hero, .freelance-hero, .legal-hero, .cm-hero, .fnd-page .fnd-hero) h1 {
    font-family: 'Rubik', 'Rubik Fallback', sans-serif;
    font-size: clamp(40px, 4.5vw, 64px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.035em;
}

@media (max-width: 640px) {
    body .rh-copy :is(h1, h2) {
        font-size: clamp(39px, 10vw, 52px);
        max-width: 12ch;
        line-height: 1.1;
    }

    body :is(.ab-page .ab-hero, .contact-new .contact-hero, .faq-new .faq-hero, .blog-hero, .freelance-hero, .legal-hero, .cm-hero, .fnd-page .fnd-hero) h1 {
        font-size: clamp(34px, 9vw, 44px);
        line-height: 1.12;
    }
}
