@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;0,900;1,800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #f6fbff;
  --muted: #a9bdd5;
  --night-950: #020b19;
  --night-900: #03142d;
  --night-850: #061d3d;
  --night-800: #08274f;
  --blue: #26a7ff;
  --green: #5ee32d;
  --yellow: #ffc52e;
  --red: #ff4a42;
  --border: rgba(67, 167, 255, .28);
  --card: linear-gradient(180deg, rgba(9, 39, 78, .96), rgba(3, 20, 45, .97));
  --display: "Barlow Condensed", Impact, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --shadow: 0 20px 60px rgba(0, 5, 15, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(24, 108, 211, .18), transparent 34rem),
    var(--night-950);
  font-family: var(--body);
}
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
a { color: inherit; }
.rich-text-link { color: var(--blue); text-underline-offset: .16em; }
.rich-text-link:hover { color: var(--green); }
address { font-style: normal; }
section { scroll-margin-top: 88px; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .8rem 1rem;
  color: #001;
  background: white;
  border-radius: .5rem;
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
  padding: .6rem clamp(1rem, 4vw, 4rem);
  background: linear-gradient(180deg, rgba(2, 11, 25, .9), rgba(2, 11, 25, .48));
  border-bottom: 1px solid rgba(77, 171, 255, .12);
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: .06em;
}
.site-header nav { display: flex; align-items: center; gap: clamp(.8rem, 2.3vw, 2rem); }
.site-header nav a {
  color: #dcecff;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.site-header nav a:hover { color: var(--green); }

.hero {
  position: relative;
  display: grid;
  min-height: min(700px, 82svh);
  padding-top: 5rem;
  overflow: hidden;
  isolation: isolate;
  background: #03142d;
}
.hero-art {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 2rem;
  z-index: -1;
  overflow: hidden;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}
.hero-copy {
  position: relative;
  z-index: 2;
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(760px, 92vw);
  margin-inline: auto;
  padding: 0 0 1.5rem;
  text-align: center;
}

.hero-mission {
  margin: 0 0 .25rem;
  color: var(--green);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.7vw, 2.15rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-shadow:
    0 3px 0 #061522,
    0 6px 10px rgba(0, 4, 14, .38);
}

.hero-name {
  margin: 0;
  color: #fbfcff;
  font-family: var(--display);
  font-size: clamp(4.1rem, 10vw, 8.8rem);
  font-weight: 900;
  font-style: italic;
  line-height: .82;
  letter-spacing: -.045em;
  text-transform: uppercase;
  -webkit-text-stroke: clamp(1px, .22vw, 3px) #020915;
  paint-order: stroke fill;
  text-shadow:
    0 5px 0 #020915,
    0 10px 0 rgba(0, 4, 14, .78),
    0 16px 20px rgba(0, 4, 14, .34);
}

.hero-turning {
  margin: .4rem 0 0;
  color: var(--blue);
  font-family: var(--display);
  font-size: clamp(2rem, 4.8vw, 4.1rem);
  font-weight: 900;
  font-style: italic;
  line-height: .9;
  letter-spacing: -.02em;
  text-transform: uppercase;
  -webkit-text-stroke: 1px #031226;
  paint-order: stroke fill;
  text-shadow:
    0 4px 0 #031226,
    0 8px 12px rgba(0, 4, 14, .34);
}

.hero-badge {
  display: block;
  flex: 0 0 auto;
  width: clamp(220px, 27vw, 390px);
  max-width: 76vw;
  height: auto;
  margin: -.45rem auto .25rem;
  filter: drop-shadow(0 13px 12px rgba(0, 5, 18, .44));
}

.hero-invitation {
  max-width: 570px;
  margin: .4rem auto 1.15rem;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  text-shadow:
    0 2px 0 rgba(0, 4, 14, .95),
    0 5px 10px rgba(0, 4, 14, .36);
}

.hero-cta {
  min-width: min(360px, 88vw);
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: .8rem 1.3rem;
  border: 0;
  border-radius: .7rem;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .025em;
  text-transform: uppercase;
  transition: transform .18s ease, filter .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.button-primary {
  color: white;
  background: linear-gradient(180deg, #27a81a, #187e11);
  border: 1px solid #69f04c;
  box-shadow: 0 8px 22px rgba(31, 176, 25, .24);
}
.button-secondary {
  color: white;
  background: linear-gradient(180deg, #087dd8, #0757a3);
  border: 1px solid #2db3ff;
}
.button-ghost {
  color: #dff1ff;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
}
.button-full { width: 100%; }

.section-shell { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.quick-details { padding: clamp(3rem, 6vw, 5rem) 0 1.25rem; }
.section-heading { margin-bottom: 1.25rem; }
.section-heading h2, .card-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: .95;
  text-transform: uppercase;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr .8fr;
  gap: 1rem;
}
.mission-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.15rem, 2.6vw, 1.65rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}
.mission-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(62, 175, 255, .85), transparent);
}
.detail-card { display: flex; align-items: center; gap: 1rem; min-height: 135px; }
.detail-card h3 {
  margin: 0 0 .3rem;
  color: var(--blue);
  font-family: var(--display);
  font-size: 1.2rem;
  text-transform: uppercase;
}
.detail-card p, .detail-card address { margin: .15rem 0; color: var(--muted); line-height: 1.5; }
.detail-card .detail-primary { color: white; font-weight: 700; }
.card-icon { color: var(--yellow); font-size: 2rem; }
.action-card { flex-direction: column; justify-content: center; align-items: stretch; }

.dashboard { padding: 1rem 0; }
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.15fr) minmax(320px, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.dashboard-left { display: grid; gap: 1rem; }
.countdown-card { min-height: 180px; }
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 1.2rem;
}
.countdown div { text-align: center; border-right: 1px solid rgba(94, 181, 255, .16); }
.countdown div:last-child { border: 0; }
.countdown strong { display: block; font-family: var(--display); font-size: clamp(2.4rem, 5vw, 4.1rem); line-height: .9; }
.countdown span { color: var(--muted); font-family: var(--display); text-transform: uppercase; }
.snapshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  margin-top: 1rem;
}
.snapshot-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: .6rem;
  border: 1px solid rgba(255,255,255,.13);
}
.snapshot-grid img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

.timeline-list {
  position: relative;
  display: grid;
  gap: 1.1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.timeline-list::before {
  content: "";
  position: absolute;
  left: 5.45rem;
  top: 1.2rem;
  bottom: 1.2rem;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--blue) 0 7px, transparent 7px 14px);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 4.4rem 2rem 1fr;
  gap: .65rem;
  align-items: start;
}
.timeline-time { color: var(--blue); font-family: var(--display); font-size: 1.25rem; font-weight: 800; text-align: right; }
.timeline-icon {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: #052149;
  background: white;
  border-radius: 50%;
  font-size: .9rem;
}
.timeline-copy h3 { margin: 0; font-family: var(--display); font-size: 1.25rem; text-transform: uppercase; }
.timeline-copy p { margin: .2rem 0 0; color: var(--muted); line-height: 1.45; }

.rsvp-card form { display: grid; gap: 1rem; margin-top: 1.25rem; }
.rsvp-card fieldset { display: grid; gap: .65rem; padding: 0; margin: 0; border: 0; }
.radio-option {
  display: flex;
  gap: .7rem;
  align-items: center;
  min-height: 48px;
  padding: .65rem .75rem;
  border: 1px solid rgba(76, 165, 246, .18);
  border-radius: .65rem;
  cursor: pointer;
}
.radio-option:has(input:checked) { border-color: var(--green); background: rgba(75, 214, 47, .08); }
.radio-option input { width: 1.2rem; height: 1.2rem; accent-color: var(--green); }
.counter-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.counter-row > label, .field > span { font-family: var(--display); font-weight: 700; text-transform: uppercase; }
.stepper { display: grid; grid-template-columns: 42px 50px 42px; }
.stepper button, .stepper input {
  min-height: 44px;
  color: white;
  background: #0a3266;
  border: 1px solid rgba(95, 177, 255, .18);
  text-align: center;
}
.stepper button { cursor: pointer; font-size: 1.3rem; }
.stepper button:first-child { border-radius: .55rem 0 0 .55rem; }
.stepper button:last-child { border-radius: 0 .55rem .55rem 0; }
.stepper input { width: 100%; appearance: textfield; }
.stepper input::-webkit-inner-spin-button { appearance: none; }
.field { display: grid; gap: .42rem; }
.field input, .field textarea {
  width: 100%;
  color: white;
  background: rgba(0, 10, 24, .52);
  border: 1px solid rgba(68, 160, 244, .28);
  border-radius: .6rem;
  padding: .85rem .9rem;
}
.field input::placeholder, .field textarea::placeholder { color: #7990aa; }
.form-note, .form-status { margin: 0; color: var(--muted); font-size: .9rem; text-align: center; }
.form-status.success { color: var(--green); }

.support { padding: 1rem 0; }
.support-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 1rem; }
.location-card img { width: 100%; margin: 1rem 0; border-radius: .65rem; }
.muted, .dress-card p { color: var(--muted); line-height: 1.55; }
.mask-row { display: flex; justify-content: center; gap: .7rem; margin-top: 2rem; }
.mask-row img {
  width: 72px;
  height: auto;
  filter: drop-shadow(0 6px 8px rgba(0, 5, 18, .4));
}
.party-total {
  display: grid;
  place-items: center;
  margin: 1.25rem 0;
  padding: 1.35rem 1rem;
  background: rgba(94, 227, 45, .08);
  border: 1px solid rgba(94, 227, 45, .22);
  border-radius: .75rem;
  text-align: center;
}
.party-total strong {
  color: var(--green);
  font-family: var(--display);
  font-size: clamp(4rem, 8vw, 6rem);
  line-height: .85;
}
.party-total span {
  margin-top: .55rem;
  color: var(--muted);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.party-breakdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 0; }
.party-breakdown div {
  display: grid;
  place-items: center;
  padding: .9rem;
  background: rgba(10, 50, 102, .55);
  border-radius: .65rem;
}
.party-breakdown dt { color: var(--muted); }
.party-breakdown dd { margin: .15rem 0 0; color: white; font-family: var(--display); font-size: 2rem; font-weight: 900; }
.party-capacity {
  margin: 1rem 0 0;
  color: var(--muted);
  text-align: center;
  font-size: .9rem;
}
.party-capacity strong { color: var(--yellow); }

.faq { padding: clamp(3rem, 6vw, 5rem) 0; }
.faq-list { display: grid; gap: .75rem; }
.faq-list details {
  background: rgba(6, 32, 66, .75);
  border: 1px solid var(--border);
  border-radius: .75rem;
}
.faq-list summary {
  padding: 1rem 1.15rem;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
}
.faq-list details p { margin: 0; padding: 0 1.15rem 1.15rem; color: var(--muted); line-height: 1.55; }

.finale {
  display: grid;
  place-items: center;
  text-align: center;
  background:
    url("assets/skyline-footer.webp") bottom / max(1000px, 100%) auto no-repeat,
    #062653;
}
.finale h2 { margin: 0; font-family: var(--display); text-transform: uppercase; }
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .55rem;
  padding: 1.1rem;
  color: #7f96b0;
  text-align: center;
  font-size: .85rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
footer img { flex: 0 0 auto; }

@media (max-width: 920px) {
  .hero { min-height: 680px; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .action-card { grid-column: 1 / -1; flex-direction: row; }
  .action-card .button { flex: 1; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .rsvp-card { grid-column: 1 / -1; }
  .support-grid { grid-template-columns: 1fr 1fr; }
  .location-card { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  section { scroll-margin-top: 68px; }
  .site-header nav a:not(.nav-rsvp) { display: none; }
  .site-header { padding-inline: .75rem; }
  .hero {
    min-height: 640px;
    padding-top: 4rem;
  }
  .hero-art {
    top: 1.5rem;
  }
  .hero-copy {
    padding-bottom: 2rem;
  }
  .hero h1 { font-size: clamp(3.7rem, 20vw, 6rem); }
  .hero-invitation { max-width: 22rem; }

  .section-shell { width: min(100% - 1rem, 1180px); }
  .detail-grid, .dashboard-grid, .support-grid { grid-template-columns: 1fr; }
  .action-card, .rsvp-card, .location-card { grid-column: auto; }
  .action-card { flex-direction: column; }
  .detail-card { min-height: auto; }

  .mission-card { border-radius: .8rem; }
  .timeline-list::before { left: 4.25rem; }
  .timeline-item { grid-template-columns: 3.3rem 1.8rem 1fr; gap: .55rem; }
  .timeline-time { font-size: 1rem; }
  .timeline-icon { width: 1.8rem; height: 1.8rem; }
  .timeline-copy h3 { font-size: 1.12rem; }

  .countdown strong { font-size: 3rem; }
  .support-grid { gap: .75rem; }

  .hero-copy {
    width: min(94vw, 620px);
  }

  .hero-mission {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
  }

  .hero-name {
    font-size: clamp(3.7rem, 18vw, 5.9rem);
    line-height: .84;
  }

  .hero-turning {
    margin-top: .55rem;
    font-size: clamp(1.8rem, 9vw, 3rem);
  }

  .hero-badge {
    width: clamp(210px, 67vw, 330px);
    max-width: 82vw;
    margin-top: -.25rem;
  }

  .hero-invitation {
    max-width: 92vw;
    margin-top: .15rem;
    font-size: clamp(1.05rem, 5vw, 1.35rem);
  }

  .hero-cta {
    min-width: min(340px, 88vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
