:root {
    /* Primary text color used across the site. */
    --text-primary: #2a2630;

    /* Card/surface background for hero, tabs, and content panels. */
    --surface-card: #fffdf9;

    /* Soft decorative accent used in the hero glow. */
    --hero-glow-accent: #efcfbf;

    /* Romantic accent for labels and highlighted text. */
    --text-highlight: #ba7a7d;

    /* Accent color used for the wedding date text. */
    --date-accent: #5f9de3;

    /* Color for the main Save the Date headline only. */
    --hero-title-accent: #5f9de3;

    /* Start color for the RSVP call-to-action gradient. */
    --cta-accent-start: #7c8f7b;

    /* Global shadow tone for elevated cards. */
    --elevation-shadow: 0 18px 48px rgba(36, 26, 29, 0.16);
}

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

body {
    min-height: 100vh;
    font-family: 'Manrope', sans-serif;
    color: var(--text-primary);
    background:
        /* Dusty blue glow in the upper-left for atmosphere. */
        radial-gradient(circle at 12% 8%, rgba(130, 154, 181, 0.32), transparent 42%),
        /* Pale yellow glow in the lower-right to warm the scene. */
        radial-gradient(circle at 90% 88%, rgba(246, 229, 154, 0.38), transparent 46%),
        /* Main dusty-blue to pale-yellow background blend. */
        linear-gradient(140deg, #d7e3ee 0%, #e4edf4 48%, #f8efb6 100%);
    padding: 28px 16px;
}

.site-shell {
    width: min(1040px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.hero-card,
.tab-panels,
.tabs {
    background: var(--surface-card);
    /* Subtle border to separate card surfaces from the page background. */
    border: 1px solid rgba(165, 122, 66, 0.18);
    border-radius: 20px;
    box-shadow: var(--elevation-shadow);
}

.hero-card {
    text-align: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: '';
    position: absolute;
    inset: auto -80px -80px auto;
    width: 220px;
    height: 220px;
    /* Decorative glow behind hero content for depth. */
    background: radial-gradient(circle, rgba(239, 207, 191, 0.7), transparent 68%);
    pointer-events: none;
}

.hero-image {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 18px;
}

.eyebrow {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-highlight);
    font-size: 0.77rem;
    font-weight: 700;
    margin-bottom: 8px;
}

h1,
h2,
h3 {
    font-family: 'Great Vibes', cursive;
}

h1 {
    font-size: clamp(2.1rem, 5vw, 4rem);
    line-height: 1;
    color: var(--hero-title-accent);
}

.date {
    font-size: clamp(1.3rem, 3.5vw, 2rem);
    color: var(--date-accent);
    margin-top: 8px;
    font-weight: 700;
}

.location {
    margin-top: 6px;
    /* Secondary body text color for less emphasis than headings/date. */
    color: #5f5a68;
}

.tabs {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-button {
    /* Soft accent border for inactive tabs. */
    border: 1px solid rgba(186, 122, 125, 0.35);
    border-radius: 999px;
    /* Inactive tab fill. */
    background: #fff;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

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

.tab-button.active {
    /* Active tab blue fill when a tab is selected. */
    background: #3f79b8;
    /* White text for contrast on active blue tab. */
    color: #fff;
    border-color: #3f79b8;
}

.tab-panels {
    padding: 24px;
    min-height: 270px;
}

.tab-panel {
    display: none;
    animation: fade 280ms ease;
}

.tab-panel.active {
    display: block;
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin-bottom: 8px;
}

.tab-panel p {
    /* Standard paragraph tone inside each tab panel. */
    color: #4f4a57;
    margin-bottom: 16px;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.accommodations-grid {
    grid-template-columns: minmax(280px, 760px);
    justify-content: center;
}

.accommodations-grid .info-card {
    width: 100%;
}

.info-card {
    /* Gentle accent border to group card content. */
    border: 1px solid rgba(124, 143, 123, 0.35);
    border-radius: 12px;
    /* Subtle off-white gradient for card depth. */
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(250, 246, 241, 1) 100%);
    padding: 14px;
}

h3 {
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.accommodation-card-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
}

.hotel-title {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    line-height: 1.05;
    margin-bottom: 10px;
    text-align: center;
}

.hotel-slideshow {
    margin: 10px 0 14px;
    padding: 10px;
    border: 1px solid rgba(63, 121, 184, 0.28);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(238, 246, 255, 0.75) 0%, rgba(255, 255, 255, 1) 100%);
}

.hotel-slide-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(63, 121, 184, 0.2);
    display: block;
}

.hotel-slide-controls {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.hotel-slide-button {
    border: 1px solid rgba(63, 121, 184, 0.45);
    background: #fff;
    color: #2f5f93;
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 700;
    cursor: pointer;
}

.hotel-slide-button:hover {
    background: #eaf3ff;
}

.hotel-slide-status {
    font-weight: 700;
    color: #4f4a57;
}

.rsvp-link {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    /* White text on RSVP button for accessibility. */
    color: #fff;
    /* Accent gradient for RSVP call-to-action emphasis. */
    background: linear-gradient(90deg, var(--cta-accent-start), #96ab95);
    font-weight: 700;
}

.registry-links {
    display: grid;
    gap: 10px;
    justify-items: start;
}

.registry-link {
    text-align: center;
    line-height: 1.2;
}

.rsvp-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.rsvp-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.95rem;
    color: #3f3a47;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    border: 1px solid rgba(63, 121, 184, 0.35);
    border-radius: 10px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    outline: 2px solid rgba(63, 121, 184, 0.28);
    border-color: #3f79b8;
}

.full-width {
    grid-column: 1 / -1;
}

.rsvp-actions {
    display: flex;
    justify-content: flex-start;
}

.rsvp-submit {
    border: none;
    cursor: pointer;
}

.rsvp-status {
    margin: 4px 0 14px;
    font-weight: 700;
    color: #3f79b8;
}

.rsvp-results {
    border-top: 1px solid rgba(95, 157, 227, 0.28);
    padding-top: 12px;
}

.rsvp-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.clear-rsvp-button {
    border: 1px solid rgba(63, 121, 184, 0.4);
    background: #fff;
    color: #2f5f93;
    border-radius: 999px;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: 700;
}

.clear-rsvp-button:hover {
    background: #eef5ff;
}

.rsvp-list {
    list-style: none;
    display: grid;
    gap: 8px;
}

.rsvp-item,
.rsvp-empty {
    border: 1px solid rgba(95, 157, 227, 0.25);
    border-radius: 10px;
    background: #fff;
    padding: 10px 12px;
    display: grid;
    gap: 4px;
}

.rsvp-item strong {
    font-size: 1rem;
}

.rsvp-item span,
.rsvp-empty {
    color: #4f4a57;
    font-size: 0.92rem;
}

.rsvp-time {
    color: #6a6674;
    font-size: 0.85rem;
}

.coming-soon {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-highlight);
}

.game-frame {
    width: 100%;
    min-height: 760px;
    border: 1px solid rgba(186, 122, 125, 0.28);
    border-radius: 14px;
    background: #fff;
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .hero-card,
    .tab-panels {
        padding: 18px;
    }

    .tabs {
        gap: 8px;
    }

    .tab-button {
        width: 100%;
        text-align: center;
    }

    .hotel-slide-controls {
        flex-wrap: wrap;
        justify-content: center;
    }

    .registry-links {
        justify-items: stretch;
    }

    .registry-link {
        width: 100%;
    }

    .game-frame {
        min-height: 680px;
    }
}