:root {
  --accent: #8a6d3b;
  --accent-dark: #6b5329;
  --ink: #2b2620;
  --paper: #fdfbf7;
  --line: #e6ddcb;
  --muted: #7a6f5e;
  --yes: #3f6b4f;
  --no: #9a4a3f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Georgia', 'Iowan Old Style', 'Times New Roman', serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.hero {
  text-align: center;
  padding: 64px 20px 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.hero .eyebrow {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 40px;
  margin: 0 0 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hero .meta {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 18px;
}

.hero .desc {
  font-size: 16px;
  color: #444;
  max-width: 480px;
  margin: 0 auto;
}

.hero img.header-image {
  max-width: 100%;
  border-radius: 6px;
  margin-bottom: 24px;
}

.section-title {
  font-size: 22px;
  text-align: center;
  margin: 0 0 6px;
  font-weight: 400;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  margin-bottom: 28px;
}

.search-box {
  position: relative;
  margin-bottom: 12px;
}

input[type="text"], input[type="password"], select, textarea {
  width: 100%;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

input[type="text"]:focus, input[type="password"]:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(138, 109, 59, 0.12);
}

.results {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.result-item {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.result-item:last-child { border-bottom: none; }
.result-item:hover { background: #faf6ec; }

.result-item .name { font-size: 16px; }
.result-item .status-pill { font-size: 11px; padding: 4px 10px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.05em; }
.status-pill.yes { background: #e6f0e9; color: var(--yes); }
.status-pill.no { background: #f4e6e3; color: var(--no); }
.status-pill.pending { background: #f1ede2; color: var(--muted); }

.empty-note {
  text-align: center;
  color: var(--muted);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  margin-top: 16px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  margin-top: 20px;
}

.card h2 {
  font-weight: 400;
  font-size: 24px;
  margin: 0 0 4px;
  text-align: center;
}

.card .party-label {
  text-align: center;
  color: var(--muted);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  margin-bottom: 22px;
}

.rsvp-choices {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.choice-btn {
  flex: 1;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-align: center;
  color: var(--ink);
  transition: all 0.15s ease;
}

.choice-btn.selected.yes { border-color: var(--yes); background: #eef5f0; color: var(--yes); }
.choice-btn.selected.no { border-color: var(--no); background: #f8efed; color: var(--no); }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

textarea { resize: vertical; min-height: 70px; font-family: inherit; }

.btn-primary {
  width: 100%;
  padding: 15px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  width: 100%;
  padding: 13px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
}

.confirmation {
  text-align: center;
  padding: 20px 10px;
}

.confirmation .icon {
  font-size: 42px;
  margin-bottom: 10px;
}

.confirmation h2 { margin-bottom: 8px; }
.confirmation p { color: var(--muted); font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 15px; }

.footer-note {
  text-align: center;
  margin-top: 50px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  color: var(--muted);
}

.hidden { display: none !important; }

.spinner-inline {
  text-align: center;
  color: var(--muted);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  padding: 10px;
}
