/* ============================================================
   BDO Unified Design System — Design Tokens
   Derived from BDO Brand Guidelines 2023
   ============================================================ */

:root {
  /* ----- Brand colors ----- */
  --bdo-red: #E81A3B;
  --bdo-red-hover: #D11833;        /* 5% darken for hover */
  --bdo-red-active: #B8152D;       /* 8% darken for active */
  --bdo-logo-blue: #22409A;        /* RESERVED — logo only */

  /* ----- Text ----- */
  --bdo-text-primary: #333333;
  --bdo-text-secondary: #5B6E7F;
  --bdo-text-tertiary: #666666;
  --bdo-text-inverse: #FFFFFF;

  /* ----- Backgrounds ----- */
  --bdo-bg-primary: #FFFFFF;
  --bdo-bg-secondary: #F2F2F2;
  --bdo-bg-tertiary: #E7E7E7;
  --bdo-bg-dark: #333333;
  --bdo-bg-dark-elevated: #404040;

  /* ----- Borders ----- */
  --bdo-border-subtle: #E7E7E7;
  --bdo-border-default: #D0D0D0;
  --bdo-border-strong: #5B6E7F;

  /* ----- Semantic ----- */
  --bdo-accent-info: #0062B8;
  --bdo-accent-info-bg: #E6EFF8;
  --bdo-accent-success: #0062B8;
  --bdo-accent-success-bg: #E6EFF8;
  --bdo-accent-warning: #B88600;
  --bdo-accent-warning-bg: #FDF4D9;
  --bdo-accent-danger: #E81A3B;
  --bdo-accent-danger-bg: #FCE8EB;

  /* ----- Typography ----- */
  --font-sans: "Proxima Nova", "Inter", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, sans-serif;

  --text-display: 32px;
  --text-h1: 24px;
  --text-h2: 20px;
  --text-h3: 16px;
  --text-body: 14px;
  --text-small: 13px;
  --text-caption: 12px;

  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  --weight-regular: 400;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* ----- Spacing (4px grid) ----- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* ----- Radius ----- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* ----- Elevation ----- */
  --shadow-sm: 0 1px 2px rgba(51, 51, 51, 0.06);
  --shadow-md: 0 4px 12px rgba(51, 51, 51, 0.08);
  --shadow-lg: 0 12px 32px rgba(51, 51, 51, 0.12);
  --shadow-focus: 0 0 0 3px rgba(232, 26, 59, 0.2);

  /* ----- Motion ----- */
  --motion-fast: 120ms; /* @kind other */
  --motion-base: 200ms; /* @kind other */
  --motion-slow: 320ms; /* @kind other */
  --motion-ease: cubic-bezier(0.2, 0, 0, 1); /* @kind other */

  /* ----- Layout ----- */
  --header-height: 64px;
  --sidebar-width: 240px;
  --sidebar-collapsed: 64px;
  --rightpanel-width: 320px;
}

/* ============================================================
   Base reset & body
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  color: var(--bdo-text-primary);
  background: var(--bdo-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input, textarea, select {
  font-family: inherit;
}

a {
  color: var(--bdo-accent-info);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* Inter fallback */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');
