:root {
  --border: #d4d4d8;
  --muted: #71717a;
  --text: #18181b;
  --focus: #a1a1aa;
}

* { box-sizing: border-box; }

body {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  background: #fff;
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.brand { color: inherit; font-weight: 600; text-decoration: none; }
.account { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .875rem; }
.account form { margin: 0; }

h1 { margin: 0 0 1rem; font-size: 1.75rem; line-height: 1.2; letter-spacing: -.02em; }
h2 { margin: 0 0 .75rem; font-size: 1.125rem; }
p { margin: 0 0 1rem; }
a { color: inherit; }

.section { margin-top: 2rem; }
.stack { display: grid; gap: 1rem; }
label { display: grid; gap: .35rem; font-size: .875rem; font-weight: 500; }

input, textarea {
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: #fff;
  color: inherit;
  font: inherit;
}

input:focus, textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: transparent;
}

textarea { resize: vertical; }

.button, button {
  display: inline-block;
  padding: .65rem 1rem;
  border: 0;
  border-radius: .5rem;
  background: var(--text);
  color: #fff;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

button:disabled { background: #d4d4d8; color: #71717a; cursor: not-allowed; }
.link-button { padding: 0; background: none; color: var(--muted); font-weight: 400; text-decoration: underline; }

.notice { margin: 1rem 0; padding: .75rem 1rem; border-radius: .5rem; background: #f4f4f5; }
.notice.error { background: #fef2f2; color: #991b1b; }

.muted { color: var(--muted); }
.prewrap { white-space: pre-wrap; }

.event-list, .people { margin: 0; padding: 0; list-style: none; }
.event-row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; text-decoration: none; }
.event-row .muted { display: block; font-size: .85rem; }
.people li { padding: .25rem 0; }
.people .muted { margin-left: .35rem; font-size: .9rem; }
.invite { color: var(--muted); font-size: .875rem; }
.gift-card h2 { font-size: 1.5rem; }

@media (max-width: 480px) {
  .event-row { flex-direction: column; gap: 0; }
}
