:root {
  --ink: #0e0f12;
  --paper: #f4ecd8;
  --yellow: #fed002;
  --red: #ed230a;
  --green: #4aae2e;
  --line: #26272c;
  font-family: 'JetBrains Mono', monospace;
  background: var(--ink);
  color: var(--paper);
}
* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}
body {
  margin: 0;
  overflow-x: clip;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}
nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 48px;
  background: #0e0f12e6;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
nav img {
  display: block;
  width: auto;
  height: 80px;
}
nav div {
  display: flex;
  gap: 28px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
nav span {
  color: var(--yellow);
}
.grid-bg,
.scan,
canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.grid-bg {
  z-index: 0;
  background:
    linear-gradient(#f4ecd809 1px, transparent 1px),
    linear-gradient(90deg, #f4ecd809 1px, transparent 1px);
  background-size: 64px 64px;
  animation: grid 3s linear infinite;
}
.scan {
  z-index: 1;
  background: repeating-linear-gradient(0deg, #0004 0 2px, transparent 2px 4px);
  animation: scan 1s linear infinite;
}
canvas {
  z-index: 0;
}
main,
footer {
  position: relative;
  z-index: 2;
}
header {
  padding: 72px 48px 48px;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 28px;
  color: var(--red);
  font:
    10px 'Press Start 2P',
    monospace;
}
.kicker i {
  width: 40px;
  height: 1px;
  background: var(--red);
}
.kicker span {
  color: #6f6a60;
}
.kicker b {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--yellow);
  font-weight: 400;
}
.kicker em {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: inset -3px 0 #b89600;
  animation: coin 1.2s linear infinite;
}
.kicker output {
  font-style: normal;
}
.kicker output {
  display: none;
}
h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(40px, 6.5vw, 104px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
  animation: glitch 6s steps(1) infinite;
}
.start {
  margin: 28px 0;
  font:
    10px 'Press Start 2P',
    monospace;
}
.start:first-letter {
  color: var(--green);
  animation: hop 1s infinite;
}
.start span {
  animation: blink 1.1s steps(1) infinite;
}
.search {
  display: flex;
  align-items: center;
  max-width: 720px;
  border: 2px solid var(--paper);
  background: var(--ink);
}
.search strong {
  padding: 18px;
  color: var(--yellow);
  font:
    10px 'Press Start 2P',
    monospace;
  animation: blink 1.1s steps(1) infinite;
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--paper);
  font: 16px inherit;
  padding: 18px 0;
}
.search input::placeholder {
  color: #6f6a60;
}
.search output {
  padding: 18px;
  color: #6f6a60;
  font-size: 11px;
  letter-spacing: 0.22em;
  white-space: nowrap;
}
.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin-bottom: 48px;
  padding: 12px 0;
  border-block: 3px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}
.marquee div {
  width: max-content;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 800;
  word-spacing: 25px;
  white-space: nowrap;
  animation: marquee 26s linear infinite;
}
.marquee div::first-letter {
  color: var(--red);
}
section {
  position: relative;
  z-index: 2;
  padding: 0 48px 160px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  border: 1px solid var(--line);
  background: var(--line);
}
.cards > a {
  display: flex;
  flex-direction: column;
  background: var(--ink);
  transition:
    background 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
}

.cards > a {
  scroll-margin-top: 132px;
}
.cards > a:hover,
.cards > a:focus-visible {
  position: relative;
  z-index: 3;
  background: #141519;
  transform: translate(-4px, -4px);
  box-shadow: 6px 6px var(--yellow);
}
figure {
  position: relative;
  aspect-ratio: 4/3;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
figure b {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 9px;
  background: var(--yellow);
  color: var(--ink);
  font:
    9px 'Press Start 2P',
    monospace;
}
.cards > * > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 26px;
}
.cards small,
.empty small {
  color: var(--red);
  font:
    9px 'Press Start 2P',
    monospace;
  letter-spacing: 0.08em;
}
.cards h2 {
  margin: 0;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.03em;
}
.cards p {
  margin: 0;
  color: #9d978a;
  font-size: 13px;
  line-height: 1.55;
}
.cards strong {
  margin-top: auto;
  padding-top: 6px;
  color: var(--yellow);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.empty {
  padding: 96px 0;
}
.empty p {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 800;
}
.empty button {
  min-height: 44px;
  border: 0;
  padding: 14px 20px;
  background: var(--yellow);
  color: var(--ink);
  font:
    11px 'JetBrains Mono',
    monospace;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 40px 48px;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
footer a {
  font-weight: 800;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@keyframes scan {
  to {
    background-position: 0 8px;
  }
}
@keyframes grid {
  to {
    background-position: 0 64px;
  }
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@keyframes coin {
  to {
    transform: rotateY(360deg);
  }
}
@keyframes hop {
  50% {
    transform: translateY(-10px);
  }
}
@keyframes glitch {
  0%,
  90%,
  100% {
    clip-path: inset(0);
    transform: none;
  }
  92% {
    clip-path: inset(20% 0 60%);
    transform: translateX(-6px);
  }
  94% {
    clip-path: inset(60% 0 10%);
    transform: translateX(6px);
  }
}
@media (max-width: 900px) {
  nav,
  header,
  section,
  footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  nav img {
    height: auto;
    width: 80px;
    max-height: 80px;
  }
  nav div {
    gap: 14px;
    font-size: 9px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  section {
    padding-bottom: 80px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
  }
  .grid-bg,
  .scan {
    animation: none;
  }
  canvas {
    display: none;
  }
}
