/* Phixly's mark (static/js/site/brand.js): its colours for light and dark,
   and the wordmark with the mark as the dot on the i. The same colours make
   favicon.svg and phixly.ico — ops/brand/icons.py; change them together.
   Linked on every page, after Prism's tokens. */

:root {
  --phixly-green: #16c79a;
  --phixly-teal: #23a2be;
  --phixly-blue: #2f7de1;
  --phixly-indigo: #5d6dec;
  --phixly-violet: #8a5cf6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --phixly-green: #3be8bb;
    --phixly-teal: #4bc5d6;
    --phixly-blue: #5aa2f0;
    --phixly-indigo: #8297f8;
    --phixly-violet: #a98bff;
  }
}
:root[data-theme="dark"] {
  --phixly-green: #3be8bb;
  --phixly-teal: #4bc5d6;
  --phixly-blue: #5aa2f0;
  --phixly-indigo: #8297f8;
  --phixly-violet: #a98bff;
}

.ph-mark { flex: none; display: inline-block; vertical-align: middle; }
.ph-mark .green { fill: var(--phixly-green); }
.ph-mark .teal { fill: var(--phixly-teal); }
.ph-mark .blue { fill: var(--phixly-blue); }
.ph-mark .indigo { fill: var(--phixly-indigo); }
.ph-mark .violet { fill: var(--phixly-violet); }

/* The wordmark. The mark sits over a dotless i, centred on its stem; at a
   header's small size it is drawn a little larger than the big wordmark's
   0.4em so its dots still read. --ph-dot sets it; the header wordmarks
   are 20px for the same reason. */
.ph-word { white-space: nowrap; }
.ph-i { position: relative; display: inline-block; line-height: 1; }
.ph-i .ph-mark {
  position: absolute;
  left: 50%;
  bottom: 0.72em;
  width: var(--ph-dot, 0.44em);
  height: var(--ph-dot, 0.44em);
  transform: translateX(-50%);
}

/* The AI's own look, from the mark's colours (the assistant window: its
   replies and its frame). Washes, never fills: a share of each brand colour
   over the panel, more of it in dark where the same tint would vanish. The
   text on them stays the panel's own ink. Defined once, here. */
:root {
  --phixly-wash: 9%;
  --phixly-line: 26%;
  --phixly-ai-bg: linear-gradient(135deg,
    color-mix(in srgb, var(--phixly-teal) var(--phixly-wash), var(--prism-surface-1)),
    color-mix(in srgb, var(--phixly-indigo) var(--phixly-wash), var(--prism-surface-1)));
  --phixly-ai-line: color-mix(in srgb, var(--phixly-indigo) var(--phixly-line), var(--prism-border));
  --phixly-ai-rule: linear-gradient(90deg, var(--phixly-green), var(--phixly-teal), var(--phixly-blue),
    var(--phixly-indigo), var(--phixly-violet));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --phixly-wash: 15%; --phixly-line: 42%; }
}
:root[data-theme="dark"] { --phixly-wash: 15%; --phixly-line: 42%; }

/* the version beside the name, top of every page and the drawer (site/version.js): small, muted */
.brandver { margin-left: 6px; font-size: 11px; color: var(--prism-ink-muted); align-self: center; white-space: nowrap; }
