/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --bg:         #fdf8f4;
  --bg-alt:     #f5ebe0;
  --ink:        #2a1f1a;
  --muted:      #7d6c5e;
  --rose:       #c47c8e;
  --rose-dark:  #9a5464;
  --gold:       #c4933f;
  --gold-light: #e8c882;
  --card:       #fffcf9;
  --border:     rgba(196, 147, 63, 0.22);
  --shadow:     0 20px 60px rgba(42, 31, 26, 0.10);
  --radius:     20px;
}

/* ============================================================
   Body & typography
   ============================================================ */
body {
  font-family: "Lato", system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

h1 { font-size: clamp(3rem, 6vw, 5.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 3.2vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

p {
  margin: 0 0 1em 0;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--rose-dark);
  text-decoration: none;
}
a:hover {
  color: var(--rose);
}

/* ============================================================
   Layout
   ============================================================ */
.shell {
  width: min(660px, 88vw);
  margin: 0 auto;
}

main {
  position: relative;
  z-index: 1;
  padding-bottom: 5rem;
}

.section {
  padding: 3rem 0 1rem;
}

.section + .section {
  border-top: 1px solid var(--border);
}

/* ============================================================
   Ambient background orbs
   ============================================================ */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.7;
  animation: float 10s ease-in-out infinite;
}

.orb-one {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(196, 124, 142, 0.30), rgba(196, 124, 142, 0));
  top: -120px;
  left: -150px;
}

.orb-two {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(196, 147, 63, 0.25), rgba(196, 147, 63, 0));
  top: 35%;
  right: -100px;
  animation-delay: 2s;
}

.orb-three {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(154, 84, 100, 0.22), rgba(154, 84, 100, 0));
  bottom: -100px;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-22px) scale(1.04); }
}

/* ============================================================
   Navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(253, 248, 244, 0.82);
  border-bottom: 1px solid var(--border);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 0;
}

.nav {
  display: flex;
  gap: 2.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-link {
  position: relative;
  color: var(--ink);
  padding-bottom: 0.25rem;
  transition: color 0.2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--rose-dark);
}

.nav-link:hover::after {
  width: 100%;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5rem 0 3.5rem;
  gap: 1.4rem;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: "Lato", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-names {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4rem, 9vw, 7.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.hero-ampersand {
  color: var(--rose);
  display: inline-block;
  margin: 0 0.15em;
}

.hero-date {
  font-family: "Lato", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 0.4rem auto;
}

.hero-tagline {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-style: italic;
  color: var(--muted);
  max-width: 420px;
}

/* ============================================================
   Countdown
   ============================================================ */
.countdown-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem 2.5rem;
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0.5rem 0 1.5rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.countdown-unit + .countdown-unit::before {
  content: ":";
  position: absolute;
  left: 0;
  top: 0.6rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  color: var(--gold-light);
  transform: translateX(-50%);
}

.countdown-number {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--rose-dark);
  line-height: 1;
  min-width: 2ch;
  text-align: center;
}

.countdown-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* ============================================================
   Page hero (inner pages)
   ============================================================ */
.page-hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--ink);
}

.page-hero .subtitle {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--muted);
  margin-top: 0.6rem;
}

/* ============================================================
   Timeline (Program page)
   ============================================================ */
.timeline {
  position: relative;
  padding: 1rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 72px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border) 5%, var(--border) 95%, transparent);
}

.timeline-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 1.6rem;
  padding: 1.4rem 0;
  position: relative;
}

.timeline-time {
  text-align: right;
  padding-top: 0.1rem;
}

.timeline-time span {
  display: inline-block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  background: var(--bg);
  padding: 0 0 0.1rem;
  position: relative;
  z-index: 1;
}

.timeline-body {
  padding-left: 1.2rem;
  position: relative;
}

.timeline-body::before {
  content: "";
  position: absolute;
  left: -0.15rem;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--rose);
  z-index: 1;
}

.timeline-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ============================================================
   Venue cards
   ============================================================ */
.venue-grid {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 1rem 0;
}

.venue-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.venue-card-header {
  padding: 1.6rem 1.8rem 1rem;
  border-bottom: 1px solid var(--border);
}

.venue-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(196, 147, 63, 0.12);
  border: 1px solid rgba(196, 147, 63, 0.25);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.6rem;
}

.venue-card-body {
  padding: 1.2rem 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.venue-detail {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.venue-detail-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
  color: var(--rose);
}

.venue-map-wrap {
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  height: 220px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.venue-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.venue-map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.venue-map-placeholder a {
  font-weight: 700;
  color: var(--rose-dark);
}

/* ============================================================
   RSVP form
   ============================================================ */
.rsvp-intro {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--muted);
  text-align: center;
  margin-bottom: 2rem;
}

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem 2.4rem;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group:last-of-type {
  margin-bottom: 0;
}

label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  font-family: "Lato", sans-serif;
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(196, 124, 142, 0.15);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237d6c5e' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

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

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--rose-dark);
  flex-shrink: 0;
  cursor: pointer;
}

.radio-option span {
  font-size: 0.95rem;
  color: var(--ink);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.6rem;
  padding: 0.9rem 2rem;
  font-family: "Lato", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-dark), var(--rose));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 6px 24px rgba(154, 84, 100, 0.30);
}

.btn-submit:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

/* ============================================================
   RSVP success
   ============================================================ */
.success-card {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3.5rem 2.5rem;
  margin-top: 1rem;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.success-card h2 {
  color: var(--rose-dark);
  margin-bottom: 0.7rem;
}

.success-card p {
  color: var(--muted);
  font-size: 1rem;
}

.success-card .btn-home {
  display: inline-block;
  margin-top: 1.8rem;
  padding: 0.75rem 2rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose-dark);
  border: 1.5px solid var(--rose);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.success-card .btn-home:hover {
  background: var(--rose);
  color: #fff;
}

/* ============================================================
   Muted text helper
   ============================================================ */
.muted {
  color: var(--muted);
}

/* ============================================================
   Divider ornament
   ============================================================ */
.ornament {
  text-align: center;
  color: var(--gold-light);
  font-size: 1.2rem;
  letter-spacing: 0.4em;
  padding: 0.6rem 0;
  user-select: none;
}

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 0.6s ease forwards;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ============================================================
   Responsive — narrow screens
   ============================================================ */
@media (max-width: 540px) {
  .nav {
    gap: 1.3rem;
    font-size: 0.8rem;
  }

  .countdown-wrap {
    padding: 1.6rem 1.2rem;
    gap: 0;
  }

  .countdown-number {
    font-size: 2rem;
  }

  .timeline::before {
    left: 52px;
  }

  .timeline-item {
    grid-template-columns: 52px 1fr;
    gap: 0 1rem;
  }

  .form-card {
    padding: 1.6rem 1.4rem;
  }
}
