/* ─── Design tokens — "Poster" (Swiss grid, flat colour blocks) ──────────────
   Every colour is one of the Customizer-backed roles (printed by
   wps_inline_styles()) or a color-mix() of them — never a literal. The :root
   fallbacks for the 10 roles live in style.css. Fonts come from the
   Customizer too: --font-title / --font-text (Archivo) and --font-mono
   (Space Mono, printed only while the site stays at 2 web families).
   ────────────────────────────────────────────────────────────────────────── */

:root {
  /* Roles → design names */
  --paper: var(--bg-color);
  --paper-2: var(--bg-light);
  --white: var(--surface-color);
  --ink: var(--text-color);
  --ink-2: color-mix(in srgb, var(--text-color) 85%, var(--bg-color));
  --muted: var(--text-muted);
  --line: var(--border-color);
  --line-2: color-mix(in srgb, var(--border-color) 86%, var(--text-color));
  --accent: var(--primary-color);
  --accent-d: color-mix(in srgb, var(--primary-color) 80%, var(--text-color));
  --mark: var(--secondary-color);
  --ok: var(--positive-color);
  --err: var(--negative-color);
  --warn: color-mix(in srgb, var(--negative-color) 55%, var(--secondary-color));
  --on-color: var(--surface-color);

  /* Ink tints for the dark sections (header, footer, newsletter band) */
  --ink-95: color-mix(in srgb, var(--text-color) 95%, var(--bg-color));
  --ink-92: color-mix(in srgb, var(--text-color) 92%, var(--bg-color));
  --ink-80: color-mix(in srgb, var(--text-color) 80%, var(--bg-color));
  --ink-73: color-mix(in srgb, var(--text-color) 73%, var(--bg-color));
  --ink-45: color-mix(in srgb, var(--text-color) 45%, var(--bg-color));
  --ink-38: color-mix(in srgb, var(--text-color) 38%, var(--bg-color));
  --ink-25: color-mix(in srgb, var(--text-color) 25%, var(--bg-color));
  --ink-15: color-mix(in srgb, var(--text-color) 15%, var(--bg-color));

  /* Type */
  --font-title: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --font-text: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --serif: var(--font-title);
  --sans: var(--font-text);
  --mono: var(--font-mono);

  /* On-colour text tints (white type on chapter-colour blocks) */
  --on-90: color-mix(in srgb, var(--on-color) 90%, transparent);
  --on-85: color-mix(in srgb, var(--on-color) 85%, transparent);
  --on-60: color-mix(in srgb, var(--on-color) 60%, transparent);
  --on-45: color-mix(in srgb, var(--on-color) 45%, transparent);
  --on-30: color-mix(in srgb, var(--on-color) 30%, transparent);
  --on-18: color-mix(in srgb, var(--on-color) 18%, transparent);
  --on-08: color-mix(in srgb, var(--on-color) 8%, transparent);

  /* The dot grid behind tool outputs */
  --grid: radial-gradient(circle, color-mix(in srgb, var(--border-color) 80%, var(--text-color)) 1px, transparent 1.3px) 0 0 / 18px 18px;

  /* Layout & motion */
  --container: 1280px;
  --gutter: 32px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hdr-h: 64px;

  /* Shape: square corners, thick ink rules, hard offset shadows in red or
     the chapter colour */
  --bw: 1.5px;
  --bw-3: 3px;
  --rule-3: var(--bw-3) solid var(--ink);
  --rule: var(--bw) solid var(--ink);
  --shadow: 10px 10px 0 var(--accent);
  --radius-sm: 0;

  /* Used by components/contact-form-7.css */
  --hover-duration: .2s;
  --timing: var(--ease);
  --text-xs: .72rem;
  --text-sm: .84rem;
  --text-base: 1rem;
}

@media (max-width: 991.98px) {
  :root {
    --gutter: 20px;
  }
}
