/* Scale type and rem-based spacing together as the viewport grows. */
:root {
    font-size: clamp(106.25%, calc(97% + 0.25vw), 120%);
}

.portal-container {
    max-width: 84rem;
    padding-inline: clamp(1.125rem, 3.2vw, 3rem);
}

.portal-hero {
    min-height: 28.5rem;
}

.text-display-hero-mobile {
    font-size: 2.25rem;
    line-height: 2.75rem;
}

.text-headline-lg {
    font-size: 2.25rem;
    line-height: 2.875rem;
}

.text-headline-sm {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-title-card,
.text-price-val {
    font-size: 1.125rem;
    line-height: 1.5rem;
}

.text-body-lg {
    font-size: 1rem;
    line-height: 1.625rem;
}

.text-body-md {
    font-size: 0.875rem;
    line-height: 1.375rem;
}

.text-body-sm {
    font-size: 0.75rem;
    line-height: 1.125rem;
}

.text-label-caps {
    font-size: 0.6875rem;
    line-height: 1rem;
}

.text-label-interactive {
    font-size: 0.8125rem;
    line-height: 1.125rem;
}

.text-\[16px\] {
    font-size: 1rem;
}

.text-\[24px\] {
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .portal-hero {
        min-height: 32.5rem;
    }

    .md\:text-display-hero {
        font-size: 3.5rem;
        line-height: 4.25rem;
    }
}

@media (max-width: 639px) {
    .portal-header {
        position: sticky;
    }

    .portal-header .portal-container {
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding-block: 0.625rem;
    }

    .portal-header nav {
        width: 100%;
        display: grid;
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 0.5rem;
    }

    .portal-main {
        padding-top: 0;
    }

    .portal-hero {
        min-height: 23.5rem;
        margin-top: 0;
        padding-top: 0;
    }
}
