/*
 * Deep Water design tokens. Light only — there is no dark mode.
 *
 * Adapted from UnlikeOtherAI's "Apple-like portal" design system: one blue on
 * a grey-on-white ramp, pill-shaped controls, flat 16px cards with a 1px
 * border, shadows only on things that float. See docs/ui/admin-design-spec.md.
 *
 * The single source of every value, shared by the admin console (imported by
 * admin/src/index.css, named by admin/tailwind.config.js) and the public
 * research archive (copied to /design-tokens.css by web/scripts/build.mjs).
 * Components read them as var(--…).
 */
:root {
  /* Neutral ramp */
  --ink: #1d1d1f;            /* body text, inverse surfaces */
  --muted: #6e6e73;          /* secondary text, decorative icons */
  --faint: #a1a1a6;          /* captions, placeholders, footers */
  --line-strong: #d2d2d7;    /* control borders */
  --line: #e5e5ea;           /* card borders */
  --line-soft: #f0f0f2;      /* dividers inside cards, table rows */
  --inset: #f0f0f2;          /* fills: active nav pill, segmented track, ghost hover */
  --inset-hover: #e8e8ed;
  --canvas: #f5f5f7;         /* page background */
  --surface: #ffffff;        /* cards, sidebar, dialogs, menus */
  --surface-subtle: #f9f9fb;
  --row-hover: #fafafa;

  /* The one accent: primary button, links, focus, unread badges, selection */
  --accent: #0071e3;
  --accent-hover: #0077ed;

  /* Status pairs: a deep foreground on a pale tint */
  --success: #1f6b36;
  --success-soft: #e6f4ea;
  --warning: #8a4b00;
  --warning-soft: #fff4e0;
  --warning-line: #f3dfae;
  --info: #0b57d0;
  --info-soft: #e8f0fe;
  --danger: #a3000f;
  --danger-soft: #fdeced;
  --danger-line: #e5b4b9;
  --neutral: #6e6e73;
  --neutral-soft: #f0f0f2;

  /* Gauge scale: a 0–1 score runs red → amber → green, mixed in OKLCH between
     these stops. Every step holds 3:1 against white. A reading, not a status. */
  --gauge-low: #d73431;
  --gauge-mid: #be8700;
  --gauge-high: #229944;

  --scrim: rgba(0, 0, 0, .25);
  --chrome-glass: rgba(255, 255, 255, .85);
  --blur-chrome: saturate(180%) blur(20px);

  /* Shadows — cards are flat at rest; only floating things carry one */
  --shadow-thumb: 0 1px 3px rgba(0, 0, 0, .12);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, .08);
  --shadow-composer: 0 8px 28px rgba(0, 0, 0, .07);
  --shadow-menu: 0 12px 32px rgba(0, 0, 0, .12);
  --shadow-toast: 0 6px 20px rgba(0, 0, 0, .18);
  --shadow-dialog: 0 24px 64px rgba(0, 0, 0, .2);
  --shadow-focus: 0 0 0 3px rgba(0, 113, 227, .25);

  /* Terminal: the agent-prompt block, in macOS Terminal's "Homebrew" profile.
     The one dark surface in the system, used for nothing else. */
  --terminal-bg: #0b0d0b;
  --terminal-line: #1f2a1f;
  --terminal-fg: #28fe14;       /* the profile's text colour */
  --terminal-note: #00a600;     /* ANSI green */
  --terminal-command: #00e5e5;  /* bright cyan */
  --terminal-secret: #e5e500;   /* bright yellow */
  --terminal-selection: #083905;

  /* Motion */
  --ease-spring: cubic-bezier(.32, .72, 0, 1);
  --ease-soft: cubic-bezier(.2, .8, .2, 1);

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
