/* The homepage gives the studio mark the full opening frame. */
.hero--masthead {
    display: block;
    min-height: 0;
    padding-block: clamp(2rem, 4vw, 4rem) 0;
}

.hero--masthead .home-masthead {
    width: min(100%, var(--max));
    margin-inline: auto;
}

.hero--masthead h1.hero-logo {
    width: min(100%, 132svh);
    max-width: none;
    margin-inline: auto;
}

.hero--masthead .hero-logo img {
    width: 100%;
    height: auto;
}

.hero--masthead .home-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 3rem;
    margin-top: clamp(2rem, 4vw, 4rem);
    padding-block: 1.5rem;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
}

.hero--masthead .hero-deck {
    max-width: 36rem;
    margin: 0;
    font-size: clamp(1.05rem, 1.5vw, 1.375rem);
    line-height: 1.4;
    text-wrap: pretty;
}

.hero--masthead .hero-actions {
    flex: 0 0 auto;
    gap: 1rem 2rem;
    margin: 0;
}

.hero--masthead .arrow-link {
    width: auto;
    min-width: 0;
    min-height: 44px;
    gap: 2rem;
}

@media (max-width: 900px) {
    .hero--masthead .home-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .hero--masthead .hero-actions {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .hero--masthead .hero-actions {
        gap: 1rem 1.5rem;
    }

    .hero--masthead .arrow-link {
        flex: 1 1 8rem;
        gap: 0.75rem;
    }
}

.home-tool-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-tool-cards .release-art {
    padding: 0;
    background: var(--ink);
}

.home-tool-cards .release-art img {
    height: 100%;
    object-fit: contain;
}

.home-tool-cards .release-copy h3 {
    font-size: clamp(1.5rem, 1.8vw, 2rem);
    white-space: normal;
}

@media (max-width: 1100px) {
    .home-tool-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-tool-cards .release-card {
        display: flex;
        grid-column: auto;
        border: 0;
    }

    .home-tool-cards .release-card:nth-child(even) {
        border-left: 1px solid var(--ink);
    }

    .home-tool-cards .release-card:nth-child(n + 3) {
        border-top: 1px solid var(--ink);
    }

    .home-tool-cards .release-card .release-copy {
        border-top: 1px solid var(--ink);
        border-left: 0;
    }
}

@media (max-width: 600px) {
    .home-tool-cards {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: auto;
    }

    .home-tool-cards .release-card:nth-child(n) {
        border-left: 0;
    }

    .home-tool-cards .release-card + .release-card {
        border-top: 1px solid var(--ink);
    }
}
