/* Containers, grids, section rhythm. */

.container {
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
}

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

.section--tight-top {
    padding-top: 0;
}

/* Freya "section-top": a huge statement headline next to a short
   supporting paragraph + action. */
.section-top {
    display: grid;
    gap: var(--space-l);
    align-items: center;
    margin-bottom: var(--space-xl);
}

@media (min-width: 64rem) {
    .section-top {
        grid-template-columns: 8fr 4fr;
        gap: var(--space-2xl);
    }
}

.section-top__title {
    font-size: var(--step-4);
}

.section-top__aside p {
    color: var(--muted);
    margin-bottom: var(--space-m);
    letter-spacing: 0.01em;
}

/* Small heading for quieter sections */
.section-label {
    font-size: var(--step--1);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-text);
    margin-bottom: var(--space-s);
}

/* Centered section header (reviews) */
.section-center {
    text-align: center;
    margin-bottom: var(--space-l);
}

.section-center p {
    max-width: none; /* the global p measure cap would off-center the label */
}

.section-center__title {
    font-size: var(--step-3);
    max-width: 24ch;
    margin-inline: auto;
}

/* Card grid */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
    gap: var(--space-s);
}
