/* =========================================================
   ROYAL MAROON INDIAN WEDDING INVITATION
   Complete style.css
   ========================================================= */


/* =========================================================
   1. COLORS + FONTS
   ========================================================= */

:root {
    --maroon: #4b0d18;
    --maroon-dark: #350812;
    --maroon-light: #681526;

    --burgundy: #7a2432;

    --gold: #c8a45d;
    --gold-light: #e1c985;

    --cream: #f7f0df;
    --ivory: #fffaf0;

    --beige: #d8c8ab;

    --brown: #2e211c;
    --muted: #79685e;

    --shadow:
        0 18px 55px
        rgba(47, 19, 16, 0.16);

    --serif:
        "Cormorant Garamond",
        Georgia,
        serif;

    --display:
        "Playfair Display",
        Georgia,
        serif;

    --royal:
        "Cinzel",
        Georgia,
        serif;

    --sans:
        "Poppins",
        Arial,
        sans-serif;
}


/* =========================================================
   2. GLOBAL RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    color: var(--brown);

    background:
        var(--ivory);

    font-family:
        var(--serif);

    font-size: 18px;

    line-height: 1.65;

    overflow-x: hidden;
}


/*
   Before invitation opens,
   stop the main page from scrolling.
*/

body.invitation-closed {
    overflow: hidden;
}


/* Images */

img {
    display: block;

    max-width: 100%;
}


/* Form controls */

button,
input,
textarea {
    font: inherit;
}


button,
a {
    -webkit-tap-highlight-color:
        transparent;
}


a {
    color: inherit;
}


/* Keyboard accessibility */

:focus-visible {
    outline:
        3px solid
        var(--gold-light);

    outline-offset: 4px;
}


/* Skip link */

.skip-link {
    position: fixed;

    top: 8px;
    left: 8px;

    z-index: 9999;

    transform:
        translateY(-150%);

    padding:
        0.6rem
        1rem;

    background:
        var(--ivory);

    color:
        var(--maroon);
}


.skip-link:focus {
    transform:
        translateY(0);
}


/* =========================================================
   3. TYPOGRAPHY
   ========================================================= */

.eyebrow {
    margin:
        0
        0
        0.7rem;

    color:
        var(--gold);

    font-family:
        var(--royal);

    font-size:
        0.78rem;

    letter-spacing:
        0.22em;

    text-transform:
        uppercase;
}


h1,
h2,
h3,
p {
    margin-top: 0;
}


h2 {
    margin-bottom:
        1rem;

    color:
        var(--maroon);

    font-family:
        var(--display);

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

    line-height:
        1.1;
}


.lead {
    font-size:
        clamp(
            1.15rem,
            2vw,
            1.4rem
        );
}


/* =========================================================
   4. BUTTONS
   ========================================================= */

.button {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        0.6rem;

    min-height:
        48px;

    padding:
        0.85rem
        1.45rem;

    border:
        1px solid
        transparent;

    border-radius:
        999px;

    text-decoration:
        none;

    cursor:
        pointer;

    font-family:
        var(--sans);

    font-size:
        0.78rem;

    font-weight:
        600;

    letter-spacing:
        0.1em;

    text-transform:
        uppercase;

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


.button:hover {
    transform:
        translateY(-2px);
}


.button--gold {
    background:
        var(--gold);

    color:
        #32150f;

    box-shadow:
        0 10px 30px
        rgba(200, 164, 93, 0.25);
}


.button--gold:hover {
    background:
        var(--gold-light);
}


.button--maroon {
    background:
        var(--maroon);

    color:
        var(--ivory);

    box-shadow:
        0 10px 25px
        rgba(75, 13, 24, 0.18);
}


.button--maroon:hover {
    background:
        var(--maroon-light);
}


/* =========================================================
   5. OPENING WEDDING COVER
   ========================================================= */

.cover {
    position:
        fixed;

    inset:
        0;

    z-index:
        3000;

    display:
        grid;

    place-items:
        center;

    width:
        100%;

    /*
       dvh works better than vh when browser
       bars / taskbars reduce available height.
    */

    height:
        100dvh;

    min-height:
        100dvh;

    padding:
        20px;

    overflow-y:
        auto;

    color:
        var(--ivory);

    background:

        linear-gradient(
            rgba(55, 5, 15, 0.80),
            rgba(55, 5, 15, 0.93)
        ),

        url("../assets/images/hero.jpg")
        center /
        cover
        no-repeat,

        var(--maroon);

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


/*
   Outer golden frame
*/

.cover::before {
    content: "";

    position:
        absolute;

    inset:
        16px;

    border:
        1px solid
        rgba(225, 201, 133, 0.72);

    pointer-events:
        none;
}


/*
   Inner golden frame
*/

.cover::after {
    content: "";

    position:
        absolute;

    inset:
        25px;

    border:
        1px solid
        rgba(225, 201, 133, 0.30);

    pointer-events:
        none;
}


/* =========================================================
   COVER BACKGROUND PATTERN
   ========================================================= */

.cover__pattern {
    position:
        absolute;

    inset:
        0;

    opacity:
        0.11;

    pointer-events:
        none;

    background-image:

        radial-gradient(
            circle at 25% 25%,
            transparent 0 30px,
            var(--gold) 31px 32px,
            transparent 33px
        ),

        radial-gradient(
            circle at 75% 75%,
            transparent 0 30px,
            var(--gold) 31px 32px,
            transparent 33px
        );

    background-size:
        110px
        110px;
}


/* =========================================================
   COVER CARD
   ========================================================= */

.cover__card {
    width: min(500px, 85vw);
    max-height: calc(100dvh - 80px);
    padding: 25px 30px;
    
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    border: 1px solid rgba(225, 201, 133, 0.55);
    background: rgba(65, 8, 19, 0.68);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(3px);
    animation: coverIn 1s ease both;
}

/* =========================================================
   COVER NAMES
   ========================================================= */

.cover__names {
    margin: 10px 0 15px;
    color: var(--ivory);
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.8;
    text-transform: uppercase;
}
.cover__names [data-bride-name],
.cover__names [data-groom-name] {
    font-size: 1.6rem !important;
}

.cover__names > span {
    display: block;
    margin: 10px 0;
}


.cover__names .ampersand {
    margin:
        clamp(
            2px,
            0.5vh,
            7px
        )
        0;

    color:
        var(--gold-light);

    font-family:
        var(--serif);

    font-style:
        italic;
}


/* =========================================================
   COVER TEXT
   ========================================================= */

.cover__family,
.cover__invite {
    margin-bottom:
        2px;

    font-size:
        1.05rem;

    line-height:
        1.3;
}


.cover__date {
    margin:
        clamp(
            8px,
            1.5vh,
            16px
        )
        0
        clamp(
            10px,
            2vh,
            20px
        );

    color:
        var(--gold-light);

    font-family:
        var(--royal);

    font-size:
        0.85rem;

    letter-spacing:
        0.17em;

    text-transform:
        uppercase;
}


/* =========================================================
   OPEN INVITATION BUTTON
   ========================================================= */

.cover__button {
    flex-shrink:
        0;

    margin-top:
        2px;

    animation:
        softPulse
        2.4s
        ease-in-out
        infinite;
}


/*
   Optional bottom helper text
*/

.cover__hint {
    position:
        absolute;

    bottom:
        8px;

    z-index:
        2;

    margin:
        0;

    color:
        rgba(
            255,
            250,
            240,
            0.60
        );

    font-family:
        var(--sans);

    font-size:
        0.58rem;

    letter-spacing:
        0.12em;
}


/* =========================================================
   DECORATIVE CORNERS
   ========================================================= */

.cover__corner {
    position:
        absolute;

    z-index:
        3;

    width:
        80px;

    height:
        80px;

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

    opacity:
        0.75;

    pointer-events:
        none;
}


.cover__corner--tl {
    top:
        16px;

    left:
        16px;

    border-top:
        4px double;

    border-left:
        4px double;
}


.cover__corner--tr {
    top:
        16px;

    right:
        16px;

    border-top:
        4px double;

    border-right:
        4px double;
}


.cover__corner--bl {
    bottom:
        16px;

    left:
        16px;

    border-bottom:
        4px double;

    border-left:
        4px double;
}


.cover__corner--br {
    bottom:
        16px;

    right:
        16px;

    border-bottom:
        4px double;

    border-right:
        4px double;
}


/* =========================================================
   COVER OPEN STATE
   ========================================================= */

body.invitation-open
.cover {
    opacity:
        0;

    visibility:
        hidden;

    transform:
        scale(1.025);

    pointer-events:
        none;
}


/* =========================================================
   COVER ANIMATIONS
   ========================================================= */

@keyframes coverIn {

    from {
        opacity:
            0;

        transform:
            translateY(18px)
            scale(0.985);
    }

    to {
        opacity:
            1;

        transform:
            none;
    }
}


@keyframes softPulse {

    50% {
        box-shadow:
            0 10px 36px
            rgba(
                225,
                201,
                133,
                0.48
            );

        transform:
            translateY(-2px);
    }
}


/* =========================================================
   6. MAIN WEBSITE
   ========================================================= */

.site-shell {
    min-height:
        100vh;
}


/* =========================================================
   7. NAVIGATION HEADER
   ========================================================= */

.site-header {
    position:
        sticky;

    top:
        0;

    z-index:
        1000;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    min-height:
        72px;

    padding:
        0.7rem
        clamp(
            1rem,
            4vw,
            4rem
        );

    color:
        var(--ivory);

    background:
        rgba(
            75,
            13,
            24,
            0.94
        );

    border-bottom:
        1px solid
        rgba(
            200,
            164,
            93,
            0.35
        );

    backdrop-filter:
        blur(12px);
}


/* Logo */

.brand {
    text-decoration:
        none;

    color:
        var(--gold-light);

    font-family:
        var(--display);

    font-size:
        1.35rem;
}


.brand i {
    padding:
        0 0.2rem;

    font-family:
        var(--serif);

    font-weight:
        400;
}


/* Desktop nav */

.nav {
    display:
        flex;

    align-items:
        center;

    gap:
        1.45rem;
}


.nav a {
    position:
        relative;

    padding:
        0.4rem 0;

    text-decoration:
        none;

    font-family:
        var(--sans);

    font-size:
        0.72rem;

    letter-spacing:
        0.08em;

    text-transform:
        uppercase;
}


.nav a::after {
    content:
        "";

    position:
        absolute;

    left:
        50%;

    bottom:
        0;

    width:
        0;

    height:
        1px;

    background:
        var(--gold-light);

    transition:
        width 0.25s ease,
        left 0.25s ease;
}


.nav a:hover::after,
.nav a.active::after {
    left:
        0;

    width:
        100%;
}


.nav a.active {
    color:
        var(--gold-light);
}


/* Mobile hamburger */

.menu-toggle {
    display:
        none;

    border:
        0;

    background:
        transparent;

    cursor:
        pointer;
}


.menu-toggle span {
    display:
        block;

    width:
        26px;

    height:
        2px;

    margin:
        5px;

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


/* =========================================================
   8. COMMON SECTIONS
   ========================================================= */

.section {
    position:
        relative;

    padding:
        clamp(
            5rem,
            10vw,
            8.5rem
        )
        1.2rem;

    overflow:
        hidden;
}


.section__inner {
    width:
        min(
            1180px,
            100%
        );

    margin:
        0 auto;
}


.section__inner--narrow {
    width:
        min(
            760px,
            100%
        );

    text-align:
        center;
}


.section--cream {
    background:
        var(--cream);
}


.section-heading {
    margin:
        0 auto 3rem;

    text-align:
        center;
}


/* Heading ornaments */

.heading-ornament {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        0.8rem;

    color:
        var(--gold);

    font-size:
        1rem;
}


.heading-ornament span {
    width:
        70px;

    height:
        1px;

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


.heading-ornament
span:last-child {
    transform:
        scaleX(-1);
}


.heading-ornament--left {
    justify-content:
        flex-start;
}


/* =========================================================
   SCROLL REVEAL
   ========================================================= */

.reveal {
    opacity:
        0;

    transform:
        translateY(28px);

    transition:
        opacity 0.75s ease,
        transform 0.75s ease;
}


.reveal.is-visible {
    opacity:
        1;

    transform:
        none;
}


/* =========================================================
   9. WELCOME SECTION
   ========================================================= */

.welcome {
    display:
        grid;

    align-items:
        center;

    min-height:
        82vh;

    background:

        radial-gradient(
            circle at top left,
            rgba(
                200,
                164,
                93,
                0.12
            ),
            transparent 28%
        ),

        var(--ivory);
}


.welcome::before,
.welcome::after {
    content:
        "❦";

    position:
        absolute;

    color:
        rgba(
            122,
            36,
            50,
            0.08
        );

    font-size:
        12rem;

    line-height:
        1;
}


.welcome::before {
    top:
        2rem;

    left:
        -2rem;

    transform:
        rotate(-25deg);
}


.welcome::after {
    right:
        -2rem;

    bottom:
        1rem;

    transform:
        rotate(155deg);
}


/* Wedding monogram */

.monogram {
    display:
        grid;

    place-items:
        center;

    width:
        130px;

    height:
        130px;

    margin:
        2rem auto 0;

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

    border-radius:
        50%;

    color:
        var(--maroon);

    font-family:
        var(--display);

    font-size:
        1.65rem;

    box-shadow:

        inset
        0 0 0 8px
        var(--ivory),

        inset
        0 0 0 9px
        rgba(
            200,
            164,
            93,
            0.45
        );
}


.monogram i {
    color:
        var(--gold);

    font-family:
        var(--serif);

    font-size:
        1rem;
}


/* =========================================================
   10. COUPLE SECTION
   ========================================================= */

.couple-grid {
    display:
        grid;

    grid-template-columns:
        1fr
        100px
        1fr;

    align-items:
        center;

    width:
        min(
            930px,
            100%
        );

    margin:
        0 auto;
}


.person-card {
    text-align:
        center;
}


.person-card__role {
    color:
        var(--gold);

    font-family:
        var(--royal);

    font-size:
        0.76rem;

    letter-spacing:
        0.16em;

    text-transform:
        uppercase;
}


/* Couple photo frame */

.portrait-frame {
    position:
        relative;

    width:
        min(
            310px,
            76vw
        );

    aspect-ratio:
        4 / 5;

    margin:
        0 auto 1.2rem;

    padding:
        10px;

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

    border-radius:
        48% 48% 10px 10px;
}


.portrait-frame::before {
    content:
        "";

    position:
        absolute;

    inset:
        -8px;

    z-index:
        0;

    border:
        1px solid
        rgba(
            200,
            164,
            93,
            0.40
        );

    border-radius:
        inherit;
}


.portrait-frame img {
    position:
        relative;

    z-index:
        1;

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    border-radius:
        inherit;
}


.person-card h3 {
    color:
        var(--maroon);

    font-family:
        var(--display);

    font-size:
        2.1rem;
}


/* Center ampersand */

.couple-center {
    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    color:
        var(--gold);
}


.couple-center strong {
    color:
        var(--maroon);

    font-family:
        var(--serif);

    font-size:
        3.8rem;

    font-style:
        italic;

    font-weight:
        400;
}


.love-quote {
    margin:
        3rem auto 0;

    text-align:
        center;

    color:
        var(--muted);

    font-size:
        1.45rem;

    font-style:
        italic;
}


/* =========================================================
   11. WEDDING EVENTS
   ========================================================= */

.events {
    color:
        var(--ivory);

    background:

        linear-gradient(
            rgba(
                75,
                13,
                24,
                0.97
            ),
            rgba(
                75,
                13,
                24,
                0.97
            )
        ),

        url("../assets/images/hero.jpg")
        center /
        cover
        fixed;
}


.events h2 {
    color:
        var(--ivory);
}


.event-grid {
    display:
        grid;

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

    gap:
        1rem;
}


.event-card {
    position:
        relative;

    padding:
        2.2rem
        1rem;

    text-align:
        center;

    border:
        1px solid
        rgba(
            200,
            164,
            93,
            0.40
        );

    background:
        rgba(
            255,
            250,
            240,
            0.04
        );

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}


.event-card::before {
    content:
        "";

    position:
        absolute;

    inset:
        7px;

    border:
        1px solid
        rgba(
            200,
            164,
            93,
            0.13
        );

    pointer-events:
        none;
}


.event-card:hover {
    transform:
        translateY(-6px);

    border-color:
        var(--gold);

    background:
        rgba(
            255,
            250,
            240,
            0.07
        );
}


.event-card--featured {
    background:
        rgba(
            200,
            164,
            93,
            0.10
        );
}


/* Event icon */

.event-icon {
    display:
        grid;

    place-items:
        center;

    width:
        62px;

    height:
        62px;

    margin:
        0 auto 1rem;

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

    border-radius:
        50%;

    color:
        var(--gold-light);

    font-size:
        1.45rem;
}


.event-card h3 {
    margin-bottom:
        0.8rem;

    color:
        var(--gold-light);

    font-family:
        var(--display);

    font-size:
        1.6rem;
}


.event-card p {
    margin-bottom:
        0.18rem;

    font-size:
        0.98rem;
}


.text-button {
    display:
        inline-block;

    margin-top:
        1.1rem;

    color:
        var(--gold-light);

    font-family:
        var(--sans);

    font-size:
        0.7rem;

    letter-spacing:
        0.08em;

    text-transform:
        uppercase;

    text-underline-offset:
        5px;
}


/* =========================================================
   12. COUNTDOWN
   ========================================================= */

.countdown-section {
    background:
        var(--ivory);

    text-align:
        center;
}


.countdown {
    display:
        grid;

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

    gap:
        1rem;

    margin-top:
        2.4rem;
}


.countdown div {
    padding:
        1.6rem
        0.7rem;

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

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


.countdown strong {
    display:
        block;

    color:
        var(--maroon);

    font-family:
        var(--display);

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

    line-height:
        1;
}


.countdown span {
    color:
        var(--muted);

    font-family:
        var(--royal);

    font-size:
        0.7rem;

    letter-spacing:
        0.12em;

    text-transform:
        uppercase;
}


.countdown-message {
    margin-top:
        2rem;

    color:
        var(--maroon);

    font-family:
        var(--display);

    font-size:
        2rem;
}


/* =========================================================
   13. VENUE
   ========================================================= */

.venue-card {
    display:
        grid;

    grid-template-columns:
        1.15fr
        0.85fr;

    min-height:
        520px;

    background:
        var(--ivory);

    box-shadow:
        var(--shadow);
}


.venue-card__image {
    overflow:
        hidden;
}


.venue-card__image img {
    width:
        100%;

    height:
        100%;

    min-height:
        430px;

    object-fit:
        cover;

    transition:
        transform 0.7s ease;
}


.venue-card:hover
.venue-card__image img {
    transform:
        scale(1.03);
}


.venue-card__content {
    align-self:
        center;

    padding:
        clamp(
            2rem,
            6vw,
            4.5rem
        );
}


.venue-card__content h2 {
    font-size:
        clamp(
            2rem,
            4vw,
            3.3rem
        );
}


.venue-address {
    font-size:
        1.25rem;
}


/* =========================================================
   14. GALLERY
   ========================================================= */

.gallery-section {
    background:
        var(--ivory);
}


.gallery-grid {
    display:
        grid;

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

    grid-auto-rows:
        230px;

    gap:
        10px;
}


.gallery-item {
    position:
        relative;

    overflow:
        hidden;

    padding:
        0;

    border:
        0;

    background:
        var(--beige);

    cursor:
        zoom-in;
}


.gallery-item::after {
    content:
        "＋";

    position:
        absolute;

    inset:
        0;

    display:
        grid;

    place-items:
        center;

    color:
        var(--ivory);

    font-size:
        2rem;

    background:
        rgba(
            75,
            13,
            24,
            0.30
        );

    opacity:
        0;

    transition:
        opacity 0.3s ease;
}


.gallery-item img {
    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    transition:
        transform 0.5s ease;
}


.gallery-item:hover img {
    transform:
        scale(1.055);
}


.gallery-item:hover::after {
    opacity:
        1;
}


.gallery-item--tall {
    grid-row:
        span 2;
}


.gallery-item--wide {
    grid-column:
        span 2;
}


/* =========================================================
   15. LIGHTBOX
   ========================================================= */

.lightbox {
    position:
        fixed;

    inset:
        0;

    z-index:
        4000;

    display:
        grid;

    place-items:
        center;

    padding:
        4rem;

    background:
        rgba(
            20,
            6,
            8,
            0.95
        );
}


.lightbox[hidden] {
    display:
        none;
}


.lightbox img {
    max-width:
        min(
            1000px,
            86vw
        );

    max-height:
        82vh;

    object-fit:
        contain;

    box-shadow:
        0 20px 60px
        rgba(
            0,
            0,
            0,
            0.40
        );
}


.lightbox button {
    position:
        absolute;

    border:
        0;

    color:
        var(--ivory);

    background:
        transparent;

    cursor:
        pointer;
}


.lightbox__close {
    top:
        1.2rem;

    right:
        1.5rem;

    font-size:
        2.5rem;
}


.lightbox__nav {
    top:
        50%;

    transform:
        translateY(-50%);

    font-size:
        4rem;
}


.lightbox__nav--prev {
    left:
        1.2rem;
}


.lightbox__nav--next {
    right:
        1.2rem;
}


/* =========================================================
   16. FAMILY SECTION
   ========================================================= */

.family-section {
    display:
        grid;

    place-items:
        center;

    min-height:
        70vh;

    color:
        var(--ivory);

    text-align:
        center;

    background:

        linear-gradient(
            rgba(
                75,
                13,
                24,
                0.93
            ),
            rgba(
                75,
                13,
                24,
                0.96
            )
        ),

        url("../assets/images/family.jpg")
        center /
        cover
        no-repeat,

        var(--maroon);
}


.family-card {
    width:
        min(
            760px,
            100%
        );

    padding:
        clamp(
            2rem,
            7vw,
            5rem
        );

    border:
        1px solid
        rgba(
            200,
            164,
            93,
            0.60
        );

    box-shadow:

        inset
        0 0 0 8px
        rgba(
            75,
            13,
            24,
            0.70
        ),

        inset
        0 0 0 9px
        rgba(
            200,
            164,
            93,
            0.20
        );
}


.family-card h2 {
    color:
        var(--ivory);
}


.family-names {
    margin:
        0.3rem 0;

    color:
        var(--gold-light);

    font-family:
        var(--display);

    font-size:
        1.75rem;
}


.family-and {
    display:
        block;

    margin:
        0.25rem 0;

    color:
        var(--gold);

    font-size:
        1.8rem;
}


/* =========================================================
   17. RSVP
   ========================================================= */

.rsvp-grid {
    position:
        relative;

    display:
        grid;

    grid-template-columns:
        0.8fr
        1.2fr;

    gap:
        clamp(
            2rem,
            7vw,
            6rem
        );

    align-items:
        start;
}


.rsvp-form {
    display:
        grid;

    gap:
        1rem;

    padding:
        clamp(
            1.4rem,
            4vw,
            2.6rem
        );

    border:
        1px solid
        rgba(
            200,
            164,
            93,
            0.60
        );

    background:
        var(--ivory);

    box-shadow:
        var(--shadow);
}


.rsvp-form label,
.rsvp-form legend {
    font-family:
        var(--sans);

    font-size:
        0.75rem;

    font-weight:
        500;

    letter-spacing:
        0.03em;
}


.rsvp-form
input:not([type="radio"]),
.rsvp-form textarea {
    width:
        100%;

    margin-top:
        0.4rem;

    padding:
        0.8rem
        0.9rem;

    border:
        1px solid
        #cbbca7;

    border-radius:
        0;

    color:
        var(--brown);

    background:
        #fffdf8;

    font-family:
        var(--serif);

    font-size:
        1rem;
}


.rsvp-form textarea {
    resize:
        vertical;

    min-height:
        120px;
}


.rsvp-form fieldset {
    display:
        grid;

    gap:
        0.5rem;

    margin:
        0;

    padding:
        0.8rem
        1rem;

    border:
        1px solid
        #cbbca7;
}


.rsvp-form .radio {
    display:
        flex;

    gap:
        0.55rem;

    align-items:
        center;

    font-family:
        var(--serif);

    font-size:
        1rem;
}


.form-error {
    min-height:
        1.4em;

    margin:
        0;

    color:
        #8b1d2c;

    font-family:
        var(--sans);

    font-size:
        0.75rem;
}


.rsvp-success {
    grid-column:
        2;

    padding:
        3rem
        2rem;

    text-align:
        center;

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

    background:
        var(--ivory);

    box-shadow:
        var(--shadow);
}


.rsvp-success span {
    color:
        var(--gold);

    font-size:
        2rem;
}


.rsvp-success h3 {
    color:
        var(--maroon);

    font-family:
        var(--display);

    font-size:
        2rem;
}


/* =========================================================
   18. FINAL BLESSING
   ========================================================= */

.blessing {
    text-align:
        center;

    background:
        var(--ivory);
}


.signature {
    margin-top:
        2rem;

    color:
        var(--maroon);

    font-family:
        var(--display);

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


.signature i {
    color:
        var(--gold);

    font-family:
        var(--serif);

    font-weight:
        400;
}


/* =========================================================
   19. FOOTER
   ========================================================= */

.footer {
    padding:
        2.5rem
        1rem;

    text-align:
        center;

    color:
        rgba(
            255,
            250,
            240,
            0.82
        );

    background:
        var(--maroon-dark);

    border-top:
        1px solid
        rgba(
            200,
            164,
            93,
            0.40
        );
}


.footer p {
    margin:
        0.15rem 0;

    font-size:
        0.9rem;
}


.footer-ornament {
    color:
        var(--gold);

    font-size:
        1.7rem;
}


/* =========================================================
   20. MUSIC BUTTON
   ========================================================= */

.music-control,
.back-to-top {
    position:
        fixed;

    z-index:
        1100;

    bottom:
        1rem;

    border:
        1px solid
        rgba(
            225,
            201,
            133,
            0.60
        );

    color:
        var(--ivory);

    background:
        rgba(
            75,
            13,
            24,
            0.94
        );

    box-shadow:
        0 8px 24px
        rgba(
            0,
            0,
            0,
            0.18
        );

    cursor:
        pointer;
}


.music-control {
    left:
        1rem;

    display:
        flex;

    align-items:
        center;

    gap:
        0.5rem;

    min-height:
        44px;

    padding:
        0.55rem
        0.85rem;

    border-radius:
        999px;

    font-family:
        var(--sans);

    font-size:
        0.7rem;

    letter-spacing:
        0.04em;
}


.music-control.is-playing
.music-control__icon {
    animation:
        musicSpin
        3s
        linear
        infinite;
}


@keyframes musicSpin {

    to {
        transform:
            rotate(360deg);
    }
}


/* =========================================================
   21. BACK TO TOP
   ========================================================= */

.back-to-top {
    right:
        1rem;

    width:
        44px;

    height:
        44px;

    border-radius:
        50%;

    font-size:
        1.25rem;

    opacity:
        0;

    visibility:
        hidden;

    transform:
        translateY(8px);

    transition:
        0.25s ease;
}


.back-to-top.is-visible {
    opacity:
        1;

    visibility:
        visible;

    transform:
        none;
}


/* =========================================================
   22. LAPTOP FIX
   IMPORTANT FOR 1366 × 768 / SHORT LAPTOP SCREENS
   ========================================================= */

@media (max-height: 800px) {

    .cover {
        padding:
            12px;
    }


    .cover__card {
        max-height:
            calc(
                100dvh - 35px
            );

        padding:
            18px
            35px;
    }


    .mini-ornament {
        font-size:
            1.25rem;

        line-height:
            1;
    }


    .cover .eyebrow {
        margin-bottom:
            3px;

        font-size:
            0.63rem;
    }


    .cover__names {
        margin:
            4px
            0
            7px;

        font-size:
            clamp(
                2.6rem,
                8.2vh,
                4.8rem
            );

        line-height:
            0.84;
    }


    .cover__names
    .ampersand {
        margin:
            1px 0;
    }


    .cover__family,
    .cover__invite {
        margin-bottom:
            0;

        font-size:
            0.92rem;

        line-height:
            1.2;
    }


    .cover__date {
        margin:
            7px
            0
            10px;

        font-size:
            0.7rem;
    }


    .cover__button {
        min-height:
            40px;

        padding:
            0.58rem
            1.2rem;

        font-size:
            0.7rem;
    }


    /*
       Hide helper text on short screens
       so it never overlaps the date/button.
    */

    .cover__hint {
        display:
            none;
    }
}


/* =========================================================
   23. TABLET - 1024PX
   ========================================================= */

@media (max-width: 1024px) {

    .event-grid {
        grid-template-columns:
            repeat(
                3,
                1fr
            );
    }


    .gallery-grid {
        grid-template-columns:
            repeat(
                3,
                1fr
            );
    }
}


/* =========================================================
   24. TABLET / MOBILE - 768PX
   ========================================================= */

@media (max-width: 768px) {

    body {
        font-size:
            17px;
    }


    /* Header */

    .site-header {
        min-height:
            64px;
    }


    .menu-toggle {
        display:
            block;
    }


    .nav {
        position:
            absolute;

        top:
            100%;

        left:
            0;

        right:
            0;

        display:
            grid;

        gap:
            0;

        padding:
            0.8rem
            1rem
            1.2rem;

        background:
            rgba(
                75,
                13,
                24,
                0.98
            );

        border-bottom:
            1px solid
            rgba(
                200,
                164,
                93,
                0.35
            );

        opacity:
            0;

        visibility:
            hidden;

        transform:
            translateY(-8px);

        transition:
            0.25s ease;
    }


    .nav.is-open {
        opacity:
            1;

        visibility:
            visible;

        transform:
            none;
    }


    .nav a {
        padding:
            0.75rem
            0.2rem;
    }


    /* Couple */

    .couple-grid {
        grid-template-columns:
            1fr;

        gap:
            1rem;
    }


    .couple-center {
        flex-direction:
            row;

        justify-content:
            center;

        gap:
            1rem;
    }


    .couple-center strong {
        font-size:
            3rem;
    }


    /* Events */

    .event-grid {
        grid-template-columns:
            repeat(
                2,
                1fr
            );
    }


    /* Venue */

    .venue-card {
        grid-template-columns:
            1fr;
    }


    .venue-card__image img {
        min-height:
            320px;

        max-height:
            480px;
    }


    /* Gallery */

    .gallery-grid {
        grid-template-columns:
            repeat(
                2,
                1fr
            );

        grid-auto-rows:
            210px;
    }


    /* RSVP */

    .rsvp-grid {
        grid-template-columns:
            1fr;
    }


    .rsvp-success {
        grid-column:
            1;
    }


    /* Lightbox */

    .lightbox {
        padding:
            3rem
            2.5rem;
    }
}


/* =========================================================
   25. MOBILE - 430PX
   iPhone / Android / WhatsApp visitors
   ========================================================= */

@media (max-width: 430px) {

    .section {
        padding:
            4.5rem
            1rem;
    }


    /* Cover */

    .cover {
        padding:
            10px;
    }


    .cover::before {
        inset:
            8px;
    }


    .cover::after {
        inset:
            14px;
    }


    .cover__corner {
        width:
            52px;

        height:
            52px;
    }


    .cover__corner--tl {
        top:
            8px;

        left:
            8px;
    }


    .cover__corner--tr {
        top:
            8px;

        right:
            8px;
    }


    .cover__corner--bl {
        bottom:
            8px;

        left:
            8px;
    }


    .cover__corner--br {
        bottom:
            8px;

        right:
            8px;
    }


    .cover__card {
        width:
            92vw;

        max-height:
            calc(
                100dvh - 30px
            );

        padding:
            clamp(
                18px,
                4vh,
                34px
            )
            15px;
    }


    .cover__names {
        font-size:
            clamp(
                2.4rem,
                13vw,
                4rem
            );

        line-height:
            0.88;
    }


    .cover__family,
    .cover__invite {
        font-size:
            0.9rem;
    }


    .cover__date {
        margin:
            8px
            0
            12px;

        font-size:
            0.67rem;
    }


    .cover__button {
        min-height:
            44px;

        padding:
            0.7rem
            1.2rem;
    }


    /*
       Do not show helper text
       on small screens.
    */

    .cover__hint {
        display:
            none;
    }


    /* Events */

    .event-grid {
        grid-template-columns:
            1fr;
    }


    .event-card {
        padding:
            1.8rem
            1rem;
    }


    /* Countdown */

    .countdown {
        grid-template-columns:
            repeat(
                2,
                1fr
            );
    }


    /* Gallery */

    .gallery-grid {
        grid-auto-rows:
            175px;

        gap:
            6px;
    }


    .gallery-item--wide {
        grid-column:
            span 2;
    }


    /* Music button */

    .music-control__text {
        display:
            none;
    }


    .music-control {
        width:
            44px;

        justify-content:
            center;

        padding:
            0;
    }
}


/* =========================================================
   26. VERY SMALL PHONES
   ========================================================= */

@media (max-width: 390px) {

    .cover__card {
        width:
            93vw;
    }


    .cover__names {
        font-size:
            clamp(
                2.25rem,
                12.5vw,
                3.5rem
            );
    }


    .heading-ornament span {
        width:
            45px;
    }


    .gallery-grid {
        grid-auto-rows:
            160px;
    }
}


/* =========================================================
   27. VERY SHORT SCREENS
   ========================================================= */

@media (max-height: 650px) {

    .cover__card {
        padding:
            12px
            25px;
    }


    /*
       Remove top ornament if vertical
       space is extremely limited.
    */

    .cover__card
    .mini-ornament {
        display:
            none;
    }


    .cover .eyebrow {
        margin-bottom:
            2px;
    }


    .cover__names {
        margin:
            2px
            0
            5px;

        font-size:
            clamp(
                2.1rem,
                9vh,
                3.4rem
            );

        line-height:
            0.83;
    }


    .cover__family,
    .cover__invite {
        font-size:
            0.82rem;
    }


    .cover__date {
        margin:
            5px
            0
            8px;
    }


    .cover__button {
        min-height:
            38px;

        padding:
            0.5rem
            1rem;
    }


    .cover__hint {
        display:
            none;
    }
}


/* =========================================================
   28. LARGE DESKTOP - 1440PX+
   ========================================================= */

@media (min-width: 1440px) {

    .section__inner {
        width:
            min(
                1240px,
                100%
            );
    }


    .cover__card {
        width:
            min(
                720px,
                88vw
            );
    }
}


/* =========================================================
   29. REDUCED MOTION ACCESSIBILITY
   ========================================================= */

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

    *,
    *::before,
    *::after {
        scroll-behavior:
            auto !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }


    .reveal {
        opacity:
            1;

        transform:
            none;
    }
}