/* ============================================================
   PACHAMAMA ECUADOR FOUNDATION — Design Tokens
   Palette drawn from the logo: deep blue, terracotta, amber,
   water blue, warm white. Organic, warm, mission-driven.
   ============================================================ */

:root,
[data-theme="light"] {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 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,    8rem);

  /* Spacing (4px base) */
  --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;

  /* Brand Palette — from logo */
  --brand-blue:      #1a3a5c;   /* deep navy blue (logo text/mountain) */
  --brand-blue-mid:  #2b5285;   /* medium blue */
  --brand-water:     #3d7fb8;   /* water blue */
  --brand-water-lt:  #6ca5d0;   /* lighter water */
  --brand-terra:     #8b3a2a;   /* red-brown/terracotta */
  --brand-terra-lt:  #b85540;   /* lighter terracotta */
  --brand-amber:     #d4820a;   /* sunrise amber/gold */
  --brand-amber-lt:  #e8a832;   /* lighter amber */
  --brand-orange:    #c85c1a;   /* orange accent */
  --brand-sand:      #f5ede0;   /* warm cream/sand */
  --brand-sand-2:    #ede3d4;   /* slightly darker sand */

  /* Semantic Colors — Light Mode */
  --color-bg:             #faf8f4;
  --color-surface:        #f5f0e8;
  --color-surface-2:      #ede6d8;
  --color-surface-offset: #e6dece;
  --color-divider:        #d4c9b8;
  --color-border:         #c8bba8;

  --color-text:           #1a1510;
  --color-text-muted:     #5a5040;
  --color-text-faint:     #a09078;
  --color-text-inverse:   #faf8f4;

  --color-primary:        #1a3a5c;
  --color-primary-hover:  #12294a;
  --color-primary-active: #0c1e38;
  --color-primary-highlight: #d0dce8;

  --color-accent:         #8b3a2a;
  --color-accent-hover:   #6e2c1e;
  --color-accent-active:  #521f15;

  --color-cta:            #c85c1a;
  --color-cta-hover:      #a84812;
  --color-cta-active:     #8a3a0d;

  --color-gold:           #d4820a;
  --color-gold-hover:     #b06808;

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

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

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

  --content-narrow:  640px;
  --content-default: 960px;
  --content-wide:    1200px;
  --content-full:    100%;

  --font-display: 'Zodiak', 'Georgia', serif;
  --font-body:    'Satoshi', 'Helvetica Neue', sans-serif;
}

[data-theme="dark"] {
  --color-bg:             #141210;
  --color-surface:        #1c1814;
  --color-surface-2:      #22201a;
  --color-surface-offset: #1a1814;
  --color-divider:        #2e2a24;
  --color-border:         #3a3530;

  --color-text:           #e8e0d4;
  --color-text-muted:     #9a9080;
  --color-text-faint:     #6a6058;
  --color-text-inverse:   #141210;

  --color-primary:        #6ca5d0;
  --color-primary-hover:  #88b8dc;
  --color-primary-active: #a4cae8;
  --color-primary-highlight: #1e2e3c;

  --color-accent:         #c87060;
  --color-accent-hover:   #d88878;
  --color-accent-active:  #e09888;

  --color-cta:            #e07838;
  --color-cta-hover:      #e88848;
  --color-cta-active:     #f09858;

  --color-gold:           #e8a832;
  --color-gold-hover:     #f0b848;

  --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:             #141210;
    --color-surface:        #1c1814;
    --color-surface-2:      #22201a;
    --color-surface-offset: #1a1814;
    --color-divider:        #2e2a24;
    --color-border:         #3a3530;
    --color-text:           #e8e0d4;
    --color-text-muted:     #9a9080;
    --color-text-faint:     #6a6058;
    --color-text-inverse:   #141210;
    --color-primary:        #6ca5d0;
    --color-primary-hover:  #88b8dc;
    --color-primary-active: #a4cae8;
    --color-primary-highlight: #1e2e3c;
    --color-accent:         #c87060;
    --color-accent-hover:   #d88878;
    --color-cta:            #e07838;
    --color-cta-hover:      #e88848;
    --color-gold:           #e8a832;
    --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);
  }
}
