/* Tokens of hyperpowered.ai: colours, type families, sizes and times, light and dark. Every page loads them before
   its own stylesheet; the page "Leading Agents" (inhalte/bau.mjs) loads them for its chat. js/start.js sets
   <html data-theme> (light or dark) before the first paint. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  /* The three colours of the stage, as approved in the demo. In the dark theme --grund and --tinte swap. */
  --grund: #f3f2ee;
  --tinte: #121212;
  --gelb: #ffd83a;
  /* The same two colours where they must not swap: the voice stage is dark in both themes, and what
     stands on yellow stays dark. */
  --fest-grund: #f3f2ee;
  --fest-tinte: #121212;
  /* The stroke behind a word: yellow under dark type, a dark amber under light type. */
  --marker: var(--gelb);

  --c-accent: var(--tinte);
  --c-on-accent: var(--grund);
  --c-accent-soft: #e6e4dc;
  --c-signal: var(--tinte);
  --c-signal-hover: #33322f;
  --c-on-signal: var(--grund);
  /* Wave row in bar and note while the voice speaks: the yellow, darkened until it shows on a light ground. */
  --c-wave-speaking: #a87f00;

  --c-page: var(--grund);
  --c-page-alt: #e9e7df;
  --c-surface: #fbfaf7;
  --c-text: var(--tinte);
  --c-text-body: #2b2b29;
  --c-text-muted: #5f5e58;
  --c-line: #dddbd2;
  --c-line-strong: #9a988f;
  --c-focus: var(--tinte);
  --c-danger: #a3182f;
  --c-danger-soft: #fdecef;
  --shadow-lg: 0 18px 48px rgba(18, 18, 18, 0.12), 0 4px 12px rgba(18, 18, 18, 0.06);

  /* The voice stage is dark in both themes. */
  --stage: var(--fest-tinte);
  --stage-text: var(--fest-grund);
  --stage-line: rgba(243, 242, 238, 0.16);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --dur-fast: 140ms;
  --dur-normal: 240ms;
  --dur-slow: 420ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --press-scale: 0.97;
  --tap: 44px;
  --gutter: 16px;

  /* The file look of content and chat: paper sheets on a table, a hairline, three type families. */
  --papier: #fbfaf7;
  --tisch: #e9e7e0;
  --haar: rgba(18, 18, 18, 0.16);
  --marke: Unbounded, system-ui, sans-serif;
  --antiqua: Newsreader, "Source Serif 4", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
/* Dark theme: the ground is the ink, the type is the light ground, the sheets are a little lighter than the
   ground. Yellow stays the colour of signals; behind light type it becomes a dark amber so the type holds. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --grund: #121212;
  --tinte: #f3f2ee;
  --marker: #7d6100;
  --papier: #1e1e1c;
  --tisch: #0b0b0b;
  --haar: rgba(243, 242, 238, 0.2);

  --c-accent-soft: rgba(243, 242, 238, 0.1);
  --c-signal-hover: #dcdad2;
  --c-wave-speaking: var(--gelb);
  --c-page-alt: #0b0b0b;
  --c-surface: #1e1e1c;
  --c-text-body: #e4e2da;
  --c-text-muted: #a5a39b;
  --c-line: rgba(243, 242, 238, 0.14);
  --c-line-strong: rgba(243, 242, 238, 0.4);
  --c-danger: #ffb3c0;
  --c-danger-soft: rgba(240, 62, 105, 0.16);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.5);
}
@media (min-width: 720px) {
  :root { --gutter: 32px; }
}
