:root {
  color-scheme: dark;
  --black: #000;
  --near-black: #050403;
  --panel: rgba(3, 3, 3, 0.72);
  --text: #f7efe1;
  --muted: #b9aa92;
  --amber: #f3c66f;
  --amber-soft: rgba(243, 198, 111, 0.24);
  --red: #e2473d;
  --line: rgba(247, 239, 225, 0.18);
  --line-hot: rgba(243, 198, 111, 0.62);
  --shadow: rgba(0, 0, 0, 0.72);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #020202 0%, #000 48%, #050301 100%);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.4;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(243, 198, 111, 0.08) 0 1px, transparent 1px 92px),
    linear-gradient(180deg, rgba(247, 239, 225, 0.035) 0 1px, transparent 1px 76px);
  background-size: 92px 100%, 100% 76px;
  opacity: 0.44;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.08;
  background-image: repeating-linear-gradient(0deg, transparent 0, transparent 5px, rgba(247, 239, 225, 0.2) 6px);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 14px;
  top: 14px;
  z-index: 10;
  padding: 8px 10px;
  border-radius: 4px;
  background: var(--text);
  color: var(--black);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.motion-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.motion-field span {
  position: absolute;
  left: 0;
  top: 0;
  width: 220px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 198, 111, 0.7), transparent);
  opacity: 0;
  transform: translate3d(-260px, 0, 0) rotate(-16deg);
  animation: signalSweep 13s linear infinite;
}

.motion-field span::after {
  content: "";
  position: absolute;
  right: 48px;
  top: -2px;
  width: 42px;
  height: 1px;
  background: rgba(226, 71, 61, 0.5);
}

.motion-field span:nth-child(1) {
  top: 9%;
  animation-delay: -2s;
  animation-duration: 12s;
}

.motion-field span:nth-child(2) {
  top: 17%;
  animation-delay: -9s;
  animation-duration: 16s;
}

.motion-field span:nth-child(3) {
  top: 26%;
  animation-delay: -4s;
  animation-duration: 14s;
}

.motion-field span:nth-child(4) {
  top: 35%;
  animation-delay: -12s;
  animation-duration: 18s;
}

.motion-field span:nth-child(5) {
  top: 44%;
  animation-delay: -6s;
  animation-duration: 15s;
}

.motion-field span:nth-child(6) {
  top: 53%;
  animation-delay: -15s;
  animation-duration: 19s;
}

.motion-field span:nth-child(7) {
  top: 62%;
  animation-delay: -3s;
  animation-duration: 13s;
}

.motion-field span:nth-child(8) {
  top: 70%;
  animation-delay: -11s;
  animation-duration: 17s;
}

.motion-field span:nth-child(9) {
  top: 79%;
  animation-delay: -7s;
  animation-duration: 20s;
}

.motion-field span:nth-child(10) {
  top: 86%;
  animation-delay: -14s;
  animation-duration: 16s;
}

.motion-field span:nth-child(11) {
  top: 21%;
  animation-delay: -18s;
  animation-duration: 22s;
}

.motion-field span:nth-child(12) {
  top: 68%;
  animation-delay: -20s;
  animation-duration: 23s;
}

.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px 16px;
}

.hub {
  width: min(430px, 100%);
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  margin: 0 auto 22px;
  max-width: 11ch;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.1rem;
  line-height: 0.96;
  text-shadow: 0 18px 52px var(--shadow);
}

.links {
  display: grid;
  gap: 9px;
}

.link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.44);
  opacity: 0;
  transform: translateY(12px);
  animation: linkIn 440ms ease forwards;
}

.link:nth-child(2) {
  animation-delay: 45ms;
}

.link:nth-child(3) {
  animation-delay: 90ms;
}

.link:nth-child(4) {
  animation-delay: 135ms;
}

.link:nth-child(5) {
  animation-delay: 180ms;
}

.link:nth-child(6) {
  animation-delay: 225ms;
}

.link:nth-child(7) {
  animation-delay: 270ms;
}

.link.primary {
  min-height: 58px;
  border-color: var(--line-hot);
  background: var(--amber);
  color: #160f04;
}

.link span,
.link strong {
  min-width: 0;
}

.link span {
  font-size: 0.98rem;
  font-weight: 900;
}

.link strong {
  color: currentColor;
  font-size: 0.76rem;
  font-weight: 800;
  opacity: 0.72;
  text-align: right;
  overflow-wrap: anywhere;
}

.link:hover,
.link:focus-visible {
  border-color: var(--line-hot);
  color: var(--amber);
  transform: translateY(-1px);
}

.link.primary:hover,
.link.primary:focus-visible {
  color: #160f04;
}

@keyframes signalSweep {
  0% {
    opacity: 0;
    transform: translate3d(-280px, 0, 0) rotate(-16deg);
  }

  12%,
  72% {
    opacity: 0.72;
  }

  100% {
    opacity: 0;
    transform: translate3d(calc(100vw + 280px), 0, 0) rotate(-16deg);
  }
}

@keyframes linkIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .stage {
    padding: 22px 12px;
  }

  h1 {
    margin-bottom: 19px;
    font-size: 2.45rem;
  }

  .link,
  .link.primary {
    grid-template-columns: 1fr;
    gap: 2px;
    min-height: 62px;
    padding: 10px 12px;
  }

  .link strong {
    text-align: left;
  }
}

@media (max-height: 690px) and (min-width: 700px) {
  .stage {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  h1 {
    margin-bottom: 16px;
    font-size: 2.7rem;
  }

  .links {
    gap: 7px;
  }

  .link,
  .link.primary {
    min-height: 47px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

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