:root {
  /* Brand canvas */
  --bg: #f4f4f4;
  --surface: #ffffff;
  --surface-warm: #f4f4f4;

  /* Text */
  --fg: #000033;
  --fg-2: #130470;
  --muted: #5d5d72;
  --meta: #75758a;

  /* Edges */
  --border: #d8d8e2;
  --border-soft: #e9e9ef;

  /* CSG cobalt */
  --accent: #005cff;
  --accent-on: #ffffff;
  --accent-hover: #0052e6;
  --accent-active: #0048cc;

  /* Functional states, drawn from the official secondary palette */
  --success: #267365;
  --warn: #f29f05;
  --danger: #f23030;

  /* Recognised secondary palette — anchors, not the limit of colour.
     Reach past these freely in photography, dataviz, 3D and atmosphere. */
  --forest: #267365;
  --turquoise: #22babb;
  --ochre: #f29f05;
  --coral: #f23030;
  --aubergine: #6a1b4d;
  --magenta: #c40084;

  /* Typography */
  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: Inter, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.5rem;
  --text-3xl: 3.5rem;
  --text-4xl: 5rem;

  --leading-body: 1.55;
  --leading-tight: 0.96;
  --tracking-display: 0.015em;

  /* An eight-point rhythm with useful half steps */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;

  --section-y-desktop: 96px;
  --section-y-tablet: 72px;
  --section-y-phone: 48px;

  /* CSG should feel engineered, not bubbly */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;

  --elev-flat: none;
  --elev-ring: 0 0 0 1px var(--border);
  --elev-raised: 0 8px 28px rgba(0, 0, 51, 0.09);

  --focus-ring: 0 0 0 3px rgba(0, 92, 255, 0.3);

  --motion-fast: 150ms;
  --motion-base: 200ms;
  --ease-standard: cubic-bezier(0.23, 1, 0.32, 1);

  --container-max: 1280px;
  --container-gutter-desktop: 64px;
  --container-gutter-tablet: 40px;
  --container-gutter-phone: 24px;
}

[data-theme="dark"] {
  --bg: #000033;
  --surface: #130470;
  --surface-warm: #0b0752;
  --fg: #ffffff;
  --fg-2: #f4f4f4;
  --muted: #c7c7d6;
  --meta: #aaaac0;
  --border: rgba(255, 255, 255, 0.22);
  --border-soft: rgba(255, 255, 255, 0.12);
  --accent: #005cff;
  --accent-on: #ffffff;
  --accent-hover: #176bff;
  --accent-active: #337cff;
  --elev-raised: 0 14px 40px rgba(0, 0, 0, 0.26);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-fast: 0ms;
    --motion-base: 0ms;
  }
}
