/* Asbury AI Solutions — theme bridge for legacy static pages (2026-10-30).
 *
 * The older hand-built pages (blog, services, industries, legal, …) were written
 * against the cream "Harbor Grit" palette and Google-hosted IBM Plex / Archivo
 * Black. Peter's rule: keep every one of those URLs for SEO, but everything
 * must look like the new site (ink backgrounds, paper text, phosphor-green
 * signal, Instrument Sans + Space Mono, square corners, no third-party fonts).
 *
 * scripts/retheme_legacy.py rewrote the hard-coded colours in those pages and
 * stylesheets to the new palette. This file does the two things a find/replace
 * cannot:
 *   1. alias the old font-family names to the new, locally served font files,
 *      so every existing font-family declaration keeps working;
 *   2. restate the shared design tokens (--hg-*, --ink, --paper, …) on :root
 *      with new-theme values, for any rule that still reads a variable.
 * Load it LAST in <head>. Tokens match assets/index-*.css :root (the SPA shell).
 */

/* ---- 1. Font aliases: old family name -> new font files ------------------- */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-display: swap; font-weight: 400; src: url(/assets/instrument-sans-latin-400-normal-DRC__1Mx.woff2) format("woff2"), url(/assets/instrument-sans-latin-400-normal-D1W7dsQl.woff) format("woff"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-display: swap; font-weight: 500; src: url(/assets/instrument-sans-latin-500-normal-Dk9ku72i.woff2) format("woff2"), url(/assets/instrument-sans-latin-500-normal-Z6ESRlEs.woff) format("woff"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-display: swap; font-weight: 600; src: url(/assets/instrument-sans-latin-600-normal-B7fBEWYG.woff2) format("woff2"), url(/assets/instrument-sans-latin-600-normal-B9e8oLYv.woff) format("woff"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-display: swap; font-weight: 700; src: url(/assets/instrument-sans-latin-700-normal-CYfAanHo.woff2) format("woff2"), url(/assets/instrument-sans-latin-700-normal-DfAjL1vF.woff) format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 400; src: url(/assets/instrument-sans-latin-400-normal-DRC__1Mx.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 500; src: url(/assets/instrument-sans-latin-500-normal-Dk9ku72i.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 600; src: url(/assets/instrument-sans-latin-600-normal-B7fBEWYG.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 700 900; src: url(/assets/instrument-sans-latin-700-normal-CYfAanHo.woff2) format("woff2"); }
/* Display face: the new site has no black display font; headlines use the sans at 700. */
@font-face { font-family: "Archivo Black"; font-style: normal; font-display: swap; font-weight: 400 900; src: url(/assets/instrument-sans-latin-700-normal-CYfAanHo.woff2) format("woff2"), url(/assets/instrument-sans-latin-700-normal-DfAjL1vF.woff) format("woff"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400 600; src: url(/assets/space-mono-latin-400-normal-Rg4St2Dn.woff2) format("woff2"), url(/assets/space-mono-latin-400-normal-_3DlpgIW.woff) format("woff"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 700; src: url(/assets/space-mono-latin-700-normal-mWgeinG7.woff2) format("woff2"), url(/assets/space-mono-latin-700-normal-D7A851RN.woff) format("woff"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 400 600; src: url(/assets/space-mono-latin-400-normal-Rg4St2Dn.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 700; src: url(/assets/space-mono-latin-700-normal-mWgeinG7.woff2) format("woff2"); }

/* ---- 2. Tokens ------------------------------------------------------------ */
:root {
  color-scheme: dark;

  /* new-theme source tokens (same values as the SPA shell) */
  --phosphor-500: oklch(.88 .26 153);
  --phosphor-700: oklch(.65 .21 153);
  --ink-950: oklch(.13 .015 155);
  --ink-900: oklch(.17 .017 155);
  --ink-800: oklch(.23 .018 155);
  --paper-100: oklch(.94 .015 145);
  --paper-200: oklch(.88 .018 145);
  --paper-500: oklch(.58 .02 145);
  --line-dark: oklch(.31 .025 155);
  --muted-dark: oklch(.7 .02 155);

  /* Harbor Grit tokens (assets/live-tokens.css) remapped */
  --hg-paper: var(--ink-950);
  --hg-surface: var(--ink-900);
  --hg-surface-alt: var(--ink-800);
  --hg-ink: var(--paper-100);
  --hg-border: var(--line-dark);
  --hg-muted: var(--muted-dark);
  --hg-signal: var(--phosphor-500);
  --hg-shadow: none;
  --hg-shadow-sm: none;
  --hg-ok: var(--phosphor-700);
  --hg-warn: oklch(.82 .16 85);
  --hg-down: oklch(.72 .2 25);
  --hg-offline: var(--muted-dark);
  --hg-paused: var(--paper-500);
  --hg-verify: var(--phosphor-700);
  --hg-font-body: "Instrument Sans", "IBM Plex Sans", system-ui, sans-serif;
  --hg-font-mono: "Space Mono", "IBM Plex Mono", ui-monospace, monospace;
  --hg-font-mark: "Instrument Sans", "Archivo Black", sans-serif;
  --hg-rule: 1px solid var(--line-dark);
}

/* The old shell's 2px hard borders and offset block shadows are not part of
   the new look; soften them globally without touching per-page markup. */
body { -webkit-font-smoothing: antialiased; }
img[src$="asbury-monogram.svg"] { border-radius: 0; }
