/* SPLIT-S / 8it.co · one CRT, no build step.
   Palette matches the game: blue grid, cyan airframe, yellow HUD, black sky. */

:root {
  --bg: #04060f;
  --panel: #060a1a;
  --ink: #c2e6f2;
  --cyan: #3fe0ff;
  --blue: #3550e8;
  --dim: #7d90f2;
  --yellow: #ffd400;
  --line: rgba(53, 80, 232, 0.38);
  --mono: ui-monospace, "SF Mono", Menlo, "Cascadia Mono", "JetBrains Mono",
          Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- CRT overlay: scanlines + vignette, purely decorative ---- */
.crt {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  background:
    repeating-linear-gradient(0deg,
      rgba(0, 0, 0, 0.16) 0 1px,
      transparent 1px 3px);
}
.crt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
    transparent 58%, rgba(0, 0, 0, 0.42) 100%);
}

/* ---- header ---- */
.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  max-width: 780px;
  margin: 0 auto;
  padding: 1.4rem 1.25rem 0;
}
.brand {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-shadow: 0 0 12px rgba(63, 224, 255, 0.4);
}
.cursor { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.top nav a,
main a {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.top nav a { font-size: 0.8rem; letter-spacing: 0.12em; }
.top nav a:hover, main a:hover { color: #ffe566; }

/* ---- hero ---- */
main { max-width: 780px; margin: 0 auto; padding: 0 1.25rem 3rem; }

.hero { padding: 4.5rem 0 1rem; }

.kicker {
  color: var(--dim);
  font-size: 0.8rem;
  letter-spacing: 0.35em;
}

.logo {
  font-size: clamp(3.2rem, 11vw, 6.8rem);
  line-height: 1.02;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-shadow:
    0 0 18px rgba(63, 224, 255, 0.45),
    0 0 60px rgba(63, 224, 255, 0.2);
  margin: 0.4rem 0 1.2rem;
}

.tagline {
  color: var(--yellow);
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.lede { max-width: 58ch; color: var(--ink); }

.status {
  margin: 1.8rem 0 0;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--cyan);
  font-size: 0.85rem;
  line-height: 1.8;
  overflow-x: auto;
  box-shadow: inset 0 0 40px rgba(63, 224, 255, 0.05);
}

.scene {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1.8rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(63, 224, 255, 0.03), transparent 40%),
    var(--panel);
}
.plane { animation: hover-drift 6s ease-in-out infinite alternate; }
@keyframes hover-drift {
  from { transform: translateY(0); }
  to   { transform: translateY(9px); }
}
.trail { animation: march 1.6s linear infinite; }
@keyframes march { to { stroke-dashoffset: -30; } }

/* ---- content blocks ---- */
.block {
  padding: 2.6rem 0 0.4rem;
  border-top: 1px solid var(--line);
  margin-top: 2.6rem;
}
.hero + .block { margin-top: 2rem; }

h2 {
  color: var(--yellow);
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  margin-bottom: 1.4rem;
  font-weight: 700;
}

.block p { max-width: 62ch; margin-bottom: 1rem; }

.pull {
  color: var(--cyan);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  text-shadow: 0 0 14px rgba(63, 224, 255, 0.35);
}

/* definition rows */
.rows { display: grid; grid-template-columns: 13rem 1fr; gap: 0.9rem 1.6rem; }
.rows dt {
  color: var(--cyan);
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  padding-top: 0.15rem;
}
.rows dd { max-width: 58ch; }

@media (max-width: 620px) {
  .rows { grid-template-columns: 1fr; gap: 0.2rem; }
  .rows dd { margin-bottom: 1.1rem; }
}

/* ---- screenshots ---- */
.shots-note { color: var(--dim); font-size: 0.85rem; }

.shot { margin: 0 0 1.4rem; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  border: 1px solid var(--line);
  background: #000;
}
.shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
@media (max-width: 620px) {
  .shot-grid { grid-template-columns: 1fr; }
}

/* click-to-enlarge */
.shot-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  font: inherit;
}
.shot-zoom:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.lightbox {
  /* the * reset zeroes the UA's margin:auto that centers a modal dialog */
  margin: auto;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.8rem;
  max-width: min(92vw, 1100px);
  cursor: zoom-out;
}
.lightbox[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  image-rendering: pixelated;
  border: 1px solid var(--line);
  background: #000;
}
.lightbox-hint {
  color: var(--dim);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-family: var(--mono);
}
.lightbox::backdrop { background: rgba(2, 4, 10, 0.88); }

/* ---- footer ---- */
footer {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding: 1.6rem 1.25rem 2.4rem;
  text-align: center;
  color: var(--dim);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

/* ---- selection + motion ---- */
::selection { background: rgba(63, 224, 255, 0.35); color: #eafbff; }

@media (prefers-reduced-motion: reduce) {
  .cursor, .plane, .trail { animation: none; }
  html { scroll-behavior: auto; }
}
