.shop-app {
    padding-top: 20px;
}

.shop-app:has(.home-hero) {
    padding-top: 0;
}

.home-hero {
    --hero-ink: #101c4b;
    --hero-blue: #164bbc;
    margin-bottom: 1rem;
    color: var(--hero-ink);
}

.home-hero__slides {
    display: grid;
    grid-template-rows: auto auto;
}

/* Stack the slides so their shared rows reserve space before rotation. */
.home-hero__slide {
    display: grid;
    grid-area: 1 / 1 / 3 / 2;
    grid-template-rows: subgrid;
    visibility: hidden;
    pointer-events: none;
}

.home-hero__slide.is-active {
    visibility: visible;
    pointer-events: auto;
}

.home-hero__scene {
    display: grid;
    grid-template-rows: auto 1fr auto;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, transparent 55%, #fff),
        linear-gradient(100deg, #bcdffc, #aedcfd 50%, #abd9fb);
}

.home-hero__copy {
    position: relative;
    z-index: 1;
    padding: .75rem 1.25rem 0;
    text-align: center;
}

.home-hero__slide--character .home-hero__scene {
    background: linear-gradient(to bottom, #eee9fd, #fff);
}

.home-hero__slide--space .home-hero__scene {
    background: linear-gradient(to bottom, #badbfc, #fff);
}

.home-hero h1 {
    margin: 0 0 .35rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.2rem, 4.6vw, 3.75rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.home-hero__copy p {
    margin: 0 0 .65rem;
    font-size: clamp(1rem, 1.7vw, 1.15rem);
    line-height: 1.5;
    text-wrap: balance;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
}

.home-hero__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 44px;
    padding: .5rem 1rem;
    border: 1px solid var(--hero-ink);
    border-radius: 5px;
    color: #fff;
    background: var(--hero-ink);
    font: inherit;
    font-size: .9375rem;
    font-weight: 600;
    cursor: pointer;
}

.home-hero__action:hover {
    color: #fff;
    background: #243c75;
    text-decoration: none;
}

.home-hero__action--secondary {
    color: var(--hero-ink);
    background: rgba(255, 255, 255, .92);
}

.home-hero__action--secondary:hover {
    color: var(--hero-ink);
    background: #edf5fc;
}

.home-hero__art {
    display: block;
    width: 100%;
    max-width: 1140px;
    height: auto;
    align-self: end;
    margin: 0 auto;
    mask-image: linear-gradient(to bottom, transparent, #000 24px),
        linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
    mask-composite: intersect;
}

.home-hero__caption {
    margin: 0 auto;
    padding-bottom: .25rem;
    color: #53617a;
    font-size: .75rem;
    line-height: 1.4;
    text-align: right;
}

.home-hero__categories {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    padding: 0;
    margin-top: .25rem;
}

.home-hero__category {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-width: 0;
    padding: .5rem;
    border: 1px solid #dae4ef;
    border-radius: 6px;
    background: #fff;
}

.home-hero__category > img {
    width: 42%;
    max-width: 120px;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    flex-shrink: 0;
}

.home-hero__category-copy {
    min-width: 0;
}

.home-hero__category h2 {
    margin: 0 0 .35rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
}

.home-hero__category ul {
    display: flex;
    flex-wrap: wrap;
    column-gap: .7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-hero__category a {
    display: inline-block;
    padding: .35rem 0;
    color: var(--hero-blue);
    font-size: .8rem;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-hero__category a:hover {
    color: var(--hero-ink);
}

.home-hero a:focus-visible,
.home-hero button:focus-visible {
    outline: 3px solid var(--hero-blue);
    outline-offset: 4px;
}

.home-hero__controls,
.home-hero__pages {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero__controls {
    flex-wrap: wrap;
    gap: .25rem;
    padding-top: .25rem;
}

.home-hero__controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: .5rem;
    border: 0;
    border-radius: 4px;
    color: var(--hero-ink);
    background: transparent;
    cursor: pointer;
}

.home-hero__controls button:hover {
    background: #edf5fc;
}

.home-hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #b9c4d4;
}

.home-hero__pages [aria-current="true"] .home-hero__dot {
    background: var(--hero-blue);
    box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--hero-blue);
}

.home-hero__position,
.home-hero__pause {
    font-size: .875rem;
}

@media (max-width: 991px) {
    .home-hero__category {
        flex-direction: column;
        text-align: center;
    }

    .home-hero__category > img {
        width: 100%;
        max-width: 110px;
    }

    .home-hero__category ul {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .home-hero__copy {
        padding: .75rem 1rem 0;
    }

    .home-hero__art {
        mask-image: linear-gradient(to bottom, transparent, #000 16px);
    }

    .home-hero__actions {
        gap: .5rem;
    }

    .home-hero__action {
        gap: .5rem;
        padding: .5rem .8rem;
    }

    .home-hero__categories {
        grid-template-columns: 1fr;
        gap: .5rem;
        padding: 0 15px;
    }

    .home-hero__category {
        flex-direction: row;
        gap: 1rem;
        text-align: left;
    }

    .home-hero__category > img {
        width: 32%;
        max-width: 95px;
    }

    .home-hero__category ul {
        justify-content: flex-start;
    }

    .home-hero__category a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}
