/* ==========================================================================
   Homepage — public, no invitation link required
   ========================================================================== */

body.home { color: var(--paper); background: var(--green-deep); }

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(2rem, 6vw, 5rem) 1.25rem;
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img, .hero__media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__media img { opacity: 0; transition: opacity 2.4s var(--ease); }
.hero__media img.is-shown { opacity: 1; }

/* Warm sepia wash + vignette so any photo reads as "old money". */
.hero__media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(10,20,12,0.25) 0%, rgba(8,16,10,0.82) 100%),
    linear-gradient(180deg, rgba(20,36,24,0.55), rgba(12,22,14,0.75));
  z-index: 1;
}
.hero__media img, .hero__media video { filter: sepia(0.22) saturate(0.85) contrast(1.03); }

.hero__inner { position: relative; z-index: 2; max-width: 46rem; }

.hero__eyebrow { margin-bottom: 0.7rem; color: var(--gold-light); }
.hero__address {
  font-family: var(--sans);
  font-size: clamp(0.6rem, 1.6vw, 0.68rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 237, 225, 0.6);
  margin: 0 0 1.7rem;
}
.hero__names {
  font-family: var(--script);
  font-size: clamp(3.2rem, 13vw, 7rem);
  line-height: 1;
  color: var(--paper);
  text-shadow: 0 0.4rem 2rem rgba(0,0,0,0.5);
}
.hero__amp { display: block; font-size: 0.45em; color: var(--gold-light); margin: 0.2rem 0; }
.hero__date {
  font-family: var(--sans);
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  margin-top: 1.6rem;
  color: rgba(242,237,225,0.85);
}
.hero__intro { margin-top: 1.2rem; font-size: 1.1rem; color: rgba(242,237,225,0.7); }

.hero .rule { max-width: 16rem; margin: 2rem auto; color: var(--gold-light); }

/* -------------------------------------------------------------- countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 5vw, 3.2rem);
  margin-top: 2.4rem;
}
.countdown__unit { min-width: 3.5rem; }
.countdown__num {
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
}
.countdown__label {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 0.55rem;
}

.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(242,237,225,0.5); font-size: 1.4rem;
  animation: drift 3s ease-in-out infinite;
}
@keyframes drift { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 0.5rem); } }

/* ---------------------------------------------------------------- section */
.section {
  padding: clamp(4rem, 11vw, 8rem) 1.25rem;
  background: var(--paper);
  color: var(--ink);
}
.section--dark { background: var(--green-deep); color: var(--paper); }
/* Slightly deeper paper so two light sections in a row still read as two. */
.section--alt { background: var(--paper-deep); }
.section__inner { max-width: 56rem; margin: 0 auto; text-align: center; }
/* Serif, not script — the script is reserved for the names and the monogram. */
.section__title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--green);
  margin-bottom: 0.6rem;
}
.section--dark .section__title { color: var(--gold-light); }

/* ------------------------------------------------------------- attendance */
.tally {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.8rem, 5vw, 2.8rem) clamp(2.4rem, 7vw, 4.4rem);
  border: 1px solid rgba(176,141,87,0.55);
  margin-top: 1.4rem;
}
.tally__num {
  font-size: clamp(3rem, 11vw, 5rem);
  line-height: 1;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.tally__label {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-top: 0.8rem;
  color: rgba(242,237,225,0.7);
}

/* --------------------------------------------------------------- timeline */
.timeline {
  list-style: none;
  max-width: 30rem;
  margin: 2.8rem auto 0;
  padding: 0;
  text-align: left;
}

/* Day heading. Sits outside the rail, so the rail breaks between days. */
.tl-day {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 2.4rem 0 1.2rem;
  padding-left: 2.1rem;
}
.tl-day:first-child { margin-top: 0; }

/* Each entry hangs off a hairline rail with a gold dot on it. */
.tl-item {
  position: relative;
  padding: 0 0 1.8rem 2.1rem;   /* 2.1rem matches .tl-day, so text lines up */
}

/* The dot. */
.tl-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
  z-index: 1;
}

/* The rail; drawn as its own element rather than a border so it can start and
   end exactly on the dot centres instead of overshooting past the first one. */
.tl-item::after {
  content: '';
  position: absolute;
  left: 0.275rem;               /* dot centre */
  top: 0.675rem;                /* dot centre */
  bottom: -0.675rem;            /* reaches the next dot's centre */
  width: 1px;
  background: rgba(176,141,87,0.45);
}

/* No rail past the last entry of each day. */
.tl-item:last-child::after,
.tl-item:has(+ .tl-day)::after { display: none; }
.tl-item:last-child { padding-bottom: 0; }

.tl-time {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--green);
  margin-bottom: 0.3rem;
}
.tl-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}
.tl-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0.3rem 0 0;
}

.note strong { font-weight: 500; color: var(--ink); }

/* ------------------------------------------------------------------ links */
/* Explicit breakpoints rather than auto-fit: with four cards, auto-fit lands on
   three-plus-one, which reads as a mistake. 1 / 2 / 4 always stays balanced. */
.links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 2.6rem;
}
@media (min-width: 34rem) { .links { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .links { grid-template-columns: repeat(4, 1fr); } }
.link-card {
  display: block;
  padding: 2.2rem 1.4rem;
  border: 1px solid rgba(35,33,28,0.18);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s var(--ease);
}
.link-card:hover {
  border-color: var(--gold);
  background: rgba(176,141,87,0.07);
  transform: translateY(-4px);
}
.link-card__icon { font-size: 1.5rem; color: var(--gold); }
.link-card__name {
  display: block;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.9rem;
}

.note {
  max-width: 34rem;
  margin: 2.6rem auto 0;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.section--dark .note { color: rgba(242,237,225,0.65); }

/* ----------------------------------------------------------------- footer */
.footer {
  background: var(--green-deep);
  color: rgba(242,237,225,0.45);
  text-align: center;
  padding: 3rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.footer__mark {
  font-family: var(--script);
  font-size: 2rem;
  color: var(--gold-light);
  letter-spacing: normal;
  text-transform: none;
  margin-bottom: 0.9rem;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(1.8rem); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
