/* IMPLANT — reset, типографика, утилиты */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }

html { background: var(--bg); color-scheme: dark; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent;   /* фон — у html, чтобы слой полос (z-index:-1) был виден */
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }

/* Выделение: жёлтый текст на чёрном, без заливки */
mark { background: none; color: var(--mark); }

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.mono--muted { color: var(--muted); }
.mono--red { color: var(--accent-hi); }
.mono--mark { color: var(--mark); }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .98;
  letter-spacing: .01em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Ловушка для ботов: вне экрана, не display:none */
.trap {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Скан-лайны и зерно — только CSS, фиксированным слоем поверх всего */
.fx-scan {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
