/* Tokens: fuentes, variables y temas (studio, dark, paper).
   Atelier · S3-01: el monolito styles.css partido en capas (@layer tokens, base, components, screens). */
@layer tokens {
  /* ==========================================================================
     Atelier Spatial Board — Compact, High-Performance Mac Desktop UI
     ========================================================================== */

  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  }

  @font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('../assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  }

  :root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Studio Theme */
    --bg-desk: #e2e8f0;
    --board-surface: #ffffff;
    --board-bezel: #cbd5e1;
    --board-bezel-border: #94a3b8;
    --ui-surface: rgba(255, 255, 255, 0.92);
    --ui-surface-border: rgba(203, 213, 225, 0.85);
    --ui-surface-hover: rgba(248, 250, 252, 0.98);
    --ui-shadow-subtle: 0 2px 10px -1px rgba(15, 23, 42, 0.08), 0 1px 4px -1px rgba(15, 23, 42, 0.04);
    --ui-shadow-float: 0 8px 24px -3px rgba(15, 23, 42, 0.12), 0 2px 8px -2px rgba(15, 23, 42, 0.06);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --accent-primary: #4f46e5;
    --accent-primary-hover: #4338ca;
    --accent-tint: rgba(79, 70, 229, 0.08);
    --accent-ring: rgba(79, 70, 229, 0.25);
    --selection-color: #6366f1;
    --danger-color: #ef4444;
    --danger-tint: rgba(239, 68, 68, 0.08);

    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-pill: 9999px;

    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  }

  [data-theme="dark"] {
    --bg-desk: #090d16;
    --board-surface: #0f172a;
    --board-bezel: #1e293b;
    --board-bezel-border: #334155;
    --ui-surface: rgba(18, 24, 38, 0.92);
    --ui-surface-border: rgba(255, 255, 255, 0.1);
    --ui-surface-hover: rgba(30, 41, 59, 0.9);
    --ui-shadow-subtle: 0 4px 14px -1px rgba(0, 0, 0, 0.45);
    --ui-shadow-float: 0 12px 30px -4px rgba(0, 0, 0, 0.6);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --accent-primary: #6366f1;
    --accent-primary-hover: #818cf8;
    --accent-tint: rgba(99, 102, 241, 0.18);
    --accent-ring: rgba(99, 102, 241, 0.4);
    --selection-color: #818cf8;
    --danger-color: #f87171;
    --danger-tint: rgba(248, 113, 113, 0.15);
  }

  [data-theme="paper"] {
    --bg-desk: #eae5d9;
    --board-surface: #fcfbf7;
    --board-bezel: #d6cebe;
    --board-bezel-border: #b8ac97;
    --ui-surface: rgba(255, 253, 248, 0.94);
    --ui-surface-border: rgba(214, 203, 185, 0.85);
    --ui-surface-hover: rgba(248, 244, 235, 0.98);
    --ui-shadow-subtle: 0 2px 10px -1px rgba(78, 60, 35, 0.08), 0 1px 4px -1px rgba(78, 60, 35, 0.04);
    --ui-shadow-float: 0 8px 24px -3px rgba(78, 60, 35, 0.12), 0 2px 8px -2px rgba(78, 60, 35, 0.06);
    --text-primary: #292524;
    --text-secondary: #57534e;
    --text-tertiary: #a8a29e;
    --accent-primary: #d97706;
    --accent-primary-hover: #b45309;
    --accent-tint: rgba(217, 119, 6, 0.1);
    --accent-ring: rgba(217, 119, 6, 0.25);
    --selection-color: #d97706;
    --danger-color: #dc2626;
    --danger-tint: rgba(220, 38, 38, 0.08);
  }
}
