:root {
  color: #1d2433;
  background: #f3f5f8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body { margin: 0; }

.page-shell {
  width: min(100% - 2rem, 68rem);
  margin: 0 auto;
  padding: 3rem 0;
}

.panel {
  background: #fff;
  border: 1px solid #dde2eb;
  border-radius: 0.75rem;
  box-shadow: 0 1rem 2.5rem rgb(28 38 58 / 8%);
  padding: 2rem;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.site-nav form { margin: 0; }
.site-nav button { margin: 0; }
.button-link { background: transparent; color: #315efb; padding: 0; }

.section-heading { align-items: center; display: flex; gap: 1rem; justify-content: space-between; }
.section-heading .button { margin-top: 0; }
.event-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.event-card { border: 1px solid #dde2eb; border-radius: 0.6rem; padding: 1rem; }
.event-card h2 { font-size: 1.15rem; margin: 0; }
.response-counts { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.response-counts div { display: grid; gap: 0.2rem; }
.response-counts dt { color: #637085; font-size: 0.9rem; }
.response-counts dd { font-size: 1.4rem; font-weight: 700; margin: 0; }
.empty-state { border: 1px dashed #b8c1d1; border-radius: 0.5rem; padding: 1.5rem; }
.secondary-link { margin-left: 0.75rem; }
.inline-form, .inline-actions { align-items: end; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.inline-form input { flex: 1 1 14rem; }
.inline-form button, .inline-actions button { margin-top: 0; }
.invitee-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.invitee-card { border: 1px solid #dde2eb; border-radius: 0.6rem; padding: 1rem; }
.status { font-size: 0.9rem; font-weight: 650; }
.status-pending { color: #8a5b00; }
.status-attending { color: #11764b; }
.status-not_attending { color: #b42318; }
.danger { background: #b42318; }
.sensitive-panel input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.guest-card { background: #fff; border-radius: 1rem; margin: 6vh auto; max-width: 42rem; padding: clamp(1.5rem, 5vw, 4rem); }
.guest-card h1 { font-size: clamp(2rem, 6vw, 3.75rem); line-height: 1.05; margin: 0.35rem 0 1.25rem; }
.guest-classic { border-top: 0.5rem solid var(--accent-color); box-shadow: 0 1rem 3rem rgb(28 38 58 / 12%); }
.guest-minimal { border: 1px solid #dde2eb; border-left: 0.5rem solid var(--accent-color); }
.eyebrow, .guest-name { color: var(--accent-color); font-size: 0.85rem; font-weight: 750; letter-spacing: 0.08em; margin: 0; text-transform: uppercase; }
.guest-description { font-size: 1.125rem; line-height: 1.6; white-space: pre-wrap; }
.event-details { display: grid; gap: 0.75rem; margin: 2rem 0; }
.event-details div { border-left: 2px solid var(--accent-color); padding-left: 0.75rem; }
.event-details dt { color: #637085; font-size: 0.9rem; }
.event-details dd { font-weight: 650; margin: 0.2rem 0 0; }
.guest-time { color: #637085; font-weight: 650; }
.rsvp-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.rsvp-actions button { background: var(--accent-color); margin-top: 0; }
.rsvp-actions .secondary-button { background: #e9edf3; color: #1d2433; }

label { display: block; font-weight: 650; margin: 1rem 0 0.35rem; }

input, textarea, select, button {
  font: inherit;
}

input, textarea, select {
  width: 100%;
  border: 1px solid #b8c1d1;
  border-radius: 0.45rem;
  padding: 0.65rem 0.75rem;
}

button, .button {
  display: inline-block;
  border: 0;
  border-radius: 0.45rem;
  background: #315efb;
  color: #fff;
  cursor: pointer;
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  text-decoration: none;
}

.error { color: #b42318; margin-top: 0.35rem; }
.muted { color: #637085; }

@media (max-width: 40rem) {
  .page-shell { width: min(100% - 1rem, 68rem); padding: 1rem 0; }
  .panel { border-radius: 0.5rem; padding: 1.25rem; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .response-counts { gap: 0.75rem; }
  .inline-form, .inline-actions { align-items: stretch; flex-direction: column; }
  .secondary-link { margin-left: 0; }
  .guest-card { margin: 0; min-height: 100vh; }
  .rsvp-actions { flex-direction: column; }
}
