/* Noetfield design tokens v14 — light-first institutional (www default via nf-site-v14)
   Legacy dark tokens retained for non-www surfaces; www overrides in noetfield-v14-light.css
   Fonts: preconnect + stylesheet in page HEAD (rebuild-www-v6.py) — not @import. */

:root {
  /* v14 light institutional (canonical for public www) */
  --v14-bg: #f4f5f8;
  --v14-bg-alt: #ffffff;
  --v14-text: #0f1117;
  --v14-muted: #4a5060;
  --v14-muted-2: #6b7280;
  --v14-line: #e2e5ec;
  --v14-gold: #8a6b1f;
  --v14-gold-bright: #a68428;
  --v14-ok: #0d7a4a;

  /* Legacy dark shell (overridden on body.nf-site-v14) */
  --bg0: #07070b;
  --bg1: #0b0b14;
  --panel: rgba(255, 255, 255, 0.055);
  --panel2: rgba(255, 255, 255, 0.038);
  --text: #eff0f7;
  --muted: #b9bbcf;
  --muted2: #8e91ad;
  --line: rgba(255, 255, 255, 0.11);
  --gold: #c8a349;
  --gold-bright: #e4c06a;
  --gold-dim: rgba(200, 163, 73, 0.35);
  --accent: #7aa7ff;
  --accent-dim: rgba(122, 167, 255, 0.2);
  --ok: #2de38a;
  --okGlow: rgba(45, 227, 138, 0.18);
  --warn: #e4b84a;
  --deny: #f07178;

  /* Trust diligence sub-theme (procurement readers) */
  --trust-bg: #f4f2ec;
  --trust-panel: rgba(255, 255, 255, 0.92);
  --trust-text: #1a1a22;
  --trust-muted: #4a4a5c;
  --trust-line: rgba(26, 26, 34, 0.12);
  --trust-gold: #8a6b1f;

  /* Layout */
  --max: 1200px;
  --max-wide: min(1680px, calc(100vw - 32px));
  --radius: 18px;
  --radius-sm: 12px;
  --navH: 72px;
  --section-y: clamp(56px, 8vw, 88px);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.62);
  --shadow2: 0 14px 50px rgba(0, 0, 0, 0.5);
  --focus: 0 0 0 4px rgba(200, 163, 73, 0.22);

  /* Typography — Inter variable (tier-1); serif slot maps to display sans on www v14 */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Code", monospace;
  --text-xs: 0.6875rem;
  --text-sm: 0.8125rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.65rem, 4.5vw, 2.65rem);
  --text-2xl: clamp(2rem, 5vw, 3.25rem);
  --leading-tight: 1.12;
  --leading-body: 1.65;
  --tracking-caps: 0.12em;

  color-scheme: dark;
}

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

@media (prefers-reduced-motion: no-preference) {
  :root {
    --motion-fast: 0.15s;
    --motion-base: 0.2s;
  }
}
