/* Markellos Ecosystem Design Tokens v1.1.0
 * Source of truth: design-system/tokens/tokens.json
 * Do not edit theme values inside application code.
 */

:root {
  color-scheme: light;

  /* Core brand */
  --color-brand-900: #153b6b;
  --color-brand-800: #1d4d79;
  --color-brand-700: #245c8d;
  --color-brand-600: #2f6f9f;
  --color-brand-500: #4f82a8;
  --color-brand-300: #9dbbd1;
  --color-brand-100: #eaf2f8;
  --color-brand-50: #f5f9fc;

  /* Neutrals and semantic roles */
  --color-background: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-subtle: #f3f4f6;
  --color-text: #1f2937;
  --color-text-muted: #5b6675;
  --color-border: #e5e7eb;
  --color-success: #2e7d32;
  --color-warning: #a15c00;
  --color-error: #b42318;
  --color-info: #2563eb;
  --color-focus: #0b6ebd;

  /* Default app theme */
  --app-accent: #6f8499;
  --app-accent-strong: #405b73;
  --app-accent-soft: #e9eef2;
  --app-on-accent: #111827;
  --app-on-accent-strong: #ffffff;

  /* Typography */
  --font-sans: Inter, "Noto Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --line-height-tight: 1.2;
  --line-height-compact: 1.3;
  --line-height-snug: 1.4;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.65;

  /* Spacing: 4 px base grid */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Shape and elevation */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 3px rgb(17 24 39 / 8%);
  --shadow-md: 0 4px 12px -2px rgb(17 24 39 / 12%);
  --shadow-lg: 0 12px 28px -6px rgb(17 24 39 / 16%);

  /* Sizing */
  --control-sm: 2rem;
  --control-md: 2.5rem;
  --control-lg: 3rem;
  --touch-target-min: 2.75rem;
  --content-narrow: 42rem;
  --content-default: 72rem;
  --content-wide: 90rem;
  --sidebar-compact: 4.5rem;
  --sidebar-default: 15rem;

  /* Motion */
  --duration-fast: 120ms;
  --duration-normal: 200ms;
  --duration-slow: 320ms;
  --easing-standard: cubic-bezier(0.2, 0, 0, 1);
  --easing-enter: cubic-bezier(0, 0, 0.2, 1);
  --easing-exit: cubic-bezier(0.4, 0, 1, 1);
}

[data-theme="tech-toolbox"] {
  --app-accent: #6f8499;
  --app-accent-strong: #405b73;
  --app-accent-soft: #e9eef2;
  --app-on-accent: #111827;
  --app-on-accent-strong: #ffffff;
}

[data-theme="mnemonics"] {
  --app-accent: #2b7a78;
  --app-accent-strong: #1e5c5a;
  --app-accent-soft: #e3f1f0;
  --app-on-accent: #ffffff;
  --app-on-accent-strong: #ffffff;
}

[data-theme="writing"] {
  --app-accent: #6e688a;
  --app-accent-strong: #504b6a;
  --app-accent-soft: #eeecf4;
  --app-on-accent: #ffffff;
  --app-on-accent-strong: #ffffff;
}

[data-theme="chess"] {
  --app-accent: #d9ae20;
  --app-accent-strong: #8b6b00;
  --app-accent-soft: #fff5c7;
  --app-on-accent: #1f2937;
  --app-on-accent-strong: #ffffff;
}

[data-theme="engineering"] {
  --app-accent: #f2c230;
  --app-accent-strong: #2f638c;
  --app-accent-soft: #fff6d6;
  --app-on-accent: #1f2937;
  --app-on-accent-strong: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-normal: 0ms;
    --duration-slow: 0ms;
  }
}
