/*
 * Colour tokens of the POS landing page (pos.hyzmat.biz, R-44), served at /landing/tokens.css before landing.css.
 * Only custom properties live here (and the layer order): the HZ2 kit sets (--hz-*, the values of the SMS kit.css,
 * light, dark by data-theme and by prefers-color-scheme, and the grounds that switch them), then the fixed palette
 * (--hzm-*) of the page constants and the mock screens, which stay light in both themes.
 * Hand-written: tokens.json and build.mjs carry the app tokens; this set belongs to the landing only.
 */

/* hzm-attr (the mock SVG colours) sits below the reset and the kit, as presentation attributes did. */
@layer hzm-attr, base, components;

:root {
  --hzm-amber: #a15c00;
  --hzm-amber-a10: #a15c001a;
  --hzm-amber-soft: #fdf3e3;
  --hzm-black: #000000;
  --hzm-black-a10: #0000001a;
  --hzm-black-a5: #0000000d;
  --hzm-blue: #2456c9;
  --hzm-blue-soft: #edf2fc;
  --hzm-cream: #f2f1ec;
  --hzm-green: #0f5c47;
  --hzm-green-a55: #0f5c478c;
  --hzm-green-deep: #0b2e26;
  --hzm-green-mid: #3f8a6f;
  --hzm-green-soft: #eef6f2;
  --hzm-ink: #0b0d0c;
  --hzm-ink-soft: #1c1f1e;
  --hzm-lime: #c2f142;
  /* Hyzmat family mark: the four ribbon colours (never recolour). */
  --hzm-brand-teal: #0c6a7d;
  --hzm-brand-cyan: #10c9ca;
  --hzm-brand-coral: #fb6345;
  --hzm-brand-amber: #faac18;
  --hzm-mint: #6fdcae;
  --hzm-mint-a15: #6fdcae26;
  --hzm-mint-a55: #6fdcae8c;
  --hzm-muted: #55635f;
  --hzm-night: #0b1513;
  --hzm-night-a12: #0b15131f;
  --hzm-night-a15: #0b151326;
  --hzm-night-a20: #0b151333;
  --hzm-night-a22: #0b151338;
  --hzm-night-a25: #0b151340;
  --hzm-night-a4: #0b15130a;
  --hzm-night-a8: #0b151314;
  --hzm-night-ink: #e9f2ef;
  --hzm-night-ink-soft: #dcebe6;
  /* Scrollbar thumbs: ink 25% / 45% on light grounds, night ink 25% / 45% on dark ones. */
  --hzm-night-a45: #0b151373;
  --hzm-night-ink-a25: #e9f2ef40;
  --hzm-night-ink-a45: #e9f2ef73;
  --hzm-night-line: #1d2b28;
  --hzm-night-muted: #93a5a0;
  --hzm-ok: #0f7a4a;
  --hzm-page-dark: #060d0c;
  --hzm-page-light: #fafaf7;
  --hzm-paper: #fffdf6;
  --hzm-red: #b8322a;
  --hzm-red-a10: #b8322a1a;
  --hzm-red-soft: #fbeceb;
  --hzm-sage: #8fb0aa;
  --hzm-teal: #0a8f73;
  --hzm-white: #ffffff;
  --hzm-white-a10: #ffffff1a;
  --hzm-white-a60: #ffffff99;
  --hzm-white-a70: #ffffffb3;
  --hzm-white-a80: #ffffffcc;
  --hzm-white-a85: #ffffffd9;
  --hzm-zinc-100: #f4f4f5;
  --hzm-zinc-200: #e4e4e7;
  --hzm-zinc-300: #d4d4d8;
  --hzm-zinc-400: #a1a1aa;
  --hzm-zinc-50: #fafafa;
  --hzm-zinc-500: #71717a;
  --hzm-zinc-600: #52525b;
  --hzm-zinc-700: #3f3f46;
  --hzm-zinc-800: #27272a;
  --hzm-zinc-900: #18181b;
  --hzm-zinc-900-a12: #18181b1f;
  --hzm-zinc-900-a40: #18181b66;
  --hzm-zinc-900-a50: #18181b80;
}

.hz,
.hz-light {
  --hz-bg: #fafaf7;
  --hz-alt: #f3f3ee;
  --hz-card: #ffffff;
  --hz-ink: #0b0d0c;
  --hz-muted: #55635f;
  --hz-line: #0b0d0c1f;
  --hz-line-strong: #0b0d0c3d;
  --hz-action: #0f5c47;
  --hz-action-hover: #0e513f;
  --hz-on-action: #ffffff;
  --hz-tonal: #0b0d0c14;
  --hz-tonal-hover: #0b0d0c24;
  --hz-stage: #e8f1ee;
  --hz-inverse: #0b1513;
  --hz-surface: #ffffff;
  --hz-sunken: #f3f3ee;
  --hz-soft: #55635f;
  --hz-faint: #66736f;
  --hz-ok: #087a63;
  --hz-line-soft: #0b151312;
}
.hz {
  --hz-on-inverse: #e9f2ef;
  --hz-code: #0b1513;
  --hz-on-code: #e9f2ef;
  --hz-code-muted: #93a5a0;
  --hz-code-line: #e9f2ef1f;
  --hz-code-kwd: #6fdcae;
  --hz-code-str: #f2c14e;
  --hz-code-num: #7cb3ff;
  --hz-code-fn: #8fd3e8;
  --hz-code-type: #67d3e8;
}
[data-theme="dark"] .hz {
  --hz-bg: #060d0c;
  --hz-alt: #0b1614;
  --hz-card: #0e1b18;
  --hz-ink: #e9f2ef;
  --hz-muted: #93a5a0;
  --hz-line: #e9f2ef24;
  --hz-line-strong: #e9f2ef47;
  --hz-action: #6fdcae;
  --hz-action-hover: #80dfb7;
  --hz-on-action: #06241b;
  --hz-tonal: #e9f2ef14;
  --hz-tonal-hover: #e9f2ef24;
  --hz-stage: #10211d;
  --hz-inverse: #030807;
  --hz-inverse-edge: #e9f2ef24;
  --hz-code-edge: #e9f2ef24;
  --hz-surface: #0e1b18;
  --hz-sunken: #0b1614;
  --hz-soft: #93a5a0;
  --hz-faint: #7d918b;
  --hz-ok: #2bc4a4;
  --hz-line-soft: #e9f2ef0f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hz {
    --hz-bg: #060d0c;
    --hz-alt: #0b1614;
    --hz-card: #0e1b18;
    --hz-ink: #e9f2ef;
    --hz-muted: #93a5a0;
    --hz-line: #e9f2ef24;
    --hz-line-strong: #e9f2ef47;
    --hz-action: #6fdcae;
    --hz-action-hover: #80dfb7;
    --hz-on-action: #06241b;
    --hz-tonal: #e9f2ef14;
    --hz-tonal-hover: #e9f2ef24;
    --hz-stage: #10211d;
    --hz-inverse: #030807;
    --hz-inverse-edge: #e9f2ef24;
    --hz-code-edge: #e9f2ef24;
    --hz-surface: #0e1b18;
    --hz-sunken: #0b1614;
    --hz-soft: #93a5a0;
    --hz-faint: #7d918b;
    --hz-ok: #2bc4a4;
    --hz-line-soft: #e9f2ef0f;
  }
}
.hz .hz-closing,
.hz [data-ground="inverse"],
.hz .hz-on-night {
  --hz-ink: #e9f2ef;
  --hz-muted: #93a5a0;
  --hz-line: #e9f2ef24;
  --hz-line-strong: #e9f2ef47;
  --hz-action: #6fdcae;
  --hz-action-hover: #80dfb7;
  --hz-on-action: #06241b;
  --hz-tonal: #e9f2ef14;
  --hz-tonal-hover: #e9f2ef24;
  --hz-card: #0e1b18;
  --hz-surface: #0e1b18;
  --hz-soft: #93a5a0;
  --hz-faint: #7d918b;
}
.hz .hz-film {
  --hz-action: #6fdcae;
}
.hz-fh__frame {
  --hz-action: #6fdcae;
}
