/* Design tokens, copied from https://tangramflex.com on 2026-10-12 (plans/docs/implementation.md
   D15). Copied rather than linked: the site's stylesheets have build-hashed names, and the copy
   of these docs that ships in each Tenon bundle has to work offline.

   Keep these values as the site has them. When the site's look changes, refresh this file from
   the site's own :root, :root[data-theme="dark"] and :root[data-theme="light"] blocks. Anything
   docs-specific belongs in style.css, built on these. */

:root {
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Consolas, monospace;

  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s8: 64px;
  --s10: 80px;
  --s12: 96px;
  --s16: 128px;

  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;
  --radius-xl: 6px;

  --maxw: 1400px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="dark"] {
  --bg: #08090b;
  --bg-panel: #16191d;
  --bg-panel-2: #1e2329;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.20);
  --text: #eef2f5;
  --muted: #9aa4ad;
  --faint: #6b757e;
  --accent: #8ed7ff;
  --accent-deep: #4aa2d3;
  --accent-deeper: #3880b2;
  --accent-ink: #0c1216;
  --link: #8ed7ff;
  --pass: #63d6a4;
  --pass-border: rgba(99, 214, 164, 0.45);
  --pass-glow: rgba(99, 214, 164, 0.16);
  --warn: #e2b563;
  --btn-solid-bg: #8ed7ff;
  --btn-solid-text: #0c1216;
  --btn-solid-hover: #a8e2ff;
  --header-bg: rgba(8, 9, 11, 0.74);
  --hairline-cell: rgba(255, 255, 255, 0.045);
  --shadow-card: 0 12px 32px -16px rgba(0, 0, 0, 0.4);
  --toggle-sun: none;
  --toggle-moon: block;
}

:root[data-theme="light"] {
  --bg: #faf9f7;
  --bg-panel: #ffffff;
  --bg-panel-2: #efece5;
  --border: rgba(15, 23, 32, 0.14);
  --border-strong: rgba(15, 23, 32, 0.26);
  --text: #16202a;
  --muted: #4d5964;
  --faint: #737e88;
  --accent: #2a7fb8;
  --accent-deep: #3260aa;
  --accent-deeper: #24537d;
  --accent-ink: #faf9f7;
  --link: #1f6899;
  --pass: #1e8a63;
  --pass-border: rgba(30, 138, 99, 0.45);
  --pass-glow: rgba(30, 138, 99, 0.1);
  --warn: #8f5f00;
  --btn-solid-bg: #16202a;
  --btn-solid-text: #faf9f7;
  --btn-solid-hover: #24313d;
  --header-bg: rgba(250, 249, 247, 0.78);
  --hairline-cell: rgba(15, 23, 32, 0.03);
  --shadow-card: 0 12px 32px -16px rgba(22, 32, 42, 0.2);
  --toggle-sun: block;
  --toggle-moon: none;
}

/* Terminal windows: the same in both themes, as on tangramflex.com (its --win-* properties, and
   the colours of its .term-body and .code-block rules). */
:root {
  --win-bg: #101317;
  --win-bg-2: #14181d;
  --win-bg-3: #191e24;
  --win-border: rgba(255, 255, 255, 0.09);
  --win-border-soft: rgba(255, 255, 255, 0.06);
  --win-text: #e8edf2;
  --win-code: #c9d4dd;
  --win-path: #7e8994;
  --win-muted: #8b96a1;
  --win-dim: #5d6772;
  --win-ice: #8ed7ff;
  --win-teal: #4aa2d3;
  --win-type: #b7a6f0;
  --win-pass: #63d6a4;
  --win-warn: #e2b563;
  --win-red: #e2695f;
}
