/* StreetRiding design tokens
   Direction A — night (default)
   Direction B — chronicle
   Все значения — кандидаты на согласование, не финальный брендбук. */

:root,
[data-theme="night"] {
  color-scheme: dark;

  --font-body: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --color-bg: #0b0d0c;
  --color-surface: #131715;
  --color-surface-2: #1a1f1c;
  --color-surface-3: #222824;
  --color-border: #2a302c;
  --color-border-strong: #3a423c;

  --color-text: #f2f1ea;
  --color-text-muted: #a6ada5;
  --color-text-subtle: #7d857e;

  --color-brand: #ffb435;
  --color-brand-hover: #ffc65c;
  --color-brand-ink: #0b0d0c;
  --color-accent: #9be564;
  --color-accent-ink: #0b0d0c;
  --color-danger: #ff6b5a;
  --color-danger-ink: #0b0d0c;
  --color-success: #9be564;
  --color-warning: #ffb435;
  --color-info: #7fb2ff;
  --color-focus: #9be564;

  --color-hero-text: #f2f1ea;
  --color-hero-muted: #c1c7bf;
  --color-hero-overlay: linear-gradient(90deg, rgba(11, 13, 12, 0.96) 0%, rgba(11, 13, 12, 0.8) 42%, rgba(11, 13, 12, 0.35) 75%, rgba(11, 13, 12, 0.7) 100%);
  --color-header-bg: rgba(11, 13, 12, 0.82);
  --color-card-glass: rgba(19, 23, 21, 0.78);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.02);
  --shadow-float: 0 16px 48px rgba(0, 0, 0, 0.32);

  --container: 1200px;
  --gutter: 24px;
  --section-space: 88px;
  --header-height: 72px;
  --transition: 180ms ease;
  --transition-slow: 320ms cubic-bezier(0.2, 0.7, 0.2, 1);

  --hero-min-height: 680px;
  --hero-image-position: 72% center;
  --hero-image-opacity: 0.9;
  --hero-image-filter: saturate(0.9) contrast(1.05);
}

[data-theme="chronicle"] {
  color-scheme: light;

  --font-body: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --color-bg: #f3f0e8;
  --color-surface: #ffffff;
  --color-surface-2: #eae5da;
  --color-surface-3: #e0d9cb;
  --color-border: #d8d3c7;
  --color-border-strong: #bdb6a7;

  --color-text: #151515;
  --color-text-muted: #62625b;
  --color-text-subtle: #7b7a72;

  --color-brand: #e4572e;
  --color-brand-hover: #c94724;
  --color-brand-ink: #ffffff;
  --color-accent: #2f6b3a;
  --color-accent-ink: #ffffff;
  --color-danger: #b3261e;
  --color-danger-ink: #ffffff;
  --color-success: #2f6b3a;
  --color-warning: #9a5b00;
  --color-info: #24548c;
  --color-focus: #2f6b3a;

  --color-hero-text: #151515;
  --color-hero-muted: #62625b;
  --color-hero-overlay: linear-gradient(90deg, #f3f0e8 0%, rgba(243, 240, 232, 0.92) 38%, rgba(243, 240, 232, 0.1) 70%, rgba(243, 240, 232, 0) 100%);
  --color-header-bg: rgba(243, 240, 232, 0.92);
  --color-card-glass: #ffffff;

  --radius-sm: 4px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-pill: 999px;

  --shadow-card: none;
  --shadow-float: 0 18px 60px rgba(21, 21, 21, 0.12);

  --container: 1200px;
  --gutter: 24px;
  --section-space: 96px;
  --header-height: 72px;
  --transition: 160ms ease;
  --transition-slow: 280ms cubic-bezier(0.2, 0.7, 0.2, 1);

  --hero-min-height: 620px;
  --hero-image-position: 68% center;
  --hero-image-opacity: 1;
  --hero-image-filter: saturate(0.85) contrast(1.02);
}

@media (max-width: 900px) {
  :root,
  [data-theme="night"],
  [data-theme="chronicle"] {
    --gutter: 18px;
    --header-height: 64px;
    --section-space: 64px;
  }
}

@media (max-width: 560px) {
  :root,
  [data-theme="night"],
  [data-theme="chronicle"] {
    --gutter: 16px;
    --section-space: 56px;
  }
}
