:root {
  --primary: #d6336c;
  --primary-dark: #a61e4d;
  --accent: #f59f00;
  --bg: #fff9f4;
  --card-bg: #ffffff;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --border: #eee0d6;
  --success-bg: #ebfbee;
  --success-text: #2b8a3e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

.hero {
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  line-height: 1.3;
}

.event-meta {
  font-size: 1.25rem;
  margin: 0.5rem 0;
}

.event-details {
  font-size: 1.05rem;
  opacity: 0.95;
  max-width: 40rem;
  margin: 0.75rem auto 0;
}

.admin-hero { background: linear-gradient(135deg, #495057, #212529); }
.back-link { color: #fff; }

.card {
  max-width: 40rem;
  margin: 1.5rem auto;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.card h2 {
  margin-top: 0;
  color: var(--primary-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.5rem;
}

.gallery-grid img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rsvp-form label {
  font-weight: 600;
  margin-top: 0.75rem;
}

.rsvp-form input[type="text"],
.rsvp-form input[type="number"],
.rsvp-form textarea {
  font-size: 1.05rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

fieldset legend {
  font-weight: 600;
  padding: 0;
}

.radio {
  font-weight: normal;
  display: block;
  margin-top: 0.4rem;
}

.radio input { margin-right: 0.5rem; }

button {
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  margin-top: 1.25rem;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}

button:hover { background: var(--primary-dark); }

button.danger {
  background: #e03131;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  margin-top: 0;
}

.success {
  background: var(--success-bg);
  color: var(--success-text);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}

.wall-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wall-list li {
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}

.wall-list li:last-child { border-bottom: none; }

.wall-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #e9ecef;
  color: var(--muted);
}

.attending-yes .badge {
  background: var(--success-bg);
  color: var(--success-text);
}

.attending-no .badge {
  background: #fff0f0;
  color: #c92a2a;
}

.wall-message {
  margin: 0.5rem 0 0;
  color: var(--text);
}

footer {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem 3rem;
  font-size: 0.95rem;
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.summary { font-size: 1.05rem; }

@media (min-width: 600px) {
  .hero h1 { font-size: 2.5rem; }
}
