/* Design Tokens — MinaSierra Guitars (Dark / Industrial Precision Tone Lab)
   Harmonized with Minasierra-Logo-Dorado.png (Gold + Crimson Hairline) */

:root {
  color-scheme: dark;

  /* Core Surfaces */
  --bg-canvas: #090b0f;
  --bg-surface: #11151c;
  --bg-elevated: #171c26;
  --bg-card-hover: #1c2330;
  --bg-inset: #07090c;

  /* Grid & Borders */
  --border-subtle: #232a36;
  --border-strong: #354052;
  --border-gold-subtle: rgba(212, 155, 53, 0.28);

  /* Text Hierarchy (WCAG AA/AAA compliant on dark canvas) */
  --text-primary: #f3f5f8;
  --text-secondary: #a8b2c1;
  --text-muted: #7c8799;

  /* Brand & Signal Accents */
  --brand-gold: #d49b35;
  --brand-gold-bright: #ebb854;
  --brand-gold-dim: rgba(212, 155, 53, 0.14);
  --brand-crimson: #e0483e;
  --brand-crimson-dim: rgba(224, 72, 62, 0.14);
  --signal-copper: #d97736;
  --signal-ok: #34d399;
  --signal-ok-dim: rgba(52, 211, 153, 0.14);

  /* Native browser UI theming */
  accent-color: var(--brand-gold);
  --scrollbar-track: #0d1016;
  --scrollbar-thumb: #4b5566;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

  /* Fluid Type Scale (max <= 2.5x min for WCAG 1.4.4 zoom compliance) */
  --text-xs: 0.78rem;
  --text-sm: 0.88rem;
  --text-base: 1rem;
  --text-lg: clamp(1.06rem, 0.98rem + 0.35vw, 1.22rem);
  --text-xl: clamp(1.28rem, 1.12rem + 0.7vw, 1.65rem);
  --text-2xl: clamp(1.65rem, 1.32rem + 1.4vw, 2.5rem);
  --text-3xl: clamp(2.1rem, 1.55rem + 2.3vw, 3.6rem);

  /* Layout & Radii */
  --container-max: 1200px;
  --gutter: clamp(1rem, 3vw, 2rem);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  /* Shadows */
  --shadow-card: 0 14px 36px rgba(0, 0, 0, 0.42);
  --shadow-glow: 0 0 40px rgba(212, 155, 53, 0.12);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@supports not (scrollbar-color: auto) {
  :root::-webkit-scrollbar {
    width: 12px;
    height: 12px;
  }
  :root::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
  }
  :root::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 6px;
  }
}
