/* ============================================================
   DESIGN TOKENS
============================================================ */
:root {
  --cream:     #FFF8F0;
  --rose:      #C97A65;
  --rose-dark: #A85E4B;
  --sage:      #6B9E96;
  --gold:      #D4A853;
  --dark:      #3A2921;
  --muted:     #7D5F54;
  --lt-rose:   #FAF0EB;
  --lt-sage:   #EBF4F2;
  --border:    #EAE0D8;
  --shadow:    rgba(58, 41, 33, 0.08);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
}

/* ============================================================
   HERO
============================================================ */
.hero {
  background: linear-gradient(155deg, #F9EDE7 0%, #EBF4F2 100%);
  text-align: center;
  padding: 64px 20px 88px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '🌸';
  position: absolute;
  font-size: 20rem;
  opacity: 0.05;
  top: -60px; right: -60px;
  pointer-events: none;
  line-height: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rose);
  color: #fff;
  padding: 8px 22px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(201, 122, 101, 0.32);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero h1 em { color: var(--rose); font-style: italic; }

.hero-sub {
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto 44px;
}

/* COUNTDOWN */
.countdown-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px 24px 28px;
  max-width: 580px;
  margin: 0 auto;
  box-shadow: 0 8px 48px var(--shadow);
}
.cd-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 22px;
}
.cd-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
}
.cd-unit { flex: 1; max-width: 110px; text-align: center; }
.cd-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--rose);
  line-height: 1;
}
.cd-name {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #B0A09A;
  margin-top: 8px;
}
.cd-colon {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: var(--rose);
  opacity: 0.3;
  padding-top: 2px;
  flex-shrink: 0;
}

/* ============================================================
   SECTION BASE
============================================================ */
.section { padding: 72px 20px; }
.container { max-width: 900px; margin: 0 auto; }

.sec-header { text-align: center; margin-bottom: 48px; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 700;
  color: var(--sage);
  margin-bottom: 10px;
}
.sec-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}
.sec-title em { color: var(--rose); font-style: italic; }
.sec-desc {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================================
   HOW TO PLAY
============================================================ */
.how-section { background: var(--lt-sage); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}
.step-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 20px var(--shadow);
}
.step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), #E8967E);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 18px rgba(201, 122, 101, 0.32);
}
.step-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; }
.step-card p  { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

.venmo-box {
  background: linear-gradient(135deg, var(--rose), #B8614E);
  border-radius: 20px;
  padding: 36px 32px;
  text-align: center;
  color: #fff;
  box-shadow: 0 8px 36px rgba(201, 122, 101, 0.38);
}
.venmo-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.venmo-tagline { opacity: 0.85; font-size: 0.95rem; margin-bottom: 18px; }
.venmo-handle {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  padding: 12px 32px;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.venmo-link {
  display: inline-block;
  background: #fff;
  color: var(--rose-dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 26px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.2s;
}
.venmo-link:hover { transform: translateY(-2px); }
.venmo-note { opacity: 0.72; font-size: 0.82rem; margin-top: 14px; }

/* ============================================================
   FORMS
============================================================ */
.form-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 4px 36px var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.fg { display: flex; flex-direction: column; gap: 8px; }
.fg.full { grid-column: 1 / -1; }

label { font-size: 0.875rem; font-weight: 700; color: var(--dark); }
label .opt { font-weight: 400; color: #B0A09A; font-size: 0.82rem; }

input[type="text"],
input[type="email"],
input[type="date"],
textarea {
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--cream);
  outline: none;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(201, 122, 101, 0.12);
}
textarea { resize: vertical; min-height: 96px; }

.btn-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--rose), #B8614E);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 22px rgba(201, 122, 101, 0.3);
}
.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 122, 101, 0.4);
}
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.alert {
  padding: 13px 16px;
  border-radius: 12px;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
}
.alert-success { background: #D4EDDA; color: #1A5C2E; }
.alert-error   { background: #F8D7DA; color: #721C24; }

/* ============================================================
   GUESSES DISPLAY
============================================================ */
.guesses-section { padding-top: 0; }

.guesses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 16px;
}
.guess-card {
  background: #fff;
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 2px 16px var(--shadow);
  border-top: 4px solid var(--rose);
  animation: fadeUp 0.35s ease;
}
.gc-date {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rose);
  margin-bottom: 8px;
}
.gc-name  { font-weight: 800; font-size: 0.95rem; margin-bottom: 4px; }
.gc-msg {
  font-size: 0.8rem;
  color: #B0A09A;
  font-style: italic;
  line-height: 1.4;
  margin-top: 6px;
}

/* ============================================================
   GUESTBOOK
============================================================ */
.guestbook-section { background: var(--lt-rose); }

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}
.msg-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 2px 16px var(--shadow);
  animation: fadeUp 0.35s ease;
}
.msg-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.msg-av {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--sage));
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.msg-name { font-weight: 800; font-size: 1rem; }
.msg-meta { font-size: 0.78rem; color: #B0A09A; }
.msg-body { color: var(--muted); line-height: 1.65; font-size: 0.97rem; }

/* ============================================================
   EMPTY STATE
============================================================ */
.empty {
  text-align: center;
  padding: 48px 20px;
  color: #B0A09A;
}
.empty .ei { font-size: 2.5rem; margin-bottom: 12px; }

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 44px 20px;
}
.footer-heart { font-size: 1.6rem; display: block; margin-bottom: 12px; }
footer h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 6px;
}
footer p { font-size: 0.85rem; }
footer a { color: var(--gold); text-decoration: none; }

/* ============================================================
   ANIMATION + RESPONSIVE
============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .fg.full   { grid-column: 1; }
  .form-card { padding: 24px 18px; }
  .cd-grid   { gap: 8px; }
  .cd-colon  { font-size: 2rem; }
}
