/* style.css — Hummel Wellness Collective Design Tokens & Components */

/* ============================================
   TYPE SCALE (Fluid with clamp)
   ============================================ */
:root {
  --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.9rem  + 0.5vw,  1.125rem);
  --text-lg:   clamp(1.125rem, 0.95rem + 0.85vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1rem    + 1.5vw,  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);
}

/* ============================================
   4px SPACING SYSTEM
   ============================================ */
:root {
  --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;
}

/* ============================================
   CUSTOM PALETTE: HUMMEL WELLNESS COLLECTIVE
   Navy / Gold / Teal / Sage — premium wellness
   Dark mode is DEFAULT (brand is navy-first)
   ============================================ */

/* --- DARK MODE (Default — brand is navy-based) --- */
:root, [data-theme="dark"] {
  /* --- Surfaces (Deep Navy) --- */
  --color-bg:               #1a1940;
  --color-surface:          #222155;
  --color-surface-2:        #2a2860;
  --color-surface-offset:   #1e1d4a;
  --color-surface-offset-2: #2e2c68;
  --color-surface-dynamic:  #35336e;
  --color-divider:          #3d3b6e;
  --color-border:           #4a487a;

  /* --- Text --- */
  --color-text:           #e8e6f0;
  --color-text-muted:     #9b98b8;
  --color-text-faint:     #6b688a;
  --color-text-inverse:   #1a1940;

  /* --- Primary Accent (Gold/Amber) --- */
  --color-primary:          #c9a84c;
  --color-primary-hover:    #dabb60;
  --color-primary-active:   #b89540;
  --color-primary-highlight: #2e2a3a;

  /* --- Secondary Accent (Teal) --- */
  --color-teal:             #7db5a0;
  --color-teal-hover:       #6aa38d;
  --color-teal-active:      #5a9380;

  /* --- Semantic: Success (Sage) --- */
  --color-success:          #8ab89e;
  --color-success-hover:    #74a68a;
  --color-success-active:   #609478;
  --color-success-highlight: #253530;

  /* --- Semantic: Error --- */
  --color-error:            #d47070;
  --color-error-hover:      #c05858;
  --color-error-active:     #a84444;
  --color-error-highlight:  #3a2525;

  /* --- Semantic: Warning --- */
  --color-warning:          #d4a050;
  --color-warning-hover:    #c08e40;
  --color-warning-active:   #a87c38;
  --color-warning-highlight: #3a3020;

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

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

  /* --- Shadows (dark navy surfaces) --- */
  --shadow-sm: 0 1px 2px oklch(0.1 0.02 270 / 0.3);
  --shadow-md: 0 4px 12px oklch(0.1 0.02 270 / 0.4);
  --shadow-lg: 0 12px 32px oklch(0.1 0.02 270 / 0.5);

  /* --- Content widths --- */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* --- Fonts --- */
  --font-display: 'Cormorant', 'Georgia', serif;
  --font-body: 'Manrope', 'Helvetica Neue', sans-serif;
}

/* --- LIGHT MODE --- */
[data-theme="light"] {
  /* --- Surfaces (Warm Cream/Sage) --- */
  --color-bg:               #f5f3ee;
  --color-surface:          #faf9f6;
  --color-surface-2:        #ffffff;
  --color-surface-offset:   #efede7;
  --color-surface-offset-2: #e8e5dd;
  --color-surface-dynamic:  #ddd9d0;
  --color-divider:          #d0ccc2;
  --color-border:           #c0bbb0;

  /* --- Text --- */
  --color-text:           #2c2a5e;
  --color-text-muted:     #52507a;
  --color-text-faint:     #9694aa;
  --color-text-inverse:   #f5f3ee;

  /* --- Primary Accent (Gold/Amber — darker for light bg) --- */
  --color-primary:          #9a7a2a;
  --color-primary-hover:    #7d6220;
  --color-primary-active:   #644e18;
  --color-primary-highlight: #f0e8d0;

  /* --- Secondary Accent (Teal — darker for light bg) --- */
  --color-teal:             #4a7a8a;
  --color-teal-hover:       #3a6878;
  --color-teal-active:      #2d5868;

  /* --- Semantic: Success --- */
  --color-success:          #4a8a60;
  --color-success-hover:    #3a7850;
  --color-success-active:   #2d6842;
  --color-success-highlight: #d8ead8;

  /* --- Semantic: Error --- */
  --color-error:            #a83838;
  --color-error-hover:      #902828;
  --color-error-active:     #781c1c;
  --color-error-highlight:  #f0d8d8;

  /* --- Semantic: Warning --- */
  --color-warning:          #a07828;
  --color-warning-hover:    #886520;
  --color-warning-active:   #705218;
  --color-warning-highlight: #f0e8d0;

  /* --- Shadows (warm-tinted for light surfaces) --- */
  --shadow-sm: 0 1px 2px oklch(0.3 0.02 60 / 0.08);
  --shadow-md: 0 4px 12px oklch(0.3 0.02 60 / 0.1);
  --shadow-lg: 0 12px 32px oklch(0.3 0.02 60 / 0.14);
}

/* System preference fallback */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --color-bg:               #f5f3ee;
    --color-surface:          #faf9f6;
    --color-surface-2:        #ffffff;
    --color-surface-offset:   #efede7;
    --color-surface-offset-2: #e8e5dd;
    --color-surface-dynamic:  #ddd9d0;
    --color-divider:          #d0ccc2;
    --color-border:           #c0bbb0;
    --color-text:           #2c2a5e;
    --color-text-muted:     #52507a;
    --color-text-faint:     #9694aa;
    --color-text-inverse:   #f5f3ee;
    --color-primary:          #9a7a2a;
    --color-primary-hover:    #7d6220;
    --color-primary-active:   #644e18;
    --color-primary-highlight: #f0e8d0;
    --color-teal:             #4a7a8a;
    --color-teal-hover:       #3a6878;
    --color-teal-active:      #2d5868;
    --color-success:          #4a8a60;
    --color-success-hover:    #3a7850;
    --color-success-active:   #2d6842;
    --color-success-highlight: #d8ead8;
    --color-error:            #a83838;
    --color-error-hover:      #902828;
    --color-error-active:     #781c1c;
    --color-error-highlight:  #f0d8d8;
    --color-warning:          #a07828;
    --color-warning-hover:    #886520;
    --color-warning-active:   #705218;
    --color-warning-highlight: #f0e8d0;
    --shadow-sm: 0 1px 2px oklch(0.3 0.02 60 / 0.08);
    --shadow-md: 0 4px 12px oklch(0.3 0.02 60 / 0.1);
    --shadow-lg: 0 12px 32px oklch(0.3 0.02 60 / 0.14);
  }
}
