:root {
  --bg-ivory: #f9f4ec;
  --bg-warm: #efe4d5;
  --ink: #2e2217;
  --ink-soft: #5f4e3c;
  --gold: #b9935f;
  --gold-deep: #8f6836;
  --rose: #b57f77;
  --panel: rgba(255, 251, 245, 0.9);
  --line: rgba(78, 59, 37, 0.19);
  --shadow: 0 18px 45px rgba(34, 22, 10, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at -10% 10%, rgba(181, 127, 119, 0.24), transparent 38%),
    radial-gradient(circle at 110% 96%, rgba(185, 147, 95, 0.2), transparent 32%),
    linear-gradient(180deg, var(--bg-ivory) 0%, var(--bg-warm) 100%);
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    repeating-linear-gradient(45deg, transparent 0, transparent 30px, rgba(255, 255, 255, 0.08) 31px, transparent 33px);
  z-index: 0;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.02em;
  margin: 0;
}

p {
  margin: 0 0 1rem;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 2rem 1.2rem;
}

#background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(16, 9, 3, 0.45), rgba(15, 7, 2, 0.68)),
    linear-gradient(120deg, rgba(185, 147, 95, 0.27), rgba(0, 0, 0, 0));
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(circle, rgba(0, 0, 0, 0) 18%, rgba(0, 0, 0, 0.54) 100%);
}

.hero-content {
  z-index: 4;
  text-align: center;
  color: #fffaf2;
  max-width: 780px;
  position: relative;
}

.monogram {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.35em;
  font-size: 0.9rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(255, 250, 242, 0.45);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.08);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.23em;
  font-size: 0.72rem;
  margin-bottom: 1rem;
}

.couple-names {
  font-family: "Allura", cursive;
  font-weight: 400;
  font-size: clamp(3.4rem, 10vw, 6.6rem);
  line-height: 1;
  margin-bottom: 1rem;
}

.hero-line {
  font-size: clamp(0.92rem, 2.5vw, 1.15rem);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.scripture {
  color: rgba(255, 250, 242, 0.93);
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  max-width: 650px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: inline-block;
  text-decoration: none;
  color: #fffaf2;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid rgba(255, 250, 242, 0.72);
  padding: 0.9rem 1.35rem;
  background: rgba(255, 250, 242, 0.14);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.23);
  transition: transform 0.26s ease, background-color 0.26s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  background: rgba(255, 250, 242, 0.26);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 90px;
  z-index: 4;
  background:
    radial-gradient(100% 110% at 50% 0%, transparent 65%, var(--bg-ivory) 66%);
}

main {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  padding-bottom: 2rem;
}

.page-decor {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  filter: blur(2px);
}

.decor-left {
  left: -90px;
  top: 180px;
  background: radial-gradient(circle, rgba(181, 127, 119, 0.24), rgba(181, 127, 119, 0));
}

.decor-right {
  right: -90px;
  top: 560px;
  background: radial-gradient(circle, rgba(185, 147, 95, 0.24), rgba(185, 147, 95, 0));
}

section {
  position: relative;
  z-index: 2;
  width: min(1080px, 92vw);
  margin: 0 auto 2.2rem;
  border-radius: 20px;
  padding: clamp(2rem, 4vw, 3.3rem);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(3px);
}

.countdown-section {
  margin-top: -66px;
  text-align: center;
}

.story {
  background:
    linear-gradient(130deg, rgba(255, 251, 245, 0.92), rgba(247, 236, 219, 0.92));
}

.timeline {
  background:
    linear-gradient(130deg, rgba(255, 247, 236, 0.94), rgba(255, 251, 245, 0.92));
}

.details {
  background:
    linear-gradient(130deg, rgba(250, 242, 231, 0.94), rgba(255, 251, 245, 0.92));
}

.note {
  background:
    linear-gradient(135deg, rgba(255, 248, 237, 0.94), rgba(249, 236, 228, 0.88));
}

.rsvp {
  background:
    linear-gradient(135deg, rgba(255, 251, 246, 0.95), rgba(244, 233, 216, 0.9));
}

.section-head {
  text-align: center;
  margin-bottom: 1.4rem;
}

.section-head h2,
.countdown-section h2,
.note h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--ink);
}

.ornament {
  width: min(180px, 60%);
  height: 1px;
  margin: 0.75rem auto 0;
  background:
    linear-gradient(90deg, transparent 0%, var(--gold) 20%, var(--gold) 80%, transparent 100%);
  position: relative;
}

.ornament::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(84px, 1fr));
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.count-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 0.6rem;
  background: linear-gradient(180deg, #fffef9, #fff7eb);
}

.count-value {
  display: block;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  color: var(--gold-deep);
  line-height: 1;
}

.count-label {
  display: block;
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.story p,
.note p {
  max-width: 790px;
  margin-inline: auto;
  text-align: center;
  color: var(--ink-soft);
}

.timeline-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.timeline-grid::before {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  top: 54px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(143, 104, 54, 0.45), transparent);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.timeline-item,
.detail-card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 10px 22px rgba(39, 24, 10, 0.07);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.timeline-item:hover,
.detail-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px rgba(39, 24, 10, 0.11);
}

.timeline-item .time {
  color: var(--gold-deep);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin-bottom: 0.36rem;
}

.timeline-item h3,
.detail-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.2rem;
}

.timeline-item p,
.detail-card p {
  margin: 0;
  color: var(--ink-soft);
}

.note-panel {
  max-width: 760px;
  margin: 0 auto;
}

.note-panel h2 {
  text-align: center;
  margin-bottom: 0.78rem;
}

.rsvp-intro {
  text-align: center;
  color: var(--ink-soft);
}

.rsvp-form {
  max-width: 690px;
  margin: 1.1rem auto 0;
  display: grid;
  gap: 0.72rem;
}

.rsvp-form label {
  font-size: 0.87rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  border: 1px solid rgba(91, 75, 58, 0.25);
  border-radius: 10px;
  background: #fffefb;
  padding: 0.84rem 0.92rem;
  font-size: 0.95rem;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-color: var(--gold);
  outline: 2px solid rgba(185, 147, 95, 0.22);
}

.rsvp-form button {
  margin-top: 0.35rem;
  border: none;
  border-radius: 999px;
  padding: 0.87rem 1.14rem;
  font-family: "Manrope", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 700;
  color: #fff9f2;
  background: linear-gradient(135deg, #74502c, #b9935f);
  box-shadow: 0 10px 24px rgba(66, 41, 14, 0.2);
  cursor: pointer;
  transition: transform 0.24s ease, filter 0.24s ease;
}

.rsvp-form button:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.rsvp-form button:disabled {
  cursor: wait;
  filter: grayscale(0.2);
  opacity: 0.8;
}

.form-status {
  min-height: 1.4rem;
  margin: 0.24rem 0 0;
  font-size: 0.93rem;
}

.form-status.success {
  color: #246b42;
}

.form-status.error {
  color: #8d2f2f;
}

.site-footer {
  width: min(1000px, 92vw);
  margin: 0 auto 2.3rem;
  text-align: center;
  color: #6f5d49;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .timeline-grid::before {
    display: none;
  }

  .details-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .countdown-section {
    margin-top: -40px;
  }

  .page-decor {
    width: 170px;
    height: 170px;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-inline: 0.8rem;
  }

  .eyebrow {
    letter-spacing: 0.16em;
  }

  section {
    width: min(94vw, 900px);
    padding: 1.55rem 1rem;
    border-radius: 14px;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
  }
}
