/*
 * Shared editorial rhythm.
 *
 * This file intentionally loads after page-specific styles. It keeps each
 * Butler brand's existing typefaces and colors while giving every public page
 * the same hierarchy, readable measures, and vertical spacing.
 */

:root {
    --type-heading-tracking: -.035em;
    --type-heading-leading: 1.04;
    --type-copy-leading: 1.7;
    --type-copy-measure: 68ch;
    --type-section-space: clamp(82px, 7vw, 112px);
    --type-section-space-mobile: 68px;
}

body {
    font-size: 16px;
    line-height: var(--type-copy-leading);
    text-rendering: optimizeLegibility;
}

main h1,
main h2,
main h3 {
    text-wrap: balance;
}

main h1,
main h2 {
    letter-spacing: var(--type-heading-tracking);
}

main h1 {
    line-height: 1.01;
}

main h2 {
    line-height: var(--type-heading-leading);
}

main h3 {
    line-height: 1.18;
    letter-spacing: -.025em;
}

main p,
main li {
    text-wrap: pretty;
}

.container {
    width: min(1440px, calc(100% - clamp(40px, 5vw, 80px)));
}

.section {
    padding-block: var(--type-section-space);
}

.eyebrow {
    margin-bottom: 13px;
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: .13em;
}

.section-heading {
    margin-bottom: clamp(34px, 3.5vw, 48px);
    gap: clamp(28px, 4vw, 64px);
}

.section-heading h2 {
    max-width: 18ch;
}

.hero-copy > p,
.inventory-hero p,
.seo-copy-grid > p,
.story-copy > p,
.vdp-acura-heading p,
.vdp-factory-heading p,
.vdp-retail-heading p,
.new-vdp-finance-copy > p,
.new-vdp-highlight-intro + p {
    max-width: var(--type-copy-measure);
    line-height: var(--type-copy-leading);
}

.hero-copy > p {
    margin: 24px 0 29px;
    font-size: 17px;
}

.button,
.header-cta {
    font-size: 14px;
    line-height: 1.15;
}

.button {
    min-height: 48px;
    padding-inline: 23px;
}

.site-nav {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.01em;
}

/* Inventory and vehicle-detail pages */
.inventory-hero h1,
.new-vdp-titlebar h1,
.vdp-summary h1 {
    line-height: 1.02;
}

.inventory-hero p,
.seo-copy-grid > p,
.vdp-retail-heading p {
    font-size: 16px;
}

.results-toolbar h2,
.used-results-toolbar h2 {
    line-height: 1.08;
}

.vehicle-body h3,
.vehicle-card-title,
.acura-card-body h3,
.ford-card-body h2 {
    line-height: 1.18;
}

.new-vdp-highlight-intro,
.vdp-factory-heading,
.vdp-retail-heading,
.vdp-acura-heading {
    margin-bottom: clamp(34px, 4vw, 52px);
}

/* New Ford */
.new-ford-page .container {
    width: min(1760px, calc(100% - clamp(48px, 5vw, 96px)));
}

.ford-main h1 {
    line-height: 1.02;
    letter-spacing: var(--type-heading-tracking);
}

.ford-main h2 {
    line-height: 1.08;
    letter-spacing: var(--type-heading-tracking);
}

.ford-lot-copy h1 {
    max-width: 13ch;
    font-size: clamp(48px, 4.5vw, 72px);
}

.ford-title-intro,
.ford-lot-copy .ford-title-intro {
    max-width: 65ch;
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.68;
}

.ford-section {
    padding-block: clamp(74px, 6vw, 104px);
}

.ford-section-heading {
    margin-bottom: clamp(32px, 3vw, 44px);
    gap: clamp(28px, 4vw, 64px);
}

.ford-section-heading > div > span,
.ford-kicker,
.ford-tool-title small {
    margin-bottom: 10px;
    line-height: 1.2;
    letter-spacing: .12em;
}

.ford-section-heading > p,
.ford-offers-heading p,
.ford-transparency-lead {
    max-width: 60ch;
    font-size: 14px;
    line-height: var(--type-copy-leading);
}

/* New Acura */
.acura-section {
    padding-block: var(--type-section-space);
}

.acura-main h1,
.acura-main h2 {
    line-height: var(--type-heading-leading);
    letter-spacing: var(--type-heading-tracking);
}

.acura-hero h1 {
    max-width: 12ch;
    line-height: .99;
}

.acura-hero-copy > p {
    max-width: 62ch;
    margin: 26px 0 31px;
    font-size: 17px;
    line-height: var(--type-copy-leading);
}

.acura-heading,
.acura-guide-heading,
.acura-offers-lead,
.acura-value-lead {
    margin-bottom: clamp(36px, 3.5vw, 52px);
}

.acura-heading > div > span,
.acura-knowledge-intro > span,
.acura-payment > span,
.acura-guide-heading > div > span,
.acura-offers-lead span,
.acura-value-lead span {
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: .13em;
}

.acura-heading p,
.acura-guide-heading p,
.acura-offers-lead > p,
.acura-value-lead > p,
.acura-visit-card > div > p {
    max-width: 62ch;
    margin-top: 14px;
    font-size: 14px;
    line-height: var(--type-copy-leading);
}

/* Editorial, campaign, trade, and towing pages */
.landing-hero h1,
.trade-hero-copy h1,
.fathom-hero h1 {
    line-height: 1;
    letter-spacing: var(--type-heading-tracking);
}

.landing-hero-copy > p,
.fathom-hero-lead {
    max-width: 65ch;
    margin-block: 27px 32px;
    font-size: 17px;
    line-height: var(--type-copy-leading);
}

.landing-article-section,
.landing-inventory-section,
.landing-related-section,
.landing-closing,
.towing-ratings-section,
.towing-planner-section,
.flat-towing-section,
.official-guides-section {
    padding-block: var(--type-section-space);
}

.landing-section-heading,
.towing-section-heading {
    margin-bottom: clamp(38px, 4vw, 56px);
    gap: clamp(36px, 5vw, 78px);
}

.landing-section-heading h2,
.towing-section-heading h2,
.fathom-section-heading h2 {
    line-height: 1.03;
    letter-spacing: var(--type-heading-tracking);
}

.landing-section-heading > p,
.towing-section-heading > p,
.fathom-section-heading > p,
.landing-closing p {
    max-width: 62ch;
    font-size: 15px;
    line-height: var(--type-copy-leading);
}

.landing-article p,
.fathom-intro-copy p,
.fathom-story-copy p,
.fathom-interest-copy > p {
    max-width: 70ch;
    line-height: 1.78;
}

.trade-section-heading {
    margin-bottom: clamp(34px, 3.5vw, 48px);
}

@media (max-width: 900px) {
    .container,
    .new-ford-page .container,
    .new-acura-page .container {
        width: min(100% - 40px, 1440px);
    }

    .ford-section-heading > p,
    .acura-heading p,
    .landing-section-heading > p,
    .towing-section-heading > p {
        max-width: 68ch;
    }
}

@media (max-width: 600px) {
    body {
        line-height: 1.65;
    }

    .container,
    .new-ford-page .container,
    .new-acura-page .container {
        width: min(100% - 32px, 1440px);
    }

    .section,
    .ford-section,
    .acura-section,
    .landing-article-section,
    .landing-inventory-section,
    .landing-related-section,
    .landing-closing,
    .towing-model-index,
    .towing-ratings-section,
    .towing-planner-section,
    .flat-towing-section,
    .official-guides-section {
        padding-block: var(--type-section-space-mobile);
    }

    main h1 {
        line-height: 1.04;
    }

    main h2 {
        line-height: 1.08;
    }

    .section-heading,
    .ford-section-heading,
    .acura-heading,
    .acura-guide-heading,
    .landing-section-heading,
    .towing-section-heading,
    .fathom-section-heading {
        margin-bottom: 32px;
    }

    .hero-copy > p,
    .acura-hero-copy > p,
    .landing-hero-copy > p,
    .fathom-hero-lead {
        font-size: 16px;
        line-height: 1.65;
    }

    .ford-title-intro,
    .ford-lot-copy .ford-title-intro {
        font-size: 14px;
        line-height: 1.6;
    }
}
