:root {
    --color-bg: #FDFBF7;
    /* Cream Paper */
    --color-text: #5D4037;
    /* Dark Wood */
    --color-accent: #8D6E63;
    /* Warm Taupe */
    --color-green: #556B2F;
    /* Olive Green */
    --color-gold: #C5A059;
    /* Muted Gold */
}

body {
    background-color: var(--color-bg);
    /* Multi-layered Paper Texture */
    background-image:
        /* Vignette effect */
        radial-gradient(ellipse at center, transparent 0%, transparent 60%, rgba(93, 64, 55, 0.08) 100%),
        /* Subtle noise/grain */
        repeating-linear-gradient(45deg,
            transparent,
            transparent 2px,
            rgba(235, 229, 206, 0.3) 2px,
            rgba(235, 229, 206, 0.3) 4px),
        /* Paper fibers */
        repeating-linear-gradient(-45deg,
            transparent,
            transparent 3px,
            rgba(235, 229, 206, 0.2) 3px,
            rgba(235, 229, 206, 0.2) 6px),
        /* Organic spots */
        radial-gradient(circle at 20% 30%, rgba(197, 160, 89, 0.05) 0%, transparent 3%),
        radial-gradient(circle at 80% 70%, rgba(141, 110, 99, 0.04) 0%, transparent 4%),
        radial-gradient(circle at 40% 80%, rgba(197, 160, 89, 0.03) 0%, transparent 2%),
        /* Base gradient */
        linear-gradient(135deg, #FDFBF7 0%, #F5F1E6 50%, #FDFBF7 100%);
    font-family: "Lato", sans-serif;
    color: var(--color-text);
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    position: relative;
}

/* Falling Autumn Leaves */
.autumn-leaf {
    position: fixed;
    font-size: 1.5rem;
    color: rgba(197, 160, 89, 0.6);
    animation: fall-rotate 15s linear infinite;
    z-index: 0;
    pointer-events: none;
}

.autumn-leaf:nth-child(1) {
    left: 10%;
    animation-duration: 18s;
    animation-delay: 0s;
    color: rgba(141, 110, 99, 0.5);
}

.autumn-leaf:nth-child(2) {
    left: 30%;
    animation-duration: 12s;
    animation-delay: 5s;
    color: rgba(197, 160, 89, 0.5);
}

.autumn-leaf:nth-child(3) {
    left: 60%;
    animation-duration: 15s;
    animation-delay: 2s;
    color: rgba(85, 107, 47, 0.4);
}

.autumn-leaf:nth-child(4) {
    left: 80%;
    animation-duration: 20s;
    animation-delay: 8s;
    color: rgba(141, 110, 99, 0.5);
}

@keyframes fall-rotate {
    0% {
        transform: translateY(-50px) rotate(0deg) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(100vh) rotate(720deg) translateX(50px);
        opacity: 0;
    }
}

/* Fireflies Effect */
.firefly {
    position: fixed;
    width: 4px;
    height: 4px;
    background-color: #FFD700;
    border-radius: 50%;
    box-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700;
    animation: fly 20s infinite alternate;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.firefly:nth-child(5) {
    top: 20%;
    left: 20%;
    animation-duration: 15s;
}

.firefly:nth-child(6) {
    top: 50%;
    left: 80%;
    animation-duration: 25s;
}

.firefly:nth-child(7) {
    top: 80%;
    left: 40%;
    animation-duration: 18s;
}

@keyframes fly {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translate(100px, -50px);
        opacity: 0;
    }
}

/* Subtle paper edge shadow */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    box-shadow: inset 0 0 100px rgba(93, 64, 55, 0.03);
    z-index: 1;
}

/* --- Typography --- */
.cinzel-font {
    font-family: "Cinzel", serif;
    font-weight: 400;
}

.pinyon-script {
    font-family: "Pinyon Script", cursive;
    font-weight: 400;
    color: var(--color-accent);
    text-shadow: 0 0 5px rgba(197, 160, 89, 0.3);
    animation: candle-flicker 4s infinite alternate;
}

@keyframes candle-flicker {
    0% {
        text-shadow: 0 0 5px rgba(197, 160, 89, 0.3);
    }

    50% {
        text-shadow: 0 0 10px rgba(197, 160, 89, 0.5), 0 0 20px rgba(197, 160, 89, 0.2);
    }

    100% {
        text-shadow: 0 0 5px rgba(197, 160, 89, 0.3);
    }
}

.big-font {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.medium-font {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.text-accent {
    color: var(--color-accent);
}

.letter-spacing-2 {
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 700;
}

/* --- Layout (Continuous Flow - No Cards) --- */
.section-container {
    padding: 5rem 1rem;
    text-align: center;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.full-width-section {
    width: 100%;
    padding: 6rem 1rem;
    background-color: #F5F1E6;
    /* Slightly darker cream */
    text-align: center;
}

.divider-icon {
    font-size: 2rem;
    color: var(--color-gold);
    margin: 2rem 0;
    opacity: 0.7;
}

.divider-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    width: 150px;
    margin: 2rem auto;
    opacity: 0.6;
    position: relative;
}

/* --- Buttons --- */
.btn-rustic {
    background-color: var(--color-text);
    color: #fff;
    border: 1px solid var(--color-text);
    padding: 15px 40px;
    font-family: "Cinzel", serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.btn-rustic:hover {
    background-color: transparent;
    color: var(--color-text);
    text-decoration: none;
}

.btn-rustic-outline {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-text);
    padding: 12px 30px;
    font-family: "Cinzel", serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-rustic-outline:hover {
    background-color: var(--color-text);
    color: #fff;
    text-decoration: none;
}

/* --- Hero Section --- */
.hero-section {
    padding-top: 6rem;
    padding-bottom: 4rem;
    position: relative;
}

.couple-photo-frame {
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(93, 64, 55, 0.15);
    display: inline-block;
    transform: rotate(-1deg);
    margin-bottom: 2rem;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
}

.couple-photo-frame::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #333 20%, transparent 30%);
    opacity: 0.2;
    /* Nail hole */
}

.couple-photo-frame:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(93, 64, 55, 0.2);
}

.couple-photo {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

/* --- Countdown --- */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    font-size: 3rem;
    font-family: "Cinzel", serif;
    color: var(--color-text);
    line-height: 1;
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-top: 5px;
}

/* --- Gift Table --- */
.gift-icon {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

/* --- RSVP --- */
.rsvp-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .rsvp-buttons {
        flex-direction: row;
    }

    .big-font {
        font-size: 5rem;
    }
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 2rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(93, 64, 55, 0.1);
    position: relative;
    border: 5px solid #fff;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

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