/* Базовые стили: сброс, типографика, доступность */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: calc(100vh / var(--zoom, 1));
  min-height: calc(100dvh / var(--zoom, 1));
  background: var(--bg);
  color: var(--text);
  font: var(--fs-md)/1.45 var(--font);
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }
h2 { font-size: var(--fs-xl); }
p { margin: 0 0 0.75em; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent-hover); }
::selection { background: var(--selection); }
* { scrollbar-width: thin; scrollbar-color: var(--control) transparent; }
.mono { font-family: var(--mono); }
/* Капслок-метка раздела: Geist Mono 10px, разрядка */
.caps { font-family: var(--mono); font-size: var(--fs-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); font-weight: 400; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

[hidden] { display: none !important; }

.muted { color: var(--muted); }
.boot { margin: 40vh auto 0; text-align: center; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
