/* ==========================================================================
   Anders Group design tokens for the blog templates (home.php / archive.php
   / search.php / single.php), ported from andersgroup-ui-design's
   css/tokens.css (verified against the official Anders Group Style Guide,
   05/2025).

   Scoped to `body.cxs-blog-theme` (added on blog requests by
   cxs_sitewide_body_classes() in inc/site-chrome.php) rather than :root,
   so these content-level tokens cannot leak into non-blog page templates.

   Link this file first, then blog-components.css.
   ========================================================================== */
body.cxs-blog-theme {
  /* ---- Ink & text (blue-tinted neutrals) ---- */
  --ink: #011624;
  --navy: #033d63;
  --navy-2: #044f81;
  --slate: #33475b;
  --muted: #526374;

  /* ---- Brand palette -- single-purpose, one color one job ---- */
  --accent: #044f81;
  --accent-d: #033e65;
  --accent-soft: #f0f4f7;
  --accent-line: #cddce6;
  --cta: linear-gradient(110deg, #033d63, #044f81);

  --action: #7fff00;
  --action-ink: #011624;
  --action-d: #72e600;
  --action-soft: #f7fdf3;
  --action-cta: #7fff00;
  --action-shadow: 0 6px 20px rgba(101, 204, 0, 0.32);
  --action-line: #cfe6d2;

  --canvas: #f7fdf3;

  --emph: #1e7a34;
  --emph-d: #155a28;

  --green: #0b7a43;
  --green-soft: #e1f3e9;
  --danger: #b42318;
  --danger-soft: #fff3f1;
  --danger-line: #f0b7af;
  --amber: #8a5a00;
  --amber-soft: #fbf1da;
  --coral: #a84400;
  --coral-soft: #fbeadd;
  --star: #f2a900;

  /* ---- Surfaces & lines ---- */
  --bg: #fbfcfd;
  --card: #ffffff;
  --panel: #f4f7f9;
  --line: #e7eef3;
  --line-2: #f1f5f8;
  --banner-dark: linear-gradient(110deg, #011624, #033d63);
  --hero-dark: linear-gradient(135deg, #011624 0%, #033d63 55%, #044f81 100%);
  --on-navy-hi: #f7f9f9;
  --on-navy: #e6eaec;
  --on-navy-dim: #95a5af;
  --on-dark: #ffffff;
  --on-dark-2: #d6e4ee;
  --on-dark-3: #8fb0c6;
  --line-on-dark: rgba(255, 255, 255, 0.16);
  --scrim: rgba(3, 29, 47, 0.55);

  /* ---- Elevation ---- */
  --shadow: 0 1px 2px rgba(1, 22, 36, 0.05), 0 6px 18px rgba(1, 22, 36, 0.06);
  --shadow-md: 0 6px 22px rgba(1, 22, 36, 0.1);
  --shadow-lg: 0 18px 48px rgba(1, 22, 36, 0.16);

  /* ---- Radius ---- */
  --r-sm: 9px;
  --r-btn: 11px;
  --r-field: 12px;
  --r: 14px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* ---- Spacing scale (4px base) ---- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-card: 18px;
  --s-6: 24px;
  --s-8: 32px;
  --s-section: 48px;
  --s-hero: 60px;

  /* ---- The one font axis: system-ui everywhere, 700 max weight ---- */
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --tnum: "tnum" 1, "lnum" 1;

  /* ---- Long-form article type scale ----
     Sizes and their matching leading are declared as pairs, because the two
     are not independent: leading is a ratio of the size it was tuned for,
     and large display text needs proportionally less of it than wrapping
     body copy. Keeping them apart is how `.prose h2` ended up inheriting
     the body's ratio and rendering at 46px leading.

     The scale is a ~1.28 ratio (18 / 23 / 26 / 34), above the 1.25 floor
     that keeps steps from reading as uncommitted. Article-scoped: the
     smaller UI sizes elsewhere in the blog CSS are chrome, not this scale. */
  --t-body: 18px;
  --lh-body: 1.78; /* ~75ch measure needs more leading than a short one */

  --t-summary: 17px; /* takeaways card: quieter than body, same measure */
  --lh-summary: 1.75;

  --t-h3: 20px;
  --lh-h3: 1.35;

  --t-h2: 26px;
  --t-h2-sm: 23px; /* below 768px, where the h1 also steps down */
  --lh-h2: 1.25;

  --t-quote: 23px;
  --lh-quote: 1.4;

  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}

/* =========================================================================
   BREAKPOINTS -- documented convention, not tokens (custom properties can't
   be used inside @media conditions). Mobile-first: base styles target the
   375px design baseline; widen with min-width queries.

     640px   large phone / small tablet
     768px   tablet
     1024px  desktop

   No horizontal scroll at any width >= 320px.
   ========================================================================= */
