/* Exaba docs — design tokens for both themes. */

:root {
  --font-serif: "PT Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --header-height: 64px;
  --sidebar-width: 310px;
  --right-rail-width: 220px;
  --content-max: 860px;
  --measure: 65ch;

  --transition-fast: 80ms ease-out;
  --transition: 120ms ease-out;
  --transition-slow: 200ms ease-out;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.30);

  --accent: #FFFF00;
  --accent-hover: #FFF480;
  --accent-muted: #665E00;

  --color-note: #3B82F6;
  --color-tip: #FFFF00;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;
}

/* Light theme — default */
html, html.exaba-light {
  --bg-page: #EBEBEB;
  --bg-surface: #FFFFFF;
  --bg-surface-hover: #F5F5F5;
  --bg-code: #FFFFFF;
  --border: #D1D1D1;
  --border-strong: #A8A8A8;
  --text-body: #0A0A0A;
  --text-heading: #000000;
  --text-muted: #5A5A5A;
  --text-link: #0A0A0A;
  --text-link-decoration: #FFFF00;
  --accent-text-on: #000000;
  --focus-ring-inner: #000000;
  --selection-bg: #FFFF00;
  --selection-fg: #000000;
}

/* Dark theme */
html.exaba-dark {
  --bg-page: #10253E;
  --bg-surface: #17304F;
  --bg-surface-hover: #1E3B5F;
  --bg-code: #17304F;
  --border: #2A4972;
  --border-strong: #3A5A85;
  --text-body: #E8ECF1;
  --text-heading: #FFFFFF;
  --text-muted: #A8B5C7;
  --text-link: #FFFF00;
  --text-link-decoration: #FFFF00;
  --accent-text-on: #10253E;
  --focus-ring-inner: #10253E;
  --selection-bg: #FFFF00;
  --selection-fg: #10253E;
}

@media (prefers-color-scheme: dark) {
  html:not(.exaba-light):not(.exaba-dark) {
    --bg-page: #10253E;
    --bg-surface: #17304F;
    --bg-surface-hover: #1E3B5F;
    --bg-code: #17304F;
    --border: #2A4972;
    --border-strong: #3A5A85;
    --text-body: #E8ECF1;
    --text-heading: #FFFFFF;
    --text-muted: #A8B5C7;
    --text-link: #FFFF00;
    --text-link-decoration: #FFFF00;
    --accent-text-on: #10253E;
    --focus-ring-inner: #10253E;
    --selection-bg: #FFFF00;
    --selection-fg: #10253E;
  }
}
