/* =========================================================
   Ari & Josh — Save the Date
   Aesthetic: modern art museum (MoMA/Guggenheim) meets
   quiet, organic editorial. Generous space, strong type,
   restrained motion.
   ========================================================= */

:root {
  /* Palette — warm gallery paper, ink, and two accents */
  --paper:       #FBF6EE;
  --paper-alt:   #F5EEE2;
  --card:        #FFFFFF;
  --ink:         #1B2430;
  --muted:       #5C574E;
  --burgundy:    #7E2A3B;
  --gold:        #A9761F;
  --line:        #E7DDCD;
  --note-bg:     #F6E7E4;

  /* Type */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rhythm */
  --wrap: 1180px;
  --gap: clamp(1.1rem, 2vw, 1.6rem);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, iframe { max-width: 100%; }

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap { width: min(var(--wrap), 100% - 2.4rem); margin-inline: auto; }

.stop,
.section,
.venue { scroll-margin-top: 72px; }

/* ---------- Shared type ---------- */
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 1rem;
}
.eyebrow--burgundy { color: var(--burgundy); }
.eyebrow--gold { color: var(--gold); }

.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.9rem;
}

.section__lede {
  max-width: 60ch;
  color: var(--muted);
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  font-size: clamp(1.02rem, 0.99rem + 0.25vw, 1.15rem);
}
.section__lede strong { color: var(--ink); font-weight: 600; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.nav.is-scrolled { border-color: var(--line); }

.nav__inner {
  width: min(var(--wrap), 100% - 2.4rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.nav__mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.nav__links { display: flex; gap: clamp(1rem, 2.4vw, 2rem); }
.nav__links a {
  text-decoration: none;
  font-size: 0.86rem;
  color: var(--muted);
  position: relative;
  padding: 0.2rem 0;
  transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--burgundy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  padding: clamp(3rem, 8vh, 7rem) 0 clamp(3rem, 7vh, 6rem);
  position: relative;
  overflow: hidden;
}
/* soft organic wash */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 78% 18%, rgba(169,118,31,0.10), transparent 60%),
    radial-gradient(55% 50% at 12% 88%, rgba(126,42,59,0.09), transparent 62%);
  pointer-events: none;
}
.hero__inner {
  width: min(var(--wrap), 100% - 2.4rem);
  margin-inline: auto;
  position: relative;
  max-width: 760px;
}
.hero .eyebrow { color: var(--burgundy); }

.hero__names {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 1.5rem + 9vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0 0 1.4rem;
}
.hero__names .amp {
  font-style: italic;
  color: var(--burgundy);
  font-weight: 400;
}

.hero__date {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0 0 0.6rem;
}
.hero__day {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.hero__big {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.6rem);
  font-weight: 500;
}
.hero__year { color: var(--muted); font-weight: 400; }

.hero__place {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 1.8rem;
}

.hero__lede {
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem);
  max-width: 56ch;
  margin: 0 0 1.1rem;
  color: var(--ink);
}
.hero__note {
  max-width: 56ch;
  color: var(--muted);
  margin: 0 0 1.4rem;
}

.hero-survey {
  max-width: 56ch;
  margin: 0;
  padding: 1.15rem 1.3rem 1.25rem;
  background: var(--note-bg);
  border-radius: 14px;
  border-left: 3px solid var(--burgundy);
}
.hero-survey__prompt {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}

.hero__cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.5rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(27,36,48,0.16); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: clamp(3.5rem, 9vh, 7rem) 0; }
.section--alt { background: var(--paper-alt); }

/* ---------- Card grid ---------- */
.cards {
  display: grid;
  gap: var(--gap);
}
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 2.4vw, 1.9rem);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(27,36,48,0.09);
  border-color: color-mix(in srgb, var(--gold) 40%, var(--line));
}

/* ---------- Day cards (The Weekend) ---------- */
.day-card__dow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy);
  font-weight: 600;
  margin: 0;
}
.day-card__date {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.2rem);
  margin: 0.15rem 0 0.6rem;
  font-weight: 500;
}
.day-card__head {
  font-size: 1.05rem;
  color: var(--gold);
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.day-card__body { margin: 0; color: var(--muted); font-size: 0.98rem; }

.day-card--feature {
  background: var(--ink);
  border-color: var(--ink);
}
.day-card--feature .day-card__dow { color: #E7A6B4; }
.day-card--feature .day-card__date { color: var(--paper); }
.day-card--feature .day-card__head { color: #E4B75F; }
.day-card--feature .day-card__body { color: #C7CDD6; }

.mini-timeline {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: grid;
  gap: 0.5rem;
}
.mini-timeline li {
  font-size: 0.9rem;
  color: #C7CDD6;
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 0.5rem;
}
.mini-timeline li span { color: #E4B75F; font-weight: 600; }

.dress {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--ink);
}
.dress span {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
}
.day-card--feature .dress { color: var(--paper); }
.day-card--feature .dress span { color: #E4B75F; }

.dress-callout {
  margin: 1.15rem 0 0;
  padding: 0.9rem 1rem;
  background: var(--paper-alt);
  border-radius: 10px;
  border-left: 3px solid var(--gold);
}
.dress-callout span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.2rem;
}
.dress-callout strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}
.day-card--feature .dress-callout {
  background: color-mix(in srgb, var(--gold) 18%, transparent);
  border-left-color: #E4B75F;
}
.day-card--feature .dress-callout span { color: #E4B75F; }
.day-card--feature .dress-callout strong { color: var(--paper); }

.tbd {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}
.day-card--feature .tbd { color: #C7CDD6; }

.transport-callout {
  margin: 1.15rem 0 0;
  padding: 0.85rem 0.95rem;
  background: color-mix(in srgb, var(--gold) 18%, transparent);
  border-radius: 10px;
  color: var(--paper);
  font-size: 0.9rem;
  line-height: 1.45;
}
.transport-callout span { margin-right: 0.35rem; }

/* ---------- Stops (Saturday itinerary) ---------- */
.stop {
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  display: grid;
  grid-template-columns: minmax(22rem, 1.35fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stop--simple {
  grid-template-columns: 1fr;
}
.stop--ceremony {
  grid-template-columns: minmax(22rem, 1.2fr) minmax(0, 1fr);
  grid-template-areas:
    "text map"
    "agenda agenda";
}
.stop--ceremony .stop__text { grid-area: text; }
.stop--ceremony .map-frame { grid-area: map; }
.stop--ceremony .ceremony-agenda { grid-area: agenda; }
.stop__text {
  padding: clamp(2rem, 3.6vw, 3.1rem);
  min-width: 0;
}
.stop__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
  font-weight: 500;
  margin: 0 0 0.35rem;
}
.stop__place { font-weight: 600; margin: 0 0 0.2rem; }
.stop__addr { margin: 0 0 0.7rem; color: var(--muted); font-size: 0.96rem; }
.stop__hint { color: var(--muted); margin: 0 0 1.15rem; font-size: 1.02rem; line-height: 1.65; max-width: 48ch; }

.dress-block {
  margin: 1.35rem 0 1.4rem;
  padding: 1.15rem 1.25rem;
  background: var(--paper-alt);
  border-radius: 12px;
}
.dress-block .dress { margin: 0 0 0.45rem; }
.dress-block p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
  max-width: none;
}
.dress-block a {
  color: var(--burgundy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--burgundy) 35%, transparent);
}
.dress-block a:hover { border-bottom-color: var(--burgundy); }

.places {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 0.4rem;
}
.place {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.05rem 1.15rem;
  background: var(--paper-alt);
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.place:hover {
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
  transform: translateY(-2px);
}
.place strong { font-weight: 600; font-size: 1.02rem; }
.place span { font-size: 0.84rem; color: var(--muted); }

.host-callout {
  margin: 1.15rem 0 1.2rem;
  padding: 1rem 1.1rem;
  background: var(--note-bg);
  border-radius: 12px;
  border-left: 3px solid var(--burgundy);
}
.host-callout__label {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--burgundy);
}
.host-callout__names {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 0.35rem;
}
.host-callout__body {
  margin: 0;
  color: #6a3540;
  font-size: 0.92rem;
}

.ceremony-agenda {
  padding: clamp(2rem, 3.6vw, 3.1rem);
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 70%, var(--card));
}
.ceremony-agenda h4 {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem);
  font-weight: 500;
  margin: 0 0 0.35rem;
}
.agenda {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  counter-reset: agenda;
}
.agenda li {
  display: grid;
  grid-template-columns: minmax(9.5rem, 16%) 1fr;
  gap: 1.4rem 2rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  counter-increment: agenda;
}
.agenda li:first-child { border-top: 0; }
.agenda__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.12rem;
  margin: 0;
  line-height: 1.3;
}
.agenda__name::before {
  content: counter(agenda, decimal-leading-zero);
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.28rem;
}
.agenda__detail { min-width: 0; }
.agenda__detail p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}
.agenda__detail p + p { margin-top: 0.4rem; }

/* ---------- Venue ---------- */
.venue {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(22rem, 1.25fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.venue__text { padding: clamp(2rem, 3.6vw, 3.1rem); min-width: 0; }
.venue__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
  font-weight: 500;
  margin: 0 0 0.4rem;
}
.venue__addr { font-weight: 600; margin: 0 0 0.6rem; }
.venue__hint { color: var(--muted); margin: 0 0 1.1rem; font-size: 0.96rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--burgundy);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.94rem;
}
.link-arrow::after { content: "→"; transition: transform 0.25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Map frames ---------- */
.map-frame {
  position: relative;
  min-width: 0;
  min-height: 360px;
  height: auto;
  align-self: stretch;
  background: var(--paper-alt);
}
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.map-frame--sm {
  aspect-ratio: 16 / 10;
  min-height: 0;
  margin-top: 1.1rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}

/* ---------- Airport cards ---------- */
.port-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.port-card__head h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
}
.port-card__head h3 span {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 500;
}
.port-card__body { margin: 0; color: var(--muted); font-size: 0.96rem; }

.tag {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  background: var(--paper-alt);
  border: 1px solid var(--line);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.tag--best { color: var(--burgundy); border-color: color-mix(in srgb, var(--burgundy) 35%, var(--line)); background: var(--note-bg); }

/* ---------- Hotel cards ---------- */
.hotel-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}
.hotel-card__top h3 { font-size: 1.1rem; margin: 0; font-weight: 600; }
.price { color: var(--gold); font-weight: 600; white-space: nowrap; }
.hotel-card__meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.35rem 0 0.6rem;
}
.hotel-card__body { margin: 0; color: var(--muted); font-size: 0.95rem; }
.hotel-card--family { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }

/* ---------- Info cards (Good to know) ---------- */
.info-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 0.8rem;
}
.info-card ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.55rem; }
.info-card li { color: var(--muted); font-size: 0.95rem; }
.info-card li::marker { color: var(--gold); }

/* ---------- Note ---------- */
.note {
  margin-top: clamp(2rem, 4vw, 3rem);
  background: var(--note-bg);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  color: #6a3540;
  font-size: 0.95rem;
}
.note strong { color: var(--burgundy); }
.note a { color: var(--burgundy); font-weight: 600; }

/* =========================================================
   CLOSING + FOOTER
   ========================================================= */
.closing {
  padding: clamp(4rem, 12vh, 8rem) 0;
  text-align: center;
}
.closing__inner { width: min(720px, 100% - 2.4rem); margin-inline: auto; }
.closing__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}
.closing__body { color: var(--muted); max-width: 52ch; margin: 0 auto 2rem; }
.closing__sig {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--burgundy);
  margin: 0;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0;
  text-align: center;
}
.foot p {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* =========================================================
   MOTION — reveal on scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* stagger within a grid */
.cards .reveal { transition-delay: calc(var(--i, 0) * 80ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .venue:hover, .stop:hover, .place:hover { transform: none; }
  * { animation: none !important; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .cards--3 { grid-template-columns: 1fr 1fr; }
  .venue,
  .stop,
  .stop--ceremony { grid-template-columns: 1fr; }
  .stop--ceremony { grid-template-areas: "text" "map" "agenda"; }
  .venue__text,
  .stop__text { padding-bottom: 1.4rem; }
  .stop--simple .stop__text { padding-bottom: clamp(2rem, 3.6vw, 3.1rem); }
  .map-frame { min-height: 280px; aspect-ratio: 16 / 10; }
  .day-card--feature { grid-column: 1 / -1; }
  .agenda li { grid-template-columns: 1fr; gap: 0.35rem; }
}

@media (max-width: 620px) {
  .nav__links { gap: 0.9rem; }
  .nav__links a { font-size: 0.78rem; }
  .cards--3 { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .places { grid-template-columns: 1fr; }
  .stop { grid-template-columns: 1fr; }
}

/* Hide nav links on very small screens, keep the mark as anchor home */
@media (max-width: 460px) {
  .nav__links { gap: 0.7rem; }
}
