@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #000;
  --ink: #fff;
  --copy: #ddd5e1;
  --accent: #03bfad;
  --accent-light: #8af5e9;
  --hover: #ffd800;
  --line: #d8c9e63b;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  background: var(--canvas);
  color: var(--ink);
  font-family: Manrope, "Trebuchet MS", sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(to bottom, transparent 34%, var(--canvas)) center top / 100% 52rem no-repeat,
    url("/assets/legacy-gradient.svg") center top / max(100%, 93rem) 52rem no-repeat;
}
a { color: inherit; }
p, h1, h2 { margin: 0; }
img, svg { display: block; }

::selection { color: var(--canvas); background: var(--accent-light); }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 5px; }

.shell {
  width: min(70rem, calc(100% - 3.5rem));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 1;
  padding: .7rem 1rem;
  color: var(--canvas);
  background: var(--accent-light);
  transform: translateY(calc(-100% - 1rem));
}

.skip-link:focus { transform: none; }

.site-header {
  min-height: 5.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.brand img { width: 12.75rem; height: auto; }

.label, .status {
  font: 500 .72rem/1.4 var(--mono);
  letter-spacing: .105em;
  text-transform: uppercase;
}

.status {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: .52rem;
  padding: .43rem .69rem;
  border: 1px solid #03bfad59;
  border-radius: 99px;
  background: #121b20;
  color: var(--accent-light);
}

.status-dot, .signal-end > span {
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.75rem, 5vw, 5.25rem);
  padding-block: clamp(3.5rem, 6.15vw, 5.6rem);
}

.hero-label {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.5rem;
  color: var(--accent-light);
}

.hero-label > span {
  width: 1.55rem;
  height: 1px;
  background: currentColor;
}

h1 {
  font-size: clamp(3.8rem, 7.9vw, 7.15rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.068em;
}

h1 > span { color: var(--accent); }

.intro {
  max-width: 27rem;
  margin-top: 1.65rem;
  color: var(--copy);
  font-size: clamp(1rem, 1.46vw, 1.18rem);
  line-height: 1.65;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem 1.45rem;
  margin-top: 1.85rem;
}

.button, .text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  width: fit-content;
  max-width: 100%;
  font-size: .92rem;
  font-weight: 800;
}

.button {
  gap: .6rem;
  padding: .78rem .95rem;
  border-radius: .42rem;
  background: var(--accent);
  color: var(--canvas);
  text-decoration: none;
  transition: background-color .18s ease;
}

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

.button svg, .text-link svg, .signal-title svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.button svg:last-child { margin-left: .35rem; }

.button svg:last-child, .text-link svg, .signal-title svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-link {
  color: var(--accent-light);
  text-decoration: underline;
  text-decoration-color: #8af5e984;
  text-underline-offset: .26em;
  text-decoration-thickness: 1px;
}

.text-link:hover { color: var(--ink); text-decoration-color: currentColor; }

.signal {
  overflow: hidden;
  min-width: 0;
  border: 1px solid #725386;
  border-radius: .7rem;
  color: #ece1f1;
  background: #1b1124;
  box-shadow: 0 1.25rem 2.25rem -.95rem #0009;
}

.signal-top, .signal-bottom, .signal-title, .signal-end {
  display: flex;
  align-items: center;
}

.signal-top, .signal-bottom {
  justify-content: space-between;
  gap: .5rem;
  min-height: 3rem;
  padding: .6rem clamp(.65rem, 1.5vw, 1.1rem);
  font-size: clamp(.55rem, 1vw, .68rem);
}

.signal-top { border-bottom: 1px solid var(--line); }
.signal-bottom { border-top: 1px solid var(--line); color: #c8b7d6; }
.signal-title, .signal-end { gap: .45rem; }
.signal-title svg, .signal-end { color: var(--accent-light); }
.signal-index { color: #c8b7d6; }
.signal-end > span { box-shadow: 0 0 .65rem #8af5e987; }

.signal-art { width: 100%; aspect-ratio: 470 / 350; }

.notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.note { padding: 1.8rem 2rem 1.45rem 0; }

.note + .note {
  padding-inline: clamp(1.5rem, 3.6vw, 3.25rem) 0;
  border-left: 1px solid var(--line);
}

.note-label { color: var(--accent-light); }
.note-label > span { margin-right: .25rem; }

.note h2 {
  margin-block: .68rem .48rem;
  font-size: clamp(1.45rem, 2.3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.2;
}

.note p:not(.note-label) {
  max-width: 29rem;
  font-size: .96rem;
  line-height: 1.64;
  color: var(--copy);
}

.note .text-link { margin-top: .25rem; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem 1.25rem;
  padding-block: .9rem 1.4rem;
  font-size: .83rem;
  color: var(--copy);
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.15rem; }
.site-footer a { display: inline-flex; align-items: center; min-height: 2.75rem; text-underline-offset: .22em; }
.site-footer a:hover { color: var(--ink); }

.error-page { padding-block: clamp(4rem, 10vw, 9rem); border-bottom: 1px solid var(--line); }

@media (max-width: 48rem) {
  body { background-position: center top, 74% top; }
  .shell { width: calc(100% - 2.5rem); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  h1 { font-size: clamp(3.25rem, 14vw, 6.5rem); }
  .signal { max-width: 33rem; }
  .signal-top, .signal-bottom { min-height: 2.55rem; font-size: clamp(.58rem, 2.05vw, .68rem); }
}

@media (max-width: 36rem) {
  .site-header { min-height: 4.15rem; }
  .brand img { width: clamp(8rem, 41vw, 10.2rem); }
  .status { font-size: .62rem; }
  .hero-label { margin-bottom: 1rem; }
  .intro { margin-top: 1.2rem; }
  .actions { margin-top: 1.1rem; gap: .45rem 1.05rem; }
  .notes { grid-template-columns: minmax(0, 1fr); }
  .note, .note + .note { padding: 1.45rem 0 .95rem; }
  .note + .note { border-top: 1px solid var(--line); border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
