/* Design Tokens — VITRINO brand (work-tool restyle)
   ⚠️ No hex literals in component CSS. Every color goes through var(--color-*).
   Palette from VITRINO brand book: Espresso Ink, Showroom Amber (accent sparingly),
   Warm Sand, Soft Clay, Off-white. Primary = ink (not amber).
*/

:root {
  /* ----- COLORS ----- */
  --color-bg: #FAF7F1;
  --color-surface: #FFFFFF;
  --color-surface-alt: #EFE8DC;

  --color-text: #221C18;
  --color-text-muted: #6B6157;
  --color-text-faint: #9A8F80;
  --color-text-inverse: #FAF7F1;

  --color-primary: #221C18;
  --color-primary-hover: #34291F;

  --color-border: #E1D8C9;
  --color-border-strong: #C9BBA8;

  --color-accent: #E89A2E;
  --color-accent-hover: #CF861D;
  --color-accent-soft: #FBF1E2;

  --color-success: #2D7A4F;
  --color-success-bg: #E8F1EC;
  --color-warning: #B4761F;
  --color-warning-bg: #FBF1E2;
  --color-error: #B43A3A;
  --color-error-bg: #F7E5E5;
  --color-info: #2A6FB4;
  --color-info-bg: #E5EEF7;

  /* ----- TYPOGRAPHY ----- */
  --font-primary: "Heebo", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-display: 64px;
  --fs-h1: 40px;
  --fs-h2: 32px;
  --fs-h3: 24px;
  --fs-h4: 20px;
  --fs-body: 16px;
  --fs-body-sm: 14px;
  --fs-caption: 13px;
  --fs-button: 16px;
  --fs-mono: 14px;

  --lh-tight: 1.1;
  --lh-snug: 1.2;
  --lh-normal: 1.5;
  --lh-relaxed: 1.6;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* ----- SPACING ----- (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* ----- RADIUS ----- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  /* ----- SHADOW ----- */
  --shadow-sm: 0 1px 2px rgba(34, 28, 24, 0.06);
  --shadow-md: 0 4px 12px rgba(34, 28, 24, 0.08);
  --shadow-lg: 0 12px 32px rgba(34, 28, 24, 0.12);

  /* ----- LAYOUT ----- */
  --container-max: 1440px;
  --rail-right: 240px;
  --rail-left: 280px;
  --drawer-w: 400px;
  --shell-h: 64px;

  /* ----- MOTION ----- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;

  /* ----- TOUCH ----- */
  --touch-min: 48px;
  --touch-mobile: 60px;
}

/* Mobile breakpoint touch upgrade — Kobi-readable */
@media (max-width: 768px) {
  :root {
    --touch-min: 60px;
  }
}
