.index-home-stories {
    --home-ink: #f5f5f7;
    --home-muted: #b6b6be;
    --home-paper: #202022;
    --home-accent: #f5014f;
    --home-link: #ff5985;
    width: min(100%, 960px);
    min-width: 0;
    container-type: inline-size;
}

[data-theme="light"] .index-home-stories {
    --home-ink: #171719;
    --home-muted: #56565e;
    --home-paper: #fff;
    --home-link: var(--tiini-guide-red, #e9004a);
}

.hero-block.is-search-active .index-home-stories {
    display: none;
}

.index-home-track {
    display: flex;
    border-radius: 24px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.index-home-track::-webkit-scrollbar {
    display: none;
}

.index-home-track.is-paging {
    scroll-snap-type: none;
}

.index-home-slide {
    --home-pad: 17px;
    display: grid;
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    flex: 0 0 100%;
    min-width: 0;
    min-height: 224px;
    border-radius: 24px;
    overflow: hidden;
    scroll-snap-align: start;
    text-align: left;
}

.index-home-slide[hidden],
.index-home-pages button[hidden] {
    display: none;
}

.index-home-intro {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: var(--home-pad);
    background: var(--home-paper);
    color: var(--home-ink);
}

.index-home-logo {
    width: clamp(53px, 15vw, 95px);
    height: auto;
}

.index-home-guide-trigger {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: var(--home-ink);
    cursor: pointer;
}

.index-home-copy {
    display: block;
    min-width: 0;
    color: inherit;
}

.index-home-copy :is(h1, h2, strong) {
    display: block;
    margin: 0;
    color: inherit;
    font-size: clamp(24px, 6vw, 36px);
    font-weight: 750;
    line-height: 1.07;
    letter-spacing: -0.042em;
    overflow-wrap: break-word;
}

.index-home-copy > :is(p, span) {
    display: block;
    margin: 7px 0 0;
    font-size: 13px;
    line-height: 1.32;
}

.index-home-intro .index-home-copy p {
    max-width: 31ch;
    color: var(--home-muted);
}

.index-home-copy .index-home-kicker {
    margin: 0 0 5px;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.index-home-story {
    grid-template-rows: minmax(150px, 1fr) auto;
    color: var(--home-ink);
    background: var(--home-paper);
}

.index-home-visual {
    position: relative;
    overflow: hidden;
    background: var(--home-paper);
}

.index-home-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 34%;
}

.index-home-story--home .index-home-photo {
    object-position: left 28%;
}

.index-home-story .index-home-copy {
    padding: 13px var(--home-pad) 5px;
}

.index-home-story .index-home-copy h2 {
    font-size: clamp(22px, 5.6vw, 33px);
    text-wrap: balance;
}

.index-home-kit {
    display: block;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: none;
    color: var(--home-link);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.index-home-kit[aria-busy="true"] {
    opacity: 0.6;
}

.index-home-promo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    width: 100%;
    box-sizing: border-box;
    padding: var(--home-pad);
    border: 0;
    background: none;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.index-home-gift {
    grid-template-columns: minmax(0, 1fr) minmax(72px, 36%);
    padding: 0;
    color: var(--home-ink);
    background: var(--home-paper);
}

.index-home-gift .index-home-copy {
    padding: var(--home-pad) 0 var(--home-pad) var(--home-pad);
}

.index-home-copy .index-home-gift-title {
    display: flex;
    align-items: baseline;
    gap: 0.22em;
}

.index-home-gift-title .index-home-gift-icon {
    flex: none;
    color: inherit;
    font-size: 0.64em;
}

.index-home-copy .index-home-gift-link {
    color: var(--home-link);
    font-weight: 700;
}

.index-home-gift-art {
    display: grid;
    place-items: center;
    align-self: stretch;
}

.index-home-gift-art img {
    width: 68%;
    max-width: 141px;
    height: auto;
}

.index-home-kit span,
.index-home-gift-link span {
    font-size: 1.2em;
    line-height: 0;
}

.index-home-pages {
    --home-dot-step: 24px;
    --home-marker-width: 15px;
    position: relative;
    display: flex;
    width: max-content;
    margin-inline: auto;
}

.index-home-pages button {
    display: grid;
    place-items: center;
    flex: 0 0 var(--home-dot-step);
    width: var(--home-dot-step);
    min-width: 0;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--home-muted);
    cursor: pointer;
}

.index-home-pages button::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 5px;
    background: currentColor;
    opacity: 0.55;
}

.index-home-marker {
    position: absolute;
    inset-inline-start: calc((var(--home-dot-step) - var(--home-marker-width)) / 2);
    top: 50%;
    width: var(--home-marker-width);
    height: 6px;
    border-radius: 999px;
    background: var(--home-accent);
    pointer-events: none;
    transform: translate3d(calc(var(--home-page-position, 0) * var(--home-dot-step)), -50%, 0);
}

@media (prefers-reduced-motion: no-preference) {
    .index-home-copy {
        opacity: calc(1 - var(--home-travel, 0) * var(--home-travel, 0) * 0.22);
        transform: translateX(calc(var(--home-travel, 0) * -12px));
    }
}

.index-home-stories :is(a, button):focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -3px;
}

@media (pointer: coarse) {
    .index-home-pages button {
        height: 44px;
    }
}

@container (max-width: 569px) {
    .index-home-story--home {
        grid-template-columns: minmax(0, 1fr) minmax(0, 48%);
        grid-template-rows: 1fr;
        align-items: center;
    }

    .index-home-story--home .index-home-visual {
        grid-column: 2;
        grid-row: 1;
        align-self: stretch;
    }

    .index-home-story--home .index-home-copy {
        grid-column: 1;
        grid-row: 1;
        padding: var(--home-pad);
    }
}

@container (min-width: 570px) {
    .index-home-slide {
        --home-pad: clamp(28px, 5cqw, 48px);
        min-height: clamp(246px, 36cqw, 316px);
    }

    .index-home-intro {
        grid-template-columns: minmax(0, 1fr) 38%;
    }

    .index-home-logo {
        justify-self: center;
        width: clamp(96px, 16cqw, 150px);
    }

    .index-home-copy :is(h1, h2, strong) {
        font-size: clamp(35px, 6cqw, 44px);
    }

    .index-home-copy > :is(p, span) {
        font-size: 15px;
    }

    .index-home-story {
        grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
        grid-template-rows: 1fr;
        align-items: center;
    }

    .index-home-visual {
        grid-column: 2;
        grid-row: 1;
        align-self: stretch;
    }

    .index-home-story .index-home-copy {
        grid-column: 1;
        grid-row: 1;
        padding: var(--home-pad);
    }

    .index-home-story .index-home-copy h2 {
        font-size: clamp(29px, 4.7cqw, 43px);
    }
}

@media (max-height: 510px) and (min-width: 570px) {
    .index-home-slide {
        min-height: 212px;
    }
}
