/* ============================================================
   TUMBLEWEED CONSULTING — Design Tokens
   Brand palette: Deep slate navy + warm amber/gold accent
   Tone: Authoritative, grounded, expert — not corporate-soft
   ============================================================ */

:root, [data-theme="light"] {
  /* Surfaces */
  --color-bg:               #f5f3ef;
  --color-surface:          #f8f6f2;
  --color-surface-2:        #faf9f6;
  --color-surface-offset:   #ece9e3;
  --color-surface-offset-2: #e5e1da;
  --color-surface-dynamic:  #ddd9d0;
  --color-divider:          #d5d0c7;
  --color-border:           #c8c2b7;

  /* Text */
  --color-text:             #1a1a14;
  --color-text-muted:       #6b6558;
  --color-text-faint:       #a89e90;
  --color-text-inverse:     #f5f3ef;

  /* Primary accent — Amber Gold (trust + expertise signal) */
  --color-primary:          #b07a22;
  --color-primary-hover:    #8e5e10;
  --color-primary-active:   #6a430a;
  --color-primary-highlight: #e8d9bd;

  /* Secondary — Deep Navy (authority, depth) */
  --color-secondary:        #1e2d4a;
  --color-secondary-hover:  #15203a;
  --color-secondary-active: #0d1628;

  /* Success, error, warning */
  --color-success:          #3a6b1e;
  --color-error:            #9e2a2a;
  --color-warning:          #9e6a1a;

  /* Radius */
  --radius-sm:   0.25rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-full: 9999px;

  /* Transition */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26,26,20,0.08);
  --shadow-md: 0 4px 16px rgba(26,26,20,0.10);
  --shadow-lg: 0 12px 40px rgba(26,26,20,0.14);

  /* Spacing */
  --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;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.82rem + 0.25vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.6vw,  1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    7.5rem);

  /* Fonts */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Content widths */
  --content-narrow:  640px;
  --content-default: 960px;
  --content-wide:    1200px;
}

[data-theme="dark"] {
  --color-bg:               #111108;
  --color-surface:          #16160d;
  --color-surface-2:        #1a1a10;
  --color-surface-offset:   #1e1e14;
  --color-surface-offset-2: #22221a;
  --color-surface-dynamic:  #2a2a20;
  --color-divider:          #2e2e24;
  --color-border:           #3a3a2c;
  --color-text:             #e8e4d8;
  --color-text-muted:       #8a8474;
  --color-text-faint:       #5a5448;
  --color-text-inverse:     #111108;
  --color-primary:          #d4973c;
  --color-primary-hover:    #e8af56;
  --color-primary-active:   #f0c070;
  --color-primary-highlight: #3d2e12;
  --color-secondary:        #4a6fa5;
  --color-secondary-hover:  #6388bb;
  --color-secondary-active: #7aa0ce;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:               #111108;
    --color-surface:          #16160d;
    --color-surface-2:        #1a1a10;
    --color-surface-offset:   #1e1e14;
    --color-surface-offset-2: #22221a;
    --color-surface-dynamic:  #2a2a20;
    --color-divider:          #2e2e24;
    --color-border:           #3a3a2c;
    --color-text:             #e8e4d8;
    --color-text-muted:       #8a8474;
    --color-text-faint:       #5a5448;
    --color-text-inverse:     #111108;
    --color-primary:          #d4973c;
    --color-primary-hover:    #e8af56;
    --color-primary-active:   #f0c070;
    --color-primary-highlight: #3d2e12;
    --color-secondary:        #4a6fa5;
    --color-secondary-hover:  #6388bb;
    --color-secondary-active: #7aa0ce;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  }
}
