/* style.css — Gal Nachum Consulting Design System */

/* ===== FONTS ===== */
/* DM Sans for body, Plus Jakarta Sans for display — loaded via Google Fonts in HTML */

:root {
  --font-display: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  --font-body: 'DM Sans', 'Plus Jakarta Sans', sans-serif;

  /* ===== 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.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);

  /* ===== 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.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);

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

/* ===== DARK MODE (Default) ===== */
:root, [data-theme="dark"] {
  --color-bg:             #0c1219;
  --color-surface:        #111a24;
  --color-surface-2:      #15202e;
  --color-surface-offset: #1a2738;
  --color-surface-offset-2: #1e2d42;
  --color-surface-dynamic: #243548;
  --color-divider:        #243548;
  --color-border:         #2e4058;

  --color-text:           #e2e8f0;
  --color-text-muted:     #8899ab;
  --color-text-faint:     #506070;
  --color-text-inverse:   #0c1219;

  /* Primary Accent — Teal */
  --color-primary:        #20808D;
  --color-primary-hover:  #2a9dac;
  --color-primary-active: #177078;
  --color-primary-highlight: #20808D22;

  /* Error */
  --color-error:          #e25c6a;
  --color-error-hover:    #d44050;
  --color-error-active:   #b83040;

  /* Success */
  --color-success:        #4ead6b;
  --color-success-hover:  #3d9a5a;
  --color-success-active: #2d8048;

  /* Warning */
  --color-warning:        #d4903a;
  --color-warning-hover:  #c07e2a;
  --color-warning-active: #a56a1e;

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

/* ===== LIGHT MODE ===== */
[data-theme="light"] {
  --color-bg:             #f5f7fa;
  --color-surface:        #ffffff;
  --color-surface-2:      #f0f2f5;
  --color-surface-offset: #e8ecf0;
  --color-surface-offset-2: #dde3ea;
  --color-surface-dynamic: #d2dae3;
  --color-divider:        #d2dae3;
  --color-border:         #c0cad6;

  --color-text:           #1a2332;
  --color-text-muted:     #5a6a7a;
  --color-text-faint:     #9aa8b6;
  --color-text-inverse:   #f5f7fa;

  /* Primary Accent — Teal */
  --color-primary:        #1a7380;
  --color-primary-hover:  #145c66;
  --color-primary-active: #0f4850;
  --color-primary-highlight: #1a738015;

  /* Error */
  --color-error:          #c23040;
  --color-error-hover:    #a52535;
  --color-error-active:   #881c2b;

  /* Success */
  --color-success:        #2d8048;
  --color-success-hover:  #246a3c;
  --color-success-active: #1c5430;

  /* Warning */
  --color-warning:        #a56a1e;
  --color-warning-hover:  #8c5818;
  --color-warning-active: #704712;

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0.2 0.01 240 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.01 240 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 240 / 0.12);
}

/* System preference fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #0c1219;
    --color-surface:        #111a24;
    --color-surface-2:      #15202e;
    --color-surface-offset: #1a2738;
    --color-surface-offset-2: #1e2d42;
    --color-surface-dynamic: #243548;
    --color-divider:        #243548;
    --color-border:         #2e4058;
    --color-text:           #e2e8f0;
    --color-text-muted:     #8899ab;
    --color-text-faint:     #506070;
    --color-text-inverse:   #0c1219;
    --color-primary:        #20808D;
    --color-primary-hover:  #2a9dac;
    --color-primary-active: #177078;
    --color-primary-highlight: #20808D22;
    --color-error:          #e25c6a;
    --color-success:        #4ead6b;
    --color-warning:        #d4903a;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.45);
  }
}
