/* style.css — Cornerstone Mentorship — LHUNE-Inspired Design Tokens */

/* ===== FONTS ===== */
/* DM Sans for body/UI (clean, modern, geometric) */
/* Plus monospace accent: JetBrains Mono for callout text */

:root {
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
  --font-display: 'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* ===== TYPE SCALE ===== */
  --text-xs:   clamp(0.6875rem, 0.65rem + 0.2vw, 0.8125rem);
  --text-sm:   clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem);
  --text-base: clamp(0.9375rem, 0.875rem + 0.3vw, 1.0625rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl:   clamp(1.375rem, 1rem + 1.2vw, 2rem);
  --text-2xl:  clamp(1.75rem, 1.1rem + 2vw, 2.75rem);
  --text-3xl:  clamp(2.25rem, 1rem + 3.5vw, 4rem);
  --text-hero: clamp(2.5rem, 0.5rem + 5.5vw, 5.5rem);

  /* ===== 4px 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;

  /* ===== RADIUS ===== */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;

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

  /* ===== CONTENT WIDTHS ===== */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* ===== LIGHT MODE (LHUNE-Inspired) ===== */
:root, [data-theme="light"] {
  /* Surfaces — warm cream family */
  --color-bg:               #F9F8F6;
  --color-surface:          #FFFFFF;
  --color-surface-2:        #FDFCFA;
  --color-surface-offset:   #F4F1EC;
  --color-surface-offset-2: #EDEAE5;
  --color-surface-dynamic:  #E6E3DE;
  --color-divider:          #E0DDD7;
  --color-border:           #D6D2CB;

  /* Text — charcoal family */
  --color-text:             #2A2A2A;
  --color-text-muted:       #6E6E6E;
  --color-text-faint:       #ABABAB;
  --color-text-inverse:     #F9F8F6;

  /* Primary accent — muted sage green */
  --color-primary:          #7B8F6B;
  --color-primary-hover:    #677A58;
  --color-primary-active:   #536546;
  --color-primary-highlight: #E8EDE3;

  /* Secondary — warm gold (subtle) */
  --color-gold:             #BFA76A;
  --color-gold-hover:       #A89155;
  --color-gold-active:      #917B42;
  --color-gold-highlight:   #F0EBE0;

  /* Semantic — success (reuse primary sage) */
  --color-success:          #7B8F6B;
  --color-success-hover:    #677A58;

  /* Semantic — error */
  --color-error:            #B05050;
  --color-error-hover:      #943E3E;

  /* Investment dark section */
  --color-dark-bg:          #2A2A2A;
  --color-dark-surface:     #333333;
  --color-dark-text:        #F2F0ED;
  --color-dark-text-muted:  #A8A6A2;

  /* Shadows — warm-tinted */
  --shadow-sm: 0 1px 2px oklch(0.2 0.01 80 / 0.05);
  --shadow-md: 0 4px 12px oklch(0.2 0.01 80 / 0.07);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 80 / 0.1);
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --color-bg:               #1A1917;
  --color-surface:          #201F1D;
  --color-surface-2:        #262523;
  --color-surface-offset:   #1E1D1B;
  --color-surface-offset-2: #2A2928;
  --color-surface-dynamic:  #333231;
  --color-divider:          #2E2D2B;
  --color-border:           #3D3C39;

  --color-text:             #D8D6D2;
  --color-text-muted:       #8E8C88;
  --color-text-faint:       #5C5B58;
  --color-text-inverse:     #1A1917;

  --color-primary:          #97AD86;
  --color-primary-hover:    #ADBF9F;
  --color-primary-active:   #7B9468;
  --color-primary-highlight: #2E332A;

  --color-gold:             #D4BD7A;
  --color-gold-hover:       #E0CB8E;
  --color-gold-active:      #C4AC65;
  --color-gold-highlight:   #34302A;

  --color-success:          #97AD86;
  --color-success-hover:    #ADBF9F;

  --color-error:            #D07070;
  --color-error-hover:      #E08888;

  --color-dark-bg:          #141312;
  --color-dark-surface:     #1A1917;
  --color-dark-text:        #D8D6D2;
  --color-dark-text-muted:  #8E8C88;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.25);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.35);
}

/* System preference fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:               #1A1917;
    --color-surface:          #201F1D;
    --color-surface-2:        #262523;
    --color-surface-offset:   #1E1D1B;
    --color-surface-offset-2: #2A2928;
    --color-surface-dynamic:  #333231;
    --color-divider:          #2E2D2B;
    --color-border:           #3D3C39;
    --color-text:             #D8D6D2;
    --color-text-muted:       #8E8C88;
    --color-text-faint:       #5C5B58;
    --color-text-inverse:     #1A1917;
    --color-primary:          #97AD86;
    --color-primary-hover:    #ADBF9F;
    --color-primary-active:   #7B9468;
    --color-primary-highlight: #2E332A;
    --color-gold:             #D4BD7A;
    --color-gold-hover:       #E0CB8E;
    --color-gold-active:      #C4AC65;
    --color-gold-highlight:   #34302A;
    --color-success:          #97AD86;
    --color-success-hover:    #ADBF9F;
    --color-error:            #D07070;
    --color-error-hover:      #E08888;
    --color-dark-bg:          #141312;
    --color-dark-surface:     #1A1917;
    --color-dark-text:        #D8D6D2;
    --color-dark-text-muted:  #8E8C88;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.25);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.35);
  }
}
