/* ============================================================
   Maya turns thirty — event invitation
   Palette: deep burgundy (#6b2237) & soft nude (#f5e6e0)
   Fonts:  Playfair Display (headings) + Inter (body)
   ============================================================ */

:root {
  --burgundy: #6b2237;
  --burgundy-dark: #511a2a;
  --burgundy-tint: rgba(107, 34, 55, 0.08);
  --nude: #f5e6e0;
  --nude-deep: #edd7cd;
  --ink: #2b2226;
  --muted: #7d6a70;
  --line: #e3cfc7;
  --surface: #fffdfc;
  --danger: #b3374f;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(107, 34, 55, 0.10);
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 640px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(255, 253, 252, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--burgundy);
  text-decoration: none;
}
.nav__brand span { color: var(--muted); font-weight: 400; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav__links a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav__links a:hover { color: var(--burgundy); background: var(--burgundy-tint); }
.nav__links .nav__cta {
  margin-left: 8px;
  color: #fff;
  background: var(--burgundy);
  font-weight: 500;
}
.nav__links .nav__cta:hover { background: var(--burgundy-dark); color: #fff; }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__toggle span {
  width: 22px; height: 2px;
  background: var(--burgundy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at top, var(--nude) 0%, var(--surface) 65%);
  text-align: center;
  padding: 88px 20px 64px;
}
.hero__inner { max-width: 680px; margin: 0 auto; }
.hero__eyebrow {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 9vw, 72px);
  font-weight: 500;
  line-height: 1.08;
  color: var(--burgundy);
  margin-bottom: 18px;
}
.hero__sub {
  font-size: clamp(16px, 2.5vw, 18px);
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 26px;
}
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin-bottom: 28px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.chip svg { width: 16px; height: 16px; color: var(--burgundy); flex: none; }
.hero__cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--burgundy); color: #fff; }
.btn--primary:hover { background: var(--burgundy-dark); }
.btn--ghost { border-color: var(--line); color: var(--burgundy); background: transparent; }
.btn--ghost:hover { background: var(--burgundy-tint); }

/* ---------- Countdown ---------- */
.countdown {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.countdown__cell {
  min-width: 76px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.countdown__cell b {
  display: block;
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--burgundy);
  line-height: 1.15;
}
.countdown__cell span { font-size: 12px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--nude); }
.section__head { text-align: center; margin-bottom: 36px; }
.section__eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 500;
  color: var(--burgundy);
}

/* ---------- Story ---------- */
.story__text { max-width: 640px; margin: 0 auto; }
.story__text p { color: var(--muted); margin-bottom: 16px; font-size: 16.5px; }
.story__text p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 3em;
  float: left;
  line-height: 0.85;
  padding-right: 8px;
  color: var(--burgundy);
}

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  max-width: 620px;
  margin: 0 auto;
}
.timeline__row {
  display: grid;
  grid-template-columns: 80px 24px 1fr;
  gap: 12px;
  padding: 14px 0;
  align-items: start;
}
.timeline__time {
  font-weight: 600;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--burgundy);
  padding-top: 2px;
  text-align: right;
}
.timeline__row { position: relative; }
.timeline__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--burgundy);
  margin: 5px auto 0;
  box-shadow: 0 0 0 4px var(--burgundy-tint);
}
.timeline__row::before {
  content: "";
  position: absolute;
  left: calc(80px + 12px + 11px); /* time col + gap + half dot */
  top: 26px;
  bottom: -12px;
  width: 1px;
  background: var(--line);
}
.timeline__row:last-child::before { display: none; }
.timeline__body h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 2px; }
.timeline__body p { font-size: 14.5px; color: var(--muted); }

/* ---------- Location ---------- */
.location__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.info-item { display: flex; gap: 14px; padding: 12px 0; }
.info-item svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--burgundy); }
.info-item h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 2px; }
.info-item p { font-size: 14.5px; color: var(--muted); }
.map {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}

/* ---------- RSVP form ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; border: 0; }
.field label, .field__label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field__hint { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 84px; resize: vertical; }
.field :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px var(--burgundy-tint);
}
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.opt input { accent-color: var(--burgundy); width: 17px; height: 17px; flex: none; }
.opt:has(input:checked) {
  border-color: var(--burgundy);
  background: var(--burgundy-tint);
}
.form__error { display: none; font-size: 13.5px; color: var(--danger); margin: -6px 0 14px; }
.form__error.is-visible { display: block; }
.form__fine {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
}
.form__fine svg { width: 15px; height: 15px; flex: none; color: var(--burgundy); }

/* ---------- Success state ---------- */
.success { text-align: center; padding: 16px 8px; }
.success__icon {
  width: 52px; height: 52px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--burgundy);
  color: #fff;
}
.success__icon svg { width: 26px; height: 26px; }
.success h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--burgundy);
  margin-bottom: 8px;
}
.success p { color: var(--muted); margin-bottom: 4px; }
.success__note { font-size: 13.5px; margin-top: 12px; }

/* ---------- Footer ---------- */
.footer {
  padding: 32px 20px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 12px 12px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px; }
  .nav__links .nav__cta { margin: 8px 0 0; text-align: center; }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 56px 0; }
  .location__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .card { padding: 24px 20px; }
  .timeline__row { grid-template-columns: 64px 24px 1fr; }
  .timeline__row::before { left: calc(64px + 12px + 11px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
