        :root {
            /* Crisp warm gold and taupe wedding palette - blends with couple.jpg */
            --white: #ffffff;
            --bg-light: #f5f1ea;
            --lavender: #e8dce8;
            --purple: #8b7355;
            --purple-dark: #6b5344;
            --accent: #c9a876;
            --text: #3d3d3d;
            --subtle: #7a7a7a;
            --round: 8px;
        }

        * { box-sizing: border-box; }

        /* Icon styles */
        svg.icon,
        .tab-icon,
        .header-icon,
        .timeline-icon,
        .item-icon,
        .btn-icon {
            width: 1.05rem;
            height: 1.05rem;
            vertical-align: middle;
            margin-right: 10px;
            color: var(--purple);
            flex-shrink: 0;
            display: inline-block;
        }

        .timeline-icon {
            width: 1.15rem;
            height: 1.15rem;
            margin-right: 8px;
        }

        .item-icon {
            width: 0.95rem;
            height: 0.95rem;
            margin-right: 8px;
            color: var(--accent);
        }

        body {
            font-family: 'Georgia', serif;
            background-image: url('couple.jpg');
            background-attachment: fixed;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            color: var(--text);
            margin: 0;
            padding: 0;
            line-height: 1.7;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            min-height: 100vh;
            position: relative;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            /* much lighter overlay - crisp and clear to show image */
            background: linear-gradient(to bottom, rgba(245, 241, 234, 0.08), rgba(245, 241, 234, 0.05));
            pointer-events: none;
            z-index: 1;
        }

        header {
            text-align: center;
            padding: 48px 20px;
            /* warm, slightly transparent header that blends with image */
            background: rgba(255, 255, 255, 0.25);
            border: 2px solid rgba(139, 115, 85, 0.15);
            box-shadow: 0 6px 30px rgba(0,0,0,0.1);
            position: relative;
            margin-bottom: 0;
            z-index: 2;
            backdrop-filter: blur(8px);
        }

        header::before {
            position: absolute;
            top: 12px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 1.4rem;
            color: var(--purple);
        }

        header::after {
            position: absolute;
            bottom: 12px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 1.4rem;
            color: var(--purple);
        }

        h1 {
            font-size: 3rem;
            margin: 0;
            color: var(--purple-dark);
            font-weight: 700;
            letter-spacing: 1px;
            text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        }

        p.subtitle {
            font-size: 1.1em;
            color: var(--purple);
            margin: 12px 0 0;
            font-weight: 600;
            letter-spacing: 1.5px;
        }

        /* Tabs - Fully Responsive */
        .tabs {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            /* warm background to blend with image */
            background: rgba(245, 241, 234, 0.18);
            padding: 14px 0;
            gap: 10px;
            border-bottom: 2px solid rgba(139,115,85,0.12);
            backdrop-filter: blur(6px);
            position: relative;
            z-index: 2;
        }

        .tab-button {
            background: rgba(255, 255, 255, 0.35);
            border: 1px solid rgba(201,168,118,0.2);
            padding: 12px 18px;
            cursor: pointer;
            font-size: 1em;
            color: var(--purple);
            font-family: 'Georgia', serif;
            transition: all 0.18s ease;
            border-radius: var(--round);
            font-weight: 700;
            backdrop-filter: blur(4px);
        }

        .tab-button:hover {
            background: var(--lavender);
            border: 2px solid var(--purple);
            transform: translateY(-2px);
        }

        .tab-button.active {
            background: var(--purple);
            color: white;
            font-weight: 700;
            border: 2px solid var(--purple-dark);
            box-shadow: 0 8px 28px rgba(107, 83, 68, 0.25);
            transform: translateY(-2px) scale(1.02);
        }

        .tab-button.active .tab-icon { transform: scale(1.06) translateY(-2px); }

        .tab-button:focus { outline: none; box-shadow: 0 0 0 4px rgba(107,76,154,0.06); }

        .timeline-icon { transition: transform 300ms ease, color 300ms ease; }
        .event:hover .timeline-icon { transform: translateY(-4px) scale(1.06); color: var(--purple-dark); }

        /* Tab Content */
        .tab-content {
            display: none;
            padding: 28px 18px;
            max-width: 1000px;
            margin: 24px auto 48px;
            /* warm, crisp content panels */
            background: rgba(255, 255, 255, 0.35);
            border-radius: var(--round);
            animation: fadeIn 0.5s;
            box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
            backdrop-filter: blur(8px) saturate(1.1);
            position: relative;
            z-index: 2;
        }

        .tab-content.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        /* Menu Styles */
        h2 {
            text-align: center;
            color: var(--purple-dark);
            border-bottom: 2px solid var(--purple);
            padding-bottom: 12px;
            margin-bottom: 24px;
            font-size: 1.8em;
            font-weight: 700;
            letter-spacing: 0.5px;
            text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
        }

        h3 {
            color: var(--purple);
            margin: 28px 0 14px;
            font-size: 1.25em;
            text-align: center;
            font-weight: 700;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .menu-section {
            margin: 26px 0;
        }

        ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        li {
            padding: 16px 12px;
            border-left: 4px solid rgba(155,136,196,0.85);
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            align-items: flex-start;
            /* subtler background for list items */
            background: rgba(255, 255, 255, 0.28);
            border-radius: 6px;
            margin-bottom: 10px;
            backdrop-filter: blur(4px);
            transition: all 0.2s ease;
        }

        li:hover {
            background: var(--lavender);
            border-left: 5px solid var(--purple);
            transform: translateX(4px);
        }

        .item-name {
            font-weight: bold;
            font-size: 1.1em;
            min-width: 160px;
            flex-shrink: 0;
            color: var(--purple-dark);
            text-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
        }

        .desc {
            flex: 1;
            margin: 0;
            color: var(--text);
            font-style: italic;
            font-size: 0.96em;
            text-shadow: 0 1px 2px rgba(255, 255, 255, 0.2);
        }

        .price {
            font-weight: bold;
            color: var(--purple);
            text-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
            font-size: 1.05em;
            margin-left: auto;
            white-space: nowrap;
        }

        /* Edit Mode */
        .edit-mode .item-name,
        .edit-mode .desc,
        .edit-mode .price {
            outline: 2px dashed var(--purple);
            padding: 8px;
            border-radius: 4px;
            background: var(--lavender);
            min-height: 20px;
        }

        /* Photo Gallery - Responsive Grid */
        .gallery {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 24px;
            margin-top: 28px;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }

        .photo {
            width: 100%;
            height: 320px;
            object-fit: cover;
            border-radius: 12px;
            box-shadow: 0 6px 16px rgba(139, 115, 85, 0.15);
            transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
            border: 2px solid rgba(139, 115, 85, 0.2);
        }

        .photo:hover {
            transform: translateY(-6px) scale(1.02);
            box-shadow: 0 12px 28px rgba(139, 115, 85, 0.25);
            filter: brightness(1.08);
        }

        /* Menu Images Grid */
        .menu-images {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 20px;
            margin: 28px 0 32px 0;
        }

        .menu-photo {
            width: 100%;
            height: auto;
            object-fit: cover;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(107, 76, 154, 0.12);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border: 3px solid var(--purple);
        }

        .menu-photo:hover {
            transform: scale(1.04);
            box-shadow: 0 8px 20px rgba(107, 76, 154, 0.2);
        }

        /* Figure / Caption styles for menu and gallery images */
        .menu-figure,
        .photo-figure {
            margin: 0;
            text-align: center;
        }

        .menu-figure figcaption,
        .photo-figure figcaption {
            margin-top: 14px;
            font-size: 1.05rem;
            color: var(--purple);
            line-height: 1.4;
            font-weight: 700;
            letter-spacing: 0.4px;
        }

        /* Program / Timeline Styles */
        .timeline {
            position: relative;
            padding: 20px 0;
            max-width: 700px;
            margin: 0 auto;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            top: 0;
            bottom: 0;
            width: 3px;
            background: linear-gradient(to bottom, var(--purple), var(--accent));
        }

        .event {
            margin-bottom: 32px;
            display: flex;
            gap: 20px;
            opacity: 0;
            animation: slideIn 0.6s ease forwards;
        }

        .event:nth-child(1) { animation-delay: 0.1s; }
        .event:nth-child(2) { animation-delay: 0.2s; }
        .event:nth-child(3) { animation-delay: 0.3s; }
        .event:nth-child(4) { animation-delay: 0.4s; }
        .event:nth-child(5) { animation-delay: 0.5s; }
        .event:nth-child(6) { animation-delay: 0.6s; }
        .event:nth-child(7) { animation-delay: 0.7s; }

        @keyframes slideIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .event:nth-child(odd) {
            flex-direction: row;
        }

        .event:nth-child(even) {
            flex-direction: row-reverse;
        }

        .event-time {
            width: calc(50% - 30px);
            text-align: right;
            font-weight: 700;
            color: var(--purple);
            font-size: 1.1rem;
            padding-top: 12px;
        }

        .event:nth-child(even) .event-time {
            text-align: left;
        }

        .event-content {
            width: calc(50% - 30px);
            background: var(--bg-light);
            padding: 18px 18px;
            border-radius: 8px;
            border-left: 4px solid var(--purple);
            position: relative;
        }

        .event:nth-child(even) .event-content {
            border-left: none;
            border-right: 4px solid var(--purple);
        }

        .event-content::before {
            content: '';
            position: absolute;
            width: 14px;
            height: 14px;
            background: var(--white);
            border: 3px solid var(--purple);
            border-radius: 50%;
            top: 28px;
            right: -36px;
            z-index: 1;
        }

        .event:nth-child(even) .event-content::before {
            right: auto;
            left: -36px;
        }

        .event-content h3 {
            margin: 0 0 6px;
            color: var(--purple-dark);
            font-size: 1.1rem;
        }

        .event-content p {
            margin: 0;
            color: var(--subtle);
            font-size: 0.95rem;
        }

        .event-content:hover {
            background: var(--lavender);
            transition: all 0.2s ease;
        }

        /* Buttons */
        button#toggleEdit {
            display: block;
            margin: 30px auto;
            padding: 12px 24px;
            background: var(--purple);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            cursor: pointer;
            box-shadow: 0 4px 10px rgba(107, 76, 154, 0.2);
            font-weight: 700;
            transition: all 0.2s ease;
        }

        button#toggleEdit:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(107, 76, 154, 0.3);
        }

        footer {
            text-align: center;
            padding: 40px 20px;
            font-size: 1rem;
            color: var(--subtle);
            background: var(--white);
            margin-top: 60px;
            border-top: 2px solid var(--purple);
            font-weight: 500;
            letter-spacing: 0.8px;
        }

        footer::before {
            content: '✦ ✦ ✦';
            display: block;
            color: var(--purple);
            margin-bottom: 14px;
            letter-spacing: 6px;
            font-size: 1.1rem;
        }

        /* Mobile-Specific Optimizations */
        @media (max-width: 768px) {
            header {
                padding: 32px 15px;
            }
            h1 { font-size: 2.2em; }
            p.subtitle { font-size: 1em; }

            /* Tabs: stack and enlarge tap targets */
            .tabs { flex-direction: column; padding: 0; gap: 0; }
            .tab-button {
                border-radius: 0;
                padding: 16px 18px;
                font-size: 1.05em;
                border: 2px solid var(--lavender);
                border-bottom: 2px solid var(--lavender);
                width: 100%;
                box-sizing: border-box;
            }
            .tab-button.active { border-left: 6px solid var(--purple); }

            /* Menu lists stack vertically for easy reading */
            li { flex-direction: column; align-items: flex-start; padding: 16px 14px; }
            .item-name { min-width: auto; font-size: 1.1em; margin-bottom: 6px; }
            .desc { margin: 4px 0; font-size: 0.95em; }
            .price { margin-left: 0; margin-top: 6px; font-size: 1em; }

            /* Menu images: single column */
            .menu-images { grid-template-columns: 1fr; gap: 16px; }
            .menu-photo { aspect-ratio: 4/3; }

            /* Gallery: single column */
            .gallery { grid-template-columns: 1fr; gap: 20px; max-width: 400px; }
            .photo { height: 400px; }

            /* Timeline: single column layout */
            .timeline::before {
                left: 12px;
            }

            .event {
                flex-direction: column !important;
                margin-left: 40px;
                margin-bottom: 26px;
            }

            .event-time {
                width: 100%;
                text-align: left !important;
                font-size: 1rem;
                padding-top: 0;
                padding-bottom: 8px;
                color: var(--purple);
            }

            .event-content {
                width: 100%;
                border-left: 4px solid var(--purple) !important;
                border-right: none !important;
            }

            .event-content::before {
                left: -28px !important;
                right: auto !important;
                top: 20px;
            }
        }

        @media (max-width: 480px) {
            h1 { font-size: 1.9em; }
            h2 { font-size: 1.5em; }
            h3 { font-size: 1.05em; }
            header { padding: 24px 12px; }
            header::before, header::after { font-size: 1.2rem; }

            /* Maximize readability and touch targets on small phones */
            .tab-button { padding: 14px 16px; font-size: 0.95em; }
            .menu-photo, .photo { border: 3px solid var(--purple); }

            /* Ensure lists are comfortably spaced */
            li { padding: 14px 12px; }
            .item-name { font-size: 1rem; }
            .desc { font-size: 0.92em; }

            button#toggleEdit { width: 95%; padding: 12px; font-size: 0.95em; }
            .menu-figure figcaption, .photo-figure figcaption { font-size: 0.9rem; }
        }
/* HOMEPAGE STYLES */
body.homepage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.homepage-container {
    width: 100%;
    max-width: 100%;
    text-align: center;
}

.homepage-content {
    text-align: center;
    background: transparent;
    padding: 20px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    animation: fadeIn 0.8s ease-in-out;
    backdrop-filter: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.couple-photo-wrapper {
    display: none;
}

.couple-photo {
    display: none;
}

.couple-names {
    font-size: 3.5rem;
    color: var(--white);
    margin: 20px 0 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 2;
    position: relative;
    transform: translateY(6px);
    opacity: 0;
    animation: slideUp 800ms 200ms ease forwards;
}

.wedding-date {
    font-size: 1.4rem;
    color: var(--white);
    margin: 5px 0;
    font-weight: 600;
    font-style: italic;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 2;
    position: relative;
    opacity: 0;
    animation: fadeIn 900ms 350ms ease forwards;
}

.wedding-year {
    font-size: 1.1rem;
    color: var(--white);
    margin: 5px 0 25px;
    font-weight: 500;
    letter-spacing: 3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 2;
    position: relative;
}

.decorative-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--white), transparent);
    margin: 20px auto;
    z-index: 2;
    position: relative;
}

.invitation-text {
    font-size: 1rem;
    color: var(--white);
    line-height: 1.8;
    margin: 25px 0;
    font-style: italic;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 2;
    position: relative;
    opacity: 0;
    animation: fadeIn 900ms 500ms ease forwards;
}

.enter-button {
    display: inline-block;
    margin-top: 30px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    transform: translateY(6px);
    animation: popIn 700ms 700ms cubic-bezier(.2,.9,.2,1) forwards;
}

.enter-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(107, 76, 154, 0.4);
    background: linear-gradient(135deg, var(--purple-dark), var(--purple));
}

/* Icon and utility animations */

@keyframes slideUp {
    from { transform: translateY(28px); opacity: 0; }
    60%  { transform: translateY(-6px); opacity: 1; }
    to   { transform: translateY(0); opacity: 1; }
}

@keyframes popIn {
    0%   { transform: scale(.88) translateY(18px); opacity: 0; }
    60%  { transform: scale(1.06) translateY(-6px); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* tabs and icons animations */
.tab-button .tab-icon, .header-icon, .timeline-icon, .item-icon {
    width: 1.15em; height: 1.15em; vertical-align: middle; margin-right: 8px; display: inline-block; transition: transform 260ms cubic-bezier(.2,.9,.2,1), color 260ms ease;
}
.tab-button:hover .tab-icon { transform: translateY(-6px) scale(1.12); }
.header-icon { color: var(--purple); transform-origin: center; animation: float 3.6s ease-in-out infinite; }
.timeline-icon { color: var(--purple); opacity: .9; }
.item-icon { color: var(--purple); opacity: .85; }

/* subtle image hover for menu photos */
.menu-figure img, .photo { transition: transform 420ms cubic-bezier(.2,.9,.2,1), filter 420ms ease, box-shadow 420ms ease; will-change: transform, filter; }
.menu-figure:hover img, .photo:hover { transform: scale(1.08) translateY(-6px); filter: saturate(1.08) contrast(1.06); box-shadow: 0 18px 40px rgba(0,0,0,0.22); }

/* staggered entrance for menu figures */
.menu-images .menu-figure { opacity: 0; transform: translateY(18px) scale(.98); animation: photoIn 600ms ease forwards; }
.menu-images .menu-figure:nth-child(1) { animation-delay: 140ms; }
.menu-images .menu-figure:nth-child(2) { animation-delay: 260ms; }
.menu-images .menu-figure:nth-child(3) { animation-delay: 380ms; }
.menu-images .menu-figure:nth-child(4) { animation-delay: 500ms; }
.menu-images .menu-figure:nth-child(5) { animation-delay: 620ms; }
.menu-images .menu-figure:nth-child(6) { animation-delay: 740ms; }

@keyframes photoIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity:1; transform: translateY(0) scale(1); } }

/* small entrance for tab content */
.tab-content.active { animation: contentIn 520ms cubic-bezier(.2,.9,.2,1); }
@keyframes contentIn { 0% { opacity: 0; transform: translateY(12px) scale(.996); } 60% { transform: translateY(-6px) scale(1.006); opacity:1 } 100% { opacity:1; transform: translateY(0) scale(1);} }

/* button subtle breathing/glow */
.enter-button { box-shadow: 0 8px 28px rgba(107,76,154,0.12); }
.enter-button::after { content: ''; position: absolute; inset: -6px; border-radius: 999px; filter: blur(10px); opacity: 0; transition: opacity 300ms ease; pointer-events: none; }
.enter-button:hover::after { opacity: .18; box-shadow: 0 20px 60px rgba(107,76,154,0.18); }
.enter-button:active { transform: scale(.99); }

.decorative-elements {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.flower {
    color: var(--white);
    font-size: 1.5rem;
    opacity: 0.9;
    animation: float 3s ease-in-out infinite;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
}

.flower:nth-child(2) {
    animation-delay: 0.5s;
}

.flower:nth-child(3) {
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.menu-header {
    padding: 15px 20px;
    background: var(--bg-light);
    border-bottom: 2px solid var(--purple);
}

.back-link {
    color: var(--purple);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.back-link:hover {
    color: var(--purple-dark);
    text-decoration: underline;
}

/* Responsive Homepage */
@media (max-width: 768px) {
    .homepage-content {
        padding: 40px 25px;
    }
    
    .couple-names {
        font-size: 2.5rem;
    }
    
    .wedding-date {
        font-size: 1.2rem;
    }
    
    .couple-photo {
        max-width: 280px;
    }
    
    .enter-button {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .invitation-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .homepage-content {
        padding: 30px 20px;
    }
    
    .couple-names {
        font-size: 2rem;
    }
    
    .wedding-date {
        font-size: 1rem;
    }
    
    .couple-photo {
        max-width: 100%;
    }
    
    .enter-button {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    .decorative-elements {
        gap: 15px;
    }
    
    .flower {
        font-size: 1.2rem;
    }
}