/* base.css — resets, page chrome, CRT effect, marquee header. */

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: radial-gradient(ellipse at 50% -10%, #1e1440 0%, var(--bg) 55%, #050309 100%);
  color: var(--text);
  font-family: var(--font-mono);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0px,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 2px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 500;
  mix-blend-mode: overlay;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  box-shadow: inset 0 0 18vw 2vw rgba(0, 0, 0, 0.65);
  pointer-events: none;
  z-index: 501;
}

a {
  color: inherit;
}

/* Skip link: invisible until focused, first tab stop on the page. */
.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 1000;
  background: var(--panel);
  color: var(--cyan);
  border: 2px solid var(--cyan);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 16px;
  text-decoration: none;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 12px;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  position: relative;
  z-index: 1;
}

/* Header bar: title + utility controls (mute, install, reset) */
.top-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.marquee {
  text-align: center;
  margin-bottom: 32px;
  padding-top: 4px;
}
.marquee .eyebrow {
  font-family: var(--font-mono);
  letter-spacing: 0.35em;
  color: var(--muted);
  font-size: 15px;
  text-transform: uppercase;
}
.marquee h1 {
  font-family: var(--font-display);
  font-size: clamp(20px, 5vw, 38px);
  line-height: 1.4;
  margin: 14px 0 6px;
  color: var(--yellow);
  text-shadow: 0 0 6px rgba(255, 210, 63, 0.7), 0 0 22px rgba(255, 46, 174, 0.35);
  animation: flicker 5s infinite;
}
.marquee p {
  color: var(--muted);
  font-size: 19px;
  max-width: 560px;
  margin: 0 auto;
}
@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.55; }
  94% { opacity: 1; }
  95% { opacity: 0.4; }
  96% { opacity: 1; }
}

footer {
  text-align: center;
  margin-top: 50px;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.05em;
}
footer a {
  color: var(--cyan);
}

/* prefers-reduced-motion is honored globally: every keyframe animation in
   the site is disabled here in one place rather than patched per-component. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .marquee h1 {
    animation: none;
  }
}
