:root {
  --gold: #b8934a;
  --gold-deep: #8f6f2e;
  --gold-soft: #cfa858;
  --cream: #f8f2e4;
  --cream-deep: #efe4cd;
  --ink: #5b4a2f;
  --ink-soft: #7d6a49;
  --white: #fffdf8;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--cream);
  background-image: url("assets/paper-texture.jpg");
  background-repeat: repeat;
  background-size: 140px 140px;
  color: var(--ink);
  font-family: "EB Garamond", serif;
  overflow-x: hidden;
  position: relative;
}

#sparkles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 40;
}

main {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  z-index: 1;
}

.section {
  position: relative;
  padding: 72px 32px;
  text-align: center;
  overflow: hidden;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- HERO / MONOGRAM ---------- */
.hero {
  padding-top: 56px;
  padding-bottom: 64px;
}

.corner-floral {
  position: absolute;
  width: 190px;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}
.corner-floral img { width: 100%; display: block; }
.corner-tl { top: -18px; left: -50px; }
.corner-br {
  bottom: -30px;
  right: -55px;
  transform: rotate(180deg);
}

.monogram {
  width: 168px;
  max-width: 46vw;
  margin: 0 auto 28px;
  position: relative;
  z-index: 1;
}

.kicker {
  position: relative;
  z-index: 1;
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 380px;
  margin: 0 auto 34px;
}

.hosts {
  position: relative;
  z-index: 1;
  font-family: "Pinyon Script", cursive;
  font-size: 42px;
  color: var(--gold);
  margin: 0 0 22px;
}

.invite-line {
  position: relative;
  z-index: 1;
  font-family: "Cinzel", serif;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 30px;
}

.name-signature {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 6px;
}

.age-label {
  position: relative;
  z-index: 1;
  font-family: "Cinzel", serif;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0;
}

/* ---------- EVENT SECTIONS ---------- */
.event {
  padding-top: 56px;
  padding-bottom: 56px;
}

.event::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.event-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  color: var(--gold-deep);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.event-icon svg { width: 24px; height: 24px; }

.event-title {
  font-family: "Cinzel", serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--gold-deep);
  margin: 0 0 18px;
  position: relative;
  z-index: 1;
}

.event-date {
  font-family: "EB Garamond", serif;
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 2px;
  position: relative;
  z-index: 1;
}

.event-time {
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 20px;
  position: relative;
  z-index: 1;
}

.event-place {
  font-family: "Cinzel", serif;
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 2;
  margin: 0 0 30px;
  position: relative;
  z-index: 1;
}

.event-floral {
  position: absolute;
  width: 200px;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
  bottom: -35px;
  left: -60px;
}
.event-floral img { width: 100%; display: block; }
.event-floral.flipped {
  left: auto;
  right: -60px;
  bottom: auto;
  top: -30px;
  transform: scaleX(-1);
}

/* ---------- BUTTONS ---------- */
.btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-deep);
  text-decoration: none;
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: transparent;
  transition: background 0.35s ease, color 0.35s ease, transform 0.2s ease;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:hover, .btn:focus-visible {
  background: var(--gold);
  color: var(--white);
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

.btn-solid {
  background: var(--gold);
  color: var(--white);
  margin-bottom: 16px;
}
.btn-solid:hover, .btn-solid:focus-visible {
  background: var(--gold-deep);
  color: var(--white);
}

.rsvp-deadline {
  position: relative;
  z-index: 1;
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  margin: 6px 0 0;
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 60px 32px 70px;
  text-align: center;
}
.footer-monogram {
  width: 60px;
  opacity: 0.75;
  margin-bottom: 16px;
}
.footer p {
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 4px 0;
}
.footer-date {
  color: var(--gold-deep) !important;
  letter-spacing: 3px !important;
}

/* ---------- RESPONSIVE ---------- */
@media (min-width: 640px) {
  main {
    max-width: 620px;
    box-shadow: 0 0 80px rgba(139, 111, 46, 0.08);
  }
  .section { padding-left: 60px; padding-right: 60px; }
}

@media (max-width: 380px) {
  .hosts { font-size: 36px; }
  .monogram { width: 140px; }
  .corner-floral { width: 150px; }
  .event-floral { width: 160px; }
}
