/* Шрифты self-host (OFL): Inter Variable (текст), Press Start 2P (акцентные заголовки). */
@font-face {
  font-family: "Inter Variable"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-cyrillic-wght-normal.71d5ee93cc.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter Variable"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.3100e775e8.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Press Start 2P"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/press-start-2p-cyrillic-400-normal.c2a20dcb95.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Press Start 2P"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/press-start-2p-latin-400-normal.afec86997f.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background-color: var(--bg);
  background-image: url("/assets/img/noise.db6613bfa1.png");
  color: var(--text); font: 400 var(--fs-md)/var(--lh-body) var(--font-ui);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
main { flex: 1; outline: none; }
img, svg, canvas { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0 0 var(--sp-3); line-height: var(--lh-tight); font-weight: 650; text-wrap: balance; }
h1, h2, .pixel { font-family: var(--font-pixel); font-weight: 400; line-height: 1.35; letter-spacing: 0; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
p { margin: 0 0 var(--sp-4); text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
ul, ol { padding-left: 1.25rem; margin: 0 0 var(--sp-4); }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-6) 0; }
code, kbd, samp { font-family: var(--font-mono); font-size: .92em; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .08em .4em; overflow-wrap: anywhere; }
::selection { background: var(--accent-strong); color: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }
[data-theme="dark"] :focus-visible { outline-color: #cbb6ff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--sp-3); top: -100px; z-index: 100; background: var(--accent-strong); color: #fff; padding: var(--sp-2) var(--sp-4); border-radius: var(--radius); text-decoration: none; }
.skip-link:focus { top: var(--sp-3); }
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-sm); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* Если пользователь просит меньше движения — отключаем всё декоративное */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
