:root {
  --ink: #050506;
  --paper: #f5f4f0;
  --muted: #919197;
  --line: rgba(255, 255, 255, 0.18);
  --cyan: #08a8e6;
  --magenta: #e50596;
  --yellow: #fab70f;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", "Roboto Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--ink);
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--cyan);
  color: var(--ink);
}

.holding-page {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background: var(--ink);
}

.registration-bar {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--cyan) 0 33.333%,
    var(--magenta) 33.333% 66.666%,
    var(--yellow) 66.666% 100%
  );
}

.site-loader {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  place-items: center;
  background: var(--ink);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 450ms ease,
    visibility 450ms ease;
}

.js .site-loader {
  display: grid;
}

.site-loader.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
}

.loader-logo {
  width: clamp(180px, 22vw, 250px);
  height: auto;
  opacity: 0;
  transform: translateY(7px);
  animation: loader-logo-in 420ms ease forwards;
}

.loader-track {
  width: 124px;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.loader-track i {
  width: 100%;
  height: 100%;
  display: block;
  background: linear-gradient(
    90deg,
    var(--cyan) 0 33.333%,
    var(--magenta) 33.333% 66.666%,
    var(--yellow) 66.666% 100%
  );
  transform: scaleX(0);
  transform-origin: left center;
  animation: loader-progress 760ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.center-stage {
  width: min(760px, calc(100% - 2rem));
  min-height: calc(100svh - 68px);
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  margin-inline: auto;
  padding-block: clamp(3.5rem, 8vh, 6rem);
  text-align: center;
}

.brand {
  width: clamp(190px, 21vw, 260px);
  display: inline-flex;
  margin-bottom: clamp(2.6rem, 6vh, 4.4rem);
}

.brand img {
  width: 100%;
  height: auto;
}

.anniversary-note,
.status,
.location,
.site-footer {
  font-family: var(--font-mono);
}

.anniversary-note {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.2rem;
  color: #727278;
  font-size: 0.61rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.anniversary-note > span {
  display: inline-flex;
  gap: 3px;
}

.anniversary-note > span i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.anniversary-note > span i:nth-child(1) {
  background: var(--cyan);
}

.anniversary-note > span i:nth-child(2) {
  background: var(--magenta);
}

.anniversary-note > span i:nth-child(3) {
  background: var(--yellow);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.8rem;
  color: #c0c0c4;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--magenta);
  animation: status-pulse 2.2s ease-in-out infinite;
}

h1 {
  margin: 0;
  font-size: clamp(3.8rem, 8vw, 7.4rem);
  font-weight: 360;
  letter-spacing: -0.07em;
  line-height: 0.92;
}

h1 strong {
  display: block;
  margin-top: 0.08em;
  color: var(--cyan);
  font-weight: 620;
}

.intro {
  max-width: 560px;
  margin: 2rem auto 0;
  color: #ababaf;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
}

.intro span {
  display: block;
}

.primary-action {
  min-width: 190px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.6rem;
  margin-top: 2.3rem;
  padding: 0 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
  font-weight: 720;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.primary-action b {
  font-size: 1rem;
  font-weight: 450;
}

.primary-action:hover,
.primary-action:focus-visible {
  outline: none;
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.location {
  margin: 2rem 0 0;
  color: #66666c;
  font-size: 0.59rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-footer {
  width: min(760px, calc(100% - 2rem));
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #5f5f65;
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #a4a4a9;
  border-bottom: 1px solid #424247;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  outline: none;
  color: #fff;
  border-color: var(--cyan);
}

@keyframes loader-logo-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loader-progress {
  to {
    transform: scaleX(1);
  }
}

@keyframes status-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(229, 5, 150, 0);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(229, 5, 150, 0.12);
  }
}

@media (max-width: 560px) {
  .center-stage {
    min-height: calc(100svh - 78px);
    padding-block: 3.5rem 2.8rem;
  }

  .brand {
    width: 188px;
    margin-bottom: 2.8rem;
  }

  .anniversary-note {
    font-size: 0.54rem;
    line-height: 1.6;
  }

  .status {
    margin-bottom: 1.5rem;
    font-size: 0.55rem;
  }

  h1 {
    font-size: clamp(3.5rem, 17vw, 5rem);
    line-height: 0.95;
  }

  .intro {
    margin-top: 1.5rem;
    font-size: 0.96rem;
  }

  .primary-action {
    width: min(100%, 260px);
  }

  .site-footer {
    min-height: 78px;
    padding-block: 1rem;
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
