:root {
  --ink: #1b2130;
  --cream: #f5efdf;
  --orange: #f26a3d;
  --gold: #f5ac3e;
  --pink: #f3a5ad;
  --lilac: #b6a6d8;
  --line: rgba(27, 33, 48, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 4vw;
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 500;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  text-decoration: none;
  transition: opacity 180ms ease;
}

nav a:hover {
  opacity: 0.55;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 112px 4vw 38px;
  background: var(--gold);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 7vw;
  width: min(34vw, 500px);
  height: 50%;
  background: var(--pink);
  border-radius: 0 0 999px 999px;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -14vw;
  left: 30vw;
  width: 38vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
}

.orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(27, 33, 48, 0.55);
  border-radius: 50%;
}

.orbit-one {
  width: 33vw;
  aspect-ratio: 1;
  top: 16%;
  right: -8vw;
}

.orbit-two {
  width: 9vw;
  aspect-ratio: 1;
  top: 32%;
  left: 8vw;
  background: var(--lilac);
}

.eyebrow,
.hero-title,
.hero-bottom {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  justify-content: space-between;
  padding-right: 2vw;
  font-family: "DM Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  margin: auto 0;
}

.hero-title p {
  margin: 0 0 -0.8vw 1vw;
  font-family: "DM Mono", monospace;
  font-size: clamp(0.8rem, 1.1vw, 1rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(3.5rem, 10vw, 9.6rem);
  font-weight: 800;
  line-height: 0.83;
  letter-spacing: -0.075em;
}

.hero h1 span {
  position: relative;
  z-index: 2;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 180px minmax(260px, 420px) 1fr;
  gap: 5vw;
  align-items: end;
}

.date-lockup {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 7px 0;
  font-family: "DM Mono", monospace;
}

.date-lockup strong {
  font-family: "Unbounded", sans-serif;
  font-size: 2.4rem;
  letter-spacing: -0.08em;
}

.hero-bottom > p {
  margin: 0;
  max-width: 390px;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.55;
  font-weight: 600;
}

.round-button {
  justify-self: end;
  width: 116px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  text-decoration: none;
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  transition: transform 200ms ease, background 200ms ease;
}

.round-button:hover {
  transform: rotate(-6deg) scale(1.04);
  background: var(--pink);
}

.round-button svg,
.rsvp-form button svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--cream);
  padding: 12px 0;
  font-family: "Unbounded", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.marquee-track {
  width: max-content;
  display: flex;
  animation: marquee 22s linear infinite;
}

.marquee-track span {
  padding-right: 1.3em;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.section-pad {
  padding: 100px 4vw;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 55px;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-label span {
  width: 32px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.section-label p {
  margin: 0;
}

.details {
  background: var(--cream);
}

.details-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr;
  gap: 16px;
}

.detail-card {
  min-height: 420px;
  position: relative;
  padding: 36px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  overflow: hidden;
}

.card-kicker {
  margin: 0 0 55px;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-card-main {
  background: var(--pink);
}

.detail-card h2,
.detail-card h3 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.detail-card h2 {
  max-width: 560px;
  font-size: clamp(2.8rem, 5.5vw, 6rem);
}

.detail-card h3 {
  font-size: clamp(2rem, 3.2vw, 3.6rem);
}

.address {
  margin: 40px 0 26px;
  line-height: 1.65;
}

.detail-card > a {
  display: inline-flex;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid;
  text-decoration: none;
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.sun-icon {
  position: absolute;
  top: -34px;
  right: -34px;
  width: 145px;
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.sun-icon div {
  width: 58%;
  aspect-ratio: 1;
  position: absolute;
  inset: 21%;
  border-radius: 50%;
  background: var(--gold);
}

.detail-card-small {
  display: flex;
  flex-direction: column;
  background: var(--gold);
}

.detail-card-small > p:last-of-type {
  margin-top: auto;
  max-width: 240px;
  line-height: 1.55;
}

.detail-card.dark {
  color: var(--cream);
  background: var(--ink);
}

.swatches {
  display: flex;
  margin-top: 18px;
}

.swatches i {
  width: 24px;
  aspect-ratio: 1;
  border: 1px solid var(--cream);
  border-radius: 50%;
  background: var(--orange);
}

.swatches i:nth-child(2) {
  margin-left: -5px;
  background: var(--gold);
}

.swatches i:nth-child(3) {
  margin-left: -5px;
  background: var(--pink);
}

.swatches i:nth-child(4) {
  margin-left: -5px;
  background: var(--lilac);
}

.plan {
  color: var(--cream);
  background: var(--ink);
}

.timeline {
  border-top: 1px solid rgba(245, 239, 223, 0.35);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 30px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(245, 239, 223, 0.35);
}

.timeline-item time {
  font-family: "DM Mono", monospace;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.timeline-item > div {
  display: grid;
  grid-template-columns: 0.8fr 1.5fr 1fr;
  align-items: start;
  gap: 30px;
}

.timeline-item span {
  color: var(--pink);
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2.7rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.timeline-item p {
  margin: 0;
  color: rgba(245, 239, 223, 0.72);
  font-size: 0.9rem;
  line-height: 1.55;
}

.plan-note {
  margin: 55px 0 0;
  color: var(--pink);
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  text-align: center;
  text-transform: uppercase;
}

.rsvp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  background: var(--lilac);
}

.rsvp-copy h2 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(4rem, 8vw, 8rem);
  letter-spacing: -0.075em;
  line-height: 0.84;
}

.rsvp-copy > p {
  max-width: 340px;
  margin-top: 38px;
  line-height: 1.6;
  font-weight: 600;
}

.rsvp-form {
  align-self: center;
  padding: 42px;
  border: 1px solid var(--ink);
  background: var(--cream);
  box-shadow: 12px 12px 0 var(--orange);
}

.rsvp-form > label,
.rsvp-form fieldset {
  display: block;
  margin: 0 0 30px;
  padding: 0;
  border: 0;
}

.rsvp-form > label > span,
.rsvp-form legend {
  display: block;
  margin-bottom: 11px;
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.rsvp-form input[type="text"] {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  outline: 0;
  padding: 7px 0 11px;
  color: var(--ink);
  background: transparent;
}

.rsvp-form input[type="text"]:focus {
  border-bottom-width: 2px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  cursor: pointer;
}

.choice input {
  width: 17px;
  height: 17px;
  accent-color: var(--orange);
}

.rsvp-form button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid var(--ink);
  color: var(--cream);
  background: var(--ink);
  cursor: pointer;
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.rsvp-form button:hover {
  color: var(--ink);
  background: var(--gold);
}

.form-status {
  min-height: 1.4em;
  margin: 18px 0 0;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  text-align: center;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 25px 4vw;
  color: var(--cream);
  background: var(--orange);
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

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

@media (max-width: 900px) {
  .hero {
    min-height: 820px;
  }

  .hero-bottom {
    grid-template-columns: 150px 1fr;
  }

  .round-button {
    position: absolute;
    right: 0;
    bottom: 0;
    transform: translateY(-140px);
  }

  .round-button:hover {
    transform: translateY(-140px) rotate(-6deg) scale(1.04);
  }

  .details-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-card-main {
    grid-column: 1 / -1;
  }

  .timeline-item > div {
    grid-template-columns: 1fr 1.5fr;
  }

  .timeline-item p {
    grid-column: 2;
  }

  .rsvp {
    grid-template-columns: 1fr;
  }

  .rsvp-copy h2 {
    font-size: clamp(4.5rem, 15vw, 8rem);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 20px;
  }

  nav {
    gap: 14px;
  }

  nav a:not(:last-child) {
    display: none;
  }

  .hero {
    min-height: 760px;
    padding: 100px 20px 25px;
  }

  .eyebrow span:last-child {
    display: none;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 17vw, 5.2rem);
    line-height: 0.9;
  }

  .orbit-two {
    width: 22vw;
  }

  .hero::before {
    right: 4vw;
    width: 48vw;
    height: 35%;
  }

  .hero::after {
    left: 40vw;
    bottom: 7%;
    width: 70vw;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .date-lockup {
    width: 150px;
  }

  .hero-bottom > p {
    max-width: 72%;
    font-size: 0.9rem;
  }

  .round-button {
    width: 94px;
    transform: none;
  }

  .round-button:hover {
    transform: rotate(-6deg) scale(1.04);
  }

  .section-pad {
    padding: 72px 20px;
  }

  .section-label {
    margin-bottom: 38px;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .detail-card-main {
    grid-column: auto;
  }

  .detail-card {
    min-height: 360px;
    padding: 28px;
  }

  .detail-card h2 {
    font-size: 2.65rem;
  }

  .timeline-item {
    grid-template-columns: 62px 1fr;
    gap: 14px;
    padding: 28px 0;
  }

  .timeline-item > div {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .timeline-item p {
    grid-column: auto;
  }

  .rsvp-copy h2 {
    font-size: 19vw;
  }

  .rsvp-form {
    padding: 28px 22px;
    box-shadow: 7px 7px 0 var(--orange);
  }

  footer {
    flex-direction: column;
    padding: 24px 20px;
  }
}

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

  .marquee-track {
    animation: none;
  }

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