.chapter-sticker,
.future-sticker,
.closing-sticker {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.page-intro {
    max-width: 850px;
    margin: 0 auto clamp(18px, 3.2vw, 28px);
    text-align: center;
}

.page-intro h1 {
    position: relative;
    display: inline-block;
    font-size: clamp(2rem, 3.8vw, 3rem);
    white-space: nowrap;
}

.page-intro h1::after {
    position: absolute;
    right: 8%;
    bottom: -8px;
    left: 9%;
    height: 2px;
    content: "";
    border-radius: 99px;
    background: var(--coral);
}

.page-timeline .site-main {
    width: min(100% - 30px, 820px);
    padding-top: 0;
}

.page-timeline .page-intro {
    position: relative;
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    align-content: center;
    justify-items: center;
    margin-bottom: 0;
    padding: clamp(48px, 8vh, 82px) 0 clamp(92px, 13vh, 132px);
}

.page-timeline .page-intro h1::after {
    display: none;
}

.timeline-landing-copy {
    display: grid;
    justify-items: center;
    gap: 12px;
    text-align: center;
}

.timeline-scroll-cue {
    position: absolute;
    bottom: clamp(34px, 8vh, 68px);
    left: 50%;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--coral-strong);
    transform: translateX(-50%);
    animation: timeline-cue-bounce 1500ms var(--ease) infinite;
}

.timeline-scroll-cue span {
    display: block;
    width: 18px;
    height: 18px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    filter: drop-shadow(0 7px 10px rgba(227, 92, 113, 0.24));
    transform: rotate(45deg);
}

.timeline-scroll-cue:focus-visible {
    border-radius: 50%;
    outline: 3px solid rgba(227, 92, 113, 0.28);
    outline-offset: 3px;
}

@keyframes timeline-cue-bounce {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

.timeline {
    position: relative;
    display: grid;
    gap: 8px;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 0 6px;
}

.timeline::before {
    position: absolute;
    top: 18px;
    bottom: 22px;
    left: 50%;
    width: 2px;
    content: "";
    border-radius: 99px;
    background: repeating-linear-gradient(180deg, var(--coral) 0 13px, transparent 13px 21px);
    transform: translateX(-50%);
}

.timeline-chapter {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.timeline-node {
    z-index: 3;
    display: grid;
    grid-column: 2;
    width: 30px;
    height: 30px;
    place-self: center;
    place-items: center;
    border: 3px solid rgba(255, 255, 255, 0.86);
    border-radius: 50%;
    background: var(--coral);
    box-shadow: var(--shadow-soft);
}

.timeline-node span {
    color: #fff;
    font-size: 0.72rem;
    font-weight: 860;
}

.chapter-card {
    position: relative;
    min-height: 76px;
    padding: 11px 86px 10px 14px;
    overflow: hidden;
}

.timeline-chapter:nth-child(odd) .chapter-card {
    grid-column: 1;
    justify-self: stretch;
}

.timeline-chapter:nth-child(even) .chapter-card {
    grid-column: 3;
    justify-self: stretch;
}

.timeline-chapter:nth-child(odd) .chapter-card::after,
.timeline-chapter:nth-child(even) .chapter-card::after {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 1px;
    content: "";
    border-top: 1px dashed rgba(227, 92, 113, 0.28);
}

.timeline-chapter:nth-child(odd) .chapter-card::after {
    right: -16px;
}

.timeline-chapter:nth-child(even) .chapter-card::after {
    left: -16px;
}

.chapter-heading h2 {
    margin: 0 0 2px;
    color: var(--ink);
    font-family: var(--script);
    font-size: clamp(0.88rem, 1.45vw, 1.08rem);
    line-height: 1.15;
}

.chapter-period,
.moments-count {
    margin: 0;
    color: var(--text);
    font-size: 0.6rem;
}

.chapter-card > p:not(.moments-count) {
    margin: 4px 0 0;
    color: var(--ink);
    font-family: var(--script);
    font-size: 0.67rem;
}

.moments-count {
    position: absolute;
    right: 11px;
    bottom: 8px;
    font-size: 0.56rem;
}

.chapter-photo-strip {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
}

.chapter-photo-strip img {
    width: 34px;
    height: 42px;
    border: 3px solid #fffdf9;
    border-radius: 5px;
    object-fit: cover;
    box-shadow: var(--shadow-soft);
}

.chapter-photo-strip img + img {
    margin-left: -18px;
    transform: rotate(7deg);
}

.chapter-sticker {
    right: 18px;
    bottom: 17px;
    width: 40px;
    height: 40px;
    opacity: 0.9;
}

.future-grid {
    display: grid;
    max-width: 720px;
    margin: 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.future-card {
    position: relative;
    min-height: 96px;
    padding: 12px 64px 12px 15px;
    overflow: hidden;
}

.type-pill,
.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 3px 8px;
    border-radius: 99px;
    font-size: 0.54rem;
    font-weight: 840;
    text-transform: uppercase;
}

.type-pill {
    margin-bottom: 7px;
    color: var(--berry);
    background: rgba(227, 92, 113, 0.12);
}

.type-prediction .type-pill,
.type-prediction .status-pill {
    color: #4f6d3e;
    background: rgba(168, 189, 147, 0.22);
}

.type-promise .type-pill,
.type-promise .status-pill {
    color: #356f8d;
    background: rgba(185, 217, 226, 0.32);
}

.type-dream .type-pill,
.type-dream .status-pill {
    color: #8a641b;
    background: rgba(243, 199, 108, 0.24);
}

.future-card h2 {
    margin: 0 0 4px;
    color: var(--ink);
    font-family: var(--script);
    font-size: 0.92rem;
    line-height: 1.18;
}

.future-card p {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 0.64rem;
    line-height: 1.45;
}

.future-sticker {
    right: 18px;
    bottom: 22px;
    width: 42px;
    height: 42px;
}

.closing-line {
    position: relative;
    display: flex;
    max-width: 560px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 12px auto 0;
    padding: 15px 64px 15px 22px;
    text-align: center;
}

.closing-line p {
    margin: 0 0 3px;
    color: var(--ink);
    font-family: var(--script);
    font-size: 1.12rem;
    font-weight: 700;
}

.closing-line small {
    color: var(--text);
    font-size: 0.78rem;
}

.closing-sticker {
    right: 22px;
    bottom: 16px;
}

.sticker-sun,
.sticker-cassette,
.sticker-envelope,
.sticker-heart-small,
.sticker-sparkle,
.sticker-flower,
.sticker-bubu-dudu-cuddle,
.sticker-bubu-dudu-hearts,
.sticker-bubu-dudu-sit,
.sticker-bubu-dudu-stand,
.sticker-bubu-dudu-cooking,
.sticker-bubu-face,
.sticker-bubu-dudu-bed,
.sticker-bubu-dudu-travel,
.sticker-dudu,
.sticker-ginger,
.sticker-mug,
.sticker-camera,
.sticker-bandage,
.sticker-heart,
.sticker-sprout,
.sticker-plane,
.sticker-house,
.sticker-gift,
.sticker-photo {
    display: block;
    border: 0;
    background: center / contain no-repeat;
    filter: drop-shadow(0 7px 8px rgba(116, 79, 75, 0.15));
}

.sticker-sun { width: 54px; height: 54px; background-image: url("../img/icons/sun.svg"); }
.sticker-cassette { width: 54px; height: 40px; background-image: url("../img/icons/cassette.svg"); }
.sticker-envelope { width: 52px; height: 38px; background-image: url("../img/icons/envelope.svg"); }
.sticker-heart-small,
.sticker-heart { width: 48px; height: 48px; background-image: url("../img/icons/heart-sticker.svg"); }
.sticker-sparkle { width: 46px; height: 46px; background-image: url("../img/icons/sparkle.svg"); }
.sticker-flower { background-image: url("../img/icons/flower.svg"); }
.sticker-bubu-dudu-cuddle { width: 58px; height: auto; aspect-ratio: 320 / 276; background-image: url("../img/icons/bubu-dudu-cuddle.png"); }
.sticker-bubu-dudu-hearts { width: 58px; height: auto; aspect-ratio: 530 / 445; background-image: url("../img/icons/bubu-dudu-hearts.png"); }
.sticker-bubu-dudu-sit { width: 62px; height: auto; aspect-ratio: 452 / 340; background-image: url("../img/icons/bubu-dudu-sit.png"); }
.sticker-bubu-dudu-stand { width: 62px; height: auto; aspect-ratio: 636 / 495; background-image: url("../img/icons/bubu-dudu-stand.png"); }
.sticker-bubu-dudu-cooking { width: 62px; height: auto; aspect-ratio: 557 / 556; background-image: url("../img/icons/bubu-dudu-cooking.png"); }
.sticker-bubu-face { width: 50px; height: auto; aspect-ratio: 234 / 235; background-image: url("../img/icons/bubu-face.png"); }
.sticker-bubu-dudu-bed { width: 62px; height: auto; aspect-ratio: 352 / 329; background-image: url("../img/icons/bubu-dudu-bed.png"); }
.sticker-bubu-dudu-travel { width: 62px; height: auto; aspect-ratio: 531 / 455; background-image: url("../img/icons/bubu-dudu-travel.png"); }
.sticker-dudu { background-image: url("../img/icons/dudu.svg"); }
.sticker-ginger { background-image: url("../img/icons/ginger.svg"); }
.sticker-mug { background-image: url("../img/icons/mug.svg"); }
.sticker-camera { background-image: url("../img/icons/camera.svg"); }
.sticker-bandage { background-image: url("../img/icons/bandage.svg"); }
.sticker-sprout { background-image: url("../img/icons/sprout.svg"); }
.sticker-plane { background-image: url("../img/icons/plane.svg"); }
.sticker-house { background-image: url("../img/icons/house.svg"); }
.sticker-gift { background-image: url("../img/icons/envelope.svg"); }
.sticker-photo { background-image: url("../img/icons/camera.svg"); }

.empty-state {
    max-width: 620px;
    margin: 0 auto;
    padding: 28px;
    text-align: center;
}

.empty-state h2 {
    margin: 0 0 8px;
    color: var(--ink);
    font-family: var(--script);
}

.empty-state p {
    margin: 0;
}

@media (max-width: 760px) {
    .site-main {
        width: min(100% - 22px, var(--max-width));
        padding-top: 24px;
    }

    .page-intro {
        margin-bottom: 22px;
    }

    .page-intro h1 {
        font-size: clamp(1.9rem, 9vw, 2.55rem);
        line-height: 1.05;
        white-space: normal;
    }

    .intro-stats {
        gap: 7px;
    }

    .intro-stats span {
        min-height: 25px;
        font-size: 0.72rem;
    }

    .page-timeline .page-intro {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 42px 0 86px;
    }

    .page-timeline .page-intro h1 {
        max-width: 330px;
        font-size: clamp(2.15rem, 10vw, 2.85rem);
        line-height: 1.08;
    }

    .timeline-scroll-cue {
        bottom: 28px;
        width: 42px;
        height: 42px;
    }

    .timeline-scroll-cue span {
        width: 16px;
        height: 16px;
        border-width: 2px;
    }

    .timeline {
        max-width: 380px;
        gap: 10px;
        padding-left: 36px;
    }

    .timeline::before {
        left: 17px;
        transform: none;
    }

    .timeline-chapter {
        display: grid;
        grid-template-columns: 0 minmax(0, 1fr);
        gap: 0;
    }

    .timeline-node {
        position: absolute;
        top: 16px;
        left: -34px;
        width: 30px;
        height: 30px;
    }

    .timeline-node span {
        font-size: 0.66rem;
    }

    .timeline-chapter:nth-child(odd) .chapter-card,
    .timeline-chapter:nth-child(even) .chapter-card {
        grid-column: 2;
    }

    .timeline-chapter .chapter-card::after {
        display: none;
    }

    .chapter-card {
        min-height: 94px;
        padding: 13px 74px 13px 14px;
    }

    .chapter-heading h2 {
        font-size: 0.98rem;
    }

    .chapter-card > p:not(.moments-count) {
        font-size: 0.72rem;
    }

    .chapter-period,
    .moments-count {
        font-size: 0.62rem;
    }

    .chapter-sticker {
        right: 14px;
        bottom: 20px;
        width: 44px;
        height: 44px;
    }

    .chapter-photo-strip {
        display: none;
    }

    .future-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .future-card {
        min-height: 88px;
        padding: 10px 62px 10px 14px;
    }

    .future-card h2 {
        font-size: 0.9rem;
    }

    .future-card p {
        margin-bottom: 6px;
        font-size: 0.64rem;
        line-height: 1.34;
    }

    .future-sticker {
        width: 40px;
        height: 40px;
    }

    .closing-line {
        max-width: 360px;
        margin-top: 10px;
        padding: 12px 54px 12px 16px;
    }
}

