/* Home page — mobile-first */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: min(92svh, 48rem);
  overflow: hidden;
  background: var(--green-darker) var(--img-hero-home-sm) center / cover no-repeat;
  scroll-margin-top: var(--nav-height);
}

@media (min-width: 768px) {
  .hero {
    background-image: var(--img-hero-home-lg);
  }
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(22, 36, 21, 0.35) 0%,
    rgba(22, 36, 21, 0.08) 40%,
    rgba(22, 36, 21, 0.55) 100%
  );
  pointer-events: none;
}

.hero-title {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 9vw, 5.5rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 241, 232, 0.92);
  text-align: center;
  line-height: 1.1;
  padding: 0 1.5rem 4.5rem;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.page-home .site-header {
  background: rgba(22, 36, 21, 0.15);
  border-bottom-color: rgba(244, 241, 232, 0.08);
}

.page-home .site-logo,
.page-home .nav-list a {
  color: var(--cream);
}

.page-home .nav-toggle {
  border-color: rgba(244, 241, 232, 0.25);
  color: var(--cream);
}

.intro-section {
  padding-top: 4rem;
  position: relative;
  overflow: hidden;
}

.intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.intro-photo-wrap {
  order: -1;
  position: relative;
  width: 100%;
  max-width: 26.25rem;
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.intro-photo-wrap::before {
  content: "";
  position: absolute;
  top: -5%;
  right: -12%;
  width: 60%;
  height: 55%;
  background: var(--img-intro-accent) center / cover no-repeat;
  opacity: 0.22;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 2;
  transform: rotate(-8deg);
}

.intro-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: introFade 20s ease-in-out infinite;
}

.intro-slide:nth-child(1) { animation-delay: 0s; }
.intro-slide:nth-child(2) { animation-delay: -5s; }
.intro-slide:nth-child(3) { animation-delay: -10s; }
.intro-slide:nth-child(4) { animation-delay: -15s; }

@keyframes introFade {
  0% { opacity: 0; }
  3% { opacity: 1; }
  22% { opacity: 1; }
  25% { opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-slide { animation: none; opacity: 0; }
  .intro-slide:first-child { opacity: 1; position: relative; }
  .intro-slide:not(:first-child) { display: none; }
}

.script-heading {
  color: var(--tan);
  margin-bottom: 1.5rem;
}

.intro-text p {
  max-width: 65ch;
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  color: var(--cream);
}

.signature {
  margin-top: 1.5rem;
  font-family: var(--script);
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  color: var(--tan);
}

/* Tablet and up */
@media (min-width: 768px) {
  .intro-section { padding-top: 5rem; }

  .intro {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }

  .intro-photo-wrap { order: 0; }
}

.dot-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0 1.25rem 4rem;
  max-width: 61.25rem;
  margin: 0 auto;
}

.dot-divider::before,
.dot-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(185, 168, 138, 0.4), transparent);
}

.dot-divider span {
  font-size: 0.875rem;
  color: var(--tan);
  opacity: 0.75;
}

.itinerary-section { padding-top: 0; }

.itinerary-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw + 0.75rem, 3rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--cream);
  margin-bottom: 2.5rem;
}

.itinerary-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(185, 168, 138, 0.28);
}

.itinerary-block:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.date-sidebar {
  background: var(--sage-block);
  padding: 1.25rem 1rem;
  text-align: center;
}

.date-item {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-deep);
  line-height: 1.55;
}

.itinerary-day--friday .event-icon--sun {
  width: 5.5rem;
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
}

.itinerary-day--friday .event-name,
.itinerary-day--friday .event-time,
.itinerary-day--friday .event-desc {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.itinerary-day--friday .event-desc {
  max-width: 32rem;
}

.events-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.event {
  text-align: center;
}

.event-icon {
  width: 4.25rem;
  height: 4.25rem;
  margin: 0 auto 1.25rem;
  display: block;
}

.event-icon path,
.event-icon circle,
.event-icon line {
  fill: none;
  stroke: var(--cream);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-icon--sun line,
.event-icon--sun circle {
  stroke: var(--tan);
}

.event-name {
  font-family: var(--script);
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  color: var(--sage);
  line-height: 1.15;
  margin-bottom: 0.65rem;
}

.event-time {
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 0.65rem;
}

.event-desc {
  font-size: 1rem;
  color: var(--cream);
  line-height: 1.7;
  max-width: 18rem;
  margin: 0 auto;
}

.event-desc em {
  font-style: normal;
  color: var(--sage);
}

/* Tablet and up — date sidebar beside each day block */
@media (min-width: 768px) {
  .itinerary-block {
    grid-template-columns: 11rem 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 5.5rem;
    padding-bottom: 5.5rem;
  }

  .date-sidebar {
    min-height: 10rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2.5rem 1rem;
  }

  .events-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

.comb-footer {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-top: 3rem;
}

.comb-footer span {
  display: block;
  width: 2px;
  background: var(--tan);
  opacity: 0.55;
}

.comb-footer span:nth-child(1) { height: 6px; }
.comb-footer span:nth-child(2) { height: 10px; }
.comb-footer span:nth-child(3) { height: 14px; }
.comb-footer span:nth-child(4) { height: 10px; }
.comb-footer span:nth-child(5) { height: 6px; }

.rsvp {
  position: relative;
  text-align: center;
  background: var(--green-deep);
  padding: 5rem 1.25rem 0;
  overflow: hidden;
}

.rsvp-inner {
  position: relative;
  max-width: 32rem;
  margin: 0 auto;
  padding-bottom: 7rem;
}

.rsvp-arch {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto 1.75rem;
  display: block;
}

.rsvp-arch text {
  fill: var(--cream);
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.rsvp-pinky {
  width: 7rem;
  height: auto;
  margin: 0 auto 2rem;
  display: block;
}

.rsvp-pinky path {
  fill: none;
  stroke: var(--cream);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rsvp-line {
  font-family: "Josefin Sans", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 2;
  margin: 0;
}

.rsvp-line--small {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  margin-top: 0.25rem;
  margin-bottom: 0;
  opacity: 0.85;
}

.rsvp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  min-width: 11rem;
  padding: 0.875rem 2.5rem;
  background: var(--cream);
  color: var(--green-deep);
  text-decoration: none;
  font-family: "Josefin Sans", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease;
}

.rsvp-btn:hover {
  background: var(--sage);
  color: var(--green-darker);
}

.rsvp-btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

.rsvp-leaves {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 120%;
  max-width: 50rem;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
}

@media (min-width: 768px) {
  .rsvp {
    padding: 6rem 1.5rem 0;
  }

  .rsvp-arch text {
    font-size: 1.85rem;
  }

  .rsvp-line {
    font-size: 0.9375rem;
  }
}
