/* Blisters and Bedrock — final-v1 color tokens
   Separate from Emily's app brands. Dark-first shop identity.
   Rust is a fabric/graphic tone, not a button fill or light-background text color.
*/

:root {
  /* Core */
  --cotton-black: #120F0D;
  --soot: #221C18;
  --paper: #F3EBE0;
  --bleach-cream: #EBD6AE;
  --bleach-rust: #C75C28;
  --reverse-red: #A0222E;
  --forge-glow: #E8B35C;
  --ink: #1A1612;

  /* Muted text (use the one that matches the background) */
  --ash: #A08F7A;    /* muted on dark backgrounds */
  --stone: #5C4E40;  /* muted on light backgrounds */

  /* Semantic, dark-first default */
  --bg: var(--cotton-black);
  --surface: var(--soot);
  --text: var(--bleach-cream);
  --muted: var(--ash);
  --accent: var(--forge-glow);
  --cta-bg: var(--bleach-cream);
  --cta-text: var(--cotton-black);
  --cta-secondary-bg: var(--reverse-red);
  --cta-secondary-text: var(--bleach-cream);
  --focus: var(--forge-glow);
  --border: #3A322C;
}

[data-theme="light"] {
  --bg: var(--paper);
  --surface: #E7D8C4; /* slightly deeper than paper */
  --text: var(--ink);
  --muted: var(--stone);
  --accent: var(--reverse-red);
  --cta-bg: var(--cotton-black);
  --cta-text: var(--bleach-cream);
  --cta-secondary-bg: var(--reverse-red);
  --cta-secondary-text: var(--bleach-cream);
  --focus: var(--reverse-red);
  --border: #D4C4AE;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: var(--paper);
    --surface: #E7D8C4;
    --text: var(--ink);
    --muted: var(--stone);
    --accent: var(--reverse-red);
    --cta-bg: var(--cotton-black);
    --cta-text: var(--bleach-cream);
    --cta-secondary-bg: var(--reverse-red);
    --cta-secondary-text: var(--bleach-cream);
    --focus: var(--reverse-red);
    --border: #D4C4AE;
  }
}
