/* AnyAlignment Sagittarius tokens for the blog studio.
   Values mirror the "AnyAlignment Sagittarius" design system (tokens.json, v17):
   grey is the page, Stellar highlights and organises, Instrument steps up where
   colours must separate quickly (code, maths, lint severity, charts). */
/* IBM Plex Mono, served by the studio itself (/static/fonts/…): the review CSP blocks
   third-party stylesheets, so Google Fonts never loaded here. */
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 300; font-display: swap; src: url("/static/fonts/ibm-plex-mono-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;

  /* Ground and the grey ladder */
  --ground: #07080a;
  --line: #1c1f26;
  --line-focus: #4a505c;
  --line-control: #5c626f;
  --text-dim: #5c626f;
  --text: #7d8391;
  --caret: #8a91a0;
  --text-reply: #9aa0ad;
  --text-strong: #aeb5c2;
  --text-input: #c9cdd6;
  --text-bright: #d5d9e2;
  --text-max: #e4e7ee;
  --signal-danger: #d99a8e;
  --sky-line-lit: #3a414d;
  --star-rest: #59606d;
  --star-hot: #e4e9f2;
  --lantern: rgba(150, 165, 200, 0.06);
  --mark: rgba(150, 165, 200, 0.14);
  --mark-hot: rgba(150, 165, 200, 0.26);
  --scrim: rgba(7, 8, 10, 0.82);
  --glow-rest: 0 0 2px #59606d;
  --glow-hot: 0 0 14px #e4e9f2;

  /* Stellar: the default organising palette */
  --stellar-o-blue: #8caad0;
  --stellar-b-ice: #8cc6d9;
  --stellar-aurora: #a6dfcc;
  --stellar-f-gold: #d3c797;
  --stellar-k-amber: #bb9574;
  --stellar-nebula: #a087af;

  /* Instrument: the step-up palette */
  --hue-blue: #6aa7f4;
  --hue-amber: #e19348;
  --hue-teal: #95f8d9;
  --hue-violet: #8f69a5;
  --hue-gold: #ead175;
  --hue-ice: #5dd1f3;
  --hue-ember: #bc625c;

  /* Roles */
  --edit-heading: var(--stellar-b-ice);
  --edit-key: var(--stellar-nebula);
  --edit-tag: var(--stellar-o-blue);
  --edit-attr: var(--stellar-nebula);
  --edit-footnote: var(--stellar-o-blue);
  --edit-code: var(--stellar-aurora);
  --edit-url: var(--stellar-aurora);
  --edit-alert: var(--stellar-b-ice);
  --edit-math: var(--hue-amber);
  --edit-tex: var(--hue-ice);
  --syntax-keyword: var(--hue-blue);
  --syntax-string: var(--hue-gold);
  --syntax-number: var(--hue-amber);
  --syntax-type: var(--hue-teal);
  --syntax-tag: var(--hue-ice);
  --syntax-attr: var(--hue-violet);
  --mention: var(--stellar-o-blue);
  --author-claude: var(--stellar-k-amber);
  --author-codex: var(--stellar-aurora);
  --author-agent: var(--stellar-b-ice);
  --status-ok: var(--stellar-aurora);
  --status-pending: var(--stellar-f-gold);
  --status-attention: var(--stellar-k-amber);
  --callout-note: var(--stellar-o-blue);
  --callout-tip: var(--stellar-aurora);
  --callout-important: var(--stellar-nebula);
  --callout-warning: var(--stellar-f-gold);
  --lint-warning: var(--hue-gold);

  /* Space and type */
  --space-6: 6px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-44: 44px;
  --gap-para: 1rem;
  --gap-block: 2.25rem;
  --gap-section: 3.5rem;
  --measure-article: 52rem;
  --measure-wide: 60rem;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Author hues follow an agent wherever its handle appears; people stay grey. */
[data-who] { --au: var(--author-agent); }
[data-who="homer"] { --au: var(--author-codex); }
[data-who="claude"] { --au: var(--author-claude); }
[data-who="codex"] { --au: var(--author-codex); }
