/*
 * Design primitives + brand bridge vendored from the repo design system
 * (design_system/base/tokens/*). Inlined rather than @import-ed across the repo:
 * this directory is the entire nginx web root, so a cross-repo @import
 * (../../design_system/...) escapes the served root and 404s in production,
 * leaving every custom property undefined (the site renders unstyled).
 * Re-sync this subset if the source primitives change.
 *
 * Last synced: 2026-06-23. Rebranded onto the Lead Caravan family palette so
 * oneandonlybenji.com reads as the same product family as leadcaravan.com:
 * black + red dark, white + blue light. The former fuchsia/cyan/amber/bronze
 * accents are intentionally collapsed to leadcarvan's red/blue family. Only
 * the --oabj-*-dark/-light role VALUES change here; the active set,
 * --project-* mappings, and the tokens.css theme reassignment blocks bind by
 * name.
 *
 * Token model (three layers, kept separate — never hardcode a hex in styles.css):
 *   1. Primitives        raw scale values (--color-*, --space-*, --radius-*, type)
 *   2. Brand bridge      --oabj-light-* / --oabj-dark-* role palettes, plus the
 *                        ACTIVE --oabj-* set that the theme blocks in tokens.css
 *                        reassign. Everything below late-binds to the active set
 *                        via var(), so flipping a theme only rewrites the bridge.
 *   3. Project mappings  --project-* semantic roles consumed by tokens.css.
 */
:root {
  /* --- Primitives: color --- */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-900: #0f172a;
  --color-slate-950: #020617;
  --color-gray-950: #030712;
  --color-blue-950: #172554;
  --color-cyan-400: #22d3ee;
  --color-cyan-700: #0e7490;
  --color-amber-400: #fbbf24;
  --color-amber-700: #b45309;
  --color-fuchsia-500: #d946ef;
  --color-fuchsia-600: #c026d3;
  --color-fuchsia-700: #a21caf;
  --color-fuchsia-950: #4a044e;
  --color-red-400: #f87171;
  --color-red-500: #dc2626;
  --color-green-400: #4ade80;
  --color-green-600: #16a34a;
  /* Lead Caravan brand palette (shared family identity): black/red dark,
     white/blue light. Synced from the leadcarvan site auth bridge. */
  --color-blue-50: #eff6ff;
  --color-blue-600: #2563eb;
  --color-blue-700: #1d4ed8;
  --color-red-brand: #e50914; /* Netflix-style action red (dark) */
  --color-red-bright: #ff3b44; /* hover / strong red */
  --color-red-deep: #b20710; /* pressed red */
  /* Historical bronze primitives remain only for old image/social assets; active
     site roles below use the Lead Caravan red/blue family. */
  --color-bronze: #c69a5b;
  --color-bronze-bright: #e3be7e;
  --color-bronze-deep: #8a6a36;
  --color-bronze-umber: #6e5328;
  --color-ink-on-metal: #1c1409;

  /* --- Primitives: spacing --- */
  --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;

  /* --- Primitives: radius / size --- */
  --corner-radius-md: 0.375rem;
  --corner-radius-lg: 0.5rem;
  --corner-radius-pill: 9999px;
  --size-control-md: 2.25rem;

  /* --- Primitives: typography --- */
  --typography-font-family-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --typography-font-weight-bold: 700;
  --typography-line-height-extra-relaxed: 1.75;
  --typography-line-height-display: 1.05;
  --typography-line-height-heading: 1.25;
  --typography-font-size-rem-082: 0.82rem;
  --typography-font-size-rem-250: 2.5rem;
  --typography-font-size-xl: 1.25rem;
  --typography-font-size-3xl: 1.75rem;
  --typography-font-size-display-sm: 3rem;
  --typography-font-size-display-md: 4rem;

  /* --- Brand bridge: dark role palette (Lead Caravan family: black + red). --- */
  --oabj-dark-background: #09090b;
  --oabj-dark-page-start: var(--color-black);
  --oabj-dark-surface-elevated: #141417;
  --oabj-dark-surface-card: #1d1f25;
  --oabj-dark-surface-card-strong: #141417;
  --oabj-dark-border: rgb(255 255 255 / 0.1);
  --oabj-dark-shadow: rgb(0 0 0 / 0.34);
  --oabj-dark-foreground: oklch(0.985 0 0);
  --oabj-dark-muted: #9aa3b2;
  --oabj-dark-action: var(--color-red-brand);
  --oabj-dark-action-strong: var(--color-red-bright);
  --oabj-dark-action-text: var(--color-white);
  --oabj-dark-accent-info: var(--color-red-bright);
  --oabj-dark-accent-warning: var(--color-red-bright);
  --oabj-dark-danger: var(--color-red-400);
  --oabj-dark-success: var(--color-green-400);

  /* --- Brand bridge: light role palette (Lead Caravan family: white + blue). --- */
  --oabj-light-background: var(--color-white);
  --oabj-light-page-start: var(--color-white);
  --oabj-light-surface-elevated: color-mix(in srgb, var(--color-blue-50) 88%, var(--color-white));
  --oabj-light-surface-card: color-mix(in srgb, var(--color-blue-50) 76%, var(--color-white));
  --oabj-light-surface-card-strong: var(--color-white);
  --oabj-light-border: rgb(76 86 120 / 0.16);
  --oabj-light-shadow: rgb(37 99 235 / 0.14);
  --oabj-light-foreground: #161827;
  --oabj-light-muted: #697089;
  --oabj-light-action: var(--color-blue-600);
  --oabj-light-action-strong: var(--color-blue-700);
  --oabj-light-action-text: var(--color-white);
  --oabj-light-accent-info: var(--color-blue-700);
  --oabj-light-accent-warning: var(--color-blue-700);
  --oabj-light-danger: var(--color-red-brand);
  --oabj-light-success: var(--color-green-600);

  /* --- Active brand role set (default: dark). tokens.css theme blocks reassign
         ONLY these vars; every --project-*/--oabj-site-* below late-binds to
         them via var(), so a theme flip rewrites just this bridge. --- */
  --oabj-background: var(--oabj-dark-background);
  --oabj-page-start: var(--oabj-dark-page-start);
  --oabj-surface-elevated: var(--oabj-dark-surface-elevated);
  --oabj-surface-card: var(--oabj-dark-surface-card);
  --oabj-surface-card-strong: var(--oabj-dark-surface-card-strong);
  --oabj-border: var(--oabj-dark-border);
  --oabj-shadow: var(--oabj-dark-shadow);
  --oabj-foreground: var(--oabj-dark-foreground);
  --oabj-muted: var(--oabj-dark-muted);
  --oabj-action: var(--oabj-dark-action);
  --oabj-action-strong: var(--oabj-dark-action-strong);
  --oabj-action-text: var(--oabj-dark-action-text);
  --oabj-accent-info: var(--oabj-dark-accent-info);
  --oabj-accent-warning: var(--oabj-dark-accent-warning);
  --oabj-danger: var(--oabj-dark-danger);
  --oabj-success: var(--oabj-dark-success);

  /* --- Project mappings (semantic roles consumed by tokens.css) --- */
  --project-font-sans: var(--typography-font-family-sans);
  --project-text: var(--oabj-foreground);
  --project-text-muted: var(--oabj-muted);
  --project-surface-base: var(--oabj-background);
  --project-surface-page-start: var(--oabj-page-start);
  --project-surface-elevated: var(--oabj-surface-elevated);
  --project-surface-card: var(--oabj-surface-card);
  --project-surface-card-strong: var(--oabj-surface-card-strong);
  --project-border: var(--oabj-border);
  --project-shadow-color: var(--oabj-shadow);
  --project-shadow-card: 0 var(--space-5) var(--space-12) var(--project-shadow-color);

  --project-action: var(--oabj-action);
  --project-action-strong: var(--oabj-action-strong);
  --project-action-text: var(--oabj-action-text);
  --project-accent-info: var(--oabj-accent-info);
  --project-accent-warning: var(--oabj-accent-warning);
  --project-danger: var(--oabj-danger);
  --project-success: var(--oabj-success);

  --project-glow-action: color-mix(in srgb, var(--oabj-action) 16%, transparent);
  --project-glow-info: color-mix(in srgb, var(--oabj-accent-info) 16%, transparent);
  --project-soft-action: color-mix(in srgb, var(--oabj-action) 12%, transparent);
  --project-soft-info: color-mix(in srgb, var(--oabj-accent-info) 8%, transparent);
  --project-soft-info-hover: color-mix(in srgb, var(--oabj-accent-info) 16%, transparent);

  --project-radius-card: var(--corner-radius-lg);
  --project-radius-pill: var(--corner-radius-pill);
  --project-radius-bar: var(--corner-radius-md);
  --project-layout-max: 75rem;
  --project-panel-min: 20rem;
  --project-layout-gutter: var(--space-8);
  --project-layout-gutter-mobile: var(--space-6);
  --project-section-gap: var(--space-5);
  --project-hero-gap: 1.75rem;
  --project-hero-padding: 3.5rem;
  --project-section-padding: var(--space-10);
  --project-card-padding: 1.375rem;
  --project-button-height: var(--size-control-md);
  --project-button-padding-x: 1.125rem;
  --project-pill-padding-x: 0.625rem;
  --project-mobile-padding: var(--space-6);

  --project-type-eyebrow: var(--typography-font-size-rem-082);
  --project-type-hero-title: var(--typography-font-size-display-md);
  --project-type-hero-title-mobile: var(--typography-font-size-rem-250);
  --project-type-section-title: var(--typography-font-size-rem-250);
  --project-type-section-title-mobile: var(--typography-font-size-3xl);
  --project-type-card-title: var(--typography-font-size-xl);
  --project-type-metric: var(--typography-font-size-display-sm);
  --project-type-body-line: var(--typography-line-height-extra-relaxed);
  --project-weight-strong: var(--typography-font-weight-bold);
}
