:root {
    --forest: #1f3a2b;
    --moss: #3d5a3a;
    --gold: #c9a14a;
    --gold-deep: #a8853a;
    --cream: #f5efe1;
    --cream-soft: #faf6ec;
    --ink: #2a2a2a;
    --muted: #6b6557;
    --line: #e3dcc9;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--cream);
}

.banner {
    position: relative;
    width: 100%;
    height: 460px;
    overflow: hidden;
    background-color: #14271d;
    background-image: url('/banner.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 65% 55% at 50% 50%, rgba(20, 39, 29, 0.72) 0%, rgba(20, 39, 29, 0.4) 50%, rgba(20, 39, 29, 0.15) 100%),
        linear-gradient(180deg, rgba(20, 39, 29, 0.1) 0%, rgba(20, 39, 29, 0.35) 70%, rgba(20, 39, 29, 0.7) 100%);
}

.banner-overlay {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--cream);
    padding: 0 1.5rem;
}

.banner-overlay .eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.banner-overlay h1 {
    font-family: 'Cormorant Garamond', 'Garamond', Georgia, serif;
    font-weight: 500;
    font-size: 4.5rem;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.banner-overlay .subtitle {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--cream-soft);
    opacity: 0.92;
}

.banner-overlay .venue {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.95;
}

.banner-overlay .rule {
    display: inline-block;
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 0 0.75rem;
    vertical-align: middle;
    opacity: 0.7;
}

.container {
    max-width: 800px;
    margin: -70px auto 4rem;
    padding: 0 1.25rem;
    position: relative;
    z-index: 2;
}

.announcement {
    background: var(--cream-soft);
    padding: 3.5rem 2.5rem 3rem;
    border-radius: 4px;
    border: 1px solid var(--line);
    box-shadow:
        0 1px 0 var(--line),
        0 24px 48px -24px rgba(31, 58, 43, 0.25);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.announcement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-deep) 50%, var(--gold) 100%);
    border-radius: 4px 4px 0 0;
}

.announcement-lede {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.announcement-names {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    font-size: 2.75rem;
    line-height: 1.15;
    color: var(--forest);
    letter-spacing: 0.005em;
    margin-bottom: 1.25rem;
}

.announcement-names .amp {
    font-style: italic;
    font-weight: 400;
    color: var(--gold-deep);
    margin: 0 0.2em;
}

.announcement-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0.5rem auto 1.75rem;
}

.announcement-rule::before,
.announcement-rule::after {
    content: '';
    width: 60px;
    height: 1px;
    background: var(--gold);
    opacity: 0.6;
}

.announcement-rule svg {
    width: 16px;
    height: 16px;
    opacity: 0.85;
}

.announcement-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 0;
}

.announcement-details > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
}

.announcement-details dt {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--moss);
    font-weight: 600;
}

.announcement-details dd {
    font-size: 1.05rem;
    color: var(--ink);
    line-height: 1.5;
    margin: 0;
}

.form-container {
    background: var(--cream-soft);
    padding: 3rem 2.5rem;
    border-radius: 4px;
    box-shadow:
        0 1px 0 var(--line),
        0 24px 48px -24px rgba(31, 58, 43, 0.25);
    border: 1px solid var(--line);
    position: relative;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-deep) 50%, var(--gold) 100%);
    border-radius: 4px 4px 0 0;
}

.rsvp-deadline {
    text-align: center;
    font-size: 0.88rem;
    color: var(--muted);
    font-style: italic;
    margin-bottom: 2rem;
}

.radio-group {
    border: none;
    padding: 0;
    margin: 0;
}

.radio-group legend {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--moss);
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--ink);
    cursor: pointer;
    padding: 0.5rem 0;
}

.radio-label input[type="radio"] {
    width: auto;
    accent-color: var(--moss);
    cursor: pointer;
    flex-shrink: 0;
}

.form-container h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--forest);
    text-align: center;
    font-size: 2.25rem;
    letter-spacing: 0.01em;
}

.form-container .lede {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--moss);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 3px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group textarea {
    resize: vertical;
    min-height: 96px;
    line-height: 1.5;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b3ad9d;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--moss);
    box-shadow: 0 0 0 3px rgba(61, 90, 58, 0.12);
}

.form-group label .optional {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: none;
    color: var(--muted);
    margin-left: 0.4em;
    font-style: italic;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    margin-top: 0.5rem;
    background: var(--forest);
    color: var(--cream);
    border: none;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    position: relative;
}

.submit-btn:hover {
    background: var(--moss);
    box-shadow: 0 6px 16px -8px rgba(31, 58, 43, 0.4);
}

.submit-btn:active {
    transform: translateY(1px);
}

.submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 3px;
    text-align: center;
    font-size: 0.95rem;
    display: none;
    border: 1px solid transparent;
}

.message.success {
    background-color: #eef3e8;
    color: var(--forest);
    border-color: #cfd9bf;
    display: block;
}

.message.error {
    background-color: #f7e9e4;
    color: #7a3225;
    border-color: #e6c9be;
    display: block;
}

.info {
    margin-top: 2.5rem;
    padding: 2.5rem 2.5rem 2rem;
    background: transparent;
}

.info-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    font-size: 1.9rem;
    color: var(--forest);
    text-align: center;
    margin-bottom: 0.5rem;
}

.info-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background: var(--gold);
    opacity: 0.6;
    margin: 0.75rem auto 0;
}

.info-block {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--line);
}

.info-block:last-child {
    border-bottom: none;
}

.info-block h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--moss);
    margin-bottom: 0.85rem;
}

.info-block p {
    color: var(--ink);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.info-block p:last-child {
    margin-bottom: 0;
}

.schedule {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0;
}

.schedule > div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1rem;
    align-items: baseline;
}

.schedule dt {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--gold-deep);
    margin: 0;
}

.schedule dd {
    color: var(--ink);
    margin: 0;
    line-height: 1.5;
}

.footer-mark {
    text-align: center;
    margin: 2rem auto 3rem;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.footer-mark .leaf {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin: 0 0.6rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .banner {
        height: 380px;
    }

    .banner-overlay h1 {
        font-size: 3rem;
    }

    .banner-overlay .subtitle {
        font-size: 1.15rem;
    }

    .banner-overlay .venue {
        font-size: 0.7rem;
        letter-spacing: 0.14em;
    }

    .banner-overlay .venue .rule {
        display: none;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .container {
        margin-top: -50px;
    }

    .announcement {
        padding: 2.5rem 1.5rem 2rem;
    }

    .announcement-names {
        font-size: 2rem;
    }

    .announcement-rule::before,
    .announcement-rule::after {
        width: 36px;
    }

    .info {
        padding: 1.5rem 1.5rem 1rem;
    }

    .schedule > div {
        grid-template-columns: 75px 1fr;
        gap: 0.75rem;
    }
}
