:root {
  --teal-deep: #1f4e6b;
  --teal-soft: #6fb4c2;
  --mist: #e8f4f7;
  --cream: #faf5ec;
  --ink: #1a1a1a;
  --error: #a3261a;
}

* { box-sizing: border-box; }

html { font-size: 18px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--mist);
  line-height: 1.5;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.hero {
  margin: 0 -1rem 1.5rem;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 50vh;
  object-fit: cover;
}

.intro h1 {
  font-size: 2.25rem;
  color: var(--teal-deep);
  margin: 1rem 0 0.25rem;
  line-height: 1.2;
}

.intro .subtitle {
  font-size: 1.125rem;
  color: var(--teal-deep);
  margin: 0 0 1.5rem;
}

.event-details {
  background: var(--cream);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.event-details ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-details li {
  padding: 0.4rem 0;
  font-size: 1.125rem;
}

.event-details li + li {
  border-top: 1px solid var(--teal-soft);
}

.rsvp h2 {
  font-size: 1.5rem;
  color: var(--teal-deep);
  margin-bottom: 1rem;
}

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  font-size: 1.125rem;
  border: 1.5px solid var(--teal-soft);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-family: inherit;
}

.field input:focus {
  outline: 2px solid var(--teal-deep);
  outline-offset: 2px;
}

button#submit-btn {
  min-height: 52px;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  background: var(--teal-deep);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}

button#submit-btn:hover { background: #163b53; }
button#submit-btn:disabled { background: #6c8a9c; cursor: not-allowed; }

.error {
  color: var(--error);
  margin: 0 0 1rem;
  font-weight: 600;
}

.success {
  background: var(--cream);
  border-left: 4px solid var(--teal-deep);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  font-size: 1.125rem;
}

.contact {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--teal-soft);
  font-size: 1rem;
  text-align: center;
}

.contact a { color: var(--teal-deep); }

@media (max-width: 640px) {
  html { font-size: 17px; }
  .intro h1 { font-size: 1.75rem; }
  .hero img { max-height: 35vh; }
}
