/* Общий стиль arkanet.io: янтарный CRT. Шрифт, цвета, фон, растр и виньетка — для всех страниц;
   раскладка документа RKA.0 остаётся в index.html, страниц ошибок — ниже. */
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url(/fonts/JetBrainsMono-latin.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; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url(/fonts/JetBrainsMono-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
/* An amber phosphor terminal: faint raster lines, a soft glow, a vignette at the edges. */
:root {
  --bg: #0E0F0C;        /* dark glass */
  --ph: #FFB347;        /* phosphor: amber */
  --ph-dim: #9A6E2E;    /* phosphor, half brightness */
  --glow: rgba(255,179,71,.35);
  --font: "JetBrains Mono", "IBM Plex Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ph); font-family: var(--font); font-weight: 400;
  font-size: clamp(11px, 1.25vw, 15px); line-height: 1.45; padding-inline: 16px; padding-block: 32px; box-sizing: border-box; position: relative;
  min-height: 100%; display: flex; flex-direction: column; text-shadow: 0 0 6px var(--glow); overflow-x: hidden; }
body::before { /* raster lines */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.28) 2px 3px);
}
body::after { /* vignette and glass */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%);
}
a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--ph-dim); }
a:hover { border-bottom-color: var(--ph); }

/* Страницы ошибок (404.html, error.html): код крупно по центру экрана, под ним ссылка на корень. */
.err { position: relative; z-index: 0; margin: auto; display: grid; justify-items: center; gap: 1.45em; text-align: center; max-width: 100%; }
.err .code { font-weight: 700; font-size: clamp(56px, 18vw, 176px); line-height: 1; white-space: nowrap; letter-spacing: -0.02em;
  text-shadow: 0 0 10px var(--glow), 0 0 32px var(--glow); }
.err .home { color: var(--ph-dim); }
.err .home a:hover { color: var(--ph); }
