:root {
  /* Boston-fern palette — lighter, warmer, bushy-houseplant green */
  --green-deep: #a9b490;
  --green: #80bf73;
  --green-bright: #9fd28e;
  --green-leaf: #bde0ad;
  --green-mint: #e0ebd0;
  --green-wash: #f5f9ec;
  --cream: #fbfaf3;
  --cream-soft: #ffffff;
  --ink: #1f2b1b;
  --ink-soft: #3b4a35;
  --accent: #fff7b3;
  --shadow: 0 10px 30px rgba(42, 90, 44, 0.12);
  --shadow-soft: 0 4px 18px rgba(42, 90, 44, 0.08);
  --radius: 6px;
  --max-width: 1100px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }
a { color: var(--green-deep); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.3) blur(10px);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid rgba(76, 175, 58, 0.18);
}

.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--green-deep);
  letter-spacing: 0.1em;
  font-style: italic;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s;
  font-weight: 400;
}

.nav-links a:hover { color: var(--green); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-deep);
  margin: 5px 0;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  background:
    radial-gradient(ellipse at top left, rgba(189, 224, 173, 0.4), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(159, 210, 142, 0.28), transparent 55%),
    linear-gradient(180deg, #fbfdf3 0%, #f5f9ec 100%);
  overflow: hidden;
  text-align: center;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 24px;
  font-weight: 400;
}

.hero-names {
  font-size: clamp(2.6rem, 9vw, 5.8rem);
  line-height: 1.05;
  font-weight: 500;
  color: var(--green-deep);
  margin: 0;
  font-style: italic;
}

.hero-names span { display: inline-block; }
.hero-names .amp {
  display: block;
  font-size: 0.7em;
  color: var(--green-deep);
  margin: 4px 0;
  font-style: italic;
}

.hero-divider {
  display: flex;
  justify-content: center;
  margin: 32px 0 20px;
  color: var(--green-bright);
}

.hero-divider svg {
  width: 280px;
  max-width: 80%;
  height: 42px;
}

.hero-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-style: italic;
  color: var(--ink);
  margin-bottom: 4px;
  font-weight: 500;
}

.hero-place {
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 36px;
  font-weight: 400;
}

/* Hero fern corner decorations */
.fern {
  position: absolute;
  opacity: 0.6;
  pointer-events: none;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.fern-tl { top: -40px; left: -40px; width: 260px; height: 260px; transform: rotate(-25deg); }
.fern-tr { top: -40px; right: -40px; width: 260px; height: 260px; transform: rotate(25deg) scaleX(-1); }
.fern-bl { bottom: -60px; left: -60px; width: 300px; height: 300px; transform: rotate(-155deg); opacity: 0.5; }
.fern-br { bottom: -60px; right: -60px; width: 300px; height: 300px; transform: rotate(155deg) scaleX(-1); opacity: 0.5; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 40px;
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green-deep);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.15s, box-shadow 0.25s;
  border-radius: 999px;
  font-weight: 700;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
  background: var(--green-bright);
  border-color: var(--green-bright);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(1px); }

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: 100px 24px;
  overflow: hidden;
}

.section-light { background: var(--cream); }

.section-dark {
  background: #a9b490;
  color: #fff;
}

.section-dark h2,
.section-dark h3,
.section-dark .section-title { color: #fff; }

.section-dark a { color: var(--green-mint); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.container-narrow { max-width: 640px; }

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  color: var(--green-deep);
  font-style: italic;
  margin-bottom: 8px;
}

.divider {
  display: block;
  margin: 0 auto 48px;
  width: 240px;
  max-width: 70%;
  height: 36px;
  color: var(--green-bright);
}

.section-dark .divider { color: var(--green-mint); opacity: 0.9; }

/* ---------- Countdown ---------- */
.section-countdown {
  padding: 70px 24px;
  background: #a9b490;
  color: #fff;
  text-align: center;
}

.countdown-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 30px;
  font-weight: 400;
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 0 auto;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 20px 18px;
  min-width: 100px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cd-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  color: #fff;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
}

.cd-label {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 10px;
}

.cd-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 7vw, 4rem);
  color: rgba(255, 255, 255, 0.6);
  align-self: center;
  padding-bottom: 24px;
}

.countdown-message {
  margin-top: 28px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: #fff;
  opacity: 0.95;
}

/* ---------- Story + photo ---------- */
.story-photo {
  display: flex;
  justify-content: center;
  margin: 0 auto 56px;
}

.photo-frame {
  position: relative;
  width: min(420px, 85%);
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(47, 122, 42, 0.22);
  border: 6px solid #fff;
  background: var(--green-wash);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-placeholder-text {
  display: none;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--green-deep);
  font-size: 1.2rem;
  padding: 20px;
  text-align: center;
}

.photo-frame.photo-placeholder .photo-placeholder-text { display: block; }

.story-grid,
.travel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.story-grid h3,
.travel-grid h3 {
  font-size: 1.7rem;
  color: var(--green-deep);
  font-style: italic;
}

/* ---------- Moments / photo gallery ---------- */
.section-moments { background: #fbfaf3; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(42, 90, 44, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--green-wash);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(42, 90, 44, 0.2);
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-tall { grid-row: span 2; }
.gallery-wide { grid-column: span 2; }

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 160px;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
    gap: 10px;
  }
  .gallery-wide { grid-column: span 2; }
  .gallery-tall { grid-row: span 2; }
}

/* ---------- Details cards ---------- */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.detail-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 36px 28px;
  text-align: center;
  border-radius: 10px;
  transition: transform 0.25s, background 0.25s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.detail-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.18);
}

.detail-card h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 8px;
  font-style: italic;
}

.detail-time {
  color: var(--green-mint);
  font-style: italic;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
}

.detail-card p { margin: 4px 0; opacity: 0.95; }

.detail-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.92em;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}
.detail-link:hover { opacity: 0.75; }

.detail-card-registry {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.registry-copy {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  text-align: center;
  margin-bottom: 18px !important;
  opacity: 0.95;
  max-width: 260px;
}

.registry-link {
  display: inline-block;
  padding: 11px 28px;
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.25s, color 0.25s, transform 0.15s;
}
.registry-link:hover {
  background: #fff;
  color: var(--green-deep);
  transform: translateY(-1px);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-list details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding: 20px 0;
}

.faq-list summary {
  cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: #fff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: '+';
  font-size: 1.6rem;
  font-style: normal;
  color: var(--green-mint);
  transition: transform 0.2s;
  margin-left: 12px;
}

.faq-list details[open] summary::after { content: '–'; }

.faq-list details p {
  margin-top: 12px;
  opacity: 0.95;
}

/* ---------- RSVP form ---------- */
.rsvp-lead {
  text-align: center;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--green-deep);
  margin-bottom: 40px;
}

.rsvp-form {
  display: grid;
  gap: 20px;
  background: #fff;
  padding: 36px 32px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(76, 175, 58, 0.2);
}

.field {
  display: flex;
  flex-direction: column;
}

.field label,
.field legend {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 8px;
  font-weight: 700;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field textarea {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid rgba(47, 122, 42, 0.25);
  background: var(--cream);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(109, 203, 79, 0.25);
}

fieldset.field {
  border: 0;
  padding: 0;
  margin: 0;
}

.radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
  font-weight: 400;
}

.radio input { accent-color: var(--green); width: 18px; height: 18px; }

.form-status {
  text-align: center;
  font-style: italic;
  margin-top: 8px;
  min-height: 1.4em;
}

.form-status.success { color: var(--green-deep); }
.form-status.error { color: #a04a3c; }

.rsvp-form .btn { justify-self: center; margin-top: 12px; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  text-align: center;
  padding: 80px 24px 60px;
  background: #a9b490;
  color: #fff;
  overflow: hidden;
}

.footer p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.25rem;
  margin: 0;
  position: relative;
  z-index: 2;
}

.footer-fern {
  position: absolute;
  opacity: 0.45;
  width: 240px;
  height: 240px;
  object-fit: contain;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  user-select: none;
  -webkit-user-drag: none;
  filter: brightness(1.8);
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .nav { padding: 12px 18px; }

  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid rgba(76, 175, 58, 0.18);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
  }

  .nav-links.open { max-height: 440px; }

  .nav-links li {
    border-top: 1px solid rgba(76, 175, 58, 0.12);
  }

  .nav-links a {
    display: block;
    padding: 16px 24px;
  }

  .section { padding: 72px 20px; }

  .section-countdown { padding: 56px 16px; }

  .fern-tl, .fern-tr { width: 140px; height: 280px; }
  .fern-bl, .fern-br { width: 160px; height: 320px; }

  .details-grid { gap: 16px; }
  .story-grid, .travel-grid { gap: 36px; }

  /* Countdown: two-by-two grid on narrow screens, hide big colons */
  .countdown { gap: 10px; max-width: 360px; }
  .cd-unit { min-width: 0; flex: 1 1 calc(50% - 10px); padding: 16px 10px; }
  .cd-sep { display: none; }
  .rsvp-form { padding: 28px 20px; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .hero { padding: 96px 18px 48px; }
  .btn { padding: 13px 28px; letter-spacing: 0.22em; }
  .cd-num { font-size: 2.2rem; }
  .cd-label { font-size: 0.65rem; letter-spacing: 0.25em; }
}

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