/**
 * RankCrackers Next — Universal Web Design Tokens
 * Conforming to Chapter 06 of Master Directive and Brand Asset Lock
 */

:root {
  /* Color Scheme Lock */
  color-scheme: only light;

  /* Primary Brand Gold Palette (Derived from brand-mark.svg) */
  --rc-gold-stop-0: #ffeb9d;
  --rc-gold-stop-55: #e8b75c;
  --rc-gold-stop-100: #bc812c;
  --rc-gold-gradient: linear-gradient(135deg, var(--rc-gold-stop-0) 0%, var(--rc-gold-stop-55) 55%, var(--rc-gold-stop-100) 100%);
  --rc-gold-gradient-hover: linear-gradient(135deg, #fff2be 0%, #f0c576 55%, #c88f3e 100%);

  /* Accent & Structural Golds */
  --rc-gold-accent: #b89c56;
  --rc-gold-deep: #7d6124; /* High-contrast gold for text/borders (WCAG AA) */
  --rc-gold-subtle: rgba(184, 156, 86, 0.12);
  --rc-gold-border: #d4bc78;

  /* Neutrals & Surfaces */
  --rc-canvas-bg: #fcfbf8;
  --rc-surface-card: #ffffff;
  --rc-surface-muted: #f6f5f0;
  --rc-surface-active: #eceae2;

  /* Borders & Dividers */
  --rc-border-subtle: #e6e4dc;
  --rc-border-strong: #d2cfc4;

  /* Typography / Text Colors */
  --rc-text-primary: #1a1a1a;
  --rc-text-secondary: #5c5c5c;
  --rc-text-muted: #85837d;
  --rc-text-inverse: #ffffff;

  /* Semantic Status Colors */
  --rc-status-live: #1b5e20;
  --rc-status-live-bg: #e8f5e9;
  --rc-status-held: #e65100;
  --rc-status-held-bg: #fff3e0;
  --rc-status-disconnected: #616161;
  --rc-status-disconnected-bg: #f5f5f5;
  --rc-status-error: #b71c1c;
  --rc-status-error-bg: #ffebee;

  /* Typography Scale */
  --rc-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Devanagari", "Noto Sans", sans-serif;
  --rc-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --rc-text-xs: 0.75rem;    /* 12px */
  --rc-text-sm: 0.875rem;   /* 14px */
  --rc-text-base: 1rem;     /* 16px */
  --rc-text-lg: 1.125rem;   /* 18px */
  --rc-text-xl: 1.25rem;    /* 20px */
  --rc-text-2xl: 1.5rem;    /* 24px */
  --rc-text-3xl: 1.875rem;  /* 30px */

  /* Spacing Scale */
  --rc-space-1: 0.25rem;   /* 4px */
  --rc-space-2: 0.5rem;    /* 8px */
  --rc-space-3: 0.75rem;   /* 12px */
  --rc-space-4: 1rem;      /* 16px */
  --rc-space-5: 1.25rem;   /* 20px */
  --rc-space-6: 1.5rem;    /* 24px */
  --rc-space-8: 2rem;      /* 32px */
  --rc-space-10: 2.5rem;   /* 40px */
  --rc-space-12: 3rem;     /* 48px */

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

  /* Elevation / Shadows */
  --rc-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --rc-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --rc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --rc-shadow-gold: 0 4px 14px rgba(184, 156, 86, 0.25);

  /* Transitions */
  --rc-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --rc-transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Responsive Layout Breakpoints */
  --rc-width-mobile: 390px;
  --rc-width-tablet: 768px;
  --rc-width-desktop: 1024px;
  --rc-width-wide: 1440px;
}
