/* Shared source of truth. See docs/DESIGN_SYSTEM.md for usage and surface variants. */
@font-face { font-family: Manrope; font-style: normal; font-weight: 400 800; font-display: swap; src: url('assets/fonts/manrope-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 400 800; font-display: swap; src: url('assets/fonts/manrope-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; }
:root {
  color-scheme: dark;
  --paper: #0c0d0f;
  --surface: #141619;
  --raised: #1b1e22;
  --ink: #eeece6;
  --muted: #9ba0a8;
  --line: #262a2f;
  --line-strong: #3a3f46;
  --subtle: #1b1e22;
  --accent: #c8f169;
  --accent-hover: #dcff8a;
  --accent-soft: #1d2512;
  --on-accent: #0c0d0f;
  --danger: #ff8282;
  --danger-soft: #2a1516;
  --success: #6fdc9a;
  --success-soft: #11241a;
  --warning: #f3c15c;
  --warning-soft: #2a2110;
  --glow: radial-gradient(60% 60% at 50% 0%, #c8f16914, transparent 70%);
  --shadow: 0 1px 0 #ffffff08 inset, 0 24px 60px -24px #000c;
  --font-body: 'Golos Text', Arial, sans-serif;
  --font-display: Manrope, var(--font-body);
  --font-mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --text-xs: .8125rem;
  --text-sm: .875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --control-height: 44px;
  --motion-fast: 140ms;
  --motion-base: 220ms;
}
/* Boot failure: a system dialog in the portfolio's desktop style, self-coloured so it reads on any app theme. */
.boot-state.boot-state { position: fixed; z-index: 10002; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; padding: 56px 24px 22px; border: 1px solid #141414; border-radius: 10px; background: #fbfaf7; color: #141414; box-shadow: 0 0 0 100vmax #14141455, 0 40px 90px -30px #000a; font: 15px/1.55 var(--font-body); }
.boot-state.boot-state::before { content: 'System message'; position: absolute; left: 0; right: 0; top: 0; height: 36px; display: flex; align-items: center; padding: 0 12px; border-bottom: 1px solid #d9d8d2; font: 500 12px/1 'JetBrains Mono', var(--font-mono); }
.boot-state.boot-state::after { content: '!'; grid-column: 1; grid-row: 1 / span 9; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: #e0402a; color: #fff; font: 900 34px/1 'Fira Sans Extra Condensed', var(--font-display); }
.boot-state.boot-state > * { grid-column: 2; }
.boot-state.boot-state h1,.boot-state.boot-state h2 { margin: 0 0 10px; font: 800 34px/.95 'Fira Sans Extra Condensed', var(--font-display); text-transform: uppercase; color: #141414; letter-spacing: 0; }
.boot-state.boot-state p { margin: 0 0 16px; color: #3a3a35; font-size: 15px; }
.boot-state.boot-state a,.boot-state.boot-state button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0 8px 8px 0; padding: 0 16px; border: 1px solid #d9d8d2; border-radius: 6px; width: auto; height: auto; background: none; color: #141414; font: 500 14px/1 var(--font-body); letter-spacing: 0; text-transform: none; text-decoration: none; cursor: pointer; }
.boot-state.boot-state > button:first-of-type { background: #2f49ff; border-color: #2f49ff; color: #fff; font-weight: 600; }
.boot-state.boot-state [data-diagnostics] { border-color: transparent; padding: 0 8px; color: #5c5c55; font: 500 12px/1 'JetBrains Mono', var(--font-mono); text-decoration: underline; }
.boot-state.boot-state a:focus-visible,.boot-state.boot-state button:focus-visible { outline: 2px solid #2f49ff; outline-offset: 2px; }
.runtime-notice { position: fixed; z-index: 9999; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin: auto; padding: 16px; border-radius: var(--radius); background: var(--raised); color: var(--ink); font: 14px/1.5 var(--font-body); border: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.runtime-notice p { flex: 1 1 250px; margin: 0; }
.runtime-notice button { min-height: 44px; padding: 8px 12px; border: 1px solid currentColor; border-radius: var(--radius); background: transparent; color: inherit; font: inherit; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { :root { --motion-fast: 0ms; --motion-base: 0ms; } }
:root[data-lang="ru"] .boot-state.boot-state::before { content: 'Системное сообщение'; }
/* Bilingual static markup: lang.js sets data-lang on <html>; the other language stays hidden. */
:root[data-lang="ru"] [lang="en"]:not(html), :root[data-lang="en"] [lang="ru"]:not(html) { display: none !important; }
