/* ========================================
   ILYANA'S XV
   GLOBAL SETTINGS
======================================== */

:root {
    --color-ivory: #fbf1e6;
    --color-champagne: #f1dcc4;

    /* Ruby / crimson family */
    --color-ruby: #a90d18;
    --color-crimson: #c41422;
    --color-deep-ruby: #720812;
    --color-ruby-shadow: #42050b;
    --metallic-ruby:
        linear-gradient(
            90deg,
            #7d0d18 0%,
            #a81422 24%,
            #bf2232 45%,
            #d63a4b 50%,
            #bb1a2a 60%,
            #97111f 80%,
            #6e0913 100%
        );

    /*
       Keep this variable for existing sections
       that already reference it.
       It now behaves as our deep ruby.
    */
    --color-burgundy: #720812;

    /* Gold family */
    --color-gold-light: #f8df95;
    --color-gold: #d8a13b;
    --color-gold-deep: #a66716;
    --color-soft-gold: #e0bb70;
    --metallic-gold:
        linear-gradient(
            90deg,
            #8c5410 0%,
            #b9781e 24%,
            #cf9833 45%,
            #ddb24a 50%,
            #c88c29 60%,
            #a56616 80%,
            #7b470c 100%
        );

    --color-ink: #2f1c1a;

    /* Typography */
    --font-serif: Georgia, "Times New Roman", serif;
    --font-script: "Great Vibes", cursive;
}


/* ========================================
   BASIC RESET
======================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    overflow-x: hidden;

    background-color: var(--color-ivory);
    color: var(--color-ink);

    font-family: var(--font-serif);
}


body.is-opening-locked {
    height: 100vh;
    height: 100svh;

    overflow: hidden;
}


body.is-opening-locked main > section:not(#opening) {
    display: none;
}

[hidden] {
    display: none !important;
}


/* ========================================
   OPENING SECTION
======================================== */

.opening {
    min-height: 100vh;
    min-height: 100svh;

    position: relative;
    isolation: isolate;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 2rem;

    background:
        linear-gradient(
            rgba(248, 237, 223, 0.18),
            rgba(239, 221, 200, 0.18)
        ),
        url("../assets/images/decorative/cream-marble.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    text-align: center;

    transition:
    opacity 0.5s ease;
}


/* ========================================
   OUTER METALLIC GOLD FRAME
======================================== */

.opening::before {
    content: "";

    position: absolute;
    inset: 0.85rem;

    z-index: 1;

    padding: 2px;

    background:
        linear-gradient(
            135deg,
            #80521d 0%,
            #e1b95e 14%,
            #fff0b5 27%,
            #a76c24 42%,
            #f2d789 56%,
            #8d5c20 70%,
            #e6c26b 86%,
            #80521d 100%
        );

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;

    mask-composite: exclude;

    filter:
        drop-shadow(
            0 0 0.12rem
            rgba(214, 175, 104, 0.24)
        );

    pointer-events: none;
}


/* ========================================
   INNER GOLD FRAME
======================================== */

.opening::after {
    content: "";

    position: absolute;
    inset: 1.35rem;

    z-index: 1;

    border:
        1px solid
        rgba(186, 132, 48, 0.78);

    box-shadow:
        inset 0 0 0.05rem
        rgba(255, 241, 189, 0.45);

    pointer-events: none;
}


.opening__content {
    position: relative;

    z-index: 3;

    width: 100%;
    max-width: 32rem;
}


/* ========================================
   OPENING CORNERS
======================================== */

.opening-corner {
    position: absolute;
    z-index: 2;

    width: clamp(120px, 18vw, 260px);
    height: auto;

    pointer-events: none;
    user-select: none;
}


/* Top left */
.opening-corner--tl {
    top: -0.2rem;
    left: 0;
}


/* Top right */
.opening-corner--tr {
    top: 0;
    right: 0;
}


/* Bottom left */
.opening-corner--bl {
    bottom: 0;
    left: 0;
}


/* Bottom right */
.opening-corner--br {
    bottom: 0;
    right: 0;
}


/* ========================================
   OPENING — MOBILE
======================================== */

@media (max-width: 48rem) {

    .opening::before {
        inset: 0.55rem;
    }


    .opening::after {
        inset: 0.9rem;
    }


    .opening-corner--tl {
        top: -0.9rem;
        left: -1.4rem;

        width: 11.5rem;
    }


    .opening-corner--tr {
        top: -0.6rem;
        right: -0.5rem;

        width: 11.5rem;
    }


    .opening-corner--bl {
        bottom: -1.25rem;
        left: -1.5rem;

        width: 11.5rem;
    }


    .opening-corner--br {
        bottom: -1.25rem;
        right: -1.5rem;

        width: 11.5rem;
    }

}


.opening__crest {
    display: block;

    position: relative;
    left: -0.15rem;

    width: min(18vw, 4.75rem);
    height: auto;

    margin:
        0 auto
        4.5rem;

    transition:
        transform 0.9s ease;
}


.opening.is-opening .opening__crest {
    transform: translateY(-4.5rem);
}


.opening.is-leaving {
    opacity: 0;

    pointer-events: none;
}


/* ========================================
   ENVELOPE
======================================== */

.envelope {
    position: relative;

    isolation: isolate;

    width: min(80vw, 22rem);
    aspect-ratio: 1.6 / 1;

    margin: 0 auto;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;

    perspective: 62rem;

    overflow: visible;
}


/* Back panel */

.envelope__back {
    position: absolute;
    inset: 0;

    z-index: 0;

    background:
        linear-gradient(
            rgba(235, 200, 165, 0.48),
            rgba(235, 200, 165, 0.48)
        ),
        url("../assets/images/decorative/envelope-paper-texture.webp")
        center / cover
        no-repeat;

    box-shadow:
        0 0.35rem 0.5rem
        rgba(92, 11, 19, 0.07),

        0 1.2rem 2rem
        rgba(92, 11, 19, 0.16);
}


/* Invitation card */

.envelope__card {
    position: absolute;

    top: 9%;
    left: 7%;

    z-index: 1;

    width: 86%;
    height: 89%;

    display: grid;
    place-items: center;

    border: 1px solid var(--color-soft-gold);

    background:
        url("../assets/images/decorative/envelope-paper-texture.webp")
        center / cover
        no-repeat;

    box-shadow:
        0 0.5rem 1rem rgba(92, 11, 19, 0.1);

    transform: translateY(0%);

    transition:
        transform 0.85s ease;

    pointer-events: none;
}


.envelope__card::before {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.35rem;
    height: 0.7rem;

    background: linear-gradient(
        to bottom,
        rgba(92, 11, 19, 0.12),
        rgba(92, 11, 19, 0)
    );

    filter: blur(0.18rem);

    pointer-events: none;
}


/* Flap */

.envelope__flap {
    position: absolute;

    top: 0;
    left: 0;

    z-index: 4;

    width: 100%;
    height: 55%;

    transform-origin: top center;
    transform-style: preserve-3d;

    transition:
        transform 0.9s ease,
        z-index 0s 0.45s;

    pointer-events: none;
}


.envelope__flap-face {
    position: absolute;
    inset: 0;

    z-index: 1;

    background:
        url("../assets/images/decorative/envelope-flap.webp")
        center / 100% 100%
        no-repeat;

    pointer-events: none;
}


/* Wax seal container */

.envelope__seal {
    position: absolute;

    z-index: 2;

    left: 50%;
    bottom: -1.3rem;

    width: 3.2rem;
    aspect-ratio: 1;

    transform:
        translateX(-50%);

    transform-style: preserve-3d;

    pointer-events: none;
}


.envelope__seal-face {
    position: absolute;
    inset: 0;

    display: grid;
    place-items: center;

    border-radius: 50%;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}


/* Front: stamped crowned-I side */

.envelope__seal-face--front {
    background-image:
        url("../assets/images/decorative/wax-seal-front.webp");

    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    transform:
        translateZ(0.06rem);
}


/* Back: plain wax underside */

.envelope__seal-face--back {
    background-image:
        url("../assets/images/decorative/wax-seal-back.webp");

    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    transform:
        rotateX(180deg)
        translateZ(0.06rem);
}


/* Front pocket */

.envelope__front {
    position: absolute;
    inset: 0;

    z-index: 3;

    background:
        url("../assets/images/decorative/envelope-pocket.webp")
        center / 100% 100%
        no-repeat;

    pointer-events: none;
}


/* Open state */

.envelope.is-open .envelope__flap {
    z-index: 0;

    transform: rotateX(180deg);
}


.envelope.is-open .envelope__card {
    transform: translateY(-55%);

    transition-delay: 0.7s;
}


/* ========================================
   OPENING TEXT
======================================== */

.opening__prompt {
    margin: 2rem 0 1rem;

    color: var(--color-ruby);

    font-size: 1.1rem;
    letter-spacing: 0.08em;
}


/* ========================================
   LANGUAGE SELECTOR
======================================== */

.language-toggle {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 0.75rem;
}


.language-toggle__option {
    padding: 0;

    border: 0;

    background: transparent;

    color: var(--color-ink);

    font: inherit;

    cursor: pointer;

    opacity: 0.6;
}


.language-toggle__option.is-active {
    color: var(--color-ruby);

    opacity: 1;
}


.language-toggle__divider {
    color: var(--color-gold);
}


.opening__prompt,
.language-toggle {
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}


.opening__prompt.is-hidden,
.language-toggle.is-hidden {
    opacity: 0;

    transform: translateY(0.5rem);

    pointer-events: none;
}


/* ========================================
   HERO
======================================== */

.hero {
    position: relative;

    min-height: 100vh;
    min-height: 100svh;

    display: flex;
    align-items: center;

    overflow: hidden;

    padding:
        clamp(3rem, 8vw, 7rem)
        clamp(1.5rem, 7vw, 7rem);

    background-color: var(--color-burgundy);

    color: var(--color-ivory);

    opacity: 0;

    transition:
        opacity 1.1s ease;
}


.hero.is-visible {
    opacity: 1;
}


/* Full-screen photograph */

.hero__media {
    position: absolute;
    inset: 0;

    z-index: 0;
}


.hero__image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

}


/* Dark burgundy treatment over the photograph */

.hero__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(90, 5, 15, 0.84) 0%,
            rgba(90, 5, 15, 0.60) 25%,
            rgba(90, 5, 15, 0.22) 48%,
            rgba(90, 5, 15, 0.06) 72%,
            rgba(90, 5, 15, 0.02) 100%
        ),
        linear-gradient(
            0deg,
            rgba(90, 5, 15, 0.28) 0%,
            rgba(90, 5, 15, 0) 40%
        );

    pointer-events: none;
}


/* Hero wording */

.hero__content {
    position: relative;

    z-index: 2;

    width: min(100%, 34rem);

    text-align: left;
}


.hero__eyebrow {
    margin: 0 0 1rem;

    color: var(--color-champagne);

    font-size: clamp(
        0.8rem,
        1.5vw,
        1rem
    );

    letter-spacing: 0.22em;
    text-transform: uppercase;
}


.hero__name {
    margin:
        0.55rem
        0
        1.25rem;

    padding:
        0.18em
        0.2em
        0.08em;

    transform: translateX(-6rem);

    font-family: var(--font-script);

    font-size: clamp(
        4rem,
        5.4vw,
        5.7rem
    );

    font-weight: 400;
    line-height: 1.05;

    white-space: nowrap;

    background:
        linear-gradient(
            180deg,
            #fff0b2 0%,
            #e8b647 28%,
            #b87519 57%,
            #f5cf67 78%,
            #fff1ba 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;

    text-shadow:
        0 0.15rem 0.35rem
        rgba(45, 4, 9, 0.22);

    overflow: visible;
}


.hero__date {
    margin:
        2rem 0
        0;

    color: var(--color-champagne);

    font-size: clamp(
        0.95rem,
        1.8vw,
        1.15rem
    );

    letter-spacing: 0.12em;
}


.hero__eyebrow,
.hero__date {
    transform: translateX(3.25rem);
}

.hero__tagline {
    transform: translateX(1rem);
}


@media (min-width: 701px) {

    html[lang="es"] .hero__date {
        margin:
            1.5rem
            0
            0;

        letter-spacing: 0.1em;

        transform:
            translateX(1.75rem);
    }

}


/* Scroll cue */

.hero__scroll-cue {
    position: absolute;

    left: 50%;
    bottom: 1.5rem;

    z-index: 3;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;

    color: var(--color-champagne);

    transform: translateX(-50%);

    pointer-events: none;
}


.hero__scroll-label {
    font-size: 0.7rem;

    letter-spacing: 0.22em;
    text-transform: uppercase;
}


.hero__scroll-arrow {
    width: 0.65rem;
    height: 0.65rem;

    border-right:
        1px solid
        currentColor;

    border-bottom:
        1px solid
        currentColor;

    transform: rotate(45deg);

    animation:
        hero-scroll-cue
        1.8s
        ease-in-out
        infinite;
}


@keyframes hero-scroll-cue {

    0%,
    100% {
        transform:
            translateY(0)
            rotate(45deg);

        opacity: 0.55;
    }

    50% {
        transform:
            translateY(0.35rem)
            rotate(45deg);

        opacity: 1;
    }

}


/* ========================================
   HERO SPARKLES
======================================== */

.hero__sparkles {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.hero__sparkle {
    position: absolute;
    width: 0.95rem;
    aspect-ratio: 1;
    opacity: 0;
    transform: scale(0.55);
    animation: heroSparkleTwinkle 3.8s ease-in-out infinite;
}

.hero__sparkle::before,
.hero__sparkle::after {
    content: "";

    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
    border-radius: 999px;

    background:
        radial-gradient(
            circle,
            rgba(255, 248, 210, 0.98) 0%,
            rgba(255, 226, 150, 0.92) 42%,
            rgba(255, 214, 110, 0.45) 72%,
            rgba(255, 214, 110, 0) 100%
        );

    box-shadow:
        0 0 0.25rem rgba(255, 220, 120, 0.45),
        0 0 0.55rem rgba(255, 220, 120, 0.22);
}

/* vertical ray */
.hero__sparkle::before {
    width: 0.12rem;
    height: 100%;
}

/* horizontal ray */
.hero__sparkle::after {
    width: 100%;
    height: 0.12rem;
}

@keyframes heroSparkleTwinkle {
    0%,
    100% {
        opacity: 0;
        transform: scale(0.55) rotate(0deg);
    }

    20% {
        opacity: 0.18;
        transform: scale(0.72) rotate(8deg);
    }

    40% {
        opacity: 0.95;
        transform: scale(1) rotate(0deg);
    }

    60% {
        opacity: 0.5;
        transform: scale(0.82) rotate(-8deg);
    }

    80% {
        opacity: 0.14;
        transform: scale(0.62) rotate(6deg);
    }
}


/* Sparkle placement */

.hero__sparkle--1 {
    left: 6%;
    bottom: 11%;
    animation-delay: 0s;
}

.hero__sparkle--2 {
    left: 17%;
    bottom: 8%;
    animation-delay: 1.1s;
}

.hero__sparkle--3 {
    left: 28%;
    bottom: 7%;
    animation-delay: 2.1s;
}

.hero__sparkle--4 {
    right: 30%;
    bottom: 8%;
    animation-delay: 0.8s;
}

.hero__sparkle--5 {
    right: 15%;
    bottom: 9%;
    animation-delay: 1.8s;
}

.hero__sparkle--6 {
    right: 6%;
    bottom: 12%;
    animation-delay: 2.8s;
}

.hero__sparkle--7 {
    left: 10%;
    top: 13%;
    animation-delay: 2.4s;
}

.hero__sparkle--8 {
    right: 8%;
    top: 10%;
    animation-delay: 3.1s;
}

.hero__sparkle--9 {
    left: 12%;
    top: 11%;
    animation-delay: 0.6s;
}

.hero__sparkle--10 {
    left: 24%;
    top: 18%;
    animation-delay: 2.6s;
}

.hero__sparkle--11 {
    right: 16%;
    top: 12%;
    animation-delay: 1.4s;
}

.hero__sparkle--12 {
    right: 9%;
    top: 22%;
    animation-delay: 3s;
}

.hero__sparkle--13 {
    left: 14%;
    top: 47%;
    animation-delay: 1.9s;
}

.hero__sparkle--14 {
    right: 12%;
    top: 50%;
    animation-delay: 0.9s;
}


/* ========================================
   HERO — MOBILE
======================================== */

@media (max-width: 700px) {

    .hero {
        min-height: 100vh;
        min-height: 100svh;

        display: grid;
        grid-template-rows:
            46svh
            1fr;

        align-items: stretch;

        padding: 0;

        background:
            var(--color-deep-ruby);
    }


    /* Photograph */

    .hero__media {
        position: relative;
        inset: auto;

        width: 100%;
        height: 54svh;

        z-index: 0;
    }


    .hero__image {
        width: 100%;
        height: 100%;

        object-fit: cover;

        /*
           Shift the crop slightly right so we keep
           both Ilyana and more of the horse.
        */
        object-position: 58% center;
    }


    .hero__overlay {
        background:
            linear-gradient(
                180deg,
                rgba(114, 8, 18, 0) 0%,
                rgba(114, 8, 18, 0.03) 45%,
                rgba(114, 8, 18, 0.16) 62%,
                rgba(114, 8, 18, 0.42) 74%,
                rgba(114, 8, 18, 0.74) 86%,
                var(--color-deep-ruby) 100%
            );
    }


    /* Ruby invitation panel */

    .hero__content {
        position: relative;

        z-index: 2;

        width: 100%;
        max-width: none;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        padding:
            1rem
            1.5rem
            3.5rem;

        text-align: center;
    }


    .hero__eyebrow,
    .hero__tagline,
    .hero__date,
    .hero__name {
        transform: none;
    }


    .hero__eyebrow {
        margin:
            0
            0
            0.45rem;

        font-size: 0.75rem;
    }


    .hero__name {
        margin:
            0
            0
            0.75rem;

        padding:
            0.15em
            0.2em
            0.05em;

        font-size: clamp(
            3.6rem,
            15vw,
            4.7rem
        );

        line-height: 1;

        white-space: nowrap;
    }


    .hero__tagline {
        max-width: 20rem;

        margin: 0;

        font-size: 1rem;

        line-height: 1.45;
    }


    .hero__date {
        margin:
            1.25rem
            0
            0;

        font-size: 0.85rem;
    }


    .hero__scroll-cue {
        bottom:
            calc(
                0.85rem +
                env(safe-area-inset-bottom)
            );
    }


    .hero__scroll-label {
        font-size: 0.62rem;
    }


}


/* ========================================
   FORMAL INVITATION
======================================== */

.invitation {
    position: relative;

    min-height: 100vh;
    min-height: 100svh;

    display: grid;
    place-items: center;

    overflow: hidden;

    padding:
        clamp(4rem, 8vw, 7rem)
        clamp(1.25rem, 5vw, 4rem);

    background:
        linear-gradient(
            rgba(251, 241, 230, 0.74),
            rgba(251, 241, 230, 0.74)
        ),
        url("../assets/images/decorative/cream-marble.webp")
        center / cover
        no-repeat;

    color: var(--color-ink);
}


/* Soft edge shading */

.invitation::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at center,
            transparent 45%,
            rgba(114, 8, 18, 0.04) 100%
        );

    pointer-events: none;
}


/* Main invitation frame */

.invitation__inner {
    position: relative;

    z-index: 1;

    width: min(100%, 54rem);

    padding:
        clamp(4.5rem, 7vw, 6rem)
        clamp(2rem, 7vw, 5rem)
        clamp(4rem, 7vw, 5.5rem);

    text-align: center;

    background:
        rgba(255, 250, 244, 0.34);

    box-shadow:
        inset 0 0 0 1px
            rgba(224, 187, 112, 0.88),

        inset 0 0 0 0.38rem
            rgba(251, 241, 230, 0.72),

        inset 0 0 0 0.46rem
            rgba(184, 130, 50, 0.58),

        0 1rem 2.5rem
            rgba(114, 8, 18, 0.05);

    backdrop-filter:
        blur(0.08rem);
}


.invitation__crest {
    position: relative;

    z-index: 2;

    display: block;

    width: clamp(
        4.5rem,
        8vw,
        6rem
    );

    margin:
        0
        auto
        1.5rem;
}


/* ========================================
   INVITATION FLORAL CORNERS
======================================== */

.invitation__floral {
    position: absolute;

    z-index: 0;

    pointer-events: none;
}


/* Top corners */

.invitation__floral--top-left,
.invitation__floral--top-right {
    width: clamp(
        8rem,
        16vw,
        12rem
    );

    top: -0.35rem;
}


.invitation__floral--top-left {
    left: -0.35rem;
}


.invitation__floral--top-right {
    right: -0.35rem;
}


/* Bottom corners */

.invitation__floral--bottom-left,
.invitation__floral--bottom-right {
    width: clamp(
        7rem,
        14vw,
        10rem
    );

    bottom: -0.35rem;
}


.invitation__floral--bottom-left {
    left: -0.35rem;
}


.invitation__floral--bottom-right {
    right: -0.35rem;
}


/* Keep invitation content above the flowers */

.invitation__crest,
.invitation__intro,
.invitation__ornament,
.invitation__hosts,
.invitation__parents,
.invitation__invite,
.invitation__name,
.invitation__closing {
    position: relative;
    z-index: 2;
}


/* ========================================
   INVITATION SPARKLES
======================================== */

.invitation__sparkles {
    position: absolute;
    inset: 0;

    z-index: 1;

    overflow: hidden;

    pointer-events: none;
}


.invitation__sparkle {
    position: absolute;

    width: 0.95rem;
    height: 0.95rem;

    opacity: 0.15;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 249, 220, 0.98) 0%,
            rgba(255, 228, 150, 0.72) 30%,
            rgba(255, 214, 110, 0.30) 52%,
            transparent 72%
        );

    filter:
        drop-shadow(
            0 0 0.22rem
            rgba(255, 215, 115, 0.48)
        );

    transform:
        scale(0.65);

    animation:
        invitation-twinkle
        2.6s
        ease-in-out
        infinite;

    pointer-events: none;
}


/* Four-point star rays */

.invitation__sparkle::before,
.invitation__sparkle::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    border-radius: 999px;

    pointer-events: none;
}


/* Horizontal ray */

.invitation__sparkle::before {
    width: 100%;
    height: 0.1rem;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 232, 166, 0.72) 25%,
            rgba(255, 249, 220, 1) 50%,
            rgba(255, 232, 166, 0.72) 75%,
            transparent 100%
        );

    transform:
        translate(-50%, -50%);
}


/* Vertical ray */

.invitation__sparkle::after {
    width: 0.1rem;
    height: 100%;

    background:
        linear-gradient(
            180deg,
            transparent 0%,
            rgba(255, 232, 166, 0.72) 25%,
            rgba(255, 249, 220, 1) 50%,
            rgba(255, 232, 166, 0.72) 75%,
            transparent 100%
        );

    transform:
        translate(-50%, -50%);
}


/* ========================================
   TWINKLE ANIMATION
======================================== */

@keyframes invitation-twinkle {

    0%,
    100% {
        opacity: 0.12;

        transform:
            scale(0.62)
            rotate(0deg);
    }

    25% {
        opacity: 0.42;
    }

    45% {
        opacity: 1;

        transform:
            scale(1.12)
            rotate(8deg);
    }

    65% {
        opacity: 0.36;

        transform:
            scale(0.78)
            rotate(-5deg);
    }

    82% {
        opacity: 0.16;
    }

}


/* ========================================
   DESKTOP PLACEMENT
======================================== */

.invitation__sparkle--1 {
    top: 16%;
    left: 20%;

    animation-delay: 0s;
}


.invitation__sparkle--2 {
    top: 24%;
    right: 18%;

    width: 0.72rem;
    height: 0.72rem;

    animation-delay: 0.4s;
}


.invitation__sparkle--3 {
    top: 42%;
    left: 11%;

    width: 0.8rem;
    height: 0.8rem;

    animation-delay: 0.85s;
}


.invitation__sparkle--4 {
    top: 54%;
    right: 10%;

    width: 0.76rem;
    height: 0.76rem;

    animation-delay: 1.25s;
}


.invitation__sparkle--5 {
    bottom: 18%;
    left: 16%;

    animation-delay: 1.7s;
}


.invitation__sparkle--6 {
    bottom: 14%;
    right: 17%;

    width: 0.82rem;
    height: 0.82rem;

    animation-delay: 2.05s;
}





/* Opening sentiment */

.invitation__intro {
    max-width: 39rem;

    margin:
        0
        auto;

    color: var(--color-ink);

    font-size: clamp(
        1.05rem,
        2vw,
        1.3rem
    );

    font-style: italic;
    line-height: 1.8;
}


/* Heart divider */

.invitation__ornament {
    width: min(100%, 20rem);

    display: grid;
    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;
    gap: 0.85rem;

    margin:
        1.65rem
        auto
        1.8rem;

    color: var(--color-ruby);

    font-size: 1.25rem;

    filter:
        drop-shadow(
            0 0 0.22rem
            rgba(196, 20, 34, 0.30)
        );
}


.invitation__ornament::before,
.invitation__ornament::after {
    content: "";

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--color-soft-gold),
            var(--color-gold)
        );
}


.invitation__ornament::after {
    transform: scaleX(-1);
}


/* Hosts */

.invitation__hosts {
    margin:
        0
        0
        0.65rem;

    font-size: clamp(
        1rem,
        1.8vw,
        1.2rem
    );

    line-height: 1.7;
}


.invitation__parents {
    width: fit-content;
    max-width: 100%;

    margin:
        0.15rem
        auto
        1rem;

    font-family: var(--font-script);

    font-size: clamp(
        2.5rem,
        4vw,
        3.5rem
    );

    line-height: 1.15;

    background:
        var(--metallic-gold);

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;

    text-shadow:
        0 0.08rem 0.16rem
        rgba(104, 61, 8, 0.16);
}


.invitation__parents > span:not(.invitation__parents-amp) {
    display: inline-block;
    white-space: nowrap;
}


.invitation__parents-amp {
    display: inline-block;

    margin-left: 0.18em;
}


/* Invitation wording */

.invitation__invite {
    margin:
        0
        auto
        1rem;

    font-size: clamp(
        1rem,
        1.8vw,
        1.2rem
    );

    line-height: 1.75;
}


/* Ilyana's name */

.invitation__name {
    width: fit-content;
    max-width: 100%;

    margin:
        0.45rem
        auto
        1.25rem;

    padding:
        0.15em
        0.2em
        0.08em;

    font-family: var(--font-script);

    font-size: clamp(
        4rem,
        7vw,
        6rem
    );

    font-weight: 400;
    line-height: 1;

    background:
        var(--metallic-ruby);

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;

    text-shadow:
        0 0.1rem 0.2rem
        rgba(95, 5, 16, 0.14);
}


.invitation__ornament--after-name {
    width: min(100%, 16rem);

    margin:
        0.25rem
        auto
        1.5rem;
}


/* Closing sentiment */

.invitation__closing {
    max-width: 42rem;

    margin:
        0
        auto;

    font-size: clamp(
        1rem,
        1.8vw,
        1.18rem
    );

    line-height: 1.8;
}

.invitation__closing-final {
    display: block;

    width: fit-content;
    max-width: 100%;

    margin:
        0.55rem
        auto
        0;

    font-family: var(--font-script);

    font-size: clamp(
        1.65rem,
        3vw,
        2.35rem
    );

    line-height: 1.15;

    background:
        var(--metallic-gold);

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;

    text-shadow:
        0 0.07rem 0.14rem
        rgba(104, 61, 8, 0.14);
}


/* ========================================
   FORMAL INVITATION — MOBILE
======================================== */

@media (max-width: 700px) {

    .invitation {
        padding:
            2rem
            0.75rem;
    }


    .invitation__inner {
        padding:
            2.5rem
            1.4rem
            3.5rem;
    }


    .invitation__crest {
        width: 4.5rem;

        margin-bottom: 0.9rem;
    }


    .invitation__intro {
        font-size: 1rem;
        line-height: 1.6;
    }


    .invitation__ornament {
        margin:
            1.2rem
            auto
            1.35rem;
    }


    .invitation__hosts {
        margin-bottom: 0.35rem;
    }


    .invitation__parents {
        font-size: 2.45rem;
        line-height: 1.28;
        margin-bottom: 0.75rem;
    }


    .invitation__invite {
        margin-bottom: 0.7rem;
    }


    .invitation__name {
        font-size: clamp(
            3.6rem,
            16vw,
            4.8rem
        );

        line-height: 1.12;

        margin:
            0.25rem
            auto
            0.8rem;
    }


    .invitation__ornament--after-name {
        margin:
            0
            auto
            1.1rem;
    }


    .invitation__closing-final {
        font-size: 1.55rem;
        line-height: 1.2;
        margin-top: 0.35rem;
    }


    .invitation__invite,
    .invitation__closing {
        font-size: 0.98rem;
        line-height: 1.7;
    }


    .invitation__floral--top-left,
    .invitation__floral--top-right {
        width: 7rem;
    }


    .invitation__floral--bottom-left,
    .invitation__floral--bottom-right {
        width: 6rem;
    }


}


/* ========================================
   INVITATION SPARKLES — MOBILE
======================================== */

@media (max-width: 700px) {

    .invitation__sparkle {
        width: 0.8rem;
        height: 0.8rem;
    }


    .invitation__sparkle--1 {
        top: 18%;
        left: 11%;
    }


    .invitation__sparkle--2 {
        top: 31%;
        right: 9%;
    }


    .invitation__sparkle--3 {
        top: 47%;
        left: 7%;
    }


    .invitation__sparkle--4 {
        top: 61%;
        right: 7%;
    }


    .invitation__sparkle--5 {
        bottom: 18%;
        left: 10%;
    }


    .invitation__sparkle--6 {
        bottom: 12%;
        right: 10%;
    }

}


/* ========================================
   EVENT DETAILS
======================================== */

.details {
    position: relative;

    padding:
        clamp(5.5rem, 10vw, 8rem)
        clamp(1.25rem, 5vw, 4rem)
        clamp(4.5rem, 8vw, 7rem);

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            var(--color-deep-ruby),
            var(--color-ruby-shadow)
        );

    color: var(--color-ivory);
}


.details::before,
.details::after {
    content: "";

    position: absolute;

    pointer-events: none;

    z-index: 3;
}


.details::before {
    inset: 0.55rem;

    border:
        2px solid
        rgba(224, 187, 112, 0.82);

    box-shadow:
        0 0 0.35rem rgba(224, 187, 112, 0.22),
        inset 0 0 0.25rem rgba(255, 235, 175, 0.10);
}


.details::after {
    inset: 0.85rem;

    border:
        1px solid
        rgba(184, 130, 50, 0.62);
}


.details__inner {
    position: relative;
    z-index: 2;

    width: min(100%, 64rem);

    margin: 0 auto;

    text-align: center;
}


/* Section heading */

.details__eyebrow {
    margin:
        0
        0
        0.8rem;

    color: var(--color-champagne);

    font-size: 0.9rem;

    letter-spacing: 0.22em;
    text-transform: uppercase;
}


.details__title {
    width: fit-content;

    margin:
        0
        auto
        2.5rem;

    transform: translateY(0.4rem);

    padding:
        0.15em
        0.2em;

    font-family: var(--font-script);

    font-size: clamp(
        3.5rem,
        6vw,
        5.2rem
    );

    font-weight: 400;
    line-height: 1;

    background:
        var(--metallic-gold);

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;
}


.details__ornament {
    width: min(100%, 15rem);

    display: grid;
    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;
    gap: 0.75rem;

    margin:
        -1.2rem
        auto
        2.5rem;

    color: var(--color-ruby);

    font-size: 0.9rem;
}


.details__ornament::before,
.details__ornament::after {
    content: "";

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--color-soft-gold),
            var(--color-gold)
        );
}


.details__ornament::after {
    transform: scaleX(-1);
}


.details__ornament span {
    width: 1.75rem;
    aspect-ratio: 1;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        var(--metallic-gold);

    color:
        var(--color-deep-ruby);
}


/* ========================================
   MINI CALENDAR
======================================== */

.details__calendar {
    display: grid;
    grid-template-columns:
        repeat(7, 1fr);

    gap: clamp(
        0.25rem,
        1vw,
        0.7rem
    );

    width: min(100%, 46rem);

    margin:
        0
        auto
        3rem;
}


.details__day {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 0.45rem;

    padding:
        0.8rem
        0.25rem;

    border:
        1px solid
        rgba(224, 187, 112, 0.25);

    background:
        rgba(255, 248, 238, 0.04);
}


.details__weekday {
    color: var(--color-champagne);

    font-size: clamp(
        0.58rem,
        1.2vw,
        0.76rem
    );

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.details__number {
    font-size: clamp(
        1.1rem,
        2vw,
        1.45rem
    );
}


/* Saturday the 21st */

.details__day--event {
    border-color:
        var(--color-soft-gold);

    background:
        rgba(255, 244, 210, 0.10);

    box-shadow:
        0 0 1rem
        rgba(216, 161, 59, 0.16);
}


.details__day--event .details__weekday {
    color: var(--color-gold-light);
}


.details__day--event .details__number {
    width: 2.5rem;
    aspect-ratio: 1;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        var(--metallic-gold);

    color: var(--color-ruby-shadow);

    font-weight: 700;
}


/* ========================================
   DETAIL CARDS
======================================== */

.details__grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 1rem;

    margin:
        0
        auto
        2.5rem;
}


.details__item {
    min-height: 10rem;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding:
        1.75rem
        1.25rem;

    border:
        1px solid
        rgba(224, 187, 112, 0.38);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.02)
        );

    box-shadow:
        inset 0 0 0.75rem rgba(255, 255, 255, 0.03),
        0 0.5rem 1.25rem rgba(0, 0, 0, 0.10);
}


.details__label {
    margin:
        0
        0
        0.8rem;

    color: var(--color-soft-gold);

    font-size: 0.72rem;

    letter-spacing: 0.18em;
    text-transform: uppercase;
}


.details__value {
    margin: 0;

    color: var(--color-ivory);

    font-size: clamp(
        1.05rem,
        2vw,
        1.3rem
    );

    line-height: 1.5;
}


.details__venue {
    font-family: var(--font-script);

    font-size: clamp(
        2.1rem,
        3.5vw,
        2.9rem
    );

    color: var(--color-gold-light);
}


@media (min-width: 1100px) {

    .details__venue {
        font-size: 2.25rem;

        white-space: nowrap;
    }

}


.details__address {
    margin-top: 0.15rem;

    color: var(--color-champagne);

    font-size: 0.95rem;

    font-style: normal;
    line-height: 1.55;
}


/* ========================================
   DIRECTIONS BUTTON
======================================== */

.details__directions {
    display: inline-block;

    padding:
        0.9rem
        1.7rem;

    border:
        1px solid
        var(--color-soft-gold);

    background:
        var(--color-soft-gold);

    color:
        var(--color-ruby-shadow);

    font-size: 0.78rem;

    letter-spacing: 0.14em;
    text-decoration: none;
    text-transform: uppercase;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}


.details__directions:hover,
.details__directions:focus-visible {
    background:
        transparent;

    color:
        var(--color-ivory);

    transform:
        translateY(-0.12rem);
}


/* ========================================
   EVENT DETAILS SPARKLES
======================================== */

.details__sparkles {
    position: absolute;
    inset: 0;

    z-index: 1;

    pointer-events: none;
}


.details__sparkle {
    position: absolute;

    width: 0.8rem;
    height: 0.8rem;

    opacity: 0.15;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 248, 210, 0.98) 0%,
            rgba(255, 220, 130, 0.65) 32%,
            transparent 70%
        );

    animation:
        details-twinkle
        2.8s
        ease-in-out
        infinite;
}


.details__sparkle::before,
.details__sparkle::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    border-radius: 999px;

    background:
        rgba(255, 238, 180, 0.9);
}


.details__sparkle::before {
    width: 100%;
    height: 0.08rem;

    transform:
        translate(-50%, -50%);
}


.details__sparkle::after {
    width: 0.08rem;
    height: 100%;

    transform:
        translate(-50%, -50%);
}


@keyframes details-twinkle {

    0%,
    100% {
        opacity: 0.12;
        transform: scale(0.6);
    }

    45% {
        opacity: 0.9;
        transform: scale(1.1);
    }

}


.details__sparkle--1 {
    top: 4%;
    left: 6%;

    animation-delay: 0s;
}


.details__sparkle--2 {
    top: 8%;
    right: 7%;

    animation-delay: 0.5s;
}


.details__sparkle--3 {
    top: 38%;
    left: 3%;

    animation-delay: 1.1s;
}


.details__sparkle--4 {
    top: 55%;
    right: 3%;

    animation-delay: 1.7s;
}


.details__sparkle--5 {
    bottom: 12%;
    left: 5%;

    animation-delay: 0.8s;
}


.details__sparkle--6 {
    bottom: 7%;
    right: 6%;

    animation-delay: 2.1s;
}


/* ========================================
   EVENT DETAILS — MOBILE
======================================== */

@media (max-width: 700px) {

    .details {
        padding:
            3.25rem
            1rem;
    }


    .details::before {
        inset: 0.3rem;
    }


    .details::after {
        inset: 0.55rem;
    }


    .details__title {
        margin-bottom: 1.6rem;

        font-size: clamp(
            3.2rem,
            15vw,
            4.4rem
        );
    }


    .details__ornament {
        margin:
            -0.8rem
            auto
            1.8rem;
    }


    .details__calendar {
        width: 94%;
        margin:
            0
            auto
            1.6rem;
    }


    .details__day {
        gap: 0.35rem;

        padding:
            0.65rem
            0.1rem;
    }


    .details__weekday {
        font-size: 0.55rem;

        letter-spacing: 0.03em;
    }


    .details__number {
        font-size: 1rem;
    }


    .details__day--event .details__number {
        width: 2rem;
    }


    .details__grid {
        width: 94%;

        margin:
            0
            auto
            1.4rem;

        grid-template-columns: 1fr;

        gap: 0.8rem;
    }


    .details__item {
        min-height: auto;

        padding:
            1.2rem
            1rem;
    }


    .details__venue {
        font-size: 2.35rem;
    }


    .details__label {
        margin-bottom: 0.55rem;
    }


    .details__directions {
        width: min(100%, 18rem);

        margin-top: 0.25rem;

        text-align: center;
    }

}


/* ========================================
   DRESS CODE
======================================== */

.dress-code {
    position: relative;

    padding:
        clamp(3rem, 6vw, 5rem)
        clamp(1.25rem, 5vw, 4rem);

    padding-bottom: 0.75rem;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(251, 241, 230, 0.72),
            rgba(251, 241, 230, 0.72)
        ),
        url("../assets/images/decorative/cream-marble.webp")
        center / cover
        no-repeat;

    color: var(--color-ink);
}


.dress-code__inner {
    position: relative;

    width: min(100%, 58rem);

    margin: 0 auto;

    padding:
        clamp(2.75rem, 5vw, 4rem)
        clamp(1.5rem, 6vw, 4rem);

    border:
        2px solid
        rgba(201, 150, 43, 0.72);

    text-align: center;

    background:
        rgba(255, 250, 244, 0.28);
}


/* ========================================
   HEADING
======================================== */

.dress-code__title {
    width: fit-content;

    margin:
        0
        auto
        1.3rem;

    padding:
        0.12em
        0.2em;

    font-family:
        var(--font-script);

    font-size: clamp(
        3.8rem,
        7vw,
        5.8rem
    );

    font-weight: 400;
    line-height: 1;

    background:
        var(--metallic-ruby);

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;
}


/* ========================================
   GOLD DIVIDER
======================================== */

.dress-code__ornament {
    width: min(100%, 16rem);

    display: grid;
    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;
    gap: 0.8rem;

    margin:
        0
        auto
        2rem;

    color:
        var(--color-deep-ruby);
}


.dress-code__ornament::before,
.dress-code__ornament::after {
    content: "";

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--color-soft-gold),
            var(--color-gold)
        );
}


.dress-code__ornament::after {
    transform:
        scaleX(-1);
}


.dress-code__ornament span {
    width: 1.7rem;
    aspect-ratio: 1;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        var(--metallic-gold);

    color:
        var(--color-deep-ruby);

    font-size: 0.8rem;
}


/* ========================================
   ATTIRE
======================================== */

.dress-code__attire {
    margin:
        0
        auto
        0.5rem;

    color:
        var(--color-deep-ruby);

    font-size: clamp(
        1.35rem,
        3vw,
        1.8rem
    );

    line-height: 1.4;
}


.dress-code__note {
    margin:
        0
        auto;

    color:
        var(--color-ink);

    font-size: 0.76rem;

    letter-spacing: 0.18em;
    text-transform: uppercase;
}


/* ========================================
   RESERVED COLORS
======================================== */

.dress-code__restriction {
    width: min(100%, 40rem);

    margin:
        3rem
        auto
        0;

    padding-top: 2.5rem;

    border-top:
        1px solid
        rgba(201, 150, 43, 0.42);
}


.dress-code__restriction-title {
    max-width: 28rem;

    margin:
        0
        auto
        2rem;

    color:
        var(--color-ink);

    font-size: 0.8rem;

    letter-spacing: 0.16em;
    line-height: 1.7;
    text-transform: uppercase;
}


.dress-code__colors {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);

    gap:
        clamp(1rem, 4vw, 2.5rem);

    align-items: start;
}


.dress-code__color {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 0.7rem;
}


/* ========================================
   METALLIC COLOR SWATCHES
======================================== */

.dress-code__swatch {
    position: relative;

    width: clamp(
        4rem,
        10vw,
        5.5rem
    );

    aspect-ratio: 1;

    display: block;

    border-radius: 50%;
    border: 0.18rem solid transparent;

    box-shadow:
        0 0 0 1px rgba(120, 74, 18, 0.18),
        0 0.35rem 0.7rem rgba(80, 35, 20, 0.10);

    overflow: hidden;
}


/* Subtle metallic sheen */

.dress-code__swatch::after {
    content: "";

    position: absolute;
    inset: 0;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.28) 0%,
            rgba(255, 255, 255, 0.08) 28%,
            transparent 48%,
            rgba(0, 0, 0, 0.08) 100%
        );

    pointer-events: none;
}


/* Metallic ruby */

.dress-code__swatch--red {
    border-color: #a62a36;

    background:
        linear-gradient(
            135deg,
            #7c0b16 0%,
            #a90f1e 35%,
            #c92a38 52%,
            #99101c 72%,
            #6d0812 100%
        );

    box-shadow:
        0 0 0 1px rgba(124, 11, 22, 0.20),
        0 0.35rem 0.7rem rgba(124, 11, 22, 0.16);
}


/* Metallic gold */

.dress-code__swatch--gold {
    border-color: #bf8f32;

    background:
        linear-gradient(
            135deg,
            #86520d 0%,
            #b77a1b 32%,
            #d7a238 50%,
            #b17118 72%,
            #74440b 100%
        );

    box-shadow:
        0 0 0 1px rgba(116, 68, 11, 0.18),
        0 0.35rem 0.7rem rgba(116, 68, 11, 0.14);
}


/* Metallic soft pink */

.dress-code__swatch--pink {
    border-color: #cc9aaa;

    background:
        linear-gradient(
            135deg,
            #b97b8d 0%,
            #d79bac 34%,
            #edbdc9 52%,
            #cf8fa1 72%,
            #a86c7e 100%
        );

    box-shadow:
        0 0 0 1px rgba(168, 108, 126, 0.18),
        0 0.35rem 0.7rem rgba(168, 108, 126, 0.14);
}


.dress-code__color-name {
    color:
        var(--color-deep-ruby);

    font-size: 0.9rem;
}


/* ========================================
   DRESS CODE SPARKLES
======================================== */

.dress-code__sparkles {
    position: absolute;
    inset: 0;

    z-index: 1;

    pointer-events: none;
}


.dress-code__sparkle {
    position: absolute;

    width: 0.7rem;
    height: 0.7rem;

    opacity: 0.12;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 248, 210, 0.98) 0%,
            rgba(214, 161, 55, 0.55) 32%,
            transparent 70%
        );

    animation:
        dress-code-twinkle
        3s
        ease-in-out
        infinite;
}


.dress-code__sparkle::before,
.dress-code__sparkle::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    background:
        rgba(201, 150, 43, 0.88);

    border-radius: 999px;
}


.dress-code__sparkle::before {
    width: 100%;
    height: 0.08rem;

    transform:
        translate(-50%, -50%);
}


.dress-code__sparkle::after {
    width: 0.08rem;
    height: 100%;

    transform:
        translate(-50%, -50%);
}


@keyframes dress-code-twinkle {

    0%,
    100% {
        opacity: 0.1;
        transform: scale(0.65);
    }

    45% {
        opacity: 0.75;
        transform: scale(1);
    }

}


/* Placement */

.dress-code__sparkle--1 {
    top: 8%;
    left: 7%;

    animation-delay: 0s;
}


.dress-code__sparkle--2 {
    top: 18%;
    right: 7%;

    animation-delay: 0.8s;
}


.dress-code__sparkle--3 {
    bottom: 18%;
    left: 6%;

    animation-delay: 1.5s;
}


.dress-code__sparkle--4 {
    bottom: 8%;
    right: 7%;

    animation-delay: 2.2s;
}


.dress-code__inner > :not(.dress-code__sparkles) {
    position: relative;
    z-index: 2;
}


/* ========================================
   DRESS CODE — MOBILE
======================================== */

@media (max-width: 700px) {

    .dress-code {
        padding:
            1.25rem
            1rem;

        padding-bottom: 0.5rem;
    }


    .dress-code__inner {
        padding:
            1.6rem
            1.25rem
            2rem;
    }


    .dress-code__title {
        margin-bottom: 0.55rem;

        font-size: clamp(
            3.5rem,
            15vw,
            4.6rem
        );
    }


    .dress-code__ornament {
        margin:
            0
            auto
            1rem;
    }


    .dress-code__attire {
        max-width: 18rem;

        margin-bottom: 0.2rem;

        font-size: 1.35rem;
    }


    .dress-code__restriction {
        margin-top: 1.25rem;
        padding-top: 1.1rem;
    }


    .dress-code__restriction-title {
        max-width: 19rem;

        margin-bottom: 0.6rem;

        font-size: 0.72rem;
    }


    .dress-code__colors {
        gap: 0.65rem;
    }


    .dress-code__swatch {
        width: clamp(
            2.9rem,
            13.5vw,
            3.6rem
        );
    }

}


/* ========================================
   GIFTS / COLLEGE FUND
======================================== */

.gifts {
    position: relative;

    padding:
        clamp(3rem, 6vw, 5rem)
        clamp(1.25rem, 5vw, 4rem);

    padding-top: 0.75rem;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(251, 241, 230, 0.72),
            rgba(251, 241, 230, 0.72)
        ),
        url("../assets/images/decorative/cream-marble.webp")
        center / cover
        no-repeat;

    color: var(--color-ink);
}


.gifts__inner {
    position: relative;

    width: min(100%, 48rem);

    margin: 0 auto;

    padding:
        clamp(2.75rem, 5vw, 4rem)
        clamp(1.5rem, 6vw, 4rem);

    border:
        2px solid
        rgba(201, 150, 43, 0.72);

    background:
        rgba(255, 250, 244, 0.28);

    text-align: center;
}


/* ========================================
   HEADING
======================================== */

.gifts__title {
    width: fit-content;
    max-width: 100%;

    margin:
        0
        auto
        1rem;

    padding:
        0.12em
        0.2em;

    font-family:
        var(--font-script);

    font-size: clamp(
        3.4rem,
        6vw,
        5rem
    );

    font-weight: 400;
    line-height: 1.05;

    background:
        var(--metallic-ruby);

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;
}


/* ========================================
   GOLD HEART DIVIDER
======================================== */

.gifts__ornament {
    width: min(100%, 15rem);

    display: grid;
    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;
    gap: 0.75rem;

    margin:
        0
        auto
        1.7rem;
}


.gifts__ornament::before,
.gifts__ornament::after {
    content: "";

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--color-soft-gold),
            var(--color-gold)
        );
}


.gifts__ornament::after {
    transform: scaleX(-1);
}


.gifts__ornament span {
    width: 1.7rem;
    aspect-ratio: 1;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        var(--metallic-gold);

    color:
        var(--color-deep-ruby);

    font-size: 0.8rem;
}


/* ========================================
   MESSAGE
======================================== */

.gifts__message {
    max-width: 35rem;

    margin:
        0
        auto;

    line-height: 1.65;
}


.gifts__message--primary {
    color:
        var(--color-deep-ruby);

    font-size: clamp(
        1.15rem,
        2.5vw,
        1.45rem
    );

    font-style: italic;
}


.gifts__message--secondary {
    margin-top: 1.15rem;

    color:
        var(--color-ink);

    font-size: clamp(
        1rem,
        2vw,
        1.15rem
    );
}


/* ========================================
   GIFTS SPARKLES
======================================== */

.gifts__sparkles {
    position: absolute;
    inset: 0;

    z-index: 1;

    pointer-events: none;
}


.gifts__sparkle {
    position: absolute;

    width: 0.7rem;
    height: 0.7rem;

    opacity: 0.12;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 248, 210, 0.98) 0%,
            rgba(214, 161, 55, 0.55) 32%,
            transparent 70%
        );

    animation:
        dress-code-twinkle
        3s
        ease-in-out
        infinite;
}


.gifts__sparkle::before,
.gifts__sparkle::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    background:
        rgba(201, 150, 43, 0.88);

    border-radius: 999px;
}


.gifts__sparkle::before {
    width: 100%;
    height: 0.08rem;

    transform:
        translate(-50%, -50%);
}


.gifts__sparkle::after {
    width: 0.08rem;
    height: 100%;

    transform:
        translate(-50%, -50%);
}


.gifts__sparkle--1 {
    top: 9%;
    left: 7%;

    animation-delay: 0.3s;
}


.gifts__sparkle--2 {
    top: 24%;
    right: 7%;

    animation-delay: 1s;
}


.gifts__sparkle--3 {
    bottom: 23%;
    left: 7%;

    animation-delay: 1.7s;
}


.gifts__sparkle--4 {
    bottom: 9%;
    right: 7%;

    animation-delay: 2.3s;
}


.gifts__inner > :not(.gifts__sparkles) {
    position: relative;
    z-index: 2;
}


/* ========================================
   GIFTS — MOBILE
======================================== */

@media (max-width: 700px) {

    .gifts {
        padding:
            1.5rem
            1rem;

        padding-top: 0.5rem;
    }


    .gifts__inner {
        padding:
            1.75rem
            1.25rem
            2.25rem;
    }


   .gifts__title {
        margin-bottom: 0.7rem;

        padding:
            0.16em
            0.2em
            0.08em;

        font-size: clamp(
            3.2rem,
            14vw,
            4.2rem
        );

        line-height: 1.2;
    }


    .gifts__ornament {
        margin-bottom: 1.3rem;
    }


    .gifts__message--primary {
        font-size: 1.15rem;
    }


    .gifts__message--secondary {
        margin-top: 0.9rem;

        font-size: 1rem;
    }

}


/* ========================================
   PHOTO FEATURE
======================================== */

.photo-feature {
    position: relative;

    min-height: 100vh;
    min-height: 100svh;

    margin-top: 0;

    overflow: hidden;

    background:
        var(--color-ruby-shadow);
}


.photo-feature__image {
    width: 100%;
    height: 100%;

    position: absolute;
    inset: 0;

    z-index: 0;

    object-fit: cover;
    object-position: center;

    display: block;
}


@media (min-width: 701px) {

    .photo-feature__image {
        object-position:
            center 35%;
    }

}


.photo-feature__overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            180deg,

            rgba(251, 241, 230, 0.88) 0%,
            rgba(251, 241, 230, 0.46) 6%,
            rgba(251, 241, 230, 0.12) 13%,
            rgba(251, 241, 230, 0) 20%,

            rgba(66, 5, 11, 0) 58%,
            rgba(66, 5, 11, 0.14) 72%,
            rgba(66, 5, 11, 0.48) 87%,
            rgba(66, 5, 11, 0.76) 100%
        );

    pointer-events: none;
}


.photo-feature__content {
    position: relative;

    z-index: 2;

    min-height: 100vh;
    min-height: 100svh;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    padding:
        3rem
        1.5rem
        4rem;

    text-align: center;
}


.photo-feature__phrase {
    margin: 0;

    padding:
        0.15em
        0.25em;

    font-family: var(--font-script);

    font-size: clamp(
        3rem,
        7vw,
        5.5rem
    );

    font-weight: 400;
    line-height: 1;

    background:
        var(--metallic-gold);

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;

    filter:
        drop-shadow(
            0 0.12rem 0.12rem
            rgba(55, 5, 11, 0.55)
        )
        drop-shadow(
            0 0 0.3rem
            rgba(55, 5, 11, 0.28)
        );
}

@media (max-width: 700px) {

    .photo-feature__image {
        object-position: 52% center;
    }


    .photo-feature__content {
        padding:
            2rem
            1.25rem
            6rem;
    }


    .photo-feature__phrase {
        font-size: clamp(
            2.8rem,
            14vw,
            4rem
        );
    }


    html[lang="es"] .photo-feature__phrase {
        font-size: clamp(
            2.6rem,
            12.5vw,
            3.7rem
        );
    }

}


/* ========================================
   COUNTDOWN
======================================== */

.countdown {
    position: relative;

    padding:
        clamp(4rem, 8vw, 6rem)
        clamp(1.25rem, 5vw, 4rem);

    overflow: hidden;

    background-color:
        var(--color-deep-ruby);

    background-image:
        linear-gradient(
            180deg,
            var(--color-deep-ruby) 0%,
            var(--color-ruby-shadow) 100%
        );

    color:
        var(--color-ivory);
}


/* Double gold outer frame */

.countdown::before,
.countdown::after {
    content: "";

    position: absolute;

    pointer-events: none;

    z-index: 3;
}


.countdown::before {
    inset: 0.55rem;

    border:
        2px solid
        rgba(224, 187, 112, 0.82);

    box-shadow:
        0 0 0.35rem
        rgba(224, 187, 112, 0.18);
}


.countdown::after {
    inset: 0.85rem;

    border:
        1px solid
        rgba(184, 130, 50, 0.62);
}


.countdown__inner {
    position: relative;

    z-index: 2;

    width: min(100%, 60rem);

    margin: 0 auto;

    text-align: center;
}


/* ========================================
   HEADING
======================================== */

.countdown__eyebrow {
    margin:
        0
        0
        0.7rem;

    color:
        var(--color-champagne);

    font-size: 0.82rem;

    letter-spacing: 0.25em;
    text-transform: uppercase;
}


.countdown__title {
    width: fit-content;
    max-width: 100%;

    margin:
        0
        auto
        1rem;

    padding:
        0.15em
        0.2em;

    font-family:
        var(--font-script);

    font-size: clamp(
        3.8rem,
        7vw,
        5.8rem
    );

    font-weight: 400;
    line-height: 1.05;

    background:
        var(--metallic-gold);

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;
}


/* ========================================
   HEART DIVIDER
======================================== */

.countdown__ornament {
    width: min(100%, 17rem);

    display: grid;
    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;
    gap: 0.8rem;

    margin:
        0
        auto
        2.4rem;
}


.countdown__ornament::before,
.countdown__ornament::after {
    content: "";

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--color-soft-gold),
            var(--color-gold)
        );
}


.countdown__ornament::after {
    transform:
        scaleX(-1);
}


.countdown__ornament span {
    width: 1.8rem;
    aspect-ratio: 1;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        var(--metallic-gold);

    color:
        var(--color-deep-ruby);
}


/* ========================================
   COUNTDOWN BOXES
======================================== */

.countdown__grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap:
        clamp(0.75rem, 2vw, 1.4rem);

    width: min(100%, 48rem);

    margin: 0 auto;
}


.countdown__item {
    position: relative;

    min-height: 9rem;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding:
        1.4rem
        0.75rem;

    border:
        1px solid
        rgba(224, 187, 112, 0.72);

    background:
        linear-gradient(
            180deg,
            rgba(255, 248, 238, 0.07),
            rgba(255, 248, 238, 0.025)
        );

    box-shadow:
        inset 0 0 0 0.25rem
        rgba(224, 187, 112, 0.035),

        0 0.6rem 1.4rem
        rgba(20, 0, 4, 0.10);
}


/* Small decorative corner marks */

.countdown__item::before,
.countdown__item::after {
    content: "";

    position: absolute;

    width: 0.8rem;
    height: 0.8rem;

    opacity: 0.75;
}


.countdown__item::before {
    top: 0.3rem;
    left: 0.3rem;

    border-top:
        1px solid
        var(--color-soft-gold);

    border-left:
        1px solid
        var(--color-soft-gold);
}


.countdown__item::after {
    right: 0.3rem;
    bottom: 0.3rem;

    border-right:
        1px solid
        var(--color-soft-gold);

    border-bottom:
        1px solid
        var(--color-soft-gold);
}


.countdown__number {
    display: block;

    padding:
        0.08em
        0.05em
        0.12em;

    background:
        var(--metallic-gold);

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;

    font-size: clamp(
        2.4rem,
        5vw,
        3.6rem
    );

    line-height: 1.15;
}


.countdown__label {
    display: block;

    margin-top: 0.65rem;

    color:
        var(--color-champagne);

    font-size: 0.7rem;

    letter-spacing: 0.2em;
    text-transform: uppercase;
}


/* ========================================
   COUNTDOWN — MOBILE
======================================== */

@media (max-width: 700px) {

    .countdown {
        padding:
            3.5rem
            1rem;
    }


    .countdown::before {
        inset: 0.3rem;
    }


    .countdown::after {
        inset: 0.55rem;
    }


    .countdown__title {
        font-size: clamp(
            3.4rem,
            14vw,
            4.6rem
        );

        line-height: 1.1;
    }


    .countdown__ornament {
        margin-bottom: 1.8rem;
    }


    .countdown__grid {
        width: min(82%, 20rem);

        grid-template-columns: 1fr;

        gap: 0.7rem;
    }


    .countdown__item {
        min-height: 6.8rem;

        padding:
            1rem
            0.75rem;
    }


    .countdown__number {
        font-size: 2.7rem;
    }


    .countdown__label {
        margin-top: 0.45rem;
    }

}


/* ========================================
   COUNTDOWN EFFECTS
======================================== */

.countdown__effects {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* ========================================
   PETALS
======================================== */

.countdown__petals {
    position: absolute;
    inset: 0;
}

.countdown__petal {
    position: absolute;
    top: -14%;
    width: 0.95rem;
    aspect-ratio: 0.78 / 1;

    border-radius: 68% 32% 62% 38% / 48% 52% 46% 54%;

    background:
        radial-gradient(
            circle at 30% 28%,
            rgba(255, 214, 224, 0.68) 0%,
            rgba(255, 214, 224, 0.18) 16%,
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #f06c88 0%,
            #df3f65 22%,
            #c41e45 45%,
            #970d2c 78%,
            #6e081d 100%
        );

    box-shadow:
        inset 0.06rem 0.08rem 0.18rem rgba(255, 228, 234, 0.35),
        inset -0.08rem -0.08rem 0.18rem rgba(92, 8, 23, 0.35),
        0 0.22rem 0.45rem rgba(48, 7, 16, 0.14);

    opacity: 0;
    filter: blur(0.15px);
    transform-origin: center center;

    animation:
        countdown-petal-drift linear infinite;
}

/* individual petal placement */

.countdown__petal:nth-child(1) {
    left: 8%;
    width: 0.8rem;
    animation-duration: 14s;
    animation-delay: -3s;
}

.countdown__petal:nth-child(2) {
    left: 22%;
    width: 1rem;
    animation-duration: 16s;
    animation-delay: -11s;
}

.countdown__petal:nth-child(3) {
    left: 36%;
    width: 0.88rem;
    animation-duration: 15s;
    animation-delay: -7s;
}

.countdown__petal:nth-child(4) {
    left: 51%;
    width: 1.08rem;
    animation-duration: 17s;
    animation-delay: -15s;
}

.countdown__petal:nth-child(5) {
    left: 67%;
    width: 0.92rem;
    animation-duration: 15.5s;
    animation-delay: -5s;
}

.countdown__petal:nth-child(6) {
    left: 81%;
    width: 1rem;
    animation-duration: 16.5s;
    animation-delay: -13s;
}

.countdown__petal:nth-child(7) {
    left: 92%;
    width: 0.84rem;
    animation-duration: 18s;
    animation-delay: -9s;
}

@keyframes countdown-petal-drift {
    0% {
        transform:
            translate3d(0, 0, 0)
            rotate(0deg)
            scale(1);
        opacity: 0;
    }

    8% {
        opacity: 0.22;
    }

    18% {
        transform:
            translate3d(-0.45rem, 18vh, 0)
            rotate(55deg)
            scale(1.02);
    }

    32% {
        transform:
            translate3d(0.7rem, 34vh, 0)
            rotate(115deg)
            scale(0.98);
    }

    48% {
        transform:
            translate3d(-0.8rem, 50vh, 0)
            rotate(175deg)
            scale(1.03);
    }

    64% {
        transform:
            translate3d(0.95rem, 67vh, 0)
            rotate(240deg)
            scale(0.97);
    }

    80% {
        transform:
            translate3d(-0.55rem, 84vh, 0)
            rotate(300deg)
            scale(1.01);
        opacity: 0.18;
    }

    100% {
        transform:
            translate3d(0.4rem, 112vh, 0)
            rotate(355deg)
            scale(0.96);
        opacity: 0;
    }
}

/* ========================================
   SPARKLES
======================================== */

.countdown__sparkles {
    position: absolute;
    inset: 0;
}

.countdown__sparkle {
    position: absolute;
    width: 0.75rem;
    aspect-ratio: 1;
    opacity: 0;

    background:
        radial-gradient(
            circle,
            rgba(255, 247, 210, 0.95) 0%,
            rgba(244, 207, 110, 0.9) 22%,
            rgba(244, 207, 110, 0.18) 48%,
            transparent 72%
        );

    filter: blur(0.2px);
    animation:
        countdown-sparkle-twinkle 5.5s ease-in-out infinite;
}

.countdown__sparkle::before,
.countdown__sparkle::after {
    content: "";
    position: absolute;
    inset: 50%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(255, 241, 190, 0.95),
        transparent
    );
}

.countdown__sparkle::before {
    width: 0.12rem;
    height: 100%;
}

.countdown__sparkle::after {
    width: 100%;
    height: 0.12rem;
}

/* sparkle placement */

.countdown__sparkle:nth-child(1) {
    top: 12%;
    left: 10%;
    animation-delay: -0.5s;
}

.countdown__sparkle:nth-child(2) {
    top: 21%;
    right: 12%;
    width: 0.9rem;
    animation-delay: -2.4s;
}

.countdown__sparkle:nth-child(3) {
    top: 48%;
    left: 6%;
    width: 0.8rem;
    animation-delay: -4.2s;
}

.countdown__sparkle:nth-child(4) {
    top: 62%;
    right: 7%;
    width: 0.88rem;
    animation-delay: -1.6s;
}

.countdown__sparkle:nth-child(5) {
    bottom: 11%;
    right: 10%;
    animation-delay: -3.3s;
}

@keyframes countdown-sparkle-twinkle {
    0%,
    100% {
        transform: scale(0.55);
        opacity: 0;
    }

    20% {
        opacity: 0.08;
    }

    45% {
        transform: scale(1);
        opacity: 0.6;
    }

    60% {
        transform: scale(0.78);
        opacity: 0.22;
    }

    80% {
        opacity: 0;
    }
}


/* ========================================
   RSVP + CLOSING
======================================== */

.rsvp {
    position: relative;

    min-height: 100vh;
    min-height: 100svh;

    overflow: hidden;

    background:
        var(--color-ruby-shadow);

    color:
        var(--color-ivory);

    border-bottom:
        2px solid
        rgba(224, 187, 112, 0.82);
}


/* ========================================
   RSVP PHOTO
======================================== */

.rsvp__photo {
    position: absolute;
    inset: 0;

    z-index: 0;
}


.rsvp__image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}


/* Fade photograph into RSVP ruby */

.rsvp__photo-fade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,

            rgba(66, 5, 11, 0) 0%,
            rgba(66, 5, 11, 0) 52%,

            rgba(218, 157, 171, 0.06) 65%,

            rgba(148, 21, 34, 0.22) 74%,
            rgba(92, 11, 19, 0.62) 86%,

            var(--color-ruby-shadow) 100%
        );

    pointer-events: none;
}


/* ========================================
   CONTENT
======================================== */

.rsvp__inner {
    position: relative;
    z-index: 2;

    min-height: 100vh;
    min-height: 100svh;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    padding:
        clamp(3rem, 7vw, 5rem)
        clamp(1.25rem, 5vw, 4rem);
}


.rsvp__content {
    position: relative;
    z-index: 2;

    width: min(100%, 36rem);

    text-align: center;
}


/* ========================================
   RSVP HEADING
======================================== */

.rsvp__eyebrow {
    margin:
        0
        0
        0.15rem;

    color:
        var(--color-champagne);

    font-size: 0.78rem;

    letter-spacing: 0.24em;
    text-transform: uppercase;
}


.rsvp__title {
    width: fit-content;

    margin:
        0
        auto
        0.45rem;

    padding:
        0.12em
        0.2em;

    font-family:
        var(--font-script);

    font-size: clamp(
        4rem,
        8vw,
        6rem
    );

    font-weight: 400;
    line-height: 1;

    background:
        var(--metallic-gold);

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;
}


.rsvp__deadline {
    margin:
        0
        auto;

    color:
        var(--color-champagne);

    font-size: 0.8rem;

    letter-spacing: 0.18em;
    text-transform: uppercase;
}


/* ========================================
   HEART DIVIDER
======================================== */

.rsvp__ornament {
    width: min(100%, 15rem);

    display: grid;
    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;
    gap: 0.75rem;

    margin:
        1.25rem
        auto
        1.3rem;
}


.rsvp__ornament::before,
.rsvp__ornament::after {
    content: "";

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--color-soft-gold),
            var(--color-gold)
        );
}


.rsvp__ornament::after {
    transform:
        scaleX(-1);
}


.rsvp__ornament span {
    width: 1.7rem;
    aspect-ratio: 1;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        var(--metallic-gold);

    color:
        var(--color-deep-ruby);

    font-size: 0.8rem;
}


/* ========================================
   RSVP BUTTON
======================================== */

.rsvp__button {
    display: inline-block;

    min-width: 12rem;

    padding:
        0.9rem
        1.8rem;

    border:
        1px solid
        var(--color-soft-gold);

    border-radius:
        999px;

    background:
        var(--metallic-gold);

    color:
        var(--color-ruby-shadow);

    font-size:
        0.78rem;

    font-weight:
        600;

    letter-spacing:
        0.14em;

    text-decoration:
        none;

    text-transform:
        uppercase;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.rsvp__button:hover,
.rsvp__button:focus-visible {
    transform:
        translateY(-0.12rem);

    box-shadow:
        0 0.55rem 1.2rem
        rgba(0, 0, 0, 0.18);
}


/* Temporary RSVP button */

.rsvp__button.is-placeholder {
    cursor:
        default;

    opacity:
        0.78;
}


/* ========================================
   CLOSING MESSAGE
======================================== */

.rsvp__closing {
    margin-top:
        1.8rem;
}


.rsvp__closing-message {
    width:
        fit-content;

    max-width:
        30rem;

    margin:
        0
        auto;

    padding:
        0.12em
        0.2em;

    font-family:
        var(--font-script);

    font-size:
        clamp(
            2.6rem,
            5vw,
            4rem
        );

    font-weight:
        400;

    line-height:
        1.15;

    background:
        var(--metallic-gold);

    -webkit-background-clip:
        text;

    background-clip:
        text;

    color:
        transparent;

    -webkit-text-fill-color:
        transparent;
}


/* ========================================
   RSVP SPARKLES
======================================== */

.rsvp__sparkles {
    position: absolute;
    inset: 0;

    z-index: 1;

    overflow: hidden;
    pointer-events: none;
}


.rsvp__sparkle {
    position: absolute;

    width: 0.75rem;
    height: 0.75rem;

    opacity: 0;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 249, 218, 0.98) 0%,
            rgba(232, 194, 105, 0.65) 30%,
            transparent 70%
        );

    animation:
        rsvp-twinkle
        4.5s
        ease-in-out
        infinite;
}


.rsvp__sparkle::before,
.rsvp__sparkle::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    border-radius: 999px;

    background:
        rgba(255, 236, 174, 0.92);
}


.rsvp__sparkle::before {
    width: 100%;
    height: 0.08rem;

    transform:
        translate(-50%, -50%);
}


.rsvp__sparkle::after {
    width: 0.08rem;
    height: 100%;

    transform:
        translate(-50%, -50%);
}


@keyframes rsvp-twinkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.55);
    }

    40% {
        opacity: 0.18;
    }

    55% {
        opacity: 0.75;
        transform: scale(1);
    }

    70% {
        opacity: 0.16;
        transform: scale(0.72);
    }

}


/* Placement */

.rsvp__sparkle--1 {
    top: 18%;
    left: 8%;

    animation-delay: 0s;
}


.rsvp__sparkle--2 {
    top: 32%;
    right: 8%;

    width: 0.6rem;
    height: 0.6rem;

    animation-delay: 1.1s;
}


.rsvp__sparkle--3 {
    bottom: 30%;
    left: 7%;

    width: 0.65rem;
    height: 0.65rem;

    animation-delay: 2.2s;
}


.rsvp__sparkle--4 {
    bottom: 14%;
    right: 9%;

    animation-delay: 3.2s;
}


/* ========================================
   RSVP + CLOSING — MOBILE
======================================== */

@media (max-width: 700px) {

    .rsvp {
        min-height: auto;
        background: var(--color-ruby-shadow);
    }


    .rsvp__photo {
        position: relative;
        inset: auto;

        width: 100%;
    }


    .rsvp__image {
        width: 100%;
        height: auto;

        display: block;

        object-fit: initial;
        object-position: initial;
    }


    .rsvp__photo-fade {
        background:
            linear-gradient(
                to bottom,

                rgba(66, 5, 11, 0) 0%,
                rgba(66, 5, 11, 0) 62%,

                rgba(218, 157, 171, 0.08) 72%,

                rgba(148, 21, 34, 0.30) 80%,
                rgba(92, 11, 19, 0.72) 90%,

                var(--color-ruby-shadow) 100%
            );
    }


    .rsvp__inner {
        position: relative;

        z-index: 2;

        min-height: auto;

        margin-top: -3rem;

        display: flex;
        align-items: flex-start;
        justify-content: center;

        padding:
            4.5rem
            1.25rem
            3.75rem;
    }

    .rsvp__content {
        width: min(100%, 22rem);
        text-align: center;
    }

    .rsvp__eyebrow {
        margin: 0 0 0.75rem;
        font-size: 0.72rem;
        letter-spacing: 0.24em;
    }

    .rsvp__title {
        margin:
            0
            auto
            1.25rem;

        font-size:
            clamp(
                3.8rem,
                17vw,
                5rem
            );

        line-height: 1;

        transform: translateY(0.65rem);
    }

    .rsvp__deadline {
        margin: 0;

        font-size: 0.72rem;
        letter-spacing: 0.16em;
    }

    .rsvp__ornament {
        width: min(100%, 14rem);

        margin:
            1.4rem
            auto
            1.8rem;
    }

    .rsvp__button {
        min-width: 15rem;

        padding:
            0.9rem
            1.6rem;

        margin: 0 auto;
    }

    .rsvp__button.is-placeholder {
        opacity: 0.92;
    }

    .rsvp__closing {
        margin-top: 2.2rem;
    }

    .rsvp__closing-message {
        width: fit-content;
        max-width: 20rem;

        margin: 0 auto;

        padding:
            0.12em
            0.2em;

        font-size: clamp(2.35rem, 11vw, 3.25rem);
        line-height: 1.2;
    }
}


/* ========================================
   STATIC RUBY GOLD DUST
======================================== */

.ruby-glitter {
    position: absolute;
    inset: 0;

    z-index: 1;

    pointer-events: none;

    opacity: 0.38;

    background:
        radial-gradient(circle at 6% 9%, rgba(239, 205, 125, 0.58) 0 0.8px, transparent 1.6px),
        radial-gradient(circle at 15% 22%, rgba(255, 232, 168, 0.38) 0 0.7px, transparent 1.5px),
        radial-gradient(circle at 27% 11%, rgba(203, 151, 58, 0.44) 0 0.6px, transparent 1.4px),
        radial-gradient(circle at 39% 26%, rgba(255, 239, 190, 0.38) 0 0.9px, transparent 1.7px),
        radial-gradient(circle at 54% 13%, rgba(230, 184, 89, 0.46) 0 0.7px, transparent 1.5px),
        radial-gradient(circle at 68% 19%, rgba(255, 226, 153, 0.36) 0 0.8px, transparent 1.6px),
        radial-gradient(circle at 82% 8%, rgba(217, 168, 72, 0.50) 0 0.6px, transparent 1.4px),
        radial-gradient(circle at 94% 27%, rgba(255, 238, 184, 0.34) 0 1px, transparent 1.8px),

        radial-gradient(circle at 10% 41%, rgba(255, 229, 161, 0.40) 0 0.7px, transparent 1.5px),
        radial-gradient(circle at 22% 34%, rgba(215, 164, 69, 0.42) 0 0.8px, transparent 1.6px),
        radial-gradient(circle at 35% 48%, rgba(255, 239, 188, 0.34) 0 0.6px, transparent 1.4px),
        radial-gradient(circle at 48% 38%, rgba(237, 194, 104, 0.48) 0 0.9px, transparent 1.7px),
        radial-gradient(circle at 62% 46%, rgba(255, 231, 165, 0.34) 0 0.7px, transparent 1.5px),
        radial-gradient(circle at 76% 36%, rgba(213, 162, 66, 0.46) 0 0.8px, transparent 1.6px),
        radial-gradient(circle at 89% 49%, rgba(255, 240, 192, 0.36) 0 0.7px, transparent 1.5px),

        radial-gradient(circle at 5% 63%, rgba(226, 177, 82, 0.42) 0 0.7px, transparent 1.5px),
        radial-gradient(circle at 17% 72%, rgba(255, 235, 176, 0.34) 0 0.9px, transparent 1.7px),
        radial-gradient(circle at 31% 59%, rgba(205, 153, 59, 0.46) 0 0.6px, transparent 1.4px),
        radial-gradient(circle at 43% 76%, rgba(255, 232, 169, 0.38) 0 0.8px, transparent 1.6px),
        radial-gradient(circle at 57% 65%, rgba(231, 186, 95, 0.42) 0 0.7px, transparent 1.5px),
        radial-gradient(circle at 71% 78%, rgba(255, 239, 188, 0.34) 0 0.9px, transparent 1.7px),
        radial-gradient(circle at 86% 67%, rgba(214, 163, 66, 0.46) 0 0.6px, transparent 1.4px),
        radial-gradient(circle at 96% 82%, rgba(255, 230, 160, 0.38) 0 0.8px, transparent 1.6px),

        radial-gradient(circle at 12% 91%, rgba(255, 236, 179, 0.36) 0 0.7px, transparent 1.5px),
        radial-gradient(circle at 28% 86%, rgba(217, 168, 71, 0.44) 0 0.8px, transparent 1.6px),
        radial-gradient(circle at 46% 94%, rgba(255, 240, 192, 0.36) 0 0.6px, transparent 1.4px),
        radial-gradient(circle at 66% 89%, rgba(229, 183, 90, 0.44) 0 0.9px, transparent 1.7px),
        radial-gradient(circle at 83% 95%, rgba(255, 230, 161, 0.34) 0 0.7px, transparent 1.5px);
}


.ruby-glitter--soft {
    opacity: 0.32;
}


/* ========================================
   MUSIC CONTROL
======================================== */

.music-toggle {
    position: fixed;

    top:
        calc(
            1rem +
            env(safe-area-inset-top)
        );

    right: 1rem;

    z-index: 50;

    width: 2.8rem;
    aspect-ratio: 1;

    display: grid;
    place-items: center;

    padding: 0;

    border:
        1px solid
        rgba(224, 187, 112, 0.8);

    border-radius: 50%;

    background:
        rgba(66, 5, 11, 0.72);

    color:
        var(--color-gold-light);

    font-family:
        var(--font-serif);

    font-size: 1.25rem;

    cursor: pointer;

    box-shadow:
        0 0.4rem 1rem
        rgba(30, 0, 5, 0.18);

    backdrop-filter:
        blur(0.35rem);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        background-color 0.25s ease;
}


.music-toggle:hover {
    transform:
        scale(1.06);
}


.music-toggle.is-muted {
    opacity: 0.6;
}


.music-toggle:focus-visible {
    outline:
        3px solid
        var(--color-gold-light);

    outline-offset:
        0.25rem;
}


/* ========================================
   KEYBOARD FOCUS
======================================== */

/* Opening envelope */

.envelope:focus-visible {
    outline:
        3px solid
        var(--color-deep-ruby);

    outline-offset:
        0.4rem;
}


/* Language buttons */

[data-language]:focus-visible {
    outline:
        2px solid
        var(--color-deep-ruby);

    outline-offset:
        0.3rem;

    border-radius:
        0.15rem;
}


/* Links/buttons on ruby backgrounds */

.details__directions:focus-visible,
.rsvp__button:focus-visible {
    outline:
        3px solid
        var(--color-gold-light);

    outline-offset:
        0.3rem;
}


/* ========================================
   REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    /* Opening animation */

    .envelope__flap,
    .envelope__card,
    .opening__crest {
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }


    /* Animated decorative effects */

    .hero__scroll-arrow,
    .hero__sparkle,
    .invitation__sparkle,
    .details__sparkle,
    .dress-code__sparkle,
    .gifts__sparkle,
    .countdown__petal,
    .countdown__sparkle,
    .rsvp__sparkle {
        animation: none !important;
    }


    /* Static sparkle appearance */

    .hero__sparkle,
    .invitation__sparkle,
    .details__sparkle,
    .dress-code__sparkle,
    .gifts__sparkle,
    .countdown__sparkle,
    .rsvp__sparkle {
        opacity: 0.18;
    }


    .countdown__petal {
        opacity: 0.10;
    }


    .reveal {
        opacity: 1 !important;

        transform: none !important;

        transition: none !important;
    }

}


/* ========================================
   SCROLL REVEALS
======================================== */

.reveal {
    opacity: 0;

    transform:
        translateY(1.25rem);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;

    transition-delay:
        var(--reveal-delay, 0ms);
}


.reveal.is-revealed {
    opacity: 1;

    transform:
        translateY(0);
}