:root {
    --bg-green: #28382c;
    --bg-green-dark: #202a22;
    --cream: #f6f2e9;
    --accent: #d2c7aa;
    --accent-strong: #00a6df;
    --accent-soft: #00b7ff1f;
    --danger: #e45757;
    --success: #72c28b;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background-color: var(--bg-green);
    color: var(--cream);
    -webkit-font-smoothing: antialiased;
}

.page-wrapper {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: radial-gradient(circle at top left, #384838, var(--bg-green-dark));
}

/* Large letters */

.letter {
    position: fixed;
    top: -10vh;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 18rem;
    color: rgba(246, 242, 233, 0.08);
    pointer-events: none;
    z-index: 0;
    transform: translate3d(0, 0, 0);
    transition: transform 0.1s linear;
}

.letter-b {
    left: -0rem;
}

.letter-m {
    right: -1rem;
}

/* Sections */

.hero,
.section,
.footer {
    position: relative;
    z-index: 1;
}

.hero {
    padding: 5rem 1rem 4rem;
    text-align: center;
}

.hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.small-text {
    font-size: 0.8rem;
    line-height: 1.6;
    margin: 0.2rem 0;
}

.bold {
    font-weight: 600;
}

.names {
    margin: 2.5rem 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.name-main {
    font-family: var(--font-serif);
    font-size: 2.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.and {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    opacity: 0.8;
}

.date-line,
.venue-line {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem 1.8rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease-out;
}

.btn-outline {
    border-color: var(--accent);
    color: var(--cream);
    background: transparent;
}

.btn-outline:hover {
    background-color: rgba(210, 199, 170, 0.1);
}

.btn-solid {
    background: var(--accent-strong);
    color: #ffffff;
    border-color: transparent;
}

.btn-solid:hover {
    filter: brightness(1.05);
}

.btn-alt {
    background: transparent;
    border-color: var(--accent-strong);
    color: var(--accent-strong);
}

.btn-alt:hover {
    background: var(--accent-soft);
}

.section {
    padding: 3.5rem 1.5rem;
}

.container {
    max-width: 820px;
    margin: 0 auto;
}

h2 {
    font-family: var(--font-serif);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 1.8rem;
    text-align: center;
}

.details {
    background: rgba(0, 0, 0, 0.2);
}

.timeline {
    border-left: 1px solid rgba(246, 242, 233, 0.18);
    margin-left: 1rem;
    padding-left: 1.5rem;
}

.timeline-item {
    margin-bottom: 1.6rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.55rem;
    top: 0.1rem;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background-color: var(--accent);
}

.time {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.info .title {
    font-weight: 500;
}

.info .text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.directions .text-center {
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.6;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.rsvp-intro {
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.rsvp-choice {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.choice-btn {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 999px;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.08s ease-out, box-shadow 0.08s ease-out;
}

.choice-btn.yes {
    background: #6cc48c;
    color: #123622;
}

.choice-btn.no {
    background: #f17272;
    color: #3b1010;
}

.choice-btn:active {
    transform: scale(0.98);
    box-shadow: 0 0 0 0 rgba(0,0,0,0.2);
}

/* Forms */

.rsvp-form {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 18px;
    padding: 1.5rem 1.2rem;
    margin-top: 0.5rem;
}

.field {
    margin-bottom: 1.1rem;
}

label,
.label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    opacity: 0.9;
}

input[type="text"],
textarea {
    width: 100%;
    border-radius: 999px;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    background: rgba(246, 242, 233, 0.08);
    color: var(--cream);
    outline: none;
}

textarea {
    border-radius: 16px;
    resize: vertical;
    min-height: 80px;
}

input::placeholder,
textarea::placeholder {
    color: rgba(246, 242, 233, 0.5);
}

.pill-row {
    display: flex;
    gap: 0.6rem;
}

.pill-row.small {
    flex-wrap: wrap;
}

.pill {
    border-radius: 999px;
    border: none;
    padding: 0.45rem 0.95rem;
    font-size: 0.85rem;
    background: rgba(246, 242, 233, 0.08);
    color: var(--cream);
    cursor: pointer;
    transition: background 0.12s;
}

.pill.active {
    background: var(--accent-strong);
    color: #fff;
}

.submit-row {
    margin-top: 1.2rem;
    text-align: center;
}

.rsvp-result {
    margin-top: 1.5rem;
    text-align: center;
}

.rsvp-result .message {
    font-size: 0.95rem;
}

.calendar-box {
    margin-top: 1rem;
}

.footer {
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.85;
}

/* Utilities */

.hidden {
    display: none !important;
}

/* Larger screens */

@media (min-width: 768px) {
    .hero {
        padding-top: 6rem;
        padding-bottom: 5rem;
    }

    .name-main {
        font-size: 3.2rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .rsvp-choice {
        flex-direction: row;
    }

    .choice-btn {
        max-width: 50%;
    }

    .letter {
        font-size: 36rem;            /* big again on tablet/desktop */
        top: -10vh;
    }

    .letter-b {
        left: -1rem;
    }

    .letter-m {
        right: -1rem;
    }
}
