/* theme-api: 1.0 */

/*
 * Design-Tokens: Farbsystem Variante A „erdig-warm“
 * Hex-Fallback für ältere Browser, gefolgt von modernem oklch().
 */

:root {
  --color-bg: #f8f2eb;
  --color-bg: oklch(0.965 0.012 75);

  --color-bg-alt: #f1e6da;
  --color-bg-alt: oklch(0.93 0.02 70);

  --color-surface: #fdfaf6;
  --color-surface: oklch(0.985 0.006 75);

  --color-surface-sidebar: #eedacb;
  --color-surface-sidebar: oklch(0.90 0.03 60);

  --color-text: #35251b;
  --color-text: oklch(0.28 0.03 55);

  --color-text-muted: #5a493e;
  --color-text-muted: oklch(0.42 0.03 55);

  --color-heading: #713e26;
  --color-heading: oklch(0.42 0.08 45);

  --color-heading-strong: #411e0d;
  --color-heading-strong: oklch(0.28 0.06 45);

  --color-border: #cda58a;
  --color-border: oklch(0.75 0.06 55);

  --color-link: #22548e;
  --color-link: oklch(0.44 0.11 255);

  --color-link-hover: #24568e;
  --color-link-hover: oklch(0.45 0.10 255);

  --color-focus: #2e69ad;
  --color-focus: oklch(0.50 0.12 255);

  --color-nav-hover-bg: #e2c8b4;
  --color-nav-hover-bg: oklch(0.85 0.04 60);

  --shadow: 0 2px 6px rgb(65 30 13 / .18);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --color-bg: #423c37;
    --color-bg: oklch(0.36 0.012 65);

    --color-bg-alt: #48413a;
    --color-bg-alt: oklch(0.38 0.015 65);

    --color-surface: #4c4641;
    --color-surface: oklch(0.4 0.012 65);

    --color-surface-sidebar: #544b43;
    --color-surface-sidebar: oklch(0.42 0.018 65);

    --color-text: #f8f4ef;
    --color-text: oklch(0.97 0.008 75);

    --color-text-muted: #dfd6cb;
    --color-text-muted: oklch(0.88 0.018 70);

    --color-heading: #f6d8bc;
    --color-heading: oklch(0.9 0.05 65);

    --color-heading-strong: #fdf4e7;
    --color-heading-strong: oklch(0.97 0.02 75);

    --color-border: #97897d;
    --color-border: oklch(0.64 0.025 65);

    --color-link: #aedaff;
    --color-link: oklch(0.87 0.07 245);

    --color-link-hover: #dcf2ff;
    --color-link-hover: oklch(0.95 0.035 245);

    --color-focus: #b8e4ff;
    --color-focus: oklch(0.9 0.07 245);

    --color-nav-hover-bg: #62554a;
    --color-nav-hover-bg: oklch(0.46 0.025 65);

    --shadow: 0 2px 8px rgb(0 0 0 / .25);
  }
}
