:root {
    --pink: #efd1d8;
    --pink-deep: #c8879a;
    --lav: #e8e0f0;
    --sage: #dce6d7;
    --cream: #fffaf5;
    --ink: #554650;
    --muted: #8d7c83;
    --gold: #c6a879;
    --serif: 'Playfair Display', serif;
    --script: 'Parisienne', cursive;
    --sans: 'DM Sans', sans-serif
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.65
}

a {
    color: inherit
}

.site-shell {
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease
}

.site-shell.visible {
    opacity: 1;
    visibility: visible
}

.envelope-screen {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 22px;
    background: radial-gradient(circle at 20% 20%, #fff9f5, #f7e4e9 55%, #e9e0ee);
    overflow: hidden
}

.envelope-screen[hidden] {
    display: none
}

.envelope-card {
    position: relative;
    max-width: 510px;
    width: 100%;
    padding: 55px 34px 38px;
    text-align: center;
    background: #fffaf8eF;
    border: 1px solid #fff;
    border-radius: 220px 220px 28px 28px;
    box-shadow: 0 25px 80px #9b718033
}

.envelope-card h1 {
    font: 500 clamp(2.2rem, 7vw, 3.2rem) var(--serif);
    line-height: 1.2;
    margin: 14px 0
}

.envelope-card>p:not(.eyebrow) {
    color: var(--muted)
}

.tiny-flower {
    font-size: 2.5rem;
    color: var(--pink-deep)
}

.wax-seal {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 26px auto;
    background: linear-gradient(145deg, #d99aaa, #b9788a);
    border-radius: 50%;
    color: white;
    font-size: 1.6rem;
    box-shadow: 0 5px 15px #a76d7b55
}

.envelope-petals {
    position: absolute;
    inset: 8% 4%;
    font-size: clamp(1rem, 4vw, 2.2rem);
    color: #c28b9a;
    letter-spacing: 1rem;
    line-height: 4
}

.open-invite {
    margin-top: 10px
}

.skip-link {
    display: block;
    border: 0;
    background: none;
    margin: 18px auto 0;
    color: var(--muted);
    text-decoration: underline;
    cursor: pointer
}

.opening {
    animation: fadeAway .65s forwards
}

@keyframes fadeAway {
    to {
        opacity: 0;
        transform: scale(1.04)
    }
}

.top-nav {
    height: 74px;
    padding: 0 clamp(18px, 5vw, 76px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fffaf5e8;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #eddee1
}

.brand {
    font: 2rem var(--script);
    text-decoration: none;
    color: #a96f81
}

.brand span {
    font: 1rem var(--sans)
}

.nav-links {
    display: flex;
    gap: 28px
}

.nav-links a {
    text-decoration: none;
    font-size: .84rem;
    color: #78666e
}

.nav-links a:hover {
    color: var(--pink-deep)
}

.music-toggle {
    border: 1px solid #ead6dc;
    background: #fff;
    border-radius: 30px;
    padding: 9px 15px;
    color: #a56e7f;
    cursor: pointer
}

.music-toggle span {
    font-size: .75rem
}

.music-toggle.playing {
    background: #f5e2e8
}

.section {
    padding: 92px max(6vw, 22px)
}

.hero {
    min-height: 690px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 50px;
    max-width: 1400px;
    margin: auto;
    position: relative;
    background: radial-gradient(ellipse at 80% 30%, #f2e7ef 0, transparent 35%), radial-gradient(ellipse at 10% 85%, #e6ecdf 0, transparent 32%)
}

.hero-copy {
    text-align: center;
    max-width: 690px;
    margin: auto
}

.eyebrow {
    font-size: .68rem;
    letter-spacing: .2em;
    color: #b17c8b;
    font-weight: 700
}

.intro {
    max-width: 510px;
    margin: 18px auto;
    font: 1.12rem/1.8 var(--serif);
    color: #786871
}

.baby-name {
    font: clamp(3.4rem, 7vw, 6.4rem)/.95 var(--script);
    font-weight: 400;
    color: #a96f81;
    margin: 22px 0
}

.baby-name span {
    display: block;
    font-size: .7em
}

.tagline {
    font: italic 1.2rem var(--serif);
    color: #a88c76
}

.date-pill {
    display: inline-block;
    margin: 24px 0 4px;
    padding: 11px 22px;
    border: 1px solid #d9c1c6;
    border-radius: 30px;
    color: #8f6d79;
    background: #fff9
}

.event-time {
    font-size: .86rem;
    color: var(--muted)
}

.scroll-cue {
    display: inline-block;
    margin-top: 25px;
    text-decoration: none;
    font-size: .82rem;
    color: #a77988
}

.hero-photo-wrap {
    max-width: 440px;
    margin: auto;
    text-align: center
}

.photo-frame {
    position: relative;
    padding: 14px;
    background: #fff;
    border: 1px solid #e6d3d6;
    border-radius: 48% 48% 42% 42%;
    box-shadow: 0 18px 50px #92748224;
    transform: rotate(2deg)
}

.photo-frame:before {
    content: '';
    position: absolute;
    inset: 7px;
    border: 1px solid #e8d8c9;
    border-radius: inherit;
    pointer-events: none
}

.photo-frame img {
    display: block;
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 48% 48% 42% 42%;
    background: #f1e4e5
}

.frame-flower {
    position: absolute;
    right: -25px;
    bottom: 13%;
    font-size: 3rem;
    color: #b8c6ae;
    text-shadow: 0 2px white
}

.photo-caption {
    font: 1.6rem var(--script);
    color: #a77c89
}

.decor-one {
    position: absolute;
    top: 8%;
    left: 5%;
    font-size: 4rem;
    color: #c8d4c1;
    opacity: .7
}

.countdown-section {
    text-align: center;
    background: linear-gradient(120deg, #f8e9ec, #f3eef6, #edf2e9)
}

h2 {
    font: 500 clamp(2rem, 4vw, 3.1rem)/1.2 var(--serif);
    margin: 8px 0 14px;
    color: #725b67
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 32px auto 18px
}

.countdown div {
    width: 105px;
    padding: 16px 8px;
    background: #fff9;
    border: 1px solid #fff;
    border-radius: 18px;
    box-shadow: 0 8px 22px #967d8b12
}

.countdown strong {
    display: block;
    font: 2rem var(--serif);
    color: #a56f80
}

.countdown span {
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9c8790
}

.muted,
.section-heading>p:last-child {
    color: var(--muted)
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 30px;
    padding: 12px 22px;
    text-decoration: none;
    font: 600 .83rem var(--sans);
    cursor: pointer;
    transition: .2s ease
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px #8f68751c
}

.btn-primary {
    background: #bd8293;
    color: #fff
}

.btn-soft {
    background: #f0e4e9;
    color: #916a78
}

.btn-outline {
    background: #fff;
    border: 1px solid #dfc8cf;
    color: #986f7d
}

.section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 42px
}

.section-heading>p:last-child {
    margin: 0
}

.event-grid {
    max-width: 1050px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px
}

.event-card {
    padding: 34px;
    background: #fff;
    border: 1px solid #f0e1e4;
    border-radius: 26px;
    text-align: center;
    box-shadow: 0 15px 40px #8f718010
}

.event-icon {
    font-size: 2rem;
    color: #c18b9a;
    margin-bottom: 12px
}

.event-card h3 {
    font: 1.5rem var(--serif);
    margin: 8px 0
}

/* Male Godparents - Brighter Pastel Blue */
.godparent-card.godparent-male {
    background-color: #A9D8FF;
    border: 2px solid #72B9F0;
}

/* Female Godparents - Brighter Pastel Pink */
.godparent-card.godparent-female {
    background-color: #FFBFD7;
    border: 2px solid #F28FB6;
}

/* Flower decorations */
.godparent-male span {
    color: #287FC2;
}

.godparent-female span {
    color: #D94F86;
}


.venue {
    font-weight: 700;
    color: #866a75
}

.time-note,
.small-note {
    font-size: .78rem;
    color: var(--muted)
}

.event-card iframe {
    display: block;
    width: 100%;
    height: 190px;
    border: 0;
    border-radius: 14px;
    margin-top: 22px
}

.small-note {
    text-align: center;
    margin-top: 22px
}

.gallery-section {
    background: #fbf5f0
}



.gallery-item:hover {
    transform: translateY(-5px) rotate(.5deg)
}


/* =========================================
   CONTINUOUS DREAMY PHOTO MARQUEE
========================================= */

.gallery-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0 35px;

    /* Soft fading edges */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 7%,
        black 93%,
        transparent
    );

    mask-image: linear-gradient(
        to right,
        transparent,
        black 7%,
        black 93%,
        transparent
    );
}

.gallery-grid {
    display: flex;
    width: max-content;
    max-width: none;
    margin: 0;
    gap: 22px;

    animation: photo-marquee 60s linear infinite;
    will-change: transform;
}

/* Move continuously from right to left */
@keyframes photo-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.gallery-item {
    position: relative;
    flex: 0 0 230px;
    width: 230px;
    height: 300px;

    padding: 8px;
    margin: 0;

    border: 1px solid #f0dfe5;
    border-radius: 22px;

    background: #fffaf8;
    box-shadow: 0 12px 30px rgba(143, 104, 117, 0.14);

    cursor: zoom-in;
    overflow: hidden;

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

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    border-radius: 16px;
}

/* Floating heart decoration */
.gallery-item span {
    position: absolute;
    right: 17px;
    bottom: 17px;

    display: grid;
    place-items: center;

    width: 34px;
    height: 34px;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);

    color: #bd8293;
    font-size: 18px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Elegant hover effect */
.gallery-item:hover {
    transform: translateY(-10px) rotate(-1deg);
    box-shadow: 0 20px 40px rgba(143, 104, 117, 0.22);
}

/* Pause when guests hover or focus */
.gallery-marquee:hover .gallery-grid,
.gallery-marquee:focus-within .gallery-grid {
    animation-play-state: paused;
}

/* Mobile */
@media (max-width: 600px) {
    .gallery-grid {
        gap: 15px;
        animation-duration: 32s;
    }

    .gallery-item {
        flex-basis: 175px;
        width: 175px;
        height: 235px;
        border-radius: 18px;
    }
}

/* Respect visitors who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .gallery-grid {
        animation: none;
    }
}


.gallery-item span {
    position: absolute;
    right: 14px;
    bottom: 12px;
    background: #fffC;
    color: #b47e8d;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center
}

.godparent-grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px
}

.godparent-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 14px;
    background: linear-gradient(135deg, #fff, #f8edf0);
    border: 1px solid #f0dfe4;
    border-radius: 15px;
    box-shadow: 0 7px 20px #8e6c7b0b
}

.godparent-card:nth-child(3n) {
    background: linear-gradient(135deg, #fff, #f0edf6)
}

.godparent-card span {
    color: #b98b98
}

.godparent-card p {
    margin: 0;
    font: 1rem var(--serif)
}

.dress-section {
    background: #eef2e9;
    text-align: center
}

.swatches {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin: 35px auto
}

.swatches div {
    display: grid;
    gap: 10px;
    justify-items: center;
    font-size: .82rem
}

.swatches i {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--swatch);
    border: 6px solid #fff;
    box-shadow: 0 7px 18px #71806b22
}

.dress-note {
    max-width: 620px;
    margin: auto;
    color: #788273
}

.gifts-section {
    background: #fffaf6
}

.gift-intro,
.gift-closing {
    max-width: 790px;
    margin: 0 auto 34px;
    text-align: center;
    color: #786b71
}

.gift-grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px
}

.gift-grid article {
    padding: 23px 17px;
    text-align: center;
    background: #fff;
    border: 1px solid #f0e2e4;
    border-radius: 20px
}

.gift-grid article:nth-child(2n) {
    background: #f9f3f8
}

.gift-grid article>span {
    font-size: 2.2rem
}

.gift-grid h3 {
    font: 1.2rem var(--serif)
}

.gift-grid p {
    font-size: .82rem;
    color: #82747b
}

.gift-closing {
    margin-top: 34px;
    font: italic 1rem/1.8 var(--serif)
}

.rsvp-section {
    background: linear-gradient(135deg, #f1e6ef, #f8e9e9, #edf1e7)
}

.rsvp-card {
    max-width: 600px;
    margin: auto;
    padding: 42px;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 20px 60px #7b64721b;
    text-align: center
}

.rsvp-card form {
    text-align: left;
    margin-top: 28px
}

.rsvp-card label {
    display: block;
    margin: 15px 0;
    font-size: .85rem;
    font-weight: 600
}

.rsvp-card input:not([type=radio]),
.rsvp-card textarea {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 13px 14px;
    border: 1px solid #e7d9de;
    border-radius: 12px;
    background: #fffcfa;
    font: inherit;
    color: var(--ink)
}

.rsvp-card fieldset {
    border: 1px solid #eadde1;
    border-radius: 13px;
    padding: 12px 16px
}

.rsvp-card legend {
    padding: 0 7px;
    font-weight: 600;
    font-size: .85rem
}

.rsvp-card .radio-label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 8px 0;
    font-weight: 400
}

.disabled-field {
    opacity: .5
}

.form-feedback {
    min-height: 24px;
    text-align: center;
    font-size: .88rem
}

.form-feedback.success {
    color: #3d805d
}

.form-feedback.error {
    color: #b34c61
}

.share-section {
    text-align: center
}

.share-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap
}

.qr-card {
    width: max-content;
    max-width: 100%;
    margin: 32px auto 0;
    padding: 22px;
    background: #fff;
    border: 1px solid #efdee3;
    border-radius: 22px;
    box-shadow: 0 10px 30px #876b7810
}

.qr-card #qrCode {
    min-height: 180px;
    display: grid;
    place-items: center
}

.qr-card p {
    font-size: .8rem;
    color: var(--muted)
}

.footer {
    padding: 55px 20px;
    text-align: center;
    background: #f2e5e9;
    color: #8e7180
}

.footer>div:first-child {
    font-size: 1.5rem;
    color: #b68a99
}

.footer p {
    margin: 5px
}

.footer strong {
    font: 2rem var(--script);
    color: #a56f80
}

.footer-heart {
    font-size: 1.5rem
}

.footer small {
    font-size: .75rem
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #211b22ed;
    align-items: center;
    justify-content: center;
    padding: 50px 65px
}

.lightbox.active {
    display: flex
}

.lightbox img {
    max-width: min(85vw, 900px);
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px
}

.lightbox button {
    position: absolute;
    border: 0;
    background: #fff2;
    color: #fff;
    font-size: 2.6rem;
    cursor: pointer
}

.lightbox-close {
    top: 15px;
    right: 25px
}

.lightbox-prev {
    left: 15px
}

.lightbox-next {
    right: 15px
}

.no-scroll {
    overflow: hidden
}

.admin-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5e7eb, #eef0e8);
    padding: 30px
}

.admin-card,
.admin-wrap {
    max-width: 950px;
    margin: 5vh auto;
    padding: 35px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 20px 60px #6f59661a
}

.admin-card {
    max-width: 430px
}

.admin-card h1,
.admin-wrap h1 {
    font: 2rem var(--serif)
}

.admin-card label {
    display: block;
    margin: 18px 0
}

.admin-card input {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid #e5d6dc;
    border-radius: 10px;
    margin-top: 6px
}

.admin-card .btn {
    width: 100%
}

.admin-card>a {
    display: block;
    margin-top: 20px;
    text-align: center
}

.admin-head {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 28px 0
}

.stats article {
    padding: 22px;
    background: #f8eef1;
    border-radius: 15px
}

.stats span,
.stats strong {
    display: block
}

.stats strong {
    font: 2rem var(--serif)
}

.table-scroll {
    overflow-x: auto
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .84rem
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: top
}

th {
    background: #f8eef1
}

.alert.error {
    color: #a43d51
}

.admin-wrap .muted {
    font-size: .8rem;
    margin-top: 25px
}

@media(max-width:850px) {
    .nav-links {
        gap: 13px
    }

    .nav-links a {
        font-size: .75rem
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 25px;
        padding-top: 60px
    }

    .hero-photo-wrap {
        max-width: 330px
    }

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

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

    .gift-grid article:last-child {
        grid-column: 1/-1;
        max-width: 50%;
        justify-self: center
    }
}

@media(max-width:560px) {
    .top-nav {
        height: auto;
        min-height: 65px;
        flex-wrap: wrap;
        padding: 10px 17px;
        gap: 8px
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 7px
    }

    .nav-links a {
        font-size: .69rem
    }

    .music-toggle {
        padding: 7px 10px
    }

    .section {
        padding: 65px 19px
    }

    .hero {
        min-height: auto
    }

    .baby-name {
        font-size: 3.7rem
    }

    .intro {
        font-size: 1rem
    }

    .photo-frame {
        max-width: 300px;
        margin: auto
    }

    .countdown {
        gap: 6px
    }

    .countdown div {
        width: calc(25% - 5px);
        padding: 12px 3px
    }

    .countdown strong {
        font-size: 1.45rem
    }

    .countdown span {
        font-size: .58rem
    }

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

    .event-card {
        padding: 25px 20px
    }

    .godparent-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 9px
    }

    .godparent-card {
        padding: 12px 9px;
        gap: 7px
    }

    .godparent-card p {
        font-size: .86rem
    }

    .swatches {
        gap: 18px
    }

    .swatches i {
        width: 62px;
        height: 62px
    }

    .gift-grid {
        grid-template-columns: 1fr 1fr
    }

    .gift-grid article {
        padding: 17px 12px
    }

    .gift-grid article:last-child {
        grid-column: auto;
        max-width: none
    }

    .rsvp-card {
        padding: 28px 20px
    }

    .share-actions {
        flex-direction: column;
        max-width: 310px;
        margin: auto
    }

    .lightbox {
        padding: 45px 38px
    }

    .lightbox img {
        max-width: 100%;
        max-height: 75vh
    }

    .lightbox-prev {
        left: 3px
    }

    .lightbox-next {
        right: 3px
    }

    .admin-body {
        padding: 12px
    }

    .admin-card,
    .admin-wrap {
        padding: 22px 16px
    }

    .stats {
        grid-template-columns: 1fr
    }

    .admin-head {
        align-items: flex-start;
        gap: 12px
    }

    .admin-head h1 {
        font-size: 1.5rem
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important
    }
}

/* =================================
   EXTRA FLOATING PASTEL FLOWERS
================================= */

.site-shell {
    position: relative;
    overflow: hidden;
}

.floating-flower {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.65;
    animation: flowerFloat 6s ease-in-out infinite;
}

.flower-one {
    top: 180px;
    left: 3%;
    font-size: 35px;
    color: #e9aebe;
}

.flower-two {
    top: 450px;
    right: 4%;
    font-size: 42px;
    color: #c9b5e3;
    animation-delay: 1s;
}

.flower-three {
    top: 950px;
    left: 5%;
    font-size: 30px;
    color: #b8cba9;
    animation-delay: 2s;
}

.flower-four {
    top: 1450px;
    right: 5%;
    font-size: 38px;
    color: #edc6a9;
    animation-delay: 1.5s;
}

.flower-five {
    top: 2100px;
    left: 4%;
    font-size: 40px;
    color: #e9aebe;
    animation-delay: 2.5s;
}

@keyframes flowerFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-18px) rotate(15deg);
    }
}

/* Smaller decorations on mobile */
@media (max-width: 600px) {
    .floating-flower {
        font-size: 24px;
        opacity: 0.45;
    }
}
