/*
 * Homepage typography
 *
 * Structural homepage styles own layout.
 * This file only selects roles from the shared Corben type scale
 * and makes small adjustments required by particularly narrow
 * homepage columns.
 */


/*
 * Shared display treatment
 */

.hero--campaign .hero__heading,
.home-announcement__title,
.home-record .section-heading__heading,
.home-priorities .section-heading__heading,
.home-meet__heading,
.home-news .section-heading__heading,
.record-card__title,
.priority-item__title,
.news-card__title {
    font-family: var(--font-display);
    font-weight: var(--font-display-weight);

    letter-spacing: var(--font-display-tracking-tight);
}


/*
 * Campaign hero
 */

.hero--campaign .hero__heading {
    max-width: 9ch;

    font-size: var(--type-display-hero);
    line-height: 1;
}


/*
 * Senate announcement
 */

.home-announcement__title {
    max-width: 12ch;

    font-size: var(--type-display-split);
    line-height: 1.03;
}


/*
 * Record
 */

.home-record .section-heading__heading {
    max-width: 17ch;

    font-size: var(--type-display-section);
    line-height: 1.03;
}


/*
 * Priorities
 *
 * This section occupies a deliberately narrower column than
 * most homepage headings. It therefore uses the split-heading
 * scale rather than the full section-heading scale.
 */

.home-priorities .section-heading__heading {
    max-width: 14ch;

    font-size: var(--type-display-split);
    line-height: 1.03;
}


/*
 * Meet Joshua
 */

.home-meet__heading {
    max-width: 15ch;

    font-size: var(--type-display-split);
    line-height: 1.03;
}


/*
 * News
 */

.home-news .section-heading__heading {
    max-width: 18ch;

    font-size: var(--type-display-section);
    line-height: 1.03;
}


/*
 * Record cards
 */

.record-card__title {
    font-size: var(--type-display-card);
    line-height: 1.08;

    letter-spacing: var(--font-display-tracking);
}

.record-card--featured .record-card__title {
    font-size: var(--type-display-card-featured);
}


/*
 * Priority rows
 */

.priority-item__title {
    font-size: var(--type-display-small);
    line-height: 1.1;

    letter-spacing: var(--font-display-tracking);
}


/*
 * News cards
 */

.news-card__title {
    font-size: var(--type-display-small);
    line-height: 1.08;

    letter-spacing: var(--font-display-tracking);
}

.news-card--featured .news-card__title {
    font-size: var(--type-display-card);
}


/*
 * Medium screens
 */

@media (max-width: 64rem) {
    .home-priorities .section-heading__heading {
        max-width: 15ch;
    }

    .home-meet__heading {
        max-width: 14ch;
    }
}


/*
 * Tablet and mobile
 */

@media (max-width: 48rem) {
    .hero--campaign .hero__heading {
        max-width: 9ch;
    }

    .home-announcement__title {
        max-width: 12ch;
    }

    .home-record .section-heading__heading,
    .home-news .section-heading__heading {
        max-width: 16ch;
    }

    .home-priorities .section-heading__heading,
    .home-meet__heading {
        max-width: 14ch;
    }
}


/*
 * Small phones
 */

@media (max-width: 32rem) {
    .hero--campaign .hero__heading {
        max-width: 8.5ch;
    }

    .home-announcement__title {
        max-width: 11ch;
    }

    .home-record .section-heading__heading,
    .home-priorities .section-heading__heading,
    .home-meet__heading,
    .home-news .section-heading__heading {
        max-width: 13ch;
    }
}