﻿:root {
  --bg: #ffe9ce;
  --ink: #1a1a1a;
  --alarm: #ff3d2f;
  --cyan: #00d2ff;
}

* { box-sizing: border-box; }

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

body {
  font-family: "IBM Plex Mono", monospace;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, #ffe18b 0%, transparent 42%),
    radial-gradient(circle at 100% 100%, #ffa0aa 0%, transparent 44%),
    var(--bg);
  padding: clamp(14px, 4vw, 32px);
  overflow: hidden;
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0.06) 0 2px,
    transparent 2px 4px
  );
}

.warp {
  position: fixed;
  inset: -15%;
  pointer-events: none;
  background:
    conic-gradient(from 0deg at 50% 50%, rgba(255, 61, 47, 0.22), rgba(0, 210, 255, 0.22), rgba(255, 61, 47, 0.22));
  filter: blur(80px);
  animation: wobble 8s ease-in-out infinite;
}

.layout {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.console {
  width: min(950px, 100%);
  border-radius: 0;
  border: 3px solid #1a1a1a;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 12px 12px 0 #1a1a1a;
  padding: clamp(18px, 4vw, 36px);
  transform: rotate(-0.8deg);
}

.label {
  margin: 0;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
  font-weight: 600;
}

h1 {
  margin: 10px 0;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2rem, 9vw, 5.8rem);
  line-height: 0.88;
  text-transform: uppercase;
  position: relative;
}

h1::before,
h1::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
}

h1::before {
  color: var(--alarm);
  transform: translate(3px, -2px);
  clip-path: polygon(0 0, 100% 0, 100% 48%, 0 48%);
}

h1::after {
  color: var(--cyan);
  transform: translate(-3px, 3px);
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

.lead {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 52ch;
}

ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

li {
  margin: 6px 0;
}

nav {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

nav a {
  text-decoration: none;
  color: #1a1a1a;
  border: 2px solid #1a1a1a;
  padding: 10px 14px;
  font-weight: 600;
  background: #fff;
}

nav a:hover {
  background: #1a1a1a;
  color: #fff;
}

@keyframes wobble {
  0%,
  100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(9deg) scale(1.04); }
}

@media (max-width: 700px) {
  body {
    overflow-y: auto;
  }

  .console {
    transform: none;
    box-shadow: 6px 6px 0 #1a1a1a;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
