/* style.css — TRANZIT Design System */

/* ===== FONTS ===== */
/* Display: Clash Display (bold, premium)
   Body: Satoshi (clean, modern) */

/* ===== TYPE SCALE ===== */
: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);
}

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

/* ===== TRANZIT COLOR PALETTE — Deep Navy + Gold ===== */

:root, [data-theme="light"] {
  --font-display: 'Clash Display', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;

  /* Surfaces — warm white */
  --color-bg:               #f8f7f4;
  --color-surface:          #ffffff;
  --color-surface-2:        #faf9f7;
  --color-surface-offset:   #f0efec;
  --color-surface-offset-2: #e8e7e3;
  --color-surface-dynamic:  #dddcd8;
  --color-divider:          #d4d3cf;
  --color-border:           #c8c7c2;

  /* Text */
  --color-text:           #1a1f36;
  --color-text-muted:     #5c6178;
  --color-text-faint:     #9a9eb0;
  --color-text-inverse:   #f8f7f4;

  /* Primary Accent — Deep Navy */
  --color-primary:        #1a1f36;
  --color-primary-hover:  #2a3050;
  --color-primary-active: #0e1225;
  --color-primary-highlight: #d8dae4;

  /* Secondary Accent — Gold */
  --color-gold:           #c49a3c;
  --color-gold-hover:     #b38930;
  --color-gold-active:    #9a7526;
  --color-gold-highlight: #f0e8d4;
  --color-gold-light:     #d4a853;

  /* Semantic */
  --color-success:        #2d7a3a;
  --color-success-highlight: #d4dfcc;
  --color-error:          #c23b3b;
  --color-error-highlight: #f0d4d4;
  --color-warning:        #b86e1a;
  --color-warning-highlight: #f0e4d4;

  /* 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 */
  --shadow-sm: 0 1px 2px oklch(0.2 0.02 260 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.02 260 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.02 260 / 0.12);

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

/* DARK MODE */
[data-theme="dark"] {
  --color-bg:               #0d1017;
  --color-surface:          #141825;
  --color-surface-2:        #1a1f36;
  --color-surface-offset:   #161a28;
  --color-surface-offset-2: #1e2340;
  --color-surface-dynamic:  #252a42;
  --color-divider:          #2a3050;
  --color-border:           #353b5a;

  --color-text:           #e0e2ec;
  --color-text-muted:     #8a8faa;
  --color-text-faint:     #555a74;
  --color-text-inverse:   #1a1f36;

  --color-primary:        #e0e2ec;
  --color-primary-hover:  #c8cae0;
  --color-primary-active: #b0b2c8;
  --color-primary-highlight: #252a42;

  --color-gold:           #d4a853;
  --color-gold-hover:     #e0ba6a;
  --color-gold-active:    #eacc88;
  --color-gold-highlight: #2a2518;
  --color-gold-light:     #d4a853;

  --color-success:        #5cb56a;
  --color-success-highlight: #1a2e1e;
  --color-error:          #e05555;
  --color-error-highlight: #2e1a1a;
  --color-warning:        #d4923a;
  --color-warning-highlight: #2e241a;

  --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.5);
}

/* System preference fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:               #0d1017;
    --color-surface:          #141825;
    --color-surface-2:        #1a1f36;
    --color-surface-offset:   #161a28;
    --color-surface-offset-2: #1e2340;
    --color-surface-dynamic:  #252a42;
    --color-divider:          #2a3050;
    --color-border:           #353b5a;

    --color-text:           #e0e2ec;
    --color-text-muted:     #8a8faa;
    --color-text-faint:     #555a74;
    --color-text-inverse:   #1a1f36;

    --color-primary:        #e0e2ec;
    --color-primary-hover:  #c8cae0;
    --color-primary-active: #b0b2c8;
    --color-primary-highlight: #252a42;

    --color-gold:           #d4a853;
    --color-gold-hover:     #e0ba6a;
    --color-gold-active:    #eacc88;
    --color-gold-highlight: #2a2518;
    --color-gold-light:     #d4a853;

    --color-success:        #5cb56a;
    --color-success-highlight: #1a2e1e;
    --color-error:          #e05555;
    --color-error-highlight: #2e1a1a;
    --color-warning:        #d4923a;
    --color-warning-highlight: #2e241a;

    --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.5);
  }
}
