:root {
  --ink: #302c29;
  --muted: #746e68;
  --paper: #fbf8f2;
  --card: #fffdf9;
  --accent: #765849;
  --accent-dark: #594035;
  --sage: #68745d;
  --line: #ddd4c7;
  --error: #9b332d;
  --success: #4f6848;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top, #fffdf9 0, var(--paper) 42rem); }
button, input, textarea, select { font: inherit; }
button, input[type="checkbox"], input[type="radio"] { cursor: pointer; }
.hidden { display: none !important; }

.site-header { display: flex; align-items: center; justify-content: space-between; max-width: 1050px; margin: auto; padding: 1.25rem 1.5rem; }
.site-header p { margin: 0; font-family: Georgia, serif; font-style: italic; }
.monogram { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); text-decoration: none; font: 1.35rem Georgia, serif; }
main { width: min(100% - 2rem, 920px); margin: 2rem auto 5rem; }
.panel, .form-shell, .invitation { background: color-mix(in srgb, var(--card) 96%, transparent); border: 1px solid var(--line); box-shadow: 0 18px 60px rgb(67 52 40 / 8%); }
.panel { padding: clamp(2rem, 6vw, 4rem); border-radius: 1rem; }
.narrow { max-width: 560px; margin: 8vh auto; }
.centered { text-align: center; }
.invitation { text-align: center; padding: clamp(2.5rem, 8vw, 6rem); position: relative; border-radius: 50% 50% 1rem 1rem / 4rem 4rem 1rem 1rem; overflow: hidden; }
.invitation::before, .invitation::after { content: ""; position: absolute; width: 14rem; height: 14rem; border: 1px solid #c8d0bd; border-radius: 55% 45% 60% 40%; opacity: .5; }
.invitation::before { top: -8rem; left: -6rem; transform: rotate(35deg); }
.invitation::after { right: -7rem; bottom: -8rem; transform: rotate(-25deg); }
.botanical { font-size: 2.5rem; color: var(--sage); }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .75rem; font-weight: 700; color: var(--sage); }
h1, h2, legend { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.1; }
h1 { font-size: clamp(2.2rem, 7vw, 4.8rem); margin: .5rem 0 1.25rem; }
h2 { font-size: 1.5rem; }
.lead { max-width: 600px; margin: 0 auto 1.5rem; font: italic 1.2rem Georgia, serif; }
.for-line { margin: 2rem 0; }
.date { color: var(--accent); font: 1.4rem Georgia, serif; margin: 2.5rem 0; }
.event-stack { display: grid; gap: 1.25rem; margin: 2rem 0 2.5rem; text-align: left; }
.event-card { overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: .8rem; }
.event-content { padding: clamp(1.35rem, 4vw, 2.25rem); }
.event-image { display: block; width: 100%; max-height: 30rem; object-fit: cover; }
.event-copy, .multiline { white-space: pre-line; }
.event-time { color: var(--accent); font: 1.15rem Georgia, serif; }
.event-number { color: var(--sage); letter-spacing: .16em; font-size: .75rem; }
.muted, .hint { color: var(--muted); }
.small { font-size: .88rem; }
.button { border: 1px solid var(--accent); border-radius: 999px; padding: .8rem 1.4rem; background: transparent; color: var(--accent-dark); font-weight: 700; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #b9a28f; outline-offset: 2px; }
.button.primary { background: var(--accent); color: white; }
.button.quiet { border-color: transparent; }
.button.full { width: 100%; }
.form-shell { border-radius: 1rem; overflow: hidden; }
.form-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 2rem clamp(1.25rem, 5vw, 3.5rem) 1rem; }
.form-heading h1 { font-size: clamp(2rem, 6vw, 3.5rem); margin-bottom: .2rem; }
.progress { height: 4px; background: #ebe4da; }
.progress span { display: block; height: 100%; width: 10%; background: var(--sage); transition: width .2s; }
#rsvpForm { padding: 0 clamp(1.25rem, 5vw, 3.5rem) 3rem; }
fieldset { border: 0; border-top: 1px solid var(--line); padding: 2.2rem 0; margin: 0; }
legend { font-size: 1.7rem; padding: 0 1rem 0 0; }
label { display: block; font-weight: 650; margin: 1rem 0; }
input[type="text"], input[type="password"], input[type="number"], input:not([type]), textarea, select { width: 100%; margin-top: .45rem; border: 1px solid #bfb5aa; border-radius: .45rem; background: white; padding: .72rem .8rem; color: var(--ink); }
textarea { resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 1.15rem; height: 1.15rem; vertical-align: -.18rem; accent-color: var(--accent); margin-right: .45rem; }
.person-card { border: 1px solid var(--line); border-radius: .75rem; padding: 1.3rem; margin: 1rem 0; background: #fff; }
.person-card h2 { margin: 0; }
.person-type { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.choice-row { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.choice-row label, .check-list label, .diet-grid label, .agree { font-weight: 500; }
.diet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.conditional { border-left: 3px solid var(--sage); padding-left: 1rem; max-width: 28rem; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.optional { color: var(--muted); font: .8rem ui-sans-serif, system-ui; text-transform: uppercase; letter-spacing: .1em; }
.text-link { color: var(--accent-dark); font-weight: 700; }
.error { min-height: 1.5em; color: var(--error); font-weight: 650; }
.summary-error:not(:empty) { padding: 1rem; border: 1px solid #dca49f; background: #fff5f4; border-radius: .5rem; }
.submit-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.success-mark { display: grid; place-items: center; width: 4rem; height: 4rem; margin: 0 auto 1.5rem; border-radius: 50%; background: var(--success); color: white; font-size: 2rem; }
footer { text-align: center; color: var(--muted); padding: 2rem; font-family: Georgia, serif; }

@media (max-width: 650px) {
  main { margin-top: .75rem; }
  .two-column, .diet-grid { grid-template-columns: 1fr; }
  .form-heading { align-items: flex-start; flex-direction: column; }
  .invitation { border-radius: 5rem 5rem 1rem 1rem / 2rem 2rem 1rem 1rem; }
}

@media print {
  .site-header, footer, .button, .progress { display: none !important; }
  body, main { background: white; margin: 0; width: 100%; }
  .panel, .form-shell, .invitation { border: 0; box-shadow: none; }
}
