:root {
  --background: #000;
  --paper: #f4f7ff;
  --ink: #f4f7ff;
  --dark-ink: #0d1021;
  --signal: #c7f542;
  --purple: #654cff;
  --gutter: clamp(1rem, 3.3vw, 3.5rem);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
}

a {
  color: inherit;
}

p,
h1,
h2 {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--background);
  background: var(--ink);
  transform: translateY(-200%);
}

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

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  min-height: 6.5rem;
  padding: 1.1rem var(--gutter);
  border-bottom: 1px solid var(--ink);
  text-transform: uppercase;
}

.wordmark {
  width: min-content;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.08em;
  text-decoration: none;
}

.wordmark span {
  display: block;
}

.status,
.edition {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--signal);
  animation: pulse 2.4s ease-in-out infinite;
}

.edition {
  justify-self: end;
}

.hero {
  display: flex;
  min-height: calc(100svh - 6.5rem);
  padding: clamp(2rem, 5vw, 5rem) var(--gutter) 1.2rem;
  flex-direction: column;
}

.eyebrow,
.hero-note {
  font-size: clamp(0.67rem, 0.8vw, 0.8rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  margin-left: 8.4%;
  color: #d02fcd;
}

.hero h1 {
  width: 100%;
  margin: auto 0;
  padding: 2.5rem 0;
  font-size: clamp(4rem, 11.4vw, 11rem);
  font-weight: 900;
  line-height: 0.76;
  text-transform: uppercase;
}

.hero h1 > span {
  display: block;
}

.hero h1 > span:first-child {
  margin-left: 7.5%;
}

.hero h1 > span:last-child {
  margin-left: 26.5%;
  color: #2FCBD0;
  font-size: 0.375em;
  text-align: left;
  letter-spacing: -0.13em;
}

.hero-line {
  position: relative;
  z-index: 0;
  color: var(--paper);
  letter-spacing: -0.095em;
  -webkit-text-stroke: 2.5px var(--dark-ink);
}

.hero-line::before {
  position: absolute;
  z-index: -1;
  top: 5%;
  bottom: 4%;
  left: -12vw;
  width: 62%;
  background: #d0812f;
  content: "";
  transform: rotate(-1.5deg);
  animation: box-vibrate 140ms linear infinite;
}

.hero-line em {
  margin-left: 20%;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.12em;
  text-transform: none;
}

.hero-foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
}

.hero-note {
  grid-column: 2;
  max-width: 17rem;
}

.footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1rem;
  align-items: end;
  min-height: 18rem;
  padding: var(--gutter);
  color: var(--dark-ink);
  background: var(--signal);
}

.footer p {
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer p:last-child {
  justify-self: end;
}

.footer-mark {
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 900;
  line-height: 0.65;
  letter-spacing: -0.12em;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.72);
  }
}

@keyframes box-vibrate {
  0%,
  100% {
    transform: rotate(-1.5deg) translate(0);
  }
  20% {
    transform: rotate(-1.5deg) translate(1.2px, -0.8px);
  }
  40% {
    transform: rotate(-1.5deg) translate(-0.9px, 1.1px);
  }
  60% {
    transform: rotate(-1.5deg) translate(0.8px, 0.6px);
  }
  80% {
    transform: rotate(-1.5deg) translate(-1px, -0.5px);
  }
}

.error-page {
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  padding: var(--gutter);
}

.error-page .masthead {
  min-height: auto;
  padding: 0 0 1rem;
}

.error-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  padding: 4rem 0;
}

.error-code {
  color: var(--signal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(7rem, 21vw, 21rem);
  font-style: italic;
  line-height: 0.7;
  letter-spacing: -0.1em;
}

.error-copy h1 {
  max-width: 9ch;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.84;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.error-copy p {
  max-width: 28rem;
  margin-top: 2rem;
  line-height: 1.45;
}

.home-link {
  display: inline-block;
  margin-top: 2rem;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid currentcolor;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.error-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 48rem) {
  .masthead {
    grid-template-columns: 1fr 1fr;
  }

  .status {
    justify-self: end;
  }

  .edition {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 6.5rem);
  }

  .eyebrow {
    margin-left: 0;
  }

  .hero h1 {
    font-size: clamp(4.5rem, 23vw, 9rem);
    line-height: 0.8;
  }

  .hero h1 > span:first-child {
    margin-left: 0;
  }

  .hero h1 > span:last-child {
    margin-top: 1.5%;
    margin-left: 8.5%;
  }

  .hero-line {
    -webkit-text-stroke-width: 2px;
  }

  .hero-line::before {
    top: 4%;
    bottom: 11%;
    left: -8vw;
    width: 75%;
  }

  .hero-line em {
    margin-left: 7%;
  }

  .hero-foot {
    grid-template-columns: 1fr auto;
  }

  .hero-note {
    grid-column: 1;
  }

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

  .footer-mark {
    grid-column: 1 / -1;
    margin-bottom: 4rem;
  }

  .footer p:last-child {
    grid-column: 2;
  }

  .error-main {
    display: block;
  }

  .error-code {
    margin-bottom: 4rem;
  }
}

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

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