/*
 * The hapimatic talk theme (#5899): the values the shared talk engine (engine v2) reads, as --t-*
 * tokens. Every value is the one the engine hard-coded before #5899, so a deck on engine v2 with this
 * theme renders exactly as it did on engine v1.
 *
 * The brand colours alias the site tokens in /site-assets/hapimatic-dark.css (the brand law, copied
 * verbatim from the hapimatic-brand-guide skill; never edited here), which the deck page loads before
 * this file (on a "site" page the site layer, /site-assets/site.css, sits between the two). Values the site file has no token for are written out.
 *
 * Every url() here is absolute or a data: URI: a relative url() in a custom property resolves against
 * the stylesheet that uses the var(), not this one (engine CHANGELOG v1.9).
 */
:root {
  /* type */
  --t-font: var(--hb-font);
  --t-font-display: var(--hb-font);
  --t-mono: var(--hb-mono);

  /* surfaces, darkest first */
  --t-black: #000;
  --t-bg: var(--hb-bg);
  --t-surface: var(--hb-surface);
  --t-raised: var(--hb-raised);
  --t-line-solid: #48484a;

  /* text */
  --t-text: var(--hb-text);
  --t-text-secondary: var(--hb-text-secondary);
  --t-muted: var(--hb-muted);
  --t-muted-strong: #636366;

  /* lines */
  --t-line: var(--hb-line);
  --t-line-strong: var(--hb-line-strong);
  --t-r-pill: var(--hb-r-pill);

  /* the accent (mint) and its shades */
  --t-accent: var(--hb-mint);
  --t-accent-dim: var(--hb-mint-dim);
  --t-accent-deep: var(--hb-mint-deep);
  --t-accent-muted: #3e8b6c;
  --t-accent-tint: #eafff6;

  /* line work (violet), status colours, chart series */
  --t-line-art: var(--hb-violet);
  --t-warn: var(--hb-amber);
  --t-warn-bright: #ffb340;
  --t-danger: var(--hb-red);
  --t-info: var(--hb-blue);
  --t-teal: var(--hb-teal);

  /* channel tokens for colours drawn with an alpha: rgba(var(--t-x-rgb), a). Comma-separated, for the
     legacy rgba() form: a gradient stop in the CSS Color 4 slash form interpolates in Oklab, which
     renders engine v1's lattice differently. */
  --t-accent-rgb: 90, 230, 171;
  --t-line-art-rgb: 167, 139, 250;
  --t-second-rgb: 30, 10, 62;
  --t-warn-rgb: 245, 158, 11;
  --t-warn-alt-rgb: 255, 159, 10;
  --t-danger-rgb: 248, 113, 113;
  --t-danger-deep-rgb: 127, 29, 29;
  --t-danger-surface-rgb: 44, 20, 20;
  --t-ink-rgb: 255, 255, 255;
  --t-bg-rgb: 28, 28, 30;
  --t-surface-rgb: 44, 44, 46;
  --t-shade-rgb: 22, 22, 24;
  --t-shade-deep-rgb: 10, 10, 12;
  --t-shadow-rgb: 0, 0, 0;

  /* the account panel and the gateway's own pages (pairing, sign-out, the built-in presenter) */
  --t-panel-text: #e5e5e7;
  --t-panel-muted: #9a9aa0;
  --t-page-bg: #1c1c1e;
  --t-page-text: #e5e5e7;
  --t-page-muted: #9a9aa0;
  --t-page-accent: #4ade80;
  --t-page-on-accent: #0f1f1a;
  --t-page-link: #5ae6ab;
  --t-page-line: #3a3a3c;
  --t-page-surface: #2c2c2e;
  --t-page-font: Inter, -apple-system, system-ui, sans-serif;
  --t-danger-tint: #fecaca;

  /* the HUD logo: width = height x this ratio (the header wordmark's viewBox 10028 x 2410) */
  --t-logo-aspect: 4.161;
  /* L88: a wordmark set inline in a line of text stands at that text's capital height */
  --t-wordmark-inline-height: 1cap;

  /* the HUD icons, drawn in the theme's colours (a data: URI cannot read a var()) */
  --t-icon-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230c3327' d='M2.5 5v14l9.5-7zM12 5v14l9.5-7z'/%3E%3C/svg%3E");
  --t-icon-account: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8.2' r='4.2' fill='%23c7c7cc'/%3E%3Cpath fill='%23c7c7cc' d='M3.8 21c.6-4.6 4-7.4 8.2-7.4s7.6 2.8 8.2 7.4z'/%3E%3C/svg%3E");
}
