:root {
  /* ── Blestide Brand Colors ── */
  --brand-maroon: #C45C1E;
  --brand-maroon-light: #FF9330;
  --brand-wine-1: #E8761C;
  --brand-wine-2: #A84510;
  --brand-wine-3: #C45C1E;
  --brand-maroon-dark: #191715;

  --brand-gold: #FF9330;
  --brand-gold-dark: #C45C1E;
  --brand-gold-light: #FFA94F;
  --brand-gold-pale: #FFE3CC;

  --brand-paper: #FFF9F3;
  --brand-paper-2: #FFF1E4;
  --brand-cream: #FFF6EE;
  --brand-card: #FFFFFF;
  --brand-ink: #191715;
  --brand-grey: #7C736A;
  --brand-grey-2: #635C56;
  --brand-line: rgba(196, 92, 30, 0.13);
  --brand-line-2: rgba(20, 16, 15, 0.1);

  --gold-grad: linear-gradient(135deg, var(--brand-gold-light), var(--brand-gold) 45%, var(--brand-gold-dark));
  --maroon-grad: linear-gradient(160deg, var(--brand-wine-1) 0%, var(--brand-wine-2) 48%, var(--brand-wine-3) 100%);

  /* Legacy token names resolve to the current orange palette. */
  --color-primary: #C45C1E;
  --color-primary-hover: #FF9330;
  --color-primary-active: #A84510;
  --color-primary-light: rgba(196, 92, 30, 0.10);
  --color-primary-lighter: rgba(196, 92, 30, 0.04);
  --color-primary-ring: rgba(196, 92, 30, 0.3);

  /* ── Color: Accent (Blestide Orange) ── */
  --color-accent: #FF9330;
  --color-accent-hover: #C45C1E;
  --color-accent-light: rgba(255, 147, 48, 0.12);

  /* ── Color: Neutral ── */
  --color-white: #ffffff;
  --color-gray-50: #FFF9F3;
  --color-gray-100: #FFF1E4;
  --color-gray-200: #FFE3CC;
  --color-gray-300: #FFD0A8;
  --color-gray-400: #9C948A;
  --color-gray-500: #7C736A;
  --color-gray-600: #5E564E;
  --color-gray-700: #443A31;
  --color-gray-800: #2E241B;
  --color-gray-900: #241B14;
  --color-gray-950: #161009;

  /* ── Color: Semantic ── */
  --color-success: #10b981;
  --color-success-light: #d1fae5;
  --color-success-dark: #065f46;
  --color-warning: #FF9330;
  --color-warning-light: #FFE3CC;
  --color-warning-dark: #A84400;
  --color-danger: #dc2626;
  --color-danger-light: #fee2e2;
  --color-danger-dark: #991b1b;
  --color-info: #3b82f6;
  --color-info-light: #dbeafe;
  --color-info-dark: #1e40af;

  /* ── Color: Order Status ── */
  --color-status-pending: #FF9330;
  --color-status-confirmed: #3b82f6;
  --color-status-preparing: #8b5cf6;
  --color-status-ready: #10b981;
  --color-status-completed: #10b981;
  --color-status-cancelled: #dc2626;

  /* ── Color: Role Badges ── */
  --color-role-owner: #C45C1E;
  --color-role-owner-bg: rgba(196, 92, 30, 0.1);
  --color-role-manager: #3b82f6;
  --color-role-manager-bg: #dbeafe;
  --color-role-chef: #FF9330;
  --color-role-chef-bg: rgba(255, 147, 48, 0.15);
  --color-role-waiter: #10b981;
  --color-role-waiter-bg: #d1fae5;
  --color-role-viewer: #7C736A;
  --color-role-viewer-bg: #FFF1E4;

  /* ── Color: Surface ── */
  --surface-bg: #FFF9F3;
  --surface-card: #FFFFFF;
  --surface-elevated: #FFFFFF;
  --surface-hover: #FFF1E4;
  --surface-active: #FFE3CC;
  --surface-border: rgba(196, 92, 30, 0.13);
  --surface-border-strong: rgba(196, 92, 30, 0.22);

  /* ── Color: Text ── */
  --text-primary: #241B14;
  --text-secondary: #5E564E;
  --text-tertiary: #9C948A;
  --text-inverse: #ffffff;
  --text-link: #C45C1E;
  --text-link-hover: #FF9330;

  /* ── Typography ── */
  --font-sans: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', sans-serif;
  --font-serif: 'Poppins', Georgia, serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'Segoe UI Mono', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  --leading-tight: 1.25;
  --leading-normal: 1.65;
  --leading-relaxed: 1.75;

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 700;

  /* ── Spacing ── */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* ── Border Radius ── */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-xs: 0 1px 2px rgba(36, 27, 20, 0.04);
  --shadow-sm: 0 1px 3px rgba(36, 27, 20, 0.07), 0 1px 2px rgba(36, 27, 20, 0.04);
  --shadow-md: 0 4px 8px -2px rgba(36, 27, 20, 0.1), 0 2px 4px -2px rgba(36, 27, 20, 0.06);
  --shadow-lg: 0 12px 24px -6px rgba(36, 27, 20, 0.12), 0 4px 8px -4px rgba(36, 27, 20, 0.07);
  --shadow-xl: 0 24px 48px -12px rgba(36, 27, 20, 0.16), 0 8px 16px -8px rgba(36, 27, 20, 0.08);
  --shadow-gold: 0 4px 16px rgba(255, 147, 48, 0.3);
  --shadow-maroon: 0 4px 16px rgba(196, 92, 30, 0.25);

  /* ── Motion ── */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Z-Index ── */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;

  /* ── Layout ── */
  --topbar-height: 60px;
  --max-width: 1200px;
  --sidebar-width: 240px;
}

/* ── Dashboard kit ── */
:root {
  --dash-canvas: #FFF9F3;
  --dash-surface: #FFFFFF;
  --dash-surface-2: #FBF8F2;
  --dash-line: rgba(196, 92, 30, 0.10);
  --dash-line-strong: #C45C1E;
  --dash-ink: #241B14;
  --dash-ink-2: #443A31;
  --dash-muted: #6A6159;
  --dash-rail: #241B14;
  --dash-rail-ink: #F6EEE4;
  --dash-rail-muted: #C9B5A6;
  --dash-gold: #FF9330;
  --dash-gold-soft: #FFE3CC;
  --dash-ok: #0F7B5F;
  --dash-warn: #9A6B14;
  --dash-bad: #B3261E;
  --dash-info: #2C5F9E;
  --dash-radius: 16px;
  --dash-radius-sm: 10px;
  --dash-shadow: 0 18px 40px -22px rgba(36, 27, 20, 0.35);
  --dash-ring: 0 0 0 2px rgba(255, 147, 48, 0.55);
  --dash-gutter: clamp(16px, 2.2vw, 32px);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-normal: 0ms;
    --duration-slow: 0ms;
  }
}
