/* ===== TOKENS ===== */
:root {
  --green: #0c3b14;
  --green-soft: #2c5a34;
  --tan: #b07a50;
  --cream: #faf6ef;
  --white: #ffffff;
  --ink: #000000;
  --muted: #000000;
  --border: rgba(12, 59, 20, 0.15);

  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Allura", "Great Vibes", cursive;
  --script-alt: "Great Vibes", "Allura", cursive;
  --sans: "Open Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }

/* ===== INTRO ===== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  cursor: pointer;
  background: #f5f1ea;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 700ms ease;
  overflow: hidden;
}
.intro.is-hiding { opacity: 0; pointer-events: none; }
.intro__envelope {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}
@media (max-width: 899px) {
  .intro__envelope {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
  }
}
.intro__envelope--open { z-index: 1; }
.intro__envelope--closed {
  z-index: 2;
  transition:
    transform 900ms cubic-bezier(0.55, 0, 0.55, 1),
    opacity 600ms ease 400ms;
}
.intro.is-opening .intro__envelope--closed {
  transform: scale(2.2);
  opacity: 0;
}
.intro.is-opening .intro__envelope--open {
  transition: opacity 600ms ease 400ms;
  opacity: 0;
}
.intro.is-opening .intro-cta {
  opacity: 0;
}
.intro-cta {
  position: absolute;
  bottom: 8vh;
  left: 0; right: 0;
  z-index: 3;
  text-align: center;
  color: var(--green);
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: pulse 2.4s ease-in-out infinite;
  pointer-events: none;
  transition: opacity 400ms ease;
}
@keyframes pulse {
  0%,100% { opacity: 0.65; }
  50% { opacity: 1; }
}

/* ===== MUSIC TOGGLE ===== */
.music-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  width: 48px; height: 48px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  backdrop-filter: blur(6px);
}
.music-toggle:hover { background: #fff; }

/* ===== LAYOUT ===== */
.content { display: block; }
.section { padding: 88px 20px; }
.section--cream { background: var(--cream); }
.container { max-width: 1040px; margin: 0 auto; }
.container--narrow { max-width: 680px; }
.center { text-align: center; }

/* ===== HERO VIDEO ===== */
.hero-video {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #fbfbfb;
  display: flex;
  flex-direction: column;
}
.hero-video__media {
  background: #fbfbfb;
  transform: scale(1.18);
  transform-origin: center top;
}
.hero-video__text {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 18vh 24px 24px;
  color: var(--ink);
  text-shadow: none;
  flex-shrink: 0;
  order: 1;
}
.hero-video__media {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: contain;
  object-position: center top;
  position: static;
  order: 2;
}
.hero-video__overlay { display: none; }

.scroll-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--green);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  transition: background 200ms;
}
.scroll-hint:hover {
  background: rgba(255, 255, 255, 0.9);
}
.scroll-hint__label {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}
.scroll-hint__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scroll-bounce 1.8s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(6px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint { animation: none; }
}
.script-xl {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.5rem, 11vw, 6.5rem);
  margin: 0 0 0.6rem;
  line-height: 1;
}
.script-xl .amp { font-size: 0.7em; opacity: 0.95; }
.script-md {
  font-family: var(--script);
  font-size: clamp(2rem, 5.5vw, 3rem);
  margin: 0.5rem 0;
  line-height: 1.2;
}
.script-sm {
  font-family: var(--script);
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  margin: 0 0 0.4rem;
  color: var(--green);
}
.heart {
  margin: 0.2rem 0;
  font-size: 1.4rem;
  opacity: 1;
  color: #e67787;
}

/* ===== TYPOGRAPHY ===== */
.serif-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.8rem, 4.2vw, 2.6rem);
  color: var(--green);
  margin: 0 0 0.5rem;
  letter-spacing: 0.01em;
}
.serif-sub {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-style: italic;
  line-height: 1.5;
  font-weight: 400;
  color: var(--muted);
}
.serif-tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
  font-size: 1.15rem;
  margin: 0 0 2.4rem;
}
.serif-name {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--green);
  font-size: 1.35rem;
  margin: 0.2rem 0;
}
.serif-and {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  margin: 0.4rem 0;
}
.serif-note {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  margin-top: 2.2rem;
  font-style: italic;
}
.serif-message {
      margin-top: 1.8rem;
    font-family: var(--serif);
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-style: italic;
    line-height: 1.4;
    font-weight: 700;
}

/* ===== PARENTS / GODPARENTS (split-duo) ===== */
.split-duo {
  padding: 0px 20px;
  padding-top:80px;
  position: relative;
  overflow: hidden;
}
.split-duo__deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.92;
}
.split-duo__deco--bl {
  width: clamp(180px, 22vw, 320px);
  left: -100px;
  bottom: -167px;
  transform: rotate(45deg);
}
.split-duo__deco--bl-section {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.92;
  width: clamp(220px, 28vw, 420px);
  left: -60px;
  bottom: -60px;
  transform: rotate(45deg);
}
@media (max-width: 899px) {
  .split-duo__deco--bl-section {
    width: clamp(180px, 60vw, 320px);
    left: -80px;
    bottom: -50px;
  }
}
.split-duo__deco--tr {
  width: clamp(160px, 18vw, 260px);
  right: -50px;
  top: -40px;
  display: none;
}
@media (max-width: 899px) {
  .split-duo__deco--bl {
           width: clamp(120px, 49vw, 400px);
        left: -104px;
        bottom: 36px;
  }
  .split-duo__deco--tr {
    width: clamp(120px, 49vw, 400px);
        right: -110px;
        top: 92px;
        transform: rotate(328deg);
        z-index: -1;
        display: block;
  }
}
.split-duo__inner {
  position: relative;
  z-index: 2;
}
.split-duo__inner {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.split-duo__text {
  text-align: center;
  display: grid;
  gap: 1.6rem;
  position: relative;
}
.split-duo__text .serif-tagline {
  font-family: var(--sans);
  margin: 0 0 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-style: normal;
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  color: var(--ink);
  font-weight: 600;
}
.duo-stack {
  display: grid;
  gap: 1.8rem;
  justify-items: center;
}
.duo-block {
  display: grid;
  gap: 0.2rem;
  justify-items: center;
}
.duo-block .script-sm {
  margin-bottom: 0.9rem;
  color: var(--ink);
  font-style: italic;
  font-family: var(--script);
  font-size: clamp(1.5rem, 4.5vw, 1.6rem);
  line-height: 1;
  font-weight: 600;
}
.duo-block .serif-name {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0.25rem 0;
}
.duo-block .serif-and {
  margin: 0.3rem 0;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-style: italic;
  color: var(--muted);
}
.duo-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  max-width: 280px;
  margin: 0.6rem auto;
}
.duo-divider::before,
.duo-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(12, 59, 20, 0.25);
}
.duo-divider__amp {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.6vw, 2.2rem);
  color: var(--green);
  line-height: 1;
}
.split-duo__text .serif-note {
     margin-top: 1.8rem;
    font-family: var(--serif);
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-style: italic;
    line-height: 1.4;
    font-weight: 700;
}
.countdown-ornament {
  display: flex;
  justify-content: center;
  margin: 0 0 0.6rem;
}
.countdown-ornament img {
  width: clamp(140px, 18vw, 200px);
  height: auto;
  display: block;
}
.split-duo--countdown { background: var(--cream); }
.split-duo--countdown .serif-title { margin: 0.2rem 0 0.4rem; }
.split-duo--countdown .serif-sub { margin: 0 0 0.6rem; }
.split-duo--countdown .serif-message { margin: 0 0 1.4rem; }

.split-duo__image {
  width: 60%;
  margin: 0 auto;
  margin-bottom: 80px;
}
.split-duo:not(.split-duo--countdown) .split-duo__image {
  margin-bottom: -80px;
}
.split-duo__image img,
.split-duo__image video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Card frame for countdown image */
.split-duo--countdown .split-duo__image {
  background: #ffffff;
  padding: 14px;
  border-radius: 14px;
  box-shadow: 0 18px 50px -20px rgba(12, 59, 20, 0.25),
              0 8px 22px -10px rgba(0, 0, 0, 0.12);
}
.split-duo--countdown .split-duo__image img,
.split-duo--countdown .split-duo__image video {
  border-radius: 6px;
}
@media (max-width: 899px) {
  .split-duo__image {
    margin-left: -100px;
    margin-right: -100px;
    width: calc(100% + 200px);
  }
  .split-duo__image img,
.split-duo__image video {
    border-radius: 0;
  }
  /* Countdown image keeps card frame on mobile, no overflow */
  .split-duo--countdown .split-duo__image {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 460px;
    margin-bottom: 80px;
  }
  .split-duo--countdown .split-duo__image img,
  .split-duo--countdown .split-duo__image video {
    border-radius: 6px;
  }
}
@media (min-width: 900px) {
  .split-duo__inner {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
}

/* ===== COUNTDOWN ===== */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  max-width: 520px;
  margin: 1rem auto 0;
}
.countdown__cell {
  background: #ffffff;
  border: 0;
  border-radius: 14px;
  padding: 1.4rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 18px 50px -20px rgba(12, 59, 20, 0.25),
              0 8px 22px -10px rgba(0, 0, 0, 0.12);
}
.countdown__cell span {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 600;
  color: var(--green);
  line-height: 1;
}
.countdown__cell label {
  font-family: var(--sans);
  margin-top: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== LOCATIONS ===== */
.locations {
  position: relative;
  overflow: hidden;
  padding: 80px 20px;
  background: var(--white);
}
.locations__deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.92;
}
.locations__deco--bl {
  width: clamp(180px, 22vw, 320px);
  left: -60px;
  bottom: 80px;
  transform: rotate(45deg);
}
.locations__deco--tr {
  width: clamp(160px, 18vw, 260px);
  right: -50px;
  top: 80px;
}
@media (max-width: 899px) {
  .locations__deco--bl {
    width: clamp(140px, 49vw, 220px);
    left: -96px;
    bottom: 60px;
  }
  .locations__deco--tr {
    width: clamp(120px, 49vw, 400px);
    right: -94px;
    top: 60px;
    transform: rotate(328deg);
  }
}
.locations__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}
.locations__header { text-align: center; margin-bottom: 2.4rem; }

/* Dress code block at end of locations */
.dress-code {
  margin: 3.5rem auto 0;
  max-width: 520px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 0 1rem;
}
.dress-code__icon {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px -4px rgba(12, 59, 20, 0.18);
}
.dress-code__text {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--ink);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.dress-code__text strong {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--green);
  font-size: 1.2em;
}
.dress-code__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: var(--green);
  background: var(--cream);
  text-decoration: none;
  transition: background 150ms, color 150ms;
}
.dress-code__info:hover {
  background: var(--green);
  color: #ffffff;
}

/* ===== TIMELINE (centered axis) ===== */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 600px;
  text-align: center;
  position: relative;
}
.timeline__item {
  position: relative;
  padding: 0.6rem 0 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timeline__item:last-child { padding-bottom: 0.6rem; }
/* Line only in the gap between items, not behind any text */
.timeline__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.6rem;
  width: 1px;
  height: 1.8rem;
  background: rgba(12, 59, 20, 0.35);
  transform: translateX(-50%);
}
/* Small line above each icon (except first) to visually link to previous */
.timeline__item:not(:first-child)::before {
  content: "";
  position: absolute;
  top: -0.6rem;
  left: 50%;
  width: 1px;
  height: 1rem;
  background: rgba(12, 59, 20, 0.35);
  transform: translateX(-50%);
}
.timeline__icon {
  width: 64px; height: 64px;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 18px -4px rgba(12, 59, 20, 0.4);
}
/* Short line right below each icon */
.timeline__icon::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1px;
  height: 1.6rem;
  background: rgba(12, 59, 20, 0.35);
  transform: translateX(-50%);
}
.timeline__icon svg { width: 30px; height: 30px; }
.timeline__body {
  margin-top: 1.6rem;
  padding: 0 1rem;
}
.timeline__time {
     font-family: var(--serif);
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-style: italic;
    line-height: 1.4;
    font-weight: 700;
}
.timeline__time em { font-style: italic; }
.timeline__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--green);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 1.1rem;
  line-height: 1.2;
}
.timeline__place {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink);
  line-height: 1.4;
  font-weight: 600;
}
.timeline__addr {
  margin: 0.25rem 0 1.1rem;
  color: var(--muted);
  font-family: var(--sans);
  font-style: italic;
  font-size: 0.95rem;
}
.timeline__map {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--green);
  font-family: var(--sans);
  font-size: 0.98rem;
  transition: color 150ms;
  font-weight: 600;
}
.timeline__map svg { flex-shrink: 0; }
.timeline__map:hover { color: var(--tan); }
@media (max-width: 600px) {
  .timeline__icon { width: 56px; height: 56px; }
  .timeline__icon svg { width: 26px; height: 26px; }
  .timeline__body { margin-top: 1.3rem; }
}

/* ===== BANNER ===== */
.banner {
  position: relative;
  min-height: 60svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}
.banner__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.banner__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.34);
  z-index: 1;
}
.banner__title {
  position: relative;
  z-index: 2;
  font-family: var(--script-alt);
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 5rem);
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}

/* ===== RSVP FORM ===== */
.rsvp {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.5rem;
  text-align: left;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field > span,
.field > legend {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-family: var(--sans);
  font-size: 1rem;
  font: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 150ms, box-shadow 150ms;
  font-size: 1.2rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(12,59,20,0.12);
}
.field--radio {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin: 0;
}
.field--radio legend { padding: 0 0.4rem; }
.field--radio label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
}
.field--radio input { accent-color: var(--green); }
.field__hint {
  margin: 0.2rem 0 0.6rem;
  font-size: 0.92rem;
  color: var(--muted);
  font-style: italic;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

.btn {
  appearance: none;
  border: 0;
  background: var(--green);
  color: #fff;
  font-family: var(--sans);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 1.6rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 160ms, transform 160ms;
  margin-top: 0.4rem;
}
.btn:hover { background: var(--green-soft); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.rsvp__status {
  min-height: 1.4em;
  margin: 0;
  font-style: italic;
  text-align: center;
}
.rsvp__status.is-success { color: var(--green); }
.rsvp__status.is-error { color: #b91c1c; }

.menus {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.4rem;
}
.menu-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.menu-row__label {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--green);
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
}
.menu-row select {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: var(--ink);
  outline: none;
}
.menu-row select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(12,59,20,0.12);
}
@media (max-width: 460px) {
  .menu-row { grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
.footer {
  padding: 60px 20px;
  text-align: center;
  background: var(--cream);
  border-top: 1px solid var(--border);
}
.footer__small {
  font-family: var(--sans);
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ===== UTILITIES ===== */
[hidden] { display: none !important; }
