:root {
  color-scheme: light;
  --sky: #eaf3fd;
  --sky-2: #dcebfb;
  --pool: #7cc3ea;
  --pool-deep: #3f97cf;
  --navy: #2b2d5e;
  --ink: #33365f;
  --muted: #62668f;
  --card: #ffffff;
  --ring: #e8584a;
  --sun: #f6c94c;
  --line: #d3e2f3;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 17px/1.55 "Nunito", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1, h2, .big, .btn, legend, label { font-family: "Fredoka", "Nunito", system-ui, sans-serif; }

a { color: var(--pool-deep); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 36px 16px 28px;
  background: linear-gradient(180deg, #f4f9ff 0%, var(--sky-2) 100%);
}
.eyebrow {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
}
h1 {
  margin: 6px 0 4px;
  color: var(--navy);
  font-weight: 700;
  font-size: clamp(36px, 11vw, 60px);
  line-height: 1.02;
}
h1 span { display: block; }
h1 small { display: block; font-size: .55em; font-weight: 600; margin-top: 4px; }
.fullname { margin: 6px 0 20px; color: var(--muted); font-weight: 600; }
.invite {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto 24px;
  border-radius: var(--radius);
  box-shadow: 0 14px 40px -12px rgba(43, 45, 94, .35);
}
.deadline { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

.hero > :not(.bubbles) { position: relative; z-index: 1; }
.bubbles span {
  position: absolute;
  border-radius: 50%;
  background: rgba(124, 195, 234, .22);
  animation: float 9s ease-in-out infinite;
}
.bubbles span:nth-child(1) { width: 70px; height: 70px; left: -20px; top: 60px; }
.bubbles span:nth-child(2) { width: 34px; height: 34px; right: 18px; top: 30px; animation-delay: -3s; }
.bubbles span:nth-child(3) { width: 110px; height: 110px; right: -40px; top: 220px; animation-delay: -5s; }
.bubbles span:nth-child(4) { width: 22px; height: 22px; left: 30px; top: 16px; animation-delay: -2s; }
.bubbles span:nth-child(5) { width: 48px; height: 48px; left: 10%; bottom: 60px; animation-delay: -6s; }
@keyframes float { 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) {
  .bubbles span { animation: none; }
  html { scroll-behavior: auto; }
}

/* Pool section */
.wave { display: block; width: 100%; height: 40px; margin-top: -1px; color: var(--pool); background: var(--sky-2); }
.pool {
  background: linear-gradient(180deg, var(--pool) 0%, #a9d8f2 420px, var(--sky) 900px);
  padding: 8px 16px 32px;
}
.pool > * { max-width: 560px; margin-left: auto; margin-right: auto; }

.card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px -14px rgba(43, 45, 94, .4);
}
.card h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card p { margin: 0 0 6px; }
.big { font-size: 20px; font-weight: 600; color: var(--navy); line-height: 1.3; }

.timeline { list-style: none; margin: 12px 0 0; padding: 0; }
.timeline li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
}
.timeline small { display: block; color: var(--muted); font-size: 15px; }
.timeline b { flex: 0 0 82px; color: var(--pool-deep); font-family: "Fredoka", sans-serif; font-weight: 600; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #f4f9ff;
  color: var(--navy);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { border-color: var(--pool); }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, .choice input:focus-visible + span {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: #3a3d7a; border-color: #3a3d7a; }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-big { font-size: 19px; font-weight: 600; min-height: 54px; padding: 12px 34px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; }

/* RSVP */
.rsvp { padding-top: 30px; margin-top: 44px; scroll-margin-top: 60px; }
.rsvp h2 { font-size: 28px; font-weight: 700; }
.penguin { width: 56px; height: auto; }
.peek { position: absolute; top: -48px; right: 22px; width: 64px; }
.lead { color: var(--muted); }

.field { margin: 18px 0 0; padding: 0; border: 0; min-width: 0; }
.field > label, legend {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 17px;
  font-weight: 500;
  padding: 0;
}
label small, legend small { color: var(--muted); font-family: "Nunito", sans-serif; font-weight: 400; font-size: 14px; margin-left: 4px; }

input[type=text], input[type=tel], input[type=number], textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
  color: var(--ink);
  font: inherit;
  font-size: 17px; /* 16px+ keeps iOS from zooming in */
}
input:focus, textarea:focus { border-color: var(--pool-deep); outline: none; }
input[aria-invalid=true] { border-color: var(--ring); }
textarea { resize: vertical; }

.choices { display: grid; gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: block;
  padding: 14px 16px 14px 50px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
  font-family: "Nunito", sans-serif;
  font-size: 17px;
  position: relative;
}
.choice span::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
}
.choice input:checked + span { border-color: var(--pool-deep); background: #eef7fd; }
.choice input:checked + span::before { border: 7px solid var(--pool-deep); }
.choice b { color: var(--navy); }

.headcount[hidden] { display: none; }
.steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stepper > label { display: block; font-size: 16px; color: var(--navy); margin-bottom: 6px; font-weight: 500; }
.stepper label small { display: block; margin: 0; }
.stepper-ctl { display: flex; align-items: stretch; }
.stepper-ctl input {
  text-align: center;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  padding: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper-ctl input::-webkit-inner-spin-button,
.stepper-ctl input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.step {
  flex: 0 0 48px;
  border: 2px solid var(--line);
  background: #eef7fd;
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
.step:first-child { border-radius: 14px 0 0 14px; }
.step:last-child { border-radius: 0 14px 14px 0; }
.step:active { background: var(--pool); }

.field-error { color: #c23a2d; font-size: 15px; margin: 6px 0 0 !important; font-weight: 600; }
.alert {
  background: #fdeceb;
  color: #9b2c22;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 600;
}
form .btn-block { margin-top: 24px; }
.center { text-align: center; margin-top: 12px !important; }

.thanks .big { font-size: 22px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

footer { text-align: center; color: var(--muted); padding-top: 12px; }
.penguin-row { display: flex; justify-content: center; gap: 6px; }
.penguin-row .penguin:nth-child(2) { width: 68px; transform: translateY(-6px); }

@media (min-width: 700px) {
  .hero { padding-top: 56px; }
  .choices { grid-template-columns: 1fr 1fr; }
}
