/* ============================================================
   BASE
   Reset, page background, the CRT noise wash, and focus rings.
   Loaded before site-chrome.css on every generated page.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: #000;
  color: #fff6e9;
  font-family: "Press Start 2P", cursive;
  font-size: 10px;
  line-height: 2;
  overflow-x: hidden;
}

/* Faint scanline wash — the Y2K texture, kept behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .05;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .5) 0 1px, transparent 1px 3px);
}

body > * { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; border: 0; }

a { color: #ff4f9a; }

h1, h2, h3, h4 { font-weight: 400; }

:focus-visible { outline: 2px solid #d6ff49; outline-offset: 2px; }

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 10060;
  padding: 12px 16px;
  border: 2px solid #ff3c8d;
  background: #000;
  color: #d6ff49;
  font-size: 9px;
  text-decoration: none;
  transition: top .18s ease;
}

.skip-link:focus { top: 12px; }

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