/* ==========================================================================
   Lucas Catão de Moraes — Design System tokens
   Base: Ferrari design system (performance luxury, chiaroscuro, Rosso accent)
   Schema token names preserved; additions are namespaced additions only.
   ========================================================================== */

:root {
  /* Core palette */
  --bg: #0b0b0b;
  --surface: #171717;
  --surface-warm: #23130f;
  --fg: #fffaf0;
  --fg-2: #e8dcc8;
  --muted: #a89f91;
  --meta: #ffd200;
  --border: #342a24;
  --border-soft: #241f1b;
  --accent: #dc0000;
  --accent-on: #ffffff;
  --accent-hover: color-mix(in oklab, var(--accent), black 8%);
  --accent-active: color-mix(in oklab, var(--accent), black 14%);
  --success: #0f9d58;
  --warn: #ffd200;
  --danger: #ff3b30;

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 19px;
  --text-xl: 26px;
  --text-2xl: 40px;
  --text-3xl: 62px;
  --text-4xl: 88px;
  --leading-body: 1.55;
  --leading-tight: 0.98;
  --tracking-display: -0.03em;

  /* Space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --section-y-desktop: 112px;
  --section-y-tablet: 80px;
  --section-y-phone: 56px;

  /* Shape / depth */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-pill: 9999px;
  --elev-flat: none;
  --elev-ring: 0 0 0 1px var(--border);
  --elev-raised: 0 26px 80px rgba(0, 0, 0, 0.48);
  --focus-ring: 0 0 0 4px rgba(220, 0, 0, 0.30);

  /* Motion */
  --motion-fast: 130ms;
  --motion-base: 220ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Container */
  --container-max: 1240px;
  --container-gutter-desktop: 40px;
  --container-gutter-tablet: 28px;
  --container-gutter-phone: 18px;
}

/* --------------------------------------------------------------------------
   Additions for the editorial light panels and page rhythm.
   These extend, never redefine, the base schema names above.
   -------------------------------------------------------------------------- */
:root {
  --paper: #f3f3ef;
  --paper-2: #e7e7e2;
  --ink: #101010;
  --ink-soft: #3d3d3d;
  --ink-muted: #63635f;
  --line-dark: #2a2a2a;
  --line-paper: #cfcfc8;
  --accent-on-paper: #c40000;
  --accent-text: #ff5a4d; /* accent for small text on dark surfaces (>= 6:1) */
  --header-h: 68px;
}
