/* Basalt canonical palette */
/* Molten amber on mineral ground, columnar blue secondary, olivine/magma semantics */

:root {
  /* Ground — weathered basalt face */
  --bg:           oklch(0.96 0.006 70);
  --bg-warm:      oklch(0.93 0.01 65);
  --bg-inset:     oklch(0.90 0.012 60);
  --bg-code:      oklch(0.15 0.008 250);

  /* Ink — mineral grays, faint cool undertone */
  --ink:          oklch(0.18 0.01 250);
  --ink-secondary: oklch(0.45 0.01 250);
  --ink-tertiary:  oklch(0.58 0.008 250);
  --ink-faint:     oklch(0.82 0.008 65);

  /* Molten core — primary accent */
  --accent:       oklch(0.62 0.17 50);
  --accent-light: oklch(0.94 0.04 55);
  --accent-hover: oklch(0.56 0.18 42);
  --accent-faint: oklch(0.62 0.17 50 / 0.06);

  /* Columnar blue — secondary accent */
  --blue:         oklch(0.58 0.10 250);
  --blue-light:   oklch(0.92 0.03 250);
  --blue-hover:   oklch(0.52 0.12 250);
  --blue-faint:   oklch(0.58 0.10 250 / 0.08);

  /* Semantic */
  --red-dim:      oklch(0.52 0.16 25);
  --olivine:      oklch(0.60 0.13 145);
}

@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    --bg:           oklch(0.15 0.008 250);
    --bg-warm:      oklch(0.19 0.008 250);
    --bg-inset:     oklch(0.13 0.008 250);
    --bg-code:      oklch(0.11 0.006 250);

    --ink:          oklch(0.90 0.008 250);
    --ink-secondary: oklch(0.68 0.01 250);
    --ink-tertiary:  oklch(0.50 0.008 250);
    --ink-faint:     oklch(0.26 0.008 250);

    --accent:       oklch(0.68 0.17 50);
    --accent-light: oklch(0.30 0.06 45);
    --accent-hover: oklch(0.74 0.15 55);
    --accent-faint: oklch(0.68 0.17 50 / 0.10);

    --blue:         oklch(0.65 0.10 250);
    --blue-light:   oklch(0.25 0.04 250);
    --blue-hover:   oklch(0.72 0.08 250);
    --blue-faint:   oklch(0.65 0.10 250 / 0.10);

    --red-dim:      oklch(0.60 0.18 25);
    --olivine:      oklch(0.65 0.13 145);
  }
}

:root.dark {
  --bg:           oklch(0.15 0.008 250);
  --bg-warm:      oklch(0.19 0.008 250);
  --bg-inset:     oklch(0.13 0.008 250);
  --bg-code:      oklch(0.11 0.006 250);

  --ink:          oklch(0.90 0.008 250);
  --ink-secondary: oklch(0.68 0.01 250);
  --ink-tertiary:  oklch(0.50 0.008 250);
  --ink-faint:     oklch(0.26 0.008 250);

  --accent:       oklch(0.68 0.17 50);
  --accent-light: oklch(0.30 0.06 45);
  --accent-hover: oklch(0.74 0.15 55);
  --accent-faint: oklch(0.68 0.17 50 / 0.10);

  --blue:         oklch(0.65 0.10 250);
  --blue-light:   oklch(0.25 0.04 250);
  --blue-hover:   oklch(0.72 0.08 250);
  --blue-faint:   oklch(0.65 0.10 250 / 0.10);

  --red-dim:      oklch(0.60 0.18 25);
  --olivine:      oklch(0.65 0.13 145);
}
