/* ============================================================
   pages.css — page-specific tweaks
   ============================================================ */

/* Home — welcome section leads with space above, then hands off tightly to the
   countdown that follows it. */
.home-welcome {
  padding-top: clamp(4rem, 8vw, 6.5rem);
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

.home-welcome .divider { padding-top: clamp(1.5rem, 4vw, 2.5rem); }

.home-welcome + .countdown { padding-top: clamp(1.5rem, 3.5vw, 2.5rem); }

/* Home — airports list in Getting Here: place and drive time on one ruled row,
   with an optional note beneath. */
.airport-list {
  list-style: none;
  margin: 1.6rem 0 1.75rem;
  padding: 0;
  max-width: 30rem;
  border-top: 1px solid var(--rule-soft);
}

.airport-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule-soft);
}

.airport-list__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.airport-list__place {
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.2;
  color: var(--ink);
}

.airport-list__code {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--olive-deep);
  margin-left: 0.45rem;
  vertical-align: 0.12em;
}

.airport-list__time {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--charcoal);
  white-space: nowrap;
}

.airport-list__note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--brown);
  max-width: 40ch;
}

/* Registry — four registries across, closing card spans the row beneath them */
.registry-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1020px) {
  .registry-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .registry-list { grid-template-columns: 1fr; }
}

.registry-card {
  border: 1px solid var(--rule-soft);
  padding: 2.25rem 2rem;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.registry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--olive);
}

.registry-card h3 { margin: 0; font-size: var(--step-1); }
.registry-card p { font-size: 0.95rem; margin: 0; color: var(--charcoal); }
.registry-card a { margin-top: auto; }

/* RSVP */
.rsvp-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

@media (max-width: 820px) {
  .rsvp-layout { grid-template-columns: 1fr; }
}

.rsvp-layout aside h2 { max-width: 16ch; }
.rsvp-layout aside p { color: var(--charcoal); max-width: 38ch; }

/* Schedule — day heading sits between its eyebrow and the event list */
.day-title { margin: 1rem 0 2.5rem; }

/* Travel — address line under the map */
.map-address {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--brown);
  margin: 1.5rem 0 0;
}
.map-address a {
  color: var(--teal);
  border-bottom: 1px solid var(--olive);
  padding-bottom: 1px;
}
.map-address a:hover { color: var(--teal-deep); }

/* Registry — small-caps tag pinned to the card foot */
.registry-card__tag {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive-deep);
}

/* Registry — illustrated card variant (artwork banner, padded body) */
.registry-card--illustrated {
  padding: 0;
  align-items: stretch;
  gap: 0;
}

/* Registry — full-width closing card, artwork beside the copy */
.registry-card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.registry-card--wide .registry-card__art {
  flex: 0 0 30%;
  aspect-ratio: auto;
}

.registry-card--wide .registry-card__body { justify-content: center; }

.registry-card--wide:hover { transform: none; }

@media (max-width: 560px) {
  .registry-card--wide { flex-direction: column; }
  .registry-card--wide .registry-card__art {
    flex: 0 0 auto;
    aspect-ratio: 600 / 260;
  }
}

.registry-card__art {
  aspect-ratio: 600 / 260;
  background: var(--teal-night);
  overflow: hidden;
}

.registry-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.registry-card__body {
  padding: 1.6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
}

/* RSVP — embedded Google Form */
.form-embed {
  border: 1px solid var(--rule-soft);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.form-embed iframe {
  display: block;
  width: 100%;
  height: 920px; /* fits the current form; it scrolls internally if questions are added */
  border: 0;
}

.rsvp-fallback {
  text-align: center;
  margin-top: 1.75rem;
}

/* Illustrated map card (travel) */
.map-card {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--rule-soft);
  background: var(--teal-night);
}

.map-card svg { width: 100%; height: 100%; }

.map-card__caption {
  position: absolute;
  left: 1.25rem;
  bottom: 1.1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-1);
  color: rgba(248, 246, 230, 0.92);
}
