/* Design tokens. --brand / --brand-2 are overridden at runtime from site settings. */
:root {
  --brand: #5b5bd6;
  --brand-2: #0ea5a4;
  --brand-contrast: #ffffff;

  --font-sans: 'Inter Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono Variable', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --header-h: 60px;
  --sidebar-w: 280px;
  --toc-w: 236px;
  --content-max: 760px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 160ms;

  color-scheme: light;
  --bg: #ffffff;
  --bg-subtle: #fafafb;
  --bg-muted: #f3f3f6;
  --bg-hover: #f0f0f4;
  --surface: #ffffff;
  --overlay: rgba(15, 15, 25, 0.42);
  --border: #e8e8ee;
  --border-strong: #d6d6de;
  --text: #17171c;
  --text-muted: #555562;
  --text-subtle: #8a8a97;
  --code-bg: #f7f7fa;
  --code-border: #ebebf0;
  --inline-code-bg: #f1f1f5;
  --shadow-sm: 0 1px 2px rgba(16, 16, 30, 0.05);
  --shadow: 0 1px 3px rgba(16, 16, 30, 0.06), 0 6px 16px -4px rgba(16, 16, 30, 0.08);
  --shadow-lg: 0 12px 40px -8px rgba(16, 16, 30, 0.22), 0 2px 6px rgba(16, 16, 30, 0.06);

  --info: #2563eb;
  --success: #15803d;
  --warning: #b45309;
  --danger: #dc2626;
  --info-bg: #eff5ff;
  --success-bg: #effaf2;
  --warning-bg: #fff8eb;
  --danger-bg: #fef2f2;

  --brand-soft: color-mix(in srgb, var(--brand) 9%, transparent);
  --brand-softer: color-mix(in srgb, var(--brand) 5%, transparent);
  --brand-border: color-mix(in srgb, var(--brand) 30%, transparent);
  --brand-text: color-mix(in srgb, var(--brand) 82%, #000);
  --focus: 0 0 0 3px color-mix(in srgb, var(--brand) 28%, transparent);
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a8a97' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0c0c10;
  --bg-subtle: #101015;
  --bg-muted: #17171e;
  --bg-hover: #1c1c24;
  --surface: #131319;
  --overlay: rgba(0, 0, 0, 0.6);
  --border: #24242d;
  --border-strong: #33333e;
  --text: #ececf1;
  --text-muted: #a4a4b0;
  --text-subtle: #70707c;
  --code-bg: #121218;
  --code-border: #23232c;
  --inline-code-bg: #1d1d25;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 6px 16px -4px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px -8px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.4);

  --info: #6ea8ff;
  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #f87171;
  --info-bg: color-mix(in srgb, #3b82f6 12%, transparent);
  --success-bg: color-mix(in srgb, #22c55e 11%, transparent);
  --warning-bg: color-mix(in srgb, #f59e0b 11%, transparent);
  --danger-bg: color-mix(in srgb, #ef4444 12%, transparent);

  --brand-soft: color-mix(in srgb, var(--brand) 16%, transparent);
  --brand-softer: color-mix(in srgb, var(--brand) 8%, transparent);
  --brand-border: color-mix(in srgb, var(--brand) 40%, transparent);
  --brand-text: color-mix(in srgb, var(--brand) 62%, #fff);
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b8b97' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
