* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    color: #2a2a2a;
    background: linear-gradient(135deg, #fef6e4 0%, #f3d2c1 100%);
    min-height: 100vh;
}

main.card {
    max-width: 640px;
    margin: 2rem auto;
    padding: 2rem 1.75rem;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

h1 {
    margin-top: 0;
    color: #b45253;
    font-size: 1.8rem;
}

p.lead {
    font-size: 1.1rem;
}

p.flash {
    background: #d8f3dc;
    border-left: 4px solid #2d6a4f;
    padding: 0.75rem 1rem;
    border-radius: 6px;
}

p.info {
    background: #fff3bf;
    border-left: 4px solid #f08c00;
    padding: 0.75rem 1rem;
    border-radius: 6px;
}

p.footnote {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #777;
}

form.rsvp {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

form.rsvp fieldset {
    border: 1px solid #e5d5c8;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

form.rsvp fieldset legend {
    padding: 0 0.4rem;
    font-weight: 600;
}

form.rsvp label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.95rem;
}

form.rsvp label.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

form.rsvp .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

form.rsvp input[type=text],
form.rsvp input[type=tel],
form.rsvp input[type=number],
form.rsvp textarea {
    padding: 0.55rem 0.7rem;
    border: 1px solid #d4c5b6;
    border-radius: 6px;
    font: inherit;
    background: #fffaf3;
}

form.rsvp textarea {
    resize: vertical;
}

form.rsvp button {
    margin-top: 0.5rem;
    padding: 0.85rem 1rem;
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: #b45253;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

form.rsvp button:hover {
    background: #8e3d3e;
}

@media (max-width: 480px) {
    main.card { margin: 0; border-radius: 0; padding: 1.25rem; }
    form.rsvp .row { grid-template-columns: 1fr; }
}
