/* tablet layouts get room to breathe without becoming a different site */
@media (max-width: 980px) {
    :root {
        --page-width: min(100% - 2rem, 760px);
    }

    .site-nav {
        gap: 1.2rem;
    }

    .site-nav > a,
    .years-menu > summary {
        font-size: 0.78rem;
    }

    .hero-layout,
    .section-heading--split {
        grid-template-columns: 1fr;
    }

    .hero-layout {
        gap: 1rem;
    }

    .hero-space-scene {
        width: min(100%, 28rem);
        min-height: 27rem;
        margin: 0 auto;
    }

    .section-heading--split {
        gap: 2rem;
    }

    .facts-line {
        grid-template-columns: repeat(2, 1fr);
    }

    .facts-line div:nth-child(3) {
        border-top: 1px solid var(--line-light);
        border-left: 0;
    }

    .facts-line div:nth-child(4) {
        border-top: 1px solid var(--line-light);
    }

    .sponsor-field > a {
        flex-basis: 9rem;
    }
}

/* phones keep the important bits comfortably tappable */
@media (max-width: 640px) {
    :root {
        --page-width: calc(100% - 1.5rem);
    }

    .journey-section {
        min-height: auto;
        padding: 7.5rem 0;
    }

    .site-header__inner {
        min-height: 4rem;
    }

    .brand {
        gap: 0.45rem;
        font-size: 0.84rem;
    }

    .brand img {
        width: 2.15rem;
        height: 2.15rem;
    }

    .site-nav {
        gap: 0.62rem;
    }

    .site-nav > a,
    .years-menu > summary {
        font-size: 0.68rem;
    }

    .years-menu__links {
        right: 0;
        min-width: 7.5rem;
    }

    .hero-section {
        min-height: 100svh;
        padding-top: 5.5rem;
    }

    .hero-copy .section-kicker {
        max-width: 25rem;
        font-size: 0.65rem;
        line-height: 1.6;
    }

    .hero-masthead {
        align-items: center;
    }

    .hero-logo {
        width: 68px;
    }

    .hero-copy h1 {
        font-size: clamp(3.2rem, 17vw, 5rem);
    }

    .hero-tagline {
        margin-left: 0;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-space-scene {
        min-height: 22rem;
        transform: scale(0.85);
    }

    .rocket-orbit {
        left: 50%;
    }

    .scroll-cue {
        display: none;
    }

    .section-heading h2 {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .facts-line div {
        min-height: 8rem;
        padding: 1.35rem 1rem;
    }

    .about-statement {
        margin-top: 2rem;
    }

    .open-source-note {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .faq-list summary {
        grid-template-columns: 2.25rem 1fr 1.25rem;
    }

    .faq-list details > p {
        padding-left: 3rem;
    }

    .sponsor-field {
        gap: 2rem 2.5rem;
    }

    .sponsor-field > a {
        flex: 0 1 calc(50% - 1.25rem);
        min-height: 4rem;
    }

    .sponsor-invite {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .site-footer__inner {
        align-items: flex-start;
        flex-direction: column;
        min-height: auto;
        gap: 0.55rem;
        padding: 0.72rem 0;
    }

    .site-footer__contact {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.45rem 0.9rem;
        font-size: 0.74rem;
    }

    .journey-plane {
        width: 4.5rem;
    }

    .journey-wind {
        opacity: clamp(0, calc((var(--journey) - 0.16) * 4.5), 0.5);
    }

    .wind-streak--two,
    .wind-streak--six {
        display: none;
    }
}
