:root {
  --cream: #faf6ef;
  --cream-2: #f2ead9;
  --forest: #3f4f3a;
  --forest-dark: #2b3627;
  --sage: #8a9678;
  --gold: #c9a15a;
  --gold-light: #e2c184;
  --text: #2e2a25;
  --text-soft: #6b6459;
  --white: #ffffff;

  --font-script: "Parisienne", cursive;
  --font-display: "Cormorant Garamond", serif;
  --font-body: "Montserrat", sans-serif;
  --ease: cubic-bezier(.16,.84,.44,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; color: var(--forest-dark); }
p { margin: 0 0 1em; color: var(--text-soft); }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Reveal helpers */
.reveal-fade, .reveal-up, .reveal-image { opacity: 0; }
.reveal-up { transform: translateY(24px); }
.reveal-image { transform: scale(1.06); }
.line { overflow: hidden; display: block; }
.word-mask { display: inline-block; overflow: hidden; vertical-align: top; }
.word { display: inline-block; transform: translateY(115%); }
@media (prefers-reduced-motion: reduce) {
  .reveal-fade, .reveal-up, .reveal-image, .word { opacity: 1 !important; transform: none !important; }
}

/* Decorative leaf corners */
.leaf-corner { position: fixed; z-index: 2; color: var(--sage); opacity: 0.55; pointer-events: none; width: 140px; height: 200px; }
.leaf-corner svg { width: 100%; height: 100%; }
.leaf-corner-tl { top: -10px; left: -10px; }
@media (max-width: 700px) { .leaf-corner { width: 90px; height: 130px; opacity: 0.4; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 30px; border-radius: 999px;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: transform .2s var(--ease), background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--forest); color: var(--cream); box-shadow: 0 10px 24px rgba(63,79,58,0.25); }
.btn-primary:hover { background: var(--forest-dark); }

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; padding: 120px 24px 80px;
  background: radial-gradient(120% 100% at 50% 0%, var(--cream-2) 0%, var(--cream) 60%);
}
.hero-frame { max-width: 620px; }
.hero-kicker {
  display: block; text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.75rem;
  color: var(--gold); font-weight: 600; margin-bottom: 18px;
}
.hero-names {
  font-family: var(--font-script); font-weight: 400;
  font-size: clamp(3.2rem, 10vw, 6rem); color: var(--forest-dark); line-height: 1.15; margin-bottom: 18px;
}
.hero-names .amp { color: var(--gold); font-size: 0.8em; padding: 0 0.08em; }
.hero-date { font-size: 1.05rem; letter-spacing: 0.08em; color: var(--text-soft); text-transform: uppercase; margin-bottom: 22px; }
.hero-divider { color: var(--gold); width: 120px; margin: 0 auto 26px; }
.hero-sub { max-width: 440px; margin: 0 auto 30px; font-size: 1rem; }

.scroll-cue { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); }
.scroll-cue i { display: block; width: 1px; height: 46px; background: rgba(63,79,58,0.35); position: relative; overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--gold); animation: cue-drop 1.9s ease-in-out infinite;
}
@keyframes cue-drop { 0% { top: -100%; } 60%,100% { top: 100%; } }

/* Section shared */
.section-kicker {
  display: block; text-align: center; text-transform: uppercase; letter-spacing: 0.25em;
  font-size: 0.72rem; font-weight: 600; color: var(--gold); margin-bottom: 10px;
}
section h2 { text-align: center; font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; }
.section-lead { text-align: center; max-width: 480px; margin: 16px auto 0; }

/* Countdown */
.countdown { padding: 70px 0; background: var(--forest); color: var(--cream); }
.countdown .section-kicker { color: var(--gold-light); }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 560px; margin: 26px auto 0; }
.countdown-item { text-align: center; }
.countdown-item strong { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 3rem); color: var(--gold-light); font-variant-numeric: tabular-nums; }
.countdown-item span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: #cfd8c8; }

/* Story */
.story { padding: 110px 0 90px; }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 54px; }
.story-item { text-align: center; }
.story-icon { display: block; color: var(--gold); font-size: 1.2rem; margin-bottom: 14px; }
.story-item h3 { font-size: 1.25rem; margin-bottom: 10px; }
.story-item p { font-size: 0.94rem; }

/* Event */
.event { padding: 90px 0; background: var(--cream-2); }
.event-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 720px; margin: 50px auto 0; }
.event-card { background: var(--white); border-radius: 6px; padding: 40px 32px; text-align: center; box-shadow: 0 20px 40px rgba(63,79,58,0.08); }
.event-icon { display: inline-flex; color: var(--forest); margin-bottom: 16px; width: 40px; height: 40px; }
.event-tag { display: block; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.7rem; font-weight: 600; color: var(--gold); margin-bottom: 10px; }
.event-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.event-time { font-family: var(--font-display); font-size: 1.15rem; color: var(--forest); margin-bottom: 10px; }
.event-link { display: inline-block; margin-top: 8px; font-size: 0.82rem; font-weight: 600; color: var(--forest); border-bottom: 1px solid var(--sage); }
.event-link:hover { color: var(--gold); border-color: var(--gold); }

/* Gallery */
.gallery { padding: 100px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 340px 160px; gap: 16px; margin-top: 50px; }
.gallery-item { border-radius: 6px; overflow: hidden; }
.gallery-item-lg { grid-row: span 2; grid-column: span 1; }
.gallery-item:nth-child(2) { grid-column: span 2; }
.gallery-item:nth-child(3) { grid-column: span 2; }

/* Info */
.info { padding: 90px 0; background: var(--forest-dark); color: var(--cream); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.info-card { text-align: center; }
.info-icon { display: block; color: var(--gold-light); font-size: 1.4rem; margin-bottom: 14px; }
.info-card h3 { color: var(--cream); font-size: 1.2rem; margin-bottom: 10px; }
.info-card p { color: #cbd0c4; font-size: 0.9rem; }
.info-alias { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold-light); margin-top: 6px; }

/* RSVP */
.rsvp { padding: 100px 0 120px; }
.rsvp-form { max-width: 520px; margin: 46px auto 0; display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.form-row label { font-size: 0.82rem; font-weight: 600; color: var(--forest-dark); letter-spacing: 0.02em; }
.form-row input, .form-row select, .form-row textarea {
  font-family: var(--font-body); font-size: 0.95rem; padding: 12px 14px;
  border: 1px solid var(--sage); border-radius: 6px; background: var(--white); color: var(--text);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--gold); }
.rsvp-form .btn { margin-top: 6px; }
.rsvp-feedback { text-align: center; color: var(--forest); font-weight: 500; margin-top: 6px; }

/* Footer */
.site-footer { background: var(--forest); color: #d8ddd1; padding: 44px 0; text-align: center; }
.footer-hashtag { font-family: var(--font-script); font-size: 1.8rem; color: var(--gold-light); margin-bottom: 10px; }
.footer-note { font-size: 0.78rem; max-width: 480px; margin: 0 auto; color: #b7c0ab; }

/* Responsive */
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; gap: 44px; }
  .event-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 160px 160px; }
  .gallery-item-lg { grid-column: span 2; grid-row: span 1; }
  .gallery-item:nth-child(2) { grid-column: span 1; }
  .gallery-item:nth-child(3) { grid-column: span 1; }
  .countdown-grid { gap: 10px; }
}
@media (max-width: 480px) {
  .countdown-item strong { font-size: 1.8rem; }
  .hero { padding: 100px 20px 70px; }
}
