/* Design System Tokens */

:root {
  /* === BACKGROUNDS === */
  --bg: #f5f5f5;
  --bg-hover: #e8e8e8;
  --border: #d4d4d4;
  --surface: #ffffff;

  /* === PRIMARY (Brand) === */
  --primary: #171717;
  --primary-hover: #262626;
  --primary-muted: #525252;

  /* === ACCENTS === */
  --warning: #a16207;
  --warning-hover: #ca8a04;
  --error: #b91c1c;
  --error-light: #dc2626;
  --accent: #525252;

  /* === TEXT === */
  --text: #171717;
  --text-secondary: #525252;
  --text-tertiary: #737373;

  /* === SEMANTIC STATES === */
  --error-bg: #fef2f2;
  --success-bg: #f0fdf4;
  --warning-bg: #fffbeb;

  /* === TYPOGRAPHY === */
  --font-serif: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;

  --text-xs: 0.75rem;   /* 12px */
  --text-sm: 0.85rem;   /* ~14px */
  --text-base: 1rem;    /* 16px */
  --text-lg: 1.05rem;   /* ~17px */
  --text-xl: 1.25rem;   /* 20px */
  --text-2xl: 1.5rem;   /* 24px */
  --text-3xl: 1.75rem;  /* 28px */
  --text-4xl: 2rem;     /* 32px */

  /* === SPACING === */
  --space-xs: 0.25rem;  /* 4px */
  --space-sm: 0.5rem;   /* 8px */
  --space-md: 1rem;     /* 16px */
  --space-lg: 1.5rem;   /* 24px */
  --space-xl: 2rem;     /* 32px */
  --space-2xl: 3rem;    /* 48px */

  /* === BORDERS & RADII === */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  /* === SHADOWS === */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 1px 3px rgba(0, 0, 0, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.03);
  --shadow-lg:
    0 1px 3px rgba(0, 0, 0, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 12px 24px rgba(0, 0, 0, 0.10);
  --shadow-primary: 0 2px 8px rgba(23, 23, 23, 0.15);
  --shadow-avatar: 0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-avatar-hover: 0 4px 12px rgba(0, 0, 0, 0.18);

  /* === SELECTION RINGS === */
  --ring-focus: 0 0 0 3px rgba(23, 23, 23, 0.1);
  --ring-selected: 0 0 0 3px rgba(23, 23, 23, 0.25);
  --ring-selected-pulse: 0 0 0 7px rgba(23, 23, 23, 0.1);
  --ring-error: 0 0 0 3px rgba(185, 28, 28, 0.15);

  /* === TRANSITIONS === */
  --transition-fast: 0.1s ease;
  --transition-base: 0.15s ease;
  --transition-slow: 0.2s ease;
  --transition-bounce: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* === BASE === */
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}
