/* InventArch design tokens. GENERATED by build.mjs from tokens.mjs; do not edit by hand.
 * Rules: BRAND.md. Registers: data-register="threshold" | "instrument".
 * Appearance: light by default; system preference disabled by the native design artifact. */
@import url('fonts/_fontface.css');

:root {
  --font-editorial: "Playfair Display", Didot, "Times New Roman", serif;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --t-display: clamp(2.6rem, 6vw, 4.6rem);
  --t-reader-title: clamp(2.2rem, 5vw, 3.4rem);
  --t-lede: clamp(1.3rem, 2.8vw, 1.85rem);
  --t-body: 1rem;
  --t-body-long: 1.0625rem;
  --t-eyebrow: 0.75rem;
  --t-lh-display: 0.96;
  --t-lh-title: 1.05;
  --t-lh-lede: 1.4;
  --t-lh-body: 1.65;
  --t-tracking-eyebrow: 0.22em;
  --t-measure-long: 40rem;
  --t-measure-reader: 46rem;
  --i-text-12: 12px;
  --i-text-14: 14px;
  --i-text-16: 16px;
  --i-text-18: 18px;
  --i-text-24: 24px;
  --i-text-30: 30px;
  --i-lh-reading: 1.7;
  --i-lh-ui: 1.5;
  --i-tracking-eyebrow: 0.12em;
  --i-measure: 68ch;
  --tracking-tight: -0.02em;
  --dur-instant: 80ms;
  --dur-quick: 140ms;
  --dur-control: 150ms;
  --dur-base: 220ms;
  --dur-slow: 420ms;
  --dur-grand: 720ms;
  --ease-standard: cubic-bezier(.4, 0, .2, 1);
  --ease-decel: cubic-bezier(0, 0, .2, 1);
  --ease-accel: cubic-bezier(.4, 0, 1, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-radius-sm: 4px;
  --t-radius-md: 8px;
  --t-radius-lg: 14px;
  --t-radius-xl: 22px;
  --radius: 0.5rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-full: 999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --t-section-y: clamp(5rem, 9vw, 8rem);
  --t-container: 88rem;
  --t-gutter: clamp(1.25rem, 4vw, 2.25rem);
  --t-shadow-card: 0 1px 0 rgb(255 255 255 / .05) inset, 0 8px 28px rgb(0 0 0 / .55);
  --t-shadow-overlay: 0 1px 0 rgb(255 255 255 / .06) inset, 0 18px 60px rgb(0 0 0 / .7);
  --account-rail-width: 96px;
  --account-divider-width: 8px;
  --account-mobile-width: 800px;
  --account-reclaimed-width: 160px;
  --account-conversation-min: 320px;
  --account-desk-min: 360px;
  --account-control-height: 44px;
  --account-rule-width: 1px;
  --account-marker-width: 2px;
  --account-icon-size: 20px;
  --account-weight: 400;
  --account-heading-weight: 500;
  --account-heading-size: var(--i-text-24);
  --account-mobile-heading-size: var(--i-text-18);
  --account-body-size: var(--i-text-14);
  --account-label-size: var(--i-text-12);
  --account-composer-max: 192px;
  --account-frame-height: 100dvh;
  --resource-compact-width: 640px;
  --navigation-compact-height: 700px;
}

/* The authored appearance policy governs all first-party surfaces. */
:root {
  color-scheme: light;
  --void: #f3f5fa;
  --void-2: #e9edf5;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --line: #d6dcea;
  --line-2: #b9c2d8;
  --ink: #0b0e1a;
  --ink-2: #2a3350;
  --ink-3: #525d7a;
  --ink-4: #5f6a88;
  --reach: #c2127c;
  --bridge: #6a2fc0;
  --ground: #00788a;
  --authority: #7d5c14;
  --ok: #1d7a50;
  --warn: #8a5a00;
  --err: #c0213f;
  --on-signature: #ffffff;
  --aurora-reach: rgb(194 18 124 / .07);
  --aurora-ground: rgb(0 120 138 / .07);
  --aurora-bridge: rgb(106 47 192 / .06);
  --aurora-blend: multiply;
  --grid-line: rgb(106 47 192 / .06);
  --glow: 0 0 0 1px rgb(106 47 192 / .35);
  --wordmark-ghost: rgb(42 51 80 / .22);
  --mote-alpha-min: .10;
  --mote-alpha-max: .35;
  --background: #f6f7fa;
  --card: #ffffff;
  --popover: #ffffff;
  --accent: #eceef4;
  --border: #e1e3ea;
  --input: #858a9e;
  --foreground: #161823;
  --muted-foreground: #4f556a;
  --subtle-foreground: #626880;
  --primary: #6236c9;
  --primary-foreground: #ffffff;
  --proposed: #b3166f;
  --grounded: #00707e;
  --owner: #7d5c14;
  --success: #1d7353;
  --warning: #8a5700;
  --destructive: #b3261e;
  --shadow-float: 0 8px 24px rgb(22 24 35 / .10);
  --shadow-color: rgb(0 0 0 / .16);
  --grad-signature: linear-gradient(96deg, var(--reach), var(--bridge) 50%, var(--ground));
  --grad-conic: conic-gradient(from 220deg, var(--reach), var(--bridge), var(--ground), var(--reach));
  --aurora: radial-gradient(40% 50% at 12% -8%, var(--aurora-reach), transparent 70%), radial-gradient(40% 50% at 92% 18%, var(--aurora-ground), transparent 70%), radial-gradient(50% 50% at 55% 105%, var(--aurora-bridge), transparent 70%);
  --ring: var(--primary);
  --ring-threshold: var(--ground);
}



/* Explicit isolated previews may compare the alternate palette. */
[data-theme="dark"] {
  color-scheme: dark;
  --void: #06070c;
  --void-2: #0a0c14;
  --surface: #0e1220;
  --surface-2: #141a2c;
  --line: #1c2540;
  --line-2: #2c3658;
  --ink: #f2f5fb;
  --ink-2: #c9d2e8;
  --ink-3: #8693af;
  --ink-4: #737f9e;
  --reach: #ff3cac;
  --bridge: #b07aff;
  --ground: #00e5ff;
  --authority: #d8b36a;
  --ok: #3fd988;
  --warn: #ffc857;
  --err: #ff5470;
  --on-signature: #06070c;
  --aurora-reach: rgb(255 60 172 / .10);
  --aurora-ground: rgb(0 229 255 / .10);
  --aurora-bridge: rgb(176 122 255 / .08);
  --aurora-blend: screen;
  --grid-line: rgb(176 122 255 / .045);
  --glow: 0 0 0 1px rgb(176 122 255 / .35), 0 0 36px rgb(176 122 255 / .25);
  --wordmark-ghost: rgb(201 210 232 / .17);
  --mote-alpha-min: .18;
  --mote-alpha-max: .58;
  --background: #11131b;
  --card: #171923;
  --popover: #1c1e2a;
  --accent: #232633;
  --border: #2b2e3d;
  --input: #676c85;
  --foreground: #eef0f8;
  --muted-foreground: #a0a6bb;
  --subtle-foreground: #858da5;
  --primary: #b07aff;
  --primary-foreground: #161020;
  --proposed: #f06ac0;
  --grounded: #4fd8e8;
  --owner: #d8b36a;
  --success: #8cbeaa;
  --warning: #c4a777;
  --destructive: #ef8787;
  --shadow-float: 0 8px 28px rgb(0 0 0 / .13);
  --shadow-color: rgb(0 0 0 / .16);
  --grad-signature: linear-gradient(96deg, var(--reach), var(--bridge) 50%, var(--ground));
  --grad-conic: conic-gradient(from 220deg, var(--reach), var(--bridge), var(--ground), var(--reach));
  --aurora: radial-gradient(40% 50% at 12% -8%, var(--aurora-reach), transparent 70%), radial-gradient(40% 50% at 92% 18%, var(--aurora-ground), transparent 70%), radial-gradient(50% 50% at 55% 105%, var(--aurora-bridge), transparent 70%);
  --ring: var(--primary);
  --ring-threshold: var(--ground);
}

/* Light: explicit, on the root or any nested element. */
[data-theme="light"] {
  color-scheme: light;
  --void: #f3f5fa;
  --void-2: #e9edf5;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --line: #d6dcea;
  --line-2: #b9c2d8;
  --ink: #0b0e1a;
  --ink-2: #2a3350;
  --ink-3: #525d7a;
  --ink-4: #5f6a88;
  --reach: #c2127c;
  --bridge: #6a2fc0;
  --ground: #00788a;
  --authority: #7d5c14;
  --ok: #1d7a50;
  --warn: #8a5a00;
  --err: #c0213f;
  --on-signature: #ffffff;
  --aurora-reach: rgb(194 18 124 / .07);
  --aurora-ground: rgb(0 120 138 / .07);
  --aurora-bridge: rgb(106 47 192 / .06);
  --aurora-blend: multiply;
  --grid-line: rgb(106 47 192 / .06);
  --glow: 0 0 0 1px rgb(106 47 192 / .35);
  --wordmark-ghost: rgb(42 51 80 / .22);
  --mote-alpha-min: .10;
  --mote-alpha-max: .35;
  --background: #f6f7fa;
  --card: #ffffff;
  --popover: #ffffff;
  --accent: #eceef4;
  --border: #e1e3ea;
  --input: #858a9e;
  --foreground: #161823;
  --muted-foreground: #4f556a;
  --subtle-foreground: #626880;
  --primary: #6236c9;
  --primary-foreground: #ffffff;
  --proposed: #b3166f;
  --grounded: #00707e;
  --owner: #7d5c14;
  --success: #1d7353;
  --warning: #8a5700;
  --destructive: #b3261e;
  --shadow-float: 0 8px 24px rgb(22 24 35 / .10);
  --shadow-color: rgb(0 0 0 / .16);
  --grad-signature: linear-gradient(96deg, var(--reach), var(--bridge) 50%, var(--ground));
  --grad-conic: conic-gradient(from 220deg, var(--reach), var(--bridge), var(--ground), var(--reach));
  --aurora: radial-gradient(40% 50% at 12% -8%, var(--aurora-reach), transparent 70%), radial-gradient(40% 50% at 92% 18%, var(--aurora-ground), transparent 70%), radial-gradient(50% 50% at 55% 105%, var(--aurora-bridge), transparent 70%);
  --ring: var(--primary);
  --ring-threshold: var(--ground);
}

/* ---------- Register bases ---------- */
[data-register="threshold"] {
  background: var(--void);
  color: var(--ink-2);
  font: 400 var(--t-body)/var(--t-lh-body) var(--font-sans);
}
[data-register="threshold"] :is(h1, h2, h3) {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}
[data-register="threshold"] :focus-visible { outline: 2px solid var(--ring-threshold); outline-offset: 2px; }

[data-register="instrument"] {
  background: var(--background);
  color: var(--foreground);
  font: 400 var(--i-text-14)/var(--i-lh-ui) var(--font-sans);
}
[data-register="instrument"] :is(h1, h2, h3) {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--foreground);
  letter-spacing: var(--tracking-tight);
}
[data-register="instrument"] :focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* ---------- Shared primitives ---------- */
.ia-eyebrow {
  font: 500 var(--t-eyebrow)/1.5 var(--font-mono);
  letter-spacing: var(--t-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-3);
}
[data-register="instrument"] .ia-eyebrow {
  font-weight: 600;
  letter-spacing: var(--i-tracking-eyebrow);
  color: var(--subtle-foreground);
}
.ia-editorial { font-family: var(--font-editorial); font-style: italic; font-weight: 400; }
.ia-signature-text {
  background: var(--grad-signature);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ia-behind-glass { filter: blur(3px) saturate(.6); opacity: .4; pointer-events: none; user-select: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
