:root {
    --burgundy: #6d3748;
    --mauve: #b08aa4;
    --green: #dce5d8;
    --thistle: #d8bfd8;
    --cream: #fbf7f1;
    --text: #2a2526;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--text);
    font-family: 'Courier Prime', monospace;
    line-height: 1.7;
}

.hero {
    min-height: 100vh;
    background-image: url("images/cover.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(35, 28, 30, 0.42);
}

.nav {
    position: absolute;
    top: 32px;
    z-index: 3;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 20px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    color: white;
}

.script-title,
.script-heading {
    font-family: 'Alex Brush', cursive;
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--burgundy);
    line-height: 1;
    margin-bottom: 1rem;
}

.hero .script-title {
    color: white;
}

h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    color: white;
    text-transform: uppercase;
}

.hero-date,
.countdown-small {
    margin-top: 1rem;
    color: white;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.section {
    max-width: 850px;
    margin: 0 auto;
    padding: 110px 24px;
    text-align: center;
    border-bottom: 1px solid rgba(109, 55, 72, 0.18);
}

.section:nth-of-type(even) {
    background: linear-gradient(180deg, var(--cream), #f7f1f4);
    max-width: none;
}

.section:nth-of-type(even) > * {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: block;
    margin-bottom: 1rem;
    color: var(--mauve);
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.75rem;
}

h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 400;
    color: var(--burgundy);
    margin-bottom: 1.5rem;
    letter-spacing: 0.04em;
}

p {
    max-width: 720px;
    margin: 0 auto 1.2rem;
    font-size: 1rem;
}

.split-list {
    max-width: 650px;
    margin: 3rem auto 0;
}

.split-list div {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(109, 55, 72, 0.18);
    text-align: left;
}

.split-list span {
    color: #6f6668;
}

.faq-list {
    max-width: 700px;
    margin: 3rem auto 0;
    text-align: left;
}

details {
    border-bottom: 1px solid rgba(109, 55, 72, 0.18);
    padding: 22px 0;
}

summary {
    cursor: pointer;
    color: var(--burgundy);
    font-weight: 700;
}

details p {
    margin-top: 1rem;
}

.rsvp-form {
    max-width: 620px;
    margin: 3rem auto 0;
    display: grid;
    gap: 18px;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(109, 55, 72, 0.25);
    background: rgba(255,255,255,0.75);
    color: var(--text);
    font-family: 'Courier Prime', monospace;
    font-size: 1rem;
}

.rsvp-form button {
    padding: 16px;
    border: none;
    background: var(--burgundy);
    color: white;
    font-family: 'Courier Prime', monospace;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
}

#success-message {
    display: none;
    color: var(--burgundy);
    font-weight: 700;
}

.final {
    border-bottom: none;
}

footer {
    text-align: center;
    padding: 40px 20px;
    color: #7d7070;
}

@media (max-width: 700px) {
    .nav {
        gap: 14px;
        top: 20px;
    }

    .nav a {
        font-size: 0.65rem;
    }

    .section {
        padding: 80px 22px;
    }

    .split-list div {
        display: block;
        text-align: center;
    }

    .split-list span {
        display: block;
        margin-top: 8px;
    }
}
