/* ============================================================
   BASE & RESET: Инженерная сетка, моноширинный базис
   CHAR_W = 8px, CHAR_H = 14px
============================================================ */

:root {
  --bg-prime: #070809;
  --bg-panel: rgba(12, 14, 18, 0.78);
  --bg-panel-border: rgba(255, 255, 255, 0.12);
  --bg-panel-border-bright: rgba(255, 255, 255, 0.35);

  --text-main: #c4c8cb;
  --text-dim: #737b82;
  --text-bright: #f0f3f6;
  --text-accent: #9ebcd6;

  --font-mono: "SF Mono", "Consolas", "Monaco", "Liberation Mono", "Courier New", monospace;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --char-w: 8px;
  --char-h: 14px;
}

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

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-prime);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: var(--char-h);
  letter-spacing: 0.02em;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

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