:root {
    --bg-color: #f7f6f0;
    --bg-section-accent: #f2f1e8;
    --text-primary: #4d4930;
    --text-secondary: #6b6545;
    --text-light: #a3a08d;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    --card-bg: #fffdf8;
    --card-bg-accent: #fffefb;
    --accent: #b09a5e;
    --accent-light: #cdb87a;
    --accent-muted: rgba(176, 154, 94, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 40px 20px;
}

/* Language Toggle */
.lang-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 2000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.lang-toggle button {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 4px 2px;
}

.lang-toggle button.active {
    color: var(--accent);
    font-weight: 700;
    transform: scale(1.05);
}

/* Top Header */
.top-header {
    text-align: center;
    margin-bottom: 40px;
}

.sub-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-primary);
    font-weight: 600;
}

.heart {
    font-style: normal;
    font-size: 1rem;
    color: var(--accent);
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
}

.hero-section::after {
    content: '— ♡ —';
    display: block;
    text-align: center;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--accent-light);
    font-size: 1.1rem;
    opacity: 0.6;
    margin-top: 16px;
    letter-spacing: 6px;
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    background-color: #e8dfc4;
    padding: 6px 14px;
    margin-bottom: 30px;
    border-radius: 2px;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.badge:hover,
.badge:visited,
.badge:focus {
    background-color: #ddd0aa;
    text-decoration: none;
    color: var(--text-primary);
}

.names {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 4.5rem;
    line-height: 1.05;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.date {
    font-size: 1.35rem;
    margin-bottom: 8px;
    font-weight: 400;
}

.location {
    font-size: 0.95rem;
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: 50px;
}

.hero-image-wrapper {
    width: 100%;
    aspect-ratio: 0.75;
    overflow: hidden;
    border-radius: 2px;
}

.hero-tagline {
    margin-top: 20px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.15rem;
    font-weight: 700;
    color: #9c8b6e;
    letter-spacing: 0.3px;
    line-height: 1.6;
    text-align: center;
}

.travel-tagline {
    margin-top: 20px;
    margin-bottom: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section shared */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-style: italic;
    text-align: center;
    margin-bottom: 20px;
    color: #6a6448;
}

.section-title::after {
    content: '';
    display: block;
    width: 36px;
    height: 1px;
    background-color: var(--accent);
    margin: 14px auto 0;
    opacity: 0.5;
}

.title-emoji {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 45px;
    opacity: 0.85;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.rsvp-section .title-emoji {
    margin-bottom: 20px;
}

/* Travel Section */
.travel-section {
    margin: 0 -20px 70px -20px;
    padding: 60px 20px;
    background-color: var(--bg-section-accent);
}

.travel-section::after {
    content: '— ♡ —';
    display: block;
    text-align: center;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--accent-light);
    font-size: 1.1rem;
    opacity: 0.6;
    margin-top: 16px;
    letter-spacing: 6px;
}

.travel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.travel-box {
    aspect-ratio: 1;
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.travel-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.travel-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* RSVP / Calendar Section */
.rsvp-section {
    margin-bottom: 70px;
    text-align: center;
    background-color: var(--card-bg);
    padding: 60px 25px;
    border-radius: 2px;
    border-top: 2px solid rgba(176, 154, 94, 0.18);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
}

.rsvp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.calendar-container {
    padding: 10px 0;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.calendar-button {
    background-color: var(--bg-section-accent);
    padding: 20px 32px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.add-to-calendar {
    font-size: 0.85rem;
    letter-spacing: 1.2px;
    color: var(--text-primary);
    text-transform: uppercase;
    font-weight: 700;
}

.calendar-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    font-style: italic;
}

.calendar-links .dot {
    display: none;
}

.calendar-links a {
    background-color: var(--accent-muted);
    border: 1px solid rgba(176, 154, 94, 0.3);
    padding: 5px 16px;
    border-radius: 20px;
    color: var(--accent);
    font-weight: 600;
    font-style: normal;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.calendar-links a:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fffdf8;
    text-decoration: none;
}

/* Details Section */
.details-section {
    margin-bottom: 70px;
    background-color: var(--card-bg-accent);
    padding: 60px 25px;
    border-radius: 2px;
    border-top: 2px solid rgba(176, 154, 94, 0.18);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
}

.events {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.event-card {
    display: flex;
    gap: 24px;
    align-items: center;
}

.event-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 2px;
}

.event-info {
    flex: 1;
}

.event-label {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--accent);
    opacity: 0.9;
    margin-bottom: 8px;
}

.event-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 6px;
    line-height: 1.2;
}

.event-address {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Footer Card */
.footer-card {
    background-color: var(--card-bg);
    padding: 60px 30px;
    text-align: center;
    border-radius: 2px;
    border-top: 2px solid rgba(176, 154, 94, 0.18);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
}

.icon-book {
    margin-bottom: 24px;
    color: var(--text-primary);
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-style: italic;
    margin-top: 15px;
    margin-bottom: 30px;
    line-height: 1.1;
    color: #4a4635;
}

.rsvp-notice {
    font-size: 0.70rem;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 50px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.70rem;
    letter-spacing: 1.5px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.dot {
    color: var(--text-light);
}

.footer-contact {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 30px;
}

.footer-contact a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

.footer-contact a:hover {
    color: var(--accent);
}

@media (max-width: 480px) {
    .names {
        font-size: 3.5rem;
    }

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

    .event-card {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .dot {
        display: none;
    }
}