/* ── Tokens ─────────────────────────────────────────── */
:root {
  --cream:    #fdf6ee;
  --blush:    #f2c4c4;
  --rose:     #c97d7d;
  --sage:     #a8b89a;
  --text:     #3d2f2f;
  --muted:    #8a7070;
  --card-bg:  #fffaf6;
  --radius:   1.25rem;
  --shadow:   0 4px 32px rgba(180, 130, 130, 0.12);
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #fce8e8 0%, #fdf0e8 50%, #eef3e8 100%);
  text-align: center;
  padding: 5rem 1.5rem 4rem;
}
.hero-inner { max-width: 600px; margin: 0 auto; }

.eyebrow {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.names {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
}

.divider {
  color: var(--rose);
  font-size: 1.2rem;
  margin: 1rem 0;
  letter-spacing: 0.5em;
}

.headline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(2.2rem, 7vw, 4rem);
  color: var(--rose);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.due {
  font-size: 1.05rem;
  color: var(--muted);
}

.baby-art {
  margin-top: 2rem;
  font-size: 1.6rem;
  letter-spacing: 0.3em;
}

/* ── Countdown ──────────────────────────────────────── */
.countdown-section {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--cream);
}

.section-label {
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.8rem;
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.tick {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--card-bg);
  border: 1.5px solid var(--blush);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  min-width: 80px;
  box-shadow: var(--shadow);
}

.num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--rose);
  line-height: 1;
}

.unit {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

.tick-sep {
  font-size: 2rem;
  color: var(--blush);
  margin-top: 0.9rem;
  font-weight: 600;
  line-height: 1;
}

/* Registry       */
.registry-section {
  display: flex;
  padding: 1rem 1.5rem 4rem;
  justify-content: center;
}
/* ── RSVP ───────────────────────────────────────────── */
.rsvp-section {
  padding: 1rem 1.5rem 4rem;
  display: flex;
  justify-content: center;
}

.rsvp-card {
  background: var(--card-bg);
  border: 1.5px solid var(--blush);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 520px;
}

.rsvp-sub {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.field > label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

input[type="text"],
textarea {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  border: 1.5px solid #e0c8c8;
  border-radius: 0.6rem;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

input[type="text"]:focus,
textarea:focus {
  border-color: var(--rose);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  accent-color: var(--rose);
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.btn {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  background: var(--rose);
  color: #fff;
  border: none;
  border-radius: 0.7rem;
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 0.4rem;
}

.btn:hover { background: #b56a6a; }
.btn:active { transform: scale(0.98); }
.btn:disabled { background: var(--blush); cursor: not-allowed; }

.form-status {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-status.success { color: var(--sage); font-weight: 600; }
.form-status.error   { color: #c0392b; }

/* ── Gallery ────────────────────────────────────────── */
.gallery-section {
  padding: 1rem 1.5rem 3.5rem;
  text-align: center;
  background: var(--cream);
}

.gallery {
  column-count: 3;
  column-gap: 0.75rem;
  max-width: 900px;
  margin: 0 auto;
}

.gallery img {
  width: 100%;
  display: block;
  margin-bottom: 0.75rem;
  border-radius: 0.75rem;
  border: 1.5px solid var(--blush);
  box-shadow: var(--shadow);
  break-inside: avoid;
  object-fit: cover;
}

.gallery-empty {
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
}

@media (max-width: 600px) {
  .gallery { column-count: 2; }
}
@media (max-width: 380px) {
  .gallery { column-count: 1; }
}

/* ── Footer ─────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--blush);
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 420px) {
  .tick { padding: 0.75rem 1rem; min-width: 64px; }
  .num  { font-size: 1.9rem; }
  .rsvp-card { padding: 1.8rem 1.2rem; }
}
