:root {
    --ink: #35151e;
    --night: #18070d;
    --night2: #2b0d18;

    --rose: #ff8fa3;
    --rose-light: #ffc1ce;
    --rose-dark: #c94f70;

    --gold: #f0c878;
    --gold-light: #ffe8ad;

    --cream: #fff7f1;
    --white: #fffdfb;

    --card: #fffaf6;

    --shadow:
        0 25px 70px rgba(0, 0, 0, 0.35);
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    background:
        radial-gradient(
            ellipse 800px 500px at 10% 0%,
            rgba(255, 143, 163, 0.18),
            transparent 65%
        ),

        radial-gradient(
            ellipse 700px 500px at 90% 10%,
            rgba(233, 192, 122, 0.13),
            transparent 65%
        ),

        radial-gradient(
            ellipse 600px 500px at 50% 80%,
            rgba(255, 143, 163, 0.08),
            transparent 65%
        ),

        linear-gradient(
            180deg,
            #18070d 0%,
            #250c16 40%,
            #210a13 70%,
            #120408 100%
        );

    color: var(--cream);

    font-family: "Outfit", sans-serif;

    overflow-x: hidden;

    position: relative;
}


/* =====================================================
   FLOATING HEARTS
===================================================== */

.sky {
    position: fixed;
    inset: 0;

    pointer-events: none;

    z-index: 0;

    overflow: hidden;
}


.drift {
    position: absolute;

    bottom: -10%;

    color: var(--rose);

    opacity: 0.35;

    filter:
        drop-shadow(
            0 0 8px rgba(255, 143, 163, 0.4)
        );

    animation:
        rise linear infinite;

    will-change: transform;
}


@keyframes rise {

    0% {
        transform:
            translateY(0)
            translateX(0)
            rotate(0deg);

        opacity: 0;
    }

    10% {
        opacity: 0.45;
    }

    90% {
        opacity: 0.25;
    }

    100% {
        transform:
            translateY(-115vh)
            translateX(var(--drift, 20px))
            rotate(25deg);

        opacity: 0;
    }
}


/* =====================================================
   SPARKLES
===================================================== */

.sparkles {
    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: 1;
}


.sparkles span {
    position: absolute;

    color: var(--gold);

    opacity: 0.45;

    animation:
        sparkle 3s ease-in-out infinite;
}


.sparkles span:nth-child(1) {
    left: 12%;
    top: 18%;
}


.sparkles span:nth-child(2) {
    left: 83%;
    top: 24%;
    animation-delay: 1s;
}


.sparkles span:nth-child(3) {
    left: 25%;
    top: 55%;
    animation-delay: 1.8s;
}


.sparkles span:nth-child(4) {
    left: 76%;
    top: 62%;
    animation-delay: 0.6s;
}


.sparkles span:nth-child(5) {
    left: 15%;
    top: 80%;
    animation-delay: 2s;
}


.sparkles span:nth-child(6) {
    left: 88%;
    top: 84%;
    animation-delay: 1.4s;
}


@keyframes sparkle {

    0%,
    100% {
        transform: scale(0.6);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
}


/* =====================================================
   MAIN
===================================================== */

.stage {
    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 600px;

    margin: 0 auto;

    padding:
        12vh
        22px
        12vh;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 90px;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    width: 100%;

    text-align: center;
}


.little-heart {
    font-size: 2rem;

    color: var(--rose);

    margin-bottom: 10px;

    animation:
        heartbeat 2.4s ease-in-out infinite;
}


@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.2);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.15);
    }
}


.eyebrow {
    font-family: "Marck Script", cursive;

    font-size: 1.6rem;

    color: var(--gold);

    margin-bottom: 8px;

    animation:
        fadeUp 0.8s ease both;
}


.headline {
    display: flex;

    flex-direction: column;

    align-items: center;

    line-height: 1;
}


.count {
    font-family: "Cormorant Garamond", serif;

    font-style: italic;

    font-weight: 700;

    font-size:
        clamp(
            6rem,
            25vw,
            9rem
        );

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #ffc2ce 45%,
            #ff7f99 80%,
            #c94f70 100%
        );

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;

    filter:
        drop-shadow(
            0 10px 35px
            rgba(255, 143, 163, 0.3)
        );

    animation:
        numberGlow 3s ease-in-out infinite;
}


@keyframes numberGlow {

    0%,
    100% {
        transform: scale(1);

        filter:
            drop-shadow(
                0 10px 35px
                rgba(255, 143, 163, 0.3)
            );
    }

    50% {
        transform: scale(1.035);

        filter:
            drop-shadow(
                0 12px 50px
                rgba(255, 143, 163, 0.55)
            );
    }
}


.count-label {
    margin-top: 8px;

    font-family: "Cormorant Garamond", serif;

    font-size: 1.35rem;

    letter-spacing: 0.18em;

    text-transform: uppercase;

    color: var(--cream);

    opacity: 0.8;
}


.tagline {
    margin-top: 20px;

    font-family: "Marck Script", cursive;

    font-size: 1.45rem;

    color: var(--rose-light);
}


.hero-divider {
    margin: 28px auto 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    color: var(--gold);
}


.hero-divider::before,
.hero-divider::after {
    content: "";

    width: 60px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(233, 192, 122, 0.6)
        );
}


.hero-divider::after {
    transform: rotate(180deg);
}


.intro-text {
    max-width: 440px;

    margin: auto;

    font-size: 0.95rem;

    line-height: 1.8;

    color: rgba(255, 247, 241, 0.65);
}


/* =====================================================
   MEMORY CARD
===================================================== */

.memory-card {
    width: 100%;

    padding: 34px 28px;

    text-align: center;

    border:
        1px solid
        rgba(255, 193, 206, 0.16);

    border-radius: 26px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 143, 163, 0.09),
            rgba(255, 255, 255, 0.025)
        );

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.2);

    backdrop-filter: blur(10px);
}


.memory-icon {
    width: 54px;

    height: 54px;

    margin: 0 auto 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        rgba(255, 143, 163, 0.12);

    color: var(--rose);

    font-size: 1.7rem;
}


.memory-small {
    font-size: 0.7rem;

    letter-spacing: 0.2em;

    color: var(--gold);

    margin-bottom: 8px;
}


.memory-card h2 {
    font-family: "Cormorant Garamond", serif;

    font-style: italic;

    font-size: 2.3rem;

    color: var(--white);

    margin-bottom: 12px;
}


.memory-card > p:last-child {
    color: rgba(255, 247, 241, 0.68);

    line-height: 1.8;

    font-size: 0.92rem;
}


/* =====================================================
   SECTION HEADINGS
===================================================== */

.section-heading {
    text-align: center;

    margin-bottom: 35px;
}


.section-kicker {
    font-size: 0.7rem;

    letter-spacing: 0.22em;

    text-transform: uppercase;

    color: var(--gold);

    margin-bottom: 8px;
}


.section-heading h2 {
    font-family: "Cormorant Garamond", serif;

    font-size: 2.3rem;

    line-height: 1.1;

    margin-bottom: 12px;
}


.section-heading > p:last-child {
    color: rgba(255, 247, 241, 0.55);

    font-size: 0.88rem;
}


/* =====================================================
   MEMORIES
===================================================== */

.memories-section {
    width: 100%;
}


.photo-wrap {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    align-items: flex-start;

    gap: 28px 18px;

    width: 100%;
}


.polaroid {
    position: relative;

    --rot: -4deg;

    width: min(50vw, 215px);

    background: var(--card);

    padding:
        14px
        14px
        46px;

    border-radius: 4px;

    box-shadow:
        0 25px 50px
        rgba(0, 0, 0, 0.45);

    rotate: var(--rot);

    opacity: 0;

    animation:
        popIn 0.8s
        cubic-bezier(.2, .8, .2, 1)
        forwards,

        floatY 5.5s
        ease-in-out
        infinite;
}


.polaroid:nth-child(1) {
    --rot: -6deg;

    animation-delay: 0s, 0s;
}


.polaroid:nth-child(2) {
    --rot: 5deg;

    width: min(56vw, 230px);

    margin-top: 25px;

    animation-delay: 0.2s, 0.5s;
}


.polaroid:nth-child(3) {
    --rot: -3deg;

    animation-delay: 0.4s, 1s;
}


.polaroid:hover {
    rotate: 0deg;

    scale: 1.06;

    translate: 0 -8px;

    z-index: 5;

    box-shadow:
        0 30px 65px
        rgba(0, 0, 0, 0.55);
}


.photo-frame {
    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: #eadbd2;
}


.photo-frame img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    filter:
        saturate(1.08)
        contrast(1.02);

    transition:
        transform 0.6s ease;
}


.polaroid:hover img {
    transform: scale(1.07);
}


.tape {
    position: absolute;

    top: -14px;

    left: 50%;

    transform:
        translateX(-50%)
        rotate(-3deg);

    width: 90px;

    height: 28px;

    background:
        rgba(255, 255, 255, 0.58);

    border:
        1px solid
        rgba(255, 255, 255, 0.35);

    box-shadow:
        0 4px 8px
        rgba(0, 0, 0, 0.15);
}


.caption {
    position: absolute;

    left: 0;

    right: 0;

    bottom: 14px;

    text-align: center;

    font-family:
        "Marck Script",
        cursive;

    font-size: 1.2rem;

    color: #7a4a52;
}


/* =====================================================
   LOVE CARDS
===================================================== */

.love-section {
    width: 100%;
}


.love-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 14px;
}


.love-card {
    padding: 24px 18px;

    text-align: center;

    border-radius: 20px;

    background:
        rgba(255, 255, 255, 0.045);

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}


.love-card:hover {
    transform: translateY(-6px);

    background:
        rgba(255, 143, 163, 0.08);
}


.love-card-icon {
    font-size: 1.7rem;

    margin-bottom: 10px;
}


.love-card h3 {
    font-family: "Cormorant Garamond", serif;

    font-size: 1.45rem;

    color: var(--white);

    margin-bottom: 7px;
}


.love-card p {
    font-size: 0.78rem;

    line-height: 1.65;

    color:
        rgba(255, 247, 241, 0.55);
}


/* =====================================================
   QUOTE
===================================================== */

.quote-section {
    width: 100%;

    padding:
        50px 25px;

    text-align: center;

    position: relative;
}


.quote-heart {
    color: var(--rose);

    font-size: 1.5rem;

    margin-bottom: 20px;

    animation:
        heartbeat 2s infinite;
}


.quote-section blockquote {
    font-family:
        "Marck Script",
        cursive;

    font-size:
        clamp(
            1.8rem,
            7vw,
            2.5rem
        );

    line-height: 1.3;

    color: var(--rose-light);
}


.quote-section > p {
    margin-top: 15px;

    color:
        rgba(255, 247, 241, 0.45);

    font-size: 0.75rem;
}


/* =====================================================
   ENVELOPE
===================================================== */

.envelope-section {
    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    width: 100%;
}


.envelope-intro {
    margin-bottom: 28px;
}


.envelope-intro h2 {
    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 2.3rem;

    margin-bottom: 8px;
}


.envelope-intro p:last-child {
    color:
        rgba(255, 247, 241, 0.55);

    font-size: 0.85rem;
}


.envelope {
    position: relative;

    width: 110px;

    height: 76px;

    background:
        linear-gradient(
            150deg,
            #ff9db0,
            #d94e73
        );

    border: none;

    border-radius: 9px;

    cursor: pointer;

    box-shadow:
        0 18px 40px
        rgba(224, 86, 122, 0.55);

    animation:
        envelopeBob 2.5s
        ease-in-out
        infinite;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.envelope:hover {
    transform:
        translateY(-6px)
        scale(1.05);

    box-shadow:
        0 25px 55px
        rgba(224, 86, 122, 0.7);
}


.envelope-flap {
    position: absolute;

    top: 0;

    left: 0;

    width: 0;

    height: 0;

    border-left:
        55px solid transparent;

    border-right:
        55px solid transparent;

    border-top:
        38px solid #ffc0cd;

    transform-origin: top;

    transition:
        transform 0.4s ease;

    z-index: 2;
}


.envelope.open .envelope-flap {
    transform:
        rotateX(180deg);
}


.envelope-body {
    position: absolute;

    inset: 0;

    border-radius: 9px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.08),
            transparent
        );
}


.envelope-heart {
    position: absolute;

    top: 57%;

    left: 50%;

    transform:
        translate(-50%, -50%);

    color: white;

    font-size: 1.2rem;

    z-index: 3;
}


.envelope-label {
    margin-top: 18px;

    font-family:
        "Marck Script",
        cursive;

    font-size: 1.2rem;

    color: var(--gold);
}


@keyframes envelopeBob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}


/* =====================================================
   FINAL
===================================================== */

.final-section {
    width: 100%;

    text-align: center;

    padding-top: 20px;
}


.final-line {
    width: 80px;

    height: 1px;

    margin:
        0 auto 28px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--gold),
            transparent
        );
}


.final-heart {
    color: var(--rose);

    font-size: 1.4rem;

    margin-bottom: 14px;
}


.final-small {
    font-size: 0.7rem;

    letter-spacing: 0.22em;

    color: var(--gold);

    margin-bottom: 10px;
}


.final-section h2 {
    font-family:
        "Marck Script",
        cursive;

    font-size: 2.7rem;

    color: var(--rose-light);

    margin-bottom: 10px;
}


.final-section > p:not(.final-small) {
    max-width: 380px;

    margin: auto;

    line-height: 1.7;

    color:
        rgba(255, 247, 241, 0.55);

    font-size: 0.88rem;
}


.final-sign {
    margin-top: 28px;

    font-family:
        "Marck Script",
        cursive;

    font-size: 1rem;

    color:
        rgba(255, 247, 241, 0.6);
}


.final-sign span {
    display: block;

    font-size: 1.7rem;

    color: var(--rose);
}


/* =====================================================
   LETTER OVERLAY
===================================================== */

.letter-overlay {
    position: fixed;

    inset: 0;

    z-index: 50;

    background:
        rgba(15, 4, 7, 0.78);

    backdrop-filter:
        blur(10px);

    display: flex;

    align-items: center;

    justify-content: center;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.35s ease;

    padding: 20px;
}


.letter-overlay.show {
    opacity: 1;

    pointer-events: auto;
}


.letter-card {
    position: relative;

    width: min(92vw, 440px);

    max-height: 82vh;

    overflow-y: auto;

    background:
        linear-gradient(
            145deg,
            #fffaf5,
            #fff1f4
        );

    color: var(--ink);

    border-radius: 26px;

    padding:
        38px
        28px
        30px;

    transform:
        translateY(45px)
        scale(.94);

    transition:
        transform .5s
        cubic-bezier(.2,.9,.2,1);

    box-shadow:
        0 35px 90px
        rgba(0,0,0,.65);
}


.letter-overlay.show
.letter-card {
    transform:
        translateY(0)
        scale(1);
}


.close-btn {
    position: absolute;

    top: 14px;

    right: 16px;

    width: 34px;

    height: 34px;

    border: none;

    border-radius: 50%;

    background:
        #fce6eb;

    color:
        #a65a69;

    cursor: pointer;

    font-size: .9rem;
}


.letter-decoration {
    text-align: center;

    color: var(--rose);

    font-size: 1.5rem;

    margin-bottom: 8px;
}


.letter-heading {
    font-family:
        "Cormorant Garamond",
        serif;

    font-style: italic;

    font-weight: 700;

    font-size: 2rem;

    color: #c0455f;

    text-align: center;

    margin-bottom: 20px;

    padding-bottom: 15px;

    border-bottom:
        1px solid #f0d9de;
}


.letter-body {
    font-family:
        "Outfit",
        sans-serif;

    font-size: 0.97rem;

    line-height: 1.85;

    color: #4a3034;

    min-height: 120px;
}


.letter-link {
    display: block;

    width: fit-content;

    margin:
        22px auto 0;

    padding:
        10px 20px;

    font-size: .82rem;

    font-weight: 600;

    color: #c0455f;

    background:
        #fdeef0;

    border:
        1px solid #f3cdd5;

    border-radius: 999px;

    text-decoration: none;

    transition:
        transform .25s ease,
        background .25s ease;
}


.letter-link:hover {
    background: #fbdce2;

    transform: scale(1.04);
}


.letter-sign {
    margin-top: 24px;

    padding-top: 17px;

    border-top:
        1px solid #f0d9de;

    text-align: right;

    opacity: 0;

    transform:
        translateY(10px);

    transition:
        opacity .5s ease,
        transform .5s ease;
}


.letter-sign.show {
    opacity: 1;

    transform:
        translateY(0);
}


.letter-sign span {
    display: block;

    font-size: .72rem;

    color: #a56a76;

    text-transform: uppercase;

    letter-spacing: .1em;
}


.letter-sign strong {
    font-family:
        "Marck Script",
        cursive;

    font-size: 1.9rem;

    color: #c0455f;

    font-weight: 400;
}


/* =====================================================
   CONFETTI
===================================================== */

#confetti-canvas {
    position: fixed;

    inset: 0;

    z-index: 60;

    pointer-events: none;
}


/* =====================================================
   ANIMATIONS
===================================================== */

@keyframes fadeUp {

    from {
        opacity: 0;

        transform:
            translateY(22px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


@keyframes popIn {

    from {
        opacity: 0;

        scale: .85;
    }

    to {
        opacity: 1;

        scale: 1;
    }
}


@keyframes floatY {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -10px;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 520px) {

    .stage {
        padding:
            10vh
            18px
            10vh;

        gap: 75px;
    }


    .hero {
        padding-top: 10px;
    }


    .count {
        font-size:
            clamp(
                5.5rem,
                28vw,
                8rem
            );
    }


    .tagline {
        font-size: 1.3rem;
    }


    .intro-text {
        font-size: .86rem;

        padding:
            0 15px;
    }


    .memory-card {
        padding:
            28px 20px;
    }


    .memory-card h2 {
        font-size: 2rem;
    }


    .section-heading h2 {
        font-size: 2rem;
    }


    .love-grid {
        gap: 10px;
    }


    .love-card {
        padding:
            20px 13px;
    }


    .love-card h3 {
        font-size: 1.25rem;
    }


    .love-card p {
        font-size: .72rem;
    }


    .photo-wrap {
        gap: 22px 10px;
    }


    .polaroid {
        width:
            min(47vw, 200px);
    }


    .polaroid:nth-child(2) {
        width:
            min(52vw, 215px);
    }


    .letter-card {
        padding:
            35px
            22px
            25px;
    }

}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;
    }

}