/* ============================================
   base.css — Design tokens & reset
   Behaviour Simulator website
   ============================================ */

/* ---- Design Tokens ---- */
:root {
  /* Typography */
  --font-display: 'Cabinet Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:    'Satoshi', 'Inter', system-ui, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.5rem;
  --text-5xl:  3.25rem;

  /* 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;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ---- Light Theme ---- */
[data-theme="light"] {
  --color-bg:           #ffffff;
  --color-bg-alt:       #f8f8f6;
  --color-bg-elevated:  #f0f0ec;
  --color-border:       #e8e8e2;
  --color-text:         #0a0a0a;
  --color-text-muted:   #4a4a4a;
  --color-text-faint:   #9a9a9a;
  --color-primary:      #0a0a0a;
  --color-primary-hover:#333333;
  --color-accent:       #6366f1;
  --color-accent-light: #eef2ff;
}

/* ---- Dark Theme ---- */
[data-theme="dark"] {
  --color-bg:           #0a0a0a;
  --color-bg-alt:       #111111;
  --color-bg-elevated:  #1a1a1a;
  --color-border:       #2a2a2a;
  --color-text:         #f5f5f0;
  --color-text-muted:   #b0b0a8;
  --color-text-faint:   #606060;
  --color-primary:      #f5f5f0;
  --color-primary-hover:#ffffff;
  --color-accent:       #818cf8;
  --color-accent-light: #1e1b4b;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--transition-base), color var(--transition-base);
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ---- Utility ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 640px) {
  .container { padding: 0 var(--space-4); }
}
