/* TOP Design Tokens - CSS Variables */
:root {
  /* Colors */
  --top-color-primary: #17191C;
  --top-color-secondary: #2B2F33;
  --top-color-text: #202326;
  --top-color-muted: #6B7075;
  --top-color-border: #D9DDE1;
  --top-color-bg: #FFFFFF;
  --top-color-bg-soft: #F5F6F7;
  --top-color-accent: #C96A2B;
  --top-color-accent-hover: #A95420;
  --top-color-white: #FFFFFF;
  --top-color-error: #DC2626;
  --top-color-success: #16A34A;

  /* Typography */
  --top-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --top-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --top-font-mono: 'IBM Plex Mono', 'SF Mono', 'Menlo', 'Monaco', monospace;

  /* Font sizes - Desktop */
  --top-h1: clamp(2.375rem, 5vw, 4.5rem);
  --top-h2: clamp(1.875rem, 4vw, 3rem);
  --top-h3: clamp(1.5rem, 3vw, 2rem);
  --top-h4: clamp(1.125rem, 2vw, 1.5rem);
  --top-body: clamp(1rem, 1.2vw, 1.125rem);
  --top-small: 0.875rem;
  --top-caption: 0.8125rem;
  --top-technical: clamp(0.8125rem, 1vw, 0.9375rem);

  /* Line heights */
  --top-lh-tight: 1.05;
  --top-lh-heading: 1.12;
  --top-lh-body: 1.7;
  --top-lh-technical: 1.5;

  /* Spacing */
  --top-space-xs: 0.5rem;
  --top-space-sm: 1rem;
  --top-space-md: 1.5rem;
  --top-space-lg: 2.5rem;
  --top-space-xl: 4rem;
  --top-space-2xl: 6rem;
  --top-space-3xl: 8rem;
  --top-space-section: clamp(4rem, 8vw, 8.75rem);

  /* Layout */
  --top-max-width: 1280px;
  --top-grid-gap: 1.5rem;
  --top-container-padding: clamp(1rem, 3vw, 2rem);

  /* Component */
  --top-radius-sm: 4px;
  --top-radius-md: 6px;
  --top-radius-lg: 8px;
  --top-border-width: 1px;
  --top-shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --top-shadow-md: 0 4px 12px rgba(0,0,0,0.06);

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

  /* Z-index */
  --top-z-dropdown: 100;
  --top-z-sticky: 50;
  --top-z-overlay: 200;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  :root {
    --top-transition-fast: 0ms;
    --top-transition-base: 0ms;
    --top-transition-slow: 0ms;
  }
}
