/* Михаил Куликов — дизайн-токены (сгенерировано из tokens.json) */
:root, [data-theme="light"] {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-sunken: #f4f4f2;
  --line: #ebebe8;
  --line-strong: #d9d9d4;
  --border-control: #8a8a84;
  --grid-line: #efefec;
  --ink: #151514;
  --ink-muted: #6b6b66;
  --ink-faint: #a3a39d;
  --graphite: #151514;
  --graphite-hover: #2a2a28;
  --on-graphite: #ffffff;
  --accent: #ffd21a;
  --on-accent: #151514;
  --accent-strong: #8f7300;
  --accent-tint: #fff7d6;
  --accent-ink: #6b5600;
  --highlight: var(--accent);
  --focus: #151514;
  --data-1: #151514;
  --data-2: #4a4a46;
  --data-3: #8f8f89;
  --data-4: #c9c9c4;
  --data-5: #ebebe8;
  --data-focus: var(--accent);
  --data-focus-edge: #151514;
  --data-focus-line: #151514;
  --data-focus-area: #fff2b3;
  --positive: #1d7350;
  --positive-tint: #e1f0e8;
  --warning: #8f5b00;
  --negative: #b3261e;
  --negative-tint: #fbe4e2;
  --glass: rgba(21,21,20,0.46);
  --on-glass: #ffffff;
  --device: #151514;
  --code-bg: #fafaf8;
  --shadow-1: 0 1px 2px rgba(21,21,20,0.06), 0 0 0 1px rgba(21,21,20,0.05);
  --shadow-2: 0 12px 32px -12px rgba(21,21,20,0.18), 0 0 0 1px rgba(21,21,20,0.05);
  --shadow-button: inset 0 1px 0 rgba(255,255,255,0.14), 0 6px 14px -6px rgba(21,21,20,0.55);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f0e;
    --surface: #181817;
    --surface-sunken: #131312;
    --line: #2a2a28;
    --line-strong: #3a3a37;
    --border-control: #6e6e69;
    --grid-line: #232321;
    --ink: #f2f2ef;
    --ink-muted: #9d9d97;
    --ink-faint: #5f5f5a;
    --graphite: #f2f2ef;
    --graphite-hover: #ffffff;
    --on-graphite: #151514;
    --accent: #ffd21a;
    --on-accent: #151514;
    --accent-strong: #ffd21a;
    --accent-tint: #2e2608;
    --accent-ink: #ffd97a;
    --highlight: var(--accent);
    --focus: #ffd21a;
    --data-1: #f2f2ef;
    --data-2: #c9c9c3;
    --data-3: #8a8a84;
    --data-4: #4a4a46;
    --data-5: #2a2a28;
    --data-focus: var(--accent);
    --data-focus-edge: #ffd21a;
    --data-focus-line: #ffd21a;
    --data-focus-area: rgba(255,210,26,0.16);
    --positive: #4cc38a;
    --positive-tint: #13281e;
    --warning: #e0a43a;
    --negative: #ff8a80;
    --negative-tint: #2e1514;
    --glass: rgba(21,21,20,0.56);
    --on-glass: #ffffff;
    --device: #2e2e2c;
    --code-bg: #121211;
    --shadow-1: 0 1px 2px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
    --shadow-2: 0 12px 32px -12px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.07);
    --shadow-button: inset 0 1px 0 rgba(255,255,255,0.4), 0 6px 14px -6px rgba(0,0,0,0.8);
    color-scheme: dark;
  }
}
[data-theme="dark"] {
  --bg: #0f0f0e;
  --surface: #181817;
  --surface-sunken: #131312;
  --line: #2a2a28;
  --line-strong: #3a3a37;
  --border-control: #6e6e69;
  --grid-line: #232321;
  --ink: #f2f2ef;
  --ink-muted: #9d9d97;
  --ink-faint: #5f5f5a;
  --graphite: #f2f2ef;
  --graphite-hover: #ffffff;
  --on-graphite: #151514;
  --accent: #ffd21a;
  --on-accent: #151514;
  --accent-strong: #ffd21a;
  --accent-tint: #2e2608;
  --accent-ink: #ffd97a;
  --highlight: var(--accent);
  --focus: #ffd21a;
  --data-1: #f2f2ef;
  --data-2: #c9c9c3;
  --data-3: #8a8a84;
  --data-4: #4a4a46;
  --data-5: #2a2a28;
  --data-focus: var(--accent);
  --data-focus-edge: #ffd21a;
  --data-focus-line: #ffd21a;
  --data-focus-area: rgba(255,210,26,0.16);
  --positive: #4cc38a;
  --positive-tint: #13281e;
  --warning: #e0a43a;
  --negative: #ff8a80;
  --negative-tint: #2e1514;
  --glass: rgba(21,21,20,0.56);
  --on-glass: #ffffff;
  --device: #2e2e2c;
  --code-bg: #121211;
  --shadow-1: 0 1px 2px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
  --shadow-2: 0 12px 32px -12px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.07);
  --shadow-button: inset 0 1px 0 rgba(255,255,255,0.4), 0 6px 14px -6px rgba(0,0,0,0.8);
  color-scheme: dark;
}
:root {
  --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-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;
  --grid-cell: 96px;
  --container: 1200px;
  --measure: 68ch;
  --font-sans: Onest, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

/* Текстовые стили */
.display-xl { font-family: var(--font-sans); font-size: 80px; line-height: 80px; font-weight: 500; letter-spacing: -0.04em; }
.display { font-family: var(--font-sans); font-size: 56px; line-height: 60px; font-weight: 500; letter-spacing: -0.035em; }
.h1 { font-family: var(--font-sans); font-size: 40px; line-height: 46px; font-weight: 500; letter-spacing: -0.03em; }
.h2 { font-family: var(--font-sans); font-size: 28px; line-height: 34px; font-weight: 500; letter-spacing: -0.02em; }
.h3 { font-family: var(--font-sans); font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.lead { font-family: var(--font-sans); font-size: 20px; line-height: 30px; font-weight: 400; letter-spacing: -0.005em; }
.body { font-family: var(--font-sans); font-size: 16px; line-height: 26px; font-weight: 400; }
.body-sm { font-family: var(--font-sans); font-size: 14px; line-height: 22px; font-weight: 400; }
.caption { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 500; }
.label { font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 500; }
.data { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 500; }
.code { font-family: var(--font-mono); font-size: 13px; line-height: 20px; font-weight: 400; }
