:root {
  --night: #080b16;
  --night-soft: #10182b;
  --blue: #244f91;
  --blue-bright: #5f91df;
  --wine: #713247;
  --coral: #ef8f72;
  --silver: #bec9d9;
  --mist: #e8edf4;
  --white: #f7f8fb;
  --line: rgba(209, 221, 239, 0.2);
  --line-strong: rgba(209, 221, 239, 0.42);
  --display: "Baskerville", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Century Gothic", "Trebuchet MS", sans-serif;
  --page: min(100% - 40px, 1240px);
}

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

html {
  scroll-behavior: smooth;
  background: var(--night);
  -webkit-font-smoothing: antialiased;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background: var(--night);
  color: var(--mist);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.94;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--coral);
  color: var(--night);
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  min-height: 44px;
  padding: 11px 18px;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--night);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease-out;
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  margin-bottom: 20px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-header {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 20;
  width: var(--page);
  height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transform: translateX(-50%);
  color: var(--mist);
}

.monogram,
.header-rsvp {
  text-decoration: none;
}

.monogram {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 9px;
  font-family: var(--display);
  font-size: 1rem;
}

.monogram i {
  width: 24px;
  height: 1px;
  background: var(--coral);
  transform: rotate(-18deg);
}

.header-date {
  margin: 0;
  color: var(--silver);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

.header-rsvp {
  justify-self: end;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-rsvp span {
  margin-left: 4px;
  color: var(--coral);
}

.hero {
  position: relative;
  min-height: 720px;
  height: calc(100svh - 40px);
  max-height: 940px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 48%, rgba(51, 87, 149, 0.2), transparent 28%),
    linear-gradient(180deg, #090d1a 0%, var(--night) 100%);
}

.star-field,
.finale-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.star-field {
  z-index: -5;
}

.hero-glow {
  position: absolute;
  z-index: -4;
  width: 210px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 143, 114, 0.14), transparent 68%);
}

.hero-orbit {
  position: absolute;
  z-index: -3;
  left: 50%;
  top: 50%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg) scaleY(0.56);
}

.hero-orbit::after {
  content: "";
  position: absolute;
  top: 48%;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 18px var(--coral);
}

.hero-orbit--outer {
  width: 680px;
  animation: orbit-breathe 9s ease-in-out infinite alternate;
}

.hero-orbit--middle {
  width: 510px;
  border-color: rgba(95, 145, 223, 0.3);
  transform: translate(-50%, -50%) rotate(24deg) scaleY(0.62);
  animation: orbit-breathe-alt 12s ease-in-out infinite alternate;
}

.hero-orbit--middle::after {
  top: 14%;
  left: auto;
  right: 42px;
  width: 5px;
  height: 5px;
  background: var(--blue-bright);
  box-shadow: 0 0 16px var(--blue-bright);
}

.hero-orbit--inner {
  width: 330px;
  border-color: rgba(232, 237, 244, 0.13);
  transform: translate(-50%, -50%) rotate(68deg) scaleY(0.68);
}

.hero-orbit--inner::after {
  top: auto;
  bottom: 35px;
  left: 20px;
  width: 4px;
  height: 4px;
  background: var(--white);
}

.hero-planet {
  position: absolute;
  z-index: -2;
  left: 50%;
  top: 50%;
  width: 132px;
  aspect-ratio: 1;
  border: 1px solid rgba(232, 237, 244, 0.26);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    inset -24px -18px 32px rgba(0, 0, 0, 0.45),
    inset 15px 12px 24px rgba(95, 145, 223, 0.18),
    0 0 70px rgba(95, 145, 223, 0.12);
}

.hero-planet span {
  position: absolute;
  inset: 14px;
  border-top: 1px solid rgba(239, 143, 114, 0.42);
  border-radius: 50%;
  transform: rotate(-22deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: var(--page);
  text-align: center;
}

.hero-copy .eyebrow {
  color: var(--silver);
}

.hero h1 {
  margin: 0;
  color: var(--white);
  font-size: 4rem;
  text-shadow: 0 5px 40px rgba(0, 0, 0, 0.7);
}

.hero h1 span {
  display: block;
}

.hero h1 i {
  display: block;
  margin: 8px 0 2px;
  color: var(--coral);
  font-size: 2rem;
  font-weight: 400;
}

.hero-lead {
  margin: 28px auto 0;
  color: var(--silver);
  font-family: var(--display);
  font-size: 1.05rem;
}

.hero-coordinate {
  position: absolute;
  right: 20px;
  bottom: 116px;
  display: none;
  align-items: center;
  gap: 14px;
  color: rgba(232, 237, 244, 0.6);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
}

.hero-coordinate i {
  width: 1px;
  height: 40px;
  background: var(--line);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 8px;
  transform: translateX(-50%);
  color: var(--silver);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-scroll i {
  color: var(--coral);
  font-size: 1rem;
  font-style: normal;
}

.invitation {
  position: relative;
  display: grid;
  gap: 48px;
  padding: 100px 20px;
  overflow: hidden;
  background: var(--mist);
  color: var(--night);
}

.section-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.section-mark i {
  width: 52px;
  height: 1px;
  background: rgba(8, 11, 22, 0.35);
}

.invitation-copy {
  max-width: 720px;
}

.invitation-copy .eyebrow {
  color: var(--blue);
}

.invitation h2 {
  margin-bottom: 36px;
  font-size: 2.75rem;
}

.invitation h2 em {
  color: var(--wine);
  font-weight: 400;
}

.invitation-text {
  max-width: 620px;
  margin-bottom: 32px;
  color: #30394a;
  font-family: var(--display);
  font-size: 1.17rem;
  line-height: 1.7;
}

.signature {
  margin-bottom: 0;
  color: var(--blue);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signature strong {
  display: block;
  margin-top: 10px;
  color: var(--wine);
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.constellation-mark {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid rgba(8, 11, 22, 0.15);
  border-radius: 50%;
}

.constellation-mark::before,
.constellation-mark::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(36, 79, 145, 0.14);
  border-radius: 50%;
}

.constellation-mark::before {
  inset: 26px;
}

.constellation-mark::after {
  inset: 74px;
}

.constellation-mark .star {
  position: absolute;
  z-index: 2;
  width: 8px;
  height: 8px;
  border: 2px solid var(--mist);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.star--1 { left: 22%; top: 67%; }
.star--2 { left: 37%; top: 30%; }
.star--3 { left: 49%; top: 52%; }
.star--4 { left: 61%; top: 27%; }
.star--5 { left: 77%; top: 66%; }
.star--6 { left: 48%; top: 78%; background: var(--wine) !important; box-shadow: 0 0 0 1px var(--wine) !important; }

.constellation-mark .line {
  position: absolute;
  z-index: 1;
  height: 1px;
  background: rgba(36, 79, 145, 0.5);
  transform-origin: left center;
}

.line--1 { left: 23%; top: 68%; width: 41%; transform: rotate(-67deg); }
.line--2 { left: 38%; top: 31%; width: 28%; transform: rotate(62deg); }
.line--3 { left: 50%; top: 53%; width: 28%; transform: rotate(-64deg); }
.line--4 { left: 62%; top: 28%; width: 43%; transform: rotate(66deg); }
.line--5 { left: 50%; top: 54%; width: 25%; transform: rotate(91deg); }

.constellation-mark b {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  color: var(--wine);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 400;
}

.timeline {
  padding: 100px 20px;
  background:
    linear-gradient(rgba(95, 145, 223, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 145, 223, 0.05) 1px, transparent 1px),
    var(--night);
  background-size: 42px 42px;
}

.section-heading {
  width: min(100%, 1240px);
  margin: 0 auto 54px;
}

.section-heading .eyebrow {
  color: var(--coral);
}

.section-heading h2 {
  margin-bottom: 24px;
  color: var(--white);
  font-size: 2.8rem;
}

.section-heading > p:last-child {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--silver);
  font-family: var(--display);
  font-size: 1.05rem;
}

.orbit-explorer {
  width: min(100%, 1240px);
  margin: 0 auto;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.orbit-map {
  position: relative;
  padding: 36px 0;
}

.route-line {
  position: absolute;
  left: 18px;
  top: 64px;
  bottom: 64px;
  width: 1px;
  background: var(--line-strong);
}

.route-marker {
  position: absolute;
  left: 50%;
  top: calc(var(--stop) * 33.333%);
  width: 18px;
  height: 18px;
  border: 1px solid var(--coral);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--night);
  box-shadow:
    0 0 0 5px rgba(239, 143, 114, 0.1),
    0 0 22px rgba(239, 143, 114, 0.55);
  transition: top 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.route-marker::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--coral);
}

.timeline-tabs {
  display: grid;
  gap: 6px;
}

.timeline-tab {
  min-height: 78px;
  display: grid;
  grid-template-columns: 62px 1fr 24px;
  align-items: center;
  gap: 12px;
  padding: 14px 0 14px 42px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--silver);
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease-out, background-color 180ms ease-out;
}

.timeline-tab:last-child {
  border-bottom: 0;
}

.timeline-tab:hover {
  background: rgba(95, 145, 223, 0.08);
  color: var(--white);
}

.timeline-tab.is-active {
  color: var(--white);
}

.timeline-tab span {
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.timeline-tab strong {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 400;
}

.timeline-tab > i {
  color: rgba(232, 237, 244, 0.34);
  font-size: 0.64rem;
  font-style: normal;
}

.event-stage {
  position: relative;
  min-height: 450px;
  padding: 48px 24px 240px;
  overflow: hidden;
  border-top: 1px solid var(--line-strong);
  background: var(--night-soft);
}

.event-stage__index {
  display: block;
  margin-bottom: 52px;
  color: var(--blue-bright);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
}

.event-panel .eyebrow {
  color: var(--coral);
}

.event-panel h3 {
  margin-bottom: 24px;
  color: var(--white);
  font-size: 2.75rem;
}

.event-panel > p:last-child {
  max-width: 470px;
  margin-bottom: 0;
  color: var(--silver);
}

.event-panel.is-entering {
  animation: panel-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.event-planet {
  position: absolute;
  right: -44px;
  bottom: -64px;
  width: 260px;
  aspect-ratio: 1;
  border: 1px solid rgba(95, 145, 223, 0.32);
  border-radius: 50%;
  box-shadow:
    inset 35px 22px 50px rgba(95, 145, 223, 0.12),
    inset -35px -20px 50px rgba(0, 0, 0, 0.5);
}

.event-planet::before,
.event-planet::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-16deg) scaleY(0.35);
}

.event-planet::before {
  width: 360px;
  height: 360px;
}

.event-planet::after {
  width: 310px;
  height: 310px;
}

.event-planet i,
.event-planet span,
.event-planet b {
  position: absolute;
  border-radius: 50%;
}

.event-planet i {
  top: 26%;
  left: 24%;
  width: 30px;
  height: 19px;
  background: rgba(95, 145, 223, 0.12);
  transform: rotate(-20deg);
}

.event-planet span {
  right: 26%;
  top: 47%;
  width: 54px;
  height: 16px;
  border-top: 1px solid rgba(239, 143, 114, 0.36);
  transform: rotate(20deg);
}

.event-planet b {
  left: 42%;
  bottom: 24%;
  width: 15px;
  height: 15px;
  background: rgba(113, 50, 71, 0.5);
}

.place {
  display: grid;
  background: var(--blue);
  color: var(--white);
}

.place-visual {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background:
    linear-gradient(rgba(232, 237, 244, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 237, 244, 0.08) 1px, transparent 1px),
    #183c70;
  background-size: 46px 46px;
}

.place-visual::before {
  content: "";
  position: absolute;
  left: 14%;
  top: 18%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--white);
  box-shadow:
    128px 44px 0 -1px var(--white),
    204px -16px 0 -1px var(--coral),
    244px 90px 0 var(--white),
    36px 150px 0 -1px var(--silver);
}

.place-visual > p {
  position: absolute;
  left: 20px;
  bottom: 20px;
  margin: 0;
  color: rgba(232, 237, 244, 0.62);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
}

.observatory {
  position: absolute;
  left: 50%;
  bottom: 86px;
  width: 240px;
  height: 210px;
  transform: translateX(-50%);
}

.observatory-dome {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 168px;
  height: 86px;
  border: 1px solid rgba(232, 237, 244, 0.8);
  border-bottom: 0;
  border-radius: 168px 168px 0 0;
  transform: translateX(-50%);
  background: rgba(8, 11, 22, 0.34);
}

.observatory-slit {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 4px;
  width: 28px;
  height: 94px;
  border-right: 1px solid rgba(232, 237, 244, 0.8);
  border-left: 1px solid rgba(232, 237, 244, 0.8);
  transform: translateX(-50%) rotate(8deg);
  background: #183c70;
}

.observatory-base {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 205px;
  height: 118px;
  border: 1px solid rgba(232, 237, 244, 0.8);
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(232, 237, 244, 0.25) 50%, transparent 50.5%),
    rgba(8, 11, 22, 0.24);
}

.observatory-base::before,
.observatory-base::after {
  content: "";
  position: absolute;
  top: 22px;
  width: 30px;
  height: 48px;
  border: 1px solid rgba(232, 237, 244, 0.45);
}

.observatory-base::before { left: 26px; }
.observatory-base::after { right: 26px; }

.observatory-beam {
  position: absolute;
  left: 56%;
  top: -172px;
  width: 1px;
  height: 235px;
  transform: rotate(21deg);
  transform-origin: bottom;
  background: linear-gradient(transparent, rgba(239, 143, 114, 0.8));
  box-shadow: 0 0 8px rgba(239, 143, 114, 0.5);
}

.place-copy {
  padding: 88px 20px 96px;
}

.place-copy .eyebrow {
  color: #b9cff1;
}

.place-copy h2 {
  margin-bottom: 30px;
  font-size: 2.8rem;
}

.place-copy > p:not(.eyebrow) {
  max-width: 500px;
  color: #d6e2f4;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  margin-top: 14px;
  border-bottom: 1px solid rgba(232, 237, 244, 0.48);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link span {
  color: var(--coral);
}

.place-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 56px 0 0;
  border-top: 1px solid rgba(232, 237, 244, 0.25);
}

.place-notes div {
  padding: 22px 12px 0 0;
}

.place-notes div + div {
  padding-left: 18px;
  border-left: 1px solid rgba(232, 237, 244, 0.25);
}

.place-notes dt {
  margin-bottom: 8px;
  color: #b9cff1;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.place-notes dd {
  margin: 0;
  font-family: var(--display);
  font-size: 0.98rem;
}

.dress {
  padding: 100px 20px;
  background: var(--mist);
  color: var(--night);
}

.dress-heading .eyebrow {
  color: var(--wine);
}

.dress-heading h2 {
  margin-bottom: 46px;
  font-size: 3rem;
}

.dress-heading h2 em {
  color: var(--blue);
  font-weight: 400;
}

.dress-copy {
  max-width: 560px;
  margin-bottom: 48px;
  color: #30394a;
  font-family: var(--display);
  font-size: 1.08rem;
}

.dress-copy p:last-child {
  color: var(--wine);
  font-style: italic;
}

.spectrum {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(8, 11, 22, 0.18);
  border-left: 1px solid rgba(8, 11, 22, 0.18);
}

.spectrum-color {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-right: 1px solid rgba(8, 11, 22, 0.18);
  border-bottom: 1px solid rgba(8, 11, 22, 0.18);
  color: var(--white);
}

.spectrum-color span {
  font-family: var(--display);
  font-size: 1rem;
}

.spectrum-color b {
  align-self: flex-end;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.spectrum-color--ink { background: #111827; }
.spectrum-color--wine { background: var(--wine); }
.spectrum-color--blue { background: var(--blue); }
.spectrum-color--silver { background: #a9b4c4; color: var(--night); }

.countdown-section {
  position: relative;
  min-height: 760px;
  display: grid;
  align-content: center;
  gap: 48px;
  padding: 100px 20px;
  overflow: hidden;
  background: #0c1222;
}

.countdown-orbits {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 690px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.countdown-orbits i {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.countdown-orbits i:nth-child(1) {
  width: 100%;
  height: 58%;
  transform: translate(-50%, -50%) rotate(12deg);
}

.countdown-orbits i:nth-child(2) {
  width: 72%;
  height: 44%;
  transform: translate(-50%, -50%) rotate(-22deg);
}

.countdown-orbits i:nth-child(3) {
  width: 48%;
  height: 48%;
}

.countdown-copy,
.countdown,
.countdown-date {
  position: relative;
  z-index: 2;
}

.countdown-copy {
  text-align: center;
}

.countdown-copy .eyebrow {
  color: var(--coral);
}

.countdown-copy h2 {
  margin-bottom: 0;
  color: var(--white);
  font-size: 3rem;
}

.countdown {
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.countdown div {
  min-width: 0;
  padding: 26px 10px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  text-align: center;
}

.countdown strong {
  display: block;
  color: var(--white);
  font-family: var(--display);
  font-size: 2.45rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.countdown span {
  display: block;
  margin-top: 8px;
  color: var(--silver);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.countdown-date {
  display: block;
  color: var(--silver);
  font-size: 0.64rem;
  font-style: normal;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.rsvp {
  display: grid;
  gap: 60px;
  padding: 100px 20px;
  background: var(--mist);
  color: var(--night);
}

.rsvp-intro .eyebrow {
  color: var(--blue);
}

.rsvp-intro h2 {
  margin-bottom: 26px;
  font-size: 3.2rem;
}

.rsvp-intro > p:last-of-type {
  max-width: 420px;
  color: #4d5667;
}

.rsvp-code {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 46px;
  color: var(--wine);
  font-family: var(--display);
  font-size: 1.3rem;
}

.rsvp-code i {
  width: 42px;
  height: 1px;
  background: rgba(8, 11, 22, 0.3);
}

.rsvp-form {
  width: 100%;
  max-width: 680px;
}

.field {
  display: block;
  margin-bottom: 28px;
}

.field > span,
.rsvp-form legend {
  display: block;
  margin-bottom: 10px;
  color: #4d5667;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(8, 11, 22, 0.32);
  border-radius: 0;
  padding: 13px 0;
  background: transparent;
  color: var(--night);
  outline: 0;
  transition: border-color 180ms ease-out;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--blue);
}

.field textarea {
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8b929e;
}

.rsvp-form fieldset {
  display: grid;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.choice {
  display: block;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(8, 11, 22, 0.18);
  transition: border-color 180ms ease-out, background-color 180ms ease-out;
}

.choice i {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 1px solid #657084;
  border-radius: 50%;
}

.choice input:checked + span {
  border-color: var(--blue);
  background: rgba(36, 79, 145, 0.07);
}

.choice input:checked + span i {
  border: 4px solid var(--mist);
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}

.submit-button {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 38px;
  padding: 0 20px;
  border: 1px solid var(--night);
  border-radius: 0;
  background: var(--night);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease-out, color 180ms ease-out;
}

.submit-button:hover {
  background: var(--blue);
}

.submit-button:active {
  background: var(--wine);
}

.submit-button i {
  color: var(--coral);
  font-size: 1.1rem;
  font-style: normal;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--blue);
  font-size: 0.78rem;
}

.finale {
  position: relative;
  min-height: 680px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 90px 20px 120px;
  overflow: hidden;
  background: var(--night);
  text-align: center;
}

.finale-stars {
  opacity: 0.72;
}

.finale .eyebrow,
.finale h2,
.back-to-top,
.finale-signature {
  position: relative;
  z-index: 2;
}

.finale .eyebrow {
  color: var(--coral);
}

.finale h2 {
  margin-bottom: 42px;
  color: var(--white);
  font-size: 3.5rem;
}

.back-to-top {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.back-to-top span {
  color: var(--coral);
}

.finale-signature {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  transform: translateX(-50%);
  color: var(--silver);
  font-family: var(--display);
  white-space: nowrap;
}

.finale-signature i {
  width: 30px;
  height: 1px;
  background: var(--wine);
}

@keyframes orbit-breathe {
  from { transform: translate(-50%, -50%) rotate(-18deg) scaleY(0.56); }
  to { transform: translate(-50%, -50%) rotate(-12deg) scaleY(0.6); }
}

@keyframes orbit-breathe-alt {
  from { transform: translate(-50%, -50%) rotate(24deg) scaleY(0.62); }
  to { transform: translate(-50%, -50%) rotate(30deg) scaleY(0.58); }
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 700px) {
  :root {
    --page: min(100% - 64px, 1240px);
  }

  .hero h1 {
    font-size: 6rem;
  }

  .hero h1 i {
    margin: 0;
    font-size: 2.6rem;
  }

  .hero-coordinate {
    display: flex;
    right: 32px;
  }

  .invitation {
    grid-template-columns: 80px minmax(0, 1fr);
    padding: 130px 32px;
  }

  .section-mark {
    align-self: start;
    flex-direction: column;
  }

  .section-mark i {
    width: 1px;
    height: 80px;
  }

  .invitation h2 {
    font-size: 4.25rem;
  }

  .constellation-mark {
    grid-column: 2;
  }

  .timeline,
  .dress,
  .rsvp {
    padding-right: 32px;
    padding-left: 32px;
  }

  .section-heading h2 {
    font-size: 4rem;
  }

  .timeline-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }

  .route-line {
    left: 12.5%;
    right: 12.5%;
    top: 35px;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .route-marker {
    left: calc(var(--stop) * 33.333%);
    top: 50%;
    transition: left 520ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .timeline-tab {
    min-height: 126px;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    padding: 48px 20px 18px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .timeline-tab:last-child {
    border-right: 0;
  }

  .timeline-tab span {
    grid-column: 1;
    grid-row: 1;
  }

  .timeline-tab strong {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .timeline-tab > i {
    grid-column: 2;
    grid-row: 1;
  }

  .event-stage {
    min-height: 490px;
    padding: 66px 44% 70px 64px;
  }

  .event-panel h3 {
    font-size: 3.6rem;
  }

  .event-planet {
    right: 6%;
    bottom: -52px;
    width: 360px;
  }

  .place {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  }

  .place-visual {
    min-height: 720px;
  }

  .place-copy {
    align-self: center;
    padding: 100px 48px;
  }

  .place-copy h2 {
    font-size: 4rem;
  }

  .observatory {
    width: 300px;
    transform: translateX(-50%) scale(1.2);
  }

  .dress {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 40px 80px;
    padding-top: 130px;
    padding-bottom: 130px;
  }

  .dress-heading h2 {
    font-size: 4.5rem;
  }

  .dress-copy {
    align-self: end;
    margin-bottom: 46px;
  }

  .spectrum {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, 1fr);
  }

  .spectrum-color {
    min-height: 230px;
  }

  .countdown-section {
    min-height: 820px;
    padding-right: 32px;
    padding-left: 32px;
  }

  .countdown-copy h2 {
    font-size: 4.5rem;
  }

  .countdown {
    grid-template-columns: repeat(4, 1fr);
  }

  .countdown strong {
    font-size: 3.5rem;
  }

  .rsvp {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 80px;
    padding-top: 130px;
    padding-bottom: 130px;
  }

  .rsvp-intro {
    position: sticky;
    top: 40px;
    align-self: start;
  }

  .rsvp-intro h2 {
    font-size: 4.6rem;
  }

  .finale h2 {
    font-size: 5.5rem;
  }
}

@media (min-width: 1080px) {
  .site-header {
    height: 92px;
  }

  .hero h1 {
    font-size: 8.25rem;
  }

  .hero h1 span:first-child {
    transform: translateX(-78px);
  }

  .hero h1 span:last-child {
    transform: translateX(92px);
  }

  .hero h1 i {
    font-size: 3.2rem;
  }

  .hero-orbit--outer {
    width: 1040px;
  }

  .hero-orbit--middle {
    width: 760px;
  }

  .hero-orbit--inner {
    width: 460px;
  }

  .hero-planet {
    width: 168px;
  }

  .invitation {
    grid-template-columns: 120px minmax(0, 1fr) 380px;
    align-items: center;
    gap: 70px;
    padding-right: max(48px, calc((100vw - 1240px) / 2));
    padding-left: max(48px, calc((100vw - 1240px) / 2));
  }

  .constellation-mark {
    grid-column: 3;
    grid-row: 1;
  }

  .timeline,
  .dress,
  .rsvp {
    padding-right: max(48px, calc((100vw - 1240px) / 2));
    padding-left: max(48px, calc((100vw - 1240px) / 2));
  }

  .section-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .section-heading .eyebrow {
    grid-column: 1 / -1;
  }

  .section-heading h2 {
    margin-bottom: 0;
  }

  .section-heading > p:last-child {
    justify-self: end;
  }

  .place-copy {
    padding-right: max(64px, calc((100vw - 1240px) / 2));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
