:root {
  --cream: #faf6f0;
  --cream-alt: #f2ece1;
  --ink: #3a332c;
  --ink-soft: #6b6058;
  --blush: #d8a8a0;
  --sage: #8a9a7e;
  --gold: #b89b6a;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(58, 51, 44, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-weight: 300;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  margin: 0;
}

a { color: inherit; }

/* Navbar */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(58,51,44,0.05);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  line-height: 0;
}
.nav-brand img {
  height: 44px;
  width: auto;
  mix-blend-mode: multiply;
}
#nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
#nav-links a {
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s;
}
#nav-links a:hover { color: var(--blush); }

#nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
#nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 3rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(216,168,160,0.18), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(138,154,126,0.15), transparent 45%),
    var(--cream);
  position: relative;
}
.hero-content { max-width: 700px; }
.hero-logo {
  width: 140px;
  height: auto;
  margin-bottom: 1rem;
  mix-blend-mode: multiply;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(1.5rem, 6.5vw, 5.5rem);
  font-style: italic;
  line-height: 1.05;
  white-space: nowrap;
}
.hero h1 .amp {
  color: var(--blush);
  font-style: normal;
  padding: 0 0.15em;
}
.no-wrap {
  white-space: nowrap;
}
.hero-date {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.countdown {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin: 2.5rem 0 2rem;
  flex-wrap: wrap;
}
.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.9rem 0.6rem;
  box-shadow: var(--shadow);
}
.countdown-item .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--ink);
}
.countdown-item .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: var(--ink-soft);
  text-decoration: none;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* Sections */
.section {
  padding: 5rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.section-alt {
  max-width: 100%;
  background: var(--cream-alt);
}
.section-alt > * {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.section-title {
  text-align: center;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-style: italic;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}

/* Details cards */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.detail-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.detail-card h3 {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 0.8rem;
  color: var(--gold);
}
.detail-time {
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}
.detail-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blush);
  text-decoration: none;
  border-bottom: 1px solid var(--blush);
}

/* Timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 3rem auto 0;
  max-width: 500px;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 90px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--sage);
  opacity: 0.4;
}
.timeline li {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
  align-items: baseline;
}
.tl-time {
  min-width: 70px;
  font-weight: 500;
  color: var(--gold);
  text-align: right;
}
.tl-event {
  position: relative;
  padding-left: 1.5rem;
}
.tl-event::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
}

/* RSVP form */
.rsvp-form {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 1.4rem; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="number"],
.form-row textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #ddd3c4;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--ink);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.radio-label {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
}
.radio-label input { width: auto; }
.rsvp-form .btn { width: 100%; }
.rsvp-status {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
}
.rsvp-status.success { color: var(--sage); }
.rsvp-status.error { color: #b0524a; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.footer-small { margin-top: 0.4rem; font-size: 0.75rem; opacity: 0.7; }

/* Mobile nav */
@media (max-width: 720px) {
  #nav-toggle { display: flex; }
  #nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--cream);
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 8px 12px rgba(58,51,44,0.05);
  }
  #nav-links.open { max-height: 300px; }
  #nav-links li { border-top: 1px solid #eee1cf; }
  #nav-links a { display: block; padding: 1rem 1.5rem; }
}
