:root {
  /* —— Neutrals (warm graphite scale) —— */
  --color-bg: #1a1816;
  --color-surface: #24211e;
  --color-surface-raised: #2e2a26;
  --color-elevated: #35312c;
  --color-border: #3a3632;
  --color-border-subtle: #2a2724;
  --color-text: #f5f0e8;
  --color-text-secondary: #d2cdc4;
  --color-text-muted: #a39e96;
  --color-text-faint: #6f6a63;

  /* —— Accent (signature gold) —— */
  --color-accent: #c4a35a;
  --color-accent-hover: #d4b56a;
  --color-accent-active: #b8944a;
  --color-accent-muted: rgba(196, 163, 90, 0.2);
  --color-accent-soft: rgba(196, 163, 90, 0.12);
  --color-on-accent: #1a1816;

  /* —— Semantic —— */
  --color-success: #6b7f5a;
  --color-success-soft: rgba(107, 127, 90, 0.14);
  --color-success-text: #c9d6b8;
  --color-danger: #a65d4e;
  --color-danger-soft: rgba(166, 93, 78, 0.14);
  --color-danger-text: #e8c4bc;
  --color-warning: #b8924a;
  --color-warning-soft: rgba(184, 146, 74, 0.14);
  --color-warning-text: #e6d3a8;
  --color-info: #6a7f8f;
  --color-info-soft: rgba(106, 127, 143, 0.14);
  --color-info-text: #b8c9d4;
  --color-focus: #c4a35a;
  --color-focus-ring: rgba(196, 163, 90, 0.35);

  /* —— Light surfaces (public menu / print) —— */
  --color-bg-light: #f7f3ec;
  --color-surface-light: #ffffff;
  --color-text-on-light: #1a1816;
  --color-text-muted-on-light: #6f6a63;

  /* —— Typography —— */
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.75rem;
  --text-4xl: 3.5rem;

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.55;
  --leading-relaxed: 1.65;

  --tracking-display: -0.02em;
  --tracking-tight: -0.015em;
  --tracking-label: 0.06em;
  --tracking-wide: 0.08em;

  /* —— Spacing (4px scale) —— */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* —— Shape —— */
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 4px;

  --border-width: 1px;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.28), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.2);
  --shadow-none: none;

  /* —— Layout —— */
  --sidebar-width: 15rem;
  --content-max: 78rem;
  --auth-max: 26rem;
  --control-height: 2.5rem;
  --control-height-sm: 2rem;

  /* —— Motion —— */
  --duration-fast: 120ms;
  --duration-base: 180ms;
  --duration-slow: 280ms;
  --ease-out: cubic-bezier(0.2, 0, 0, 1);

  /* —— Breakpoints (reference; use in media queries) —— */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;

  /* —— Z-index —— */
  --z-sticky: 20;
  --z-dropdown: 30;
  --z-toast: 50;
  --z-modal: 60;

  color-scheme: dark;
}

/* Painel: tema claro (editorial) — ativado via data-ui-theme="light" */
[data-ui-theme="light"] {
  color-scheme: light;

  --color-bg: #f7f3ec;
  --color-surface: #ffffff;
  --color-surface-raised: #f0ebe3;
  --color-elevated: #ffffff;
  --color-border: #d9d2c6;
  --color-border-subtle: #ebe6dc;
  --color-text: #1a1816;
  --color-text-secondary: #3d3934;
  --color-text-muted: #6f6a63;
  --color-text-faint: #9a948c;

  --color-accent: #a8883f;
  --color-accent-hover: #b8944a;
  --color-accent-active: #8f7234;
  --color-accent-muted: rgba(168, 136, 63, 0.18);
  --color-accent-soft: rgba(168, 136, 63, 0.1);
  --color-on-accent: #ffffff;

  --color-success: #5a6e4a;
  --color-success-soft: rgba(90, 110, 74, 0.12);
  --color-success-text: #3d4f32;
  --color-danger: #9a5346;
  --color-danger-soft: rgba(154, 83, 70, 0.12);
  --color-danger-text: #7a3f35;
  --color-warning: #9a7a3a;
  --color-warning-soft: rgba(154, 122, 58, 0.14);
  --color-warning-text: #6f5628;
  --color-info: #5a6f7f;
  --color-info-soft: rgba(90, 111, 127, 0.12);
  --color-info-text: #3d5160;
  --color-focus: #a8883f;
  --color-focus-ring: rgba(168, 136, 63, 0.32);

  --shadow-xs: 0 1px 2px rgba(26, 24, 22, 0.06);
  --shadow-sm: 0 4px 12px rgba(26, 24, 22, 0.08), 0 1px 2px rgba(26, 24, 22, 0.05);
  --shadow-soft: 0 12px 40px rgba(26, 24, 22, 0.12), 0 2px 6px rgba(26, 24, 22, 0.06);
}
