/* Bastion Digital Foundations v1.0 tokens, built 2026-11-04 from the brand book v1.0 tokens.
   Source of truth: vault 15 Brand Guidelines\Digital Foundations v1.0 2026-11-04\tools\build.py
   Never edit this file in a repo. Rebuild there, then sync here: python brand/brand-check.py --sync .
   Fonts: https://fonts.googleapis.com/css2?family=Anton&family=League+Gothic&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;1,400&family=Space+Grotesk:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap
   Breakpoints (use the pixel values in media queries): phone 480px, tablet 768px, laptop 1024px, desktop 1280px, wide 1600px */
:root {
  /* Primitive colour (owned by the brand book) */
  --bt-ground: #0A0D08;
  --bt-ground-2: #141A10;
  --bt-brand: #3B5A2A;
  --bt-text: #D1D5D0;
  --bt-accent: #FFA61A;
  --bt-bone: #C8BBA0;
  /* Primitive colour as RGB triplets, for alpha: rgba(var(--bt-accent-rgb), .3) */
  --bt-ground-rgb: 10, 13, 8;
  --bt-ground-2-rgb: 20, 26, 16;
  --bt-brand-rgb: 59, 90, 42;
  --bt-text-rgb: 209, 213, 208;
  --bt-accent-rgb: 255, 166, 26;
  --bt-bone-rgb: 200, 187, 160;
  /* Derived colour */
  --bt-ground-0: #060704;
  --bt-ground-3: #21251A;
  --bt-bone-2: #E1DACB;
  --bt-bone-0: #B5AA91;
  --bt-brand-2: #5A6F44;
  --bt-brand-soft: #192412;
  --bt-brand-soft-light: #AFAA8B;
  --bt-brand-ink: #2F4822;
  --bt-accent-2: #FFB23A;
  --bt-accent-3: #D38A17;
  --bt-accent-soft: #2C220B;
  --bt-green: #8DB36A;
  --bt-green-soft: #1C2416;
  --bt-green-ink: #25521C;
  --bt-red: #E0604A;
  --bt-red-soft: #281911;
  --bt-red-ink: #7E2416;
  --bt-amber-ink: #6B4300;
  --bt-text-muted: #858984;
  --bt-text-faint: #626560;
  --bt-text-light-muted: #434136;
  --bt-text-light-faint: #656151;
  --bt-hairline: #282920;
  --bt-hairline-strong: #474539;
  --bt-hairline-light: #A69C85;
  --bt-hairline-light-strong: #847C69;
  /* Derived colour as RGB triplets, for alpha: rgba(var(--bt-red-rgb), .5) */
  --bt-ground-0-rgb: 6, 7, 4;
  --bt-ground-3-rgb: 33, 37, 26;
  --bt-bone-2-rgb: 225, 218, 203;
  --bt-bone-0-rgb: 181, 170, 145;
  --bt-brand-2-rgb: 90, 111, 68;
  --bt-brand-soft-rgb: 25, 36, 18;
  --bt-brand-soft-light-rgb: 175, 170, 139;
  --bt-brand-ink-rgb: 47, 72, 34;
  --bt-accent-2-rgb: 255, 178, 58;
  --bt-accent-3-rgb: 211, 138, 23;
  --bt-accent-soft-rgb: 44, 34, 11;
  --bt-green-rgb: 141, 179, 106;
  --bt-green-soft-rgb: 28, 36, 22;
  --bt-green-ink-rgb: 37, 82, 28;
  --bt-red-rgb: 224, 96, 74;
  --bt-red-soft-rgb: 40, 25, 17;
  --bt-red-ink-rgb: 126, 36, 22;
  --bt-amber-ink-rgb: 107, 67, 0;
  --bt-text-muted-rgb: 133, 137, 132;
  --bt-text-faint-rgb: 98, 101, 96;
  --bt-text-light-muted-rgb: 67, 65, 54;
  --bt-text-light-faint-rgb: 101, 97, 81;
  --bt-hairline-rgb: 40, 41, 32;
  --bt-hairline-strong-rgb: 71, 69, 57;
  --bt-hairline-light-rgb: 166, 156, 133;
  --bt-hairline-light-strong-rgb: 132, 124, 105;
  /* Semantic, dark surface (default, :root) */
  --bt-surface: var(--bt-ground);
  --bt-surface-2: var(--bt-ground-2);
  --bt-surface-3: var(--bt-ground-3);
  --bt-surface-0: var(--bt-ground-0);
  --bt-ink: var(--bt-text);
  --bt-ink-strong: var(--bt-bone);
  --bt-ink-muted: var(--bt-text-muted);
  --bt-ink-faint: var(--bt-text-faint);
  --bt-ink-on-brand: var(--bt-bone-2);
  --bt-highlight: var(--bt-accent);
  --bt-line: var(--bt-hairline);
  --bt-line-strong: var(--bt-hairline-strong);
  --bt-rule: var(--bt-brand);
  --bt-selected: var(--bt-brand-soft);
  --bt-link: var(--bt-accent);
  --bt-link-hover: var(--bt-accent-2);
  --bt-cta: var(--bt-accent);
  --bt-cta-hover: var(--bt-accent-2);
  --bt-cta-active: var(--bt-accent-3);
  --bt-cta-ink: var(--bt-ground);
  --bt-focus: var(--bt-accent);
  --bt-focus-ring: 0 0 0 2px var(--bt-ground), 0 0 0 4px var(--bt-accent);
  --bt-selection: var(--bt-accent);
  --bt-ok: var(--bt-green);
  --bt-ok-bg: var(--bt-green-soft);
  --bt-warn: var(--bt-accent);
  --bt-warn-bg: var(--bt-accent-soft);
  --bt-bad: var(--bt-red);
  --bt-bad-bg: var(--bt-red-soft);
  --bt-info: var(--bt-bone);
  --bt-info-bg: var(--bt-ground-3);
  --bt-scrim: rgba(var(--bt-ground-rgb), .82);
  --bt-scrim-up: linear-gradient(180deg, rgba(var(--bt-ground-rgb), 0) 35%, rgba(var(--bt-ground-rgb), .82) 100%);
  --bt-scrim-hero: linear-gradient(180deg, rgba(var(--bt-ground-rgb), .25) 0%, rgba(var(--bt-ground-rgb), .55) 55%, var(--bt-ground) 100%);
  --bt-hatch: repeating-linear-gradient(-45deg, rgba(var(--bt-bone-rgb), .07) 0 2px, transparent 2px 10px);
  --bt-hatch-strong: repeating-linear-gradient(-45deg, rgba(var(--bt-bone-rgb), .16) 0 3px, transparent 3px 9px);
  --bt-hatch-bad: repeating-linear-gradient(-45deg, rgba(var(--bt-red-rgb), .28) 0 2px, transparent 2px 10px);
  --bt-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  --bt-rivet: radial-gradient(circle, var(--bt-line-strong) 0 1.6px, transparent 2.4px);
  --bt-lift: -2px;
  --bt-shadow-1: 0 1px 2px rgba(var(--bt-ground-rgb), .5);
  --bt-shadow-2: 0 6px 18px rgba(var(--bt-ground-rgb), .55);
  --bt-shadow-3: 0 24px 64px rgba(var(--bt-ground-rgb), .7);
  --bt-logo: dark;
  /* Type */
  --bt-font-display: 'Anton', 'Arial Black', Impact, sans-serif;
  --bt-font-subhead: 'League Gothic', 'Arial Narrow', 'Helvetica Neue Condensed', sans-serif;
  --bt-font-body: 'IBM Plex Sans', Arial, Helvetica, sans-serif;
  --bt-font-ui: 'Space Grotesk', Arial, Helvetica, sans-serif;
  --bt-font-mono: 'IBM Plex Mono', Consolas, 'Courier New', monospace;
  --bt-fs-hero: clamp(56px, 9vw, 128px);
  --bt-h1: 64px;
  --bt-h1-m: 40px;
  --bt-h2: 40px;
  --bt-h2-m: 30px;
  --bt-h3: 14px;
  --bt-body: 18px;
  --bt-body-m: 17px;
  --bt-small: 14px;
  --bt-xs: 12px;
  --bt-data: 16px;
  --bt-lh-display: 0.98;
  --bt-lh-heading: 1.08;
  --bt-lh-ui: 1.2;
  --bt-lh-body: 1.6;
  --bt-track-display: 0.01em;
  --bt-track-ui: 0.14em;
  --bt-track-eyebrow: 0.28em;
  --bt-fw-body: 400;
  --bt-fw-medium: 500;
  --bt-fw-strong: 600;
  --bt-measure: 68ch;
  /* Space (4px base) */
  --bt-s-1: 4px;
  --bt-s-2: 8px;
  --bt-s-3: 12px;
  --bt-s-4: 16px;
  --bt-s-5: 24px;
  --bt-s-6: 32px;
  --bt-s-7: 48px;
  --bt-s-8: 64px;
  --bt-s-9: 96px;
  --bt-s-10: 128px;
  /* Layout */
  --bt-gutter: clamp(16px, 4vw, 48px);
  --bt-section: clamp(64px, 10vw, 128px);
  --bt-container: 1200px;
  --bt-container-narrow: 760px;
  --bt-control-h: 44px;
  --bt-control-h-sm: 36px;
  --bt-control-px: 20px;
  --bt-field-px: 14px;
  /* Shape */
  --bt-r-0: 0;
  --bt-r-1: 2px;
  --bt-r-2: 4px;
  --bt-r-3: 8px;
  --bt-r-pill: 999px;
  --bt-bw: 1px;
  --bt-bw-2: 2px;
  --bt-icon: 20px;
  --bt-icon-sm: 16px;
  /* Motion and stacking */
  --bt-dur-1: 120ms;
  --bt-dur-2: 200ms;
  --bt-dur-3: 360ms;
  --bt-ease: cubic-bezier(.2, .7, .2, 1);
  --bt-ease-out: cubic-bezier(.16, 1, .3, 1);
  --bt-z-nav: 100;
  --bt-z-overlay: 200;
  --bt-z-modal: 300;
  --bt-z-toast: 400;
}
.bt-light {
  /* Semantic, light surface: add this class to any element whose ground is bone (print, light panels, light goods) */
  --bt-surface: var(--bt-bone);
  --bt-surface-2: var(--bt-bone-2);
  --bt-surface-3: var(--bt-bone-2);
  --bt-surface-0: var(--bt-bone-0);
  --bt-ink: var(--bt-ground);
  --bt-ink-strong: var(--bt-ground);
  --bt-ink-muted: var(--bt-text-light-muted);
  --bt-ink-faint: var(--bt-text-light-faint);
  --bt-ink-on-brand: var(--bt-bone-2);
  --bt-highlight: var(--bt-brand-ink);
  --bt-line: var(--bt-hairline-light);
  --bt-line-strong: var(--bt-hairline-light-strong);
  --bt-rule: var(--bt-brand);
  --bt-selected: var(--bt-brand-soft-light);
  --bt-link: var(--bt-brand-ink);
  --bt-link-hover: var(--bt-ground);
  --bt-cta: var(--bt-accent);
  --bt-cta-hover: var(--bt-accent-2);
  --bt-cta-active: var(--bt-accent-3);
  --bt-cta-ink: var(--bt-ground);
  --bt-focus: var(--bt-brand);
  --bt-focus-ring: 0 0 0 2px var(--bt-bone), 0 0 0 4px var(--bt-brand);
  --bt-selection: var(--bt-brand);
  --bt-ok: var(--bt-green-ink);
  --bt-ok-bg: var(--bt-bone-2);
  --bt-warn: var(--bt-amber-ink);
  --bt-warn-bg: var(--bt-bone-2);
  --bt-bad: var(--bt-red-ink);
  --bt-bad-bg: var(--bt-bone-2);
  --bt-info: var(--bt-brand-ink);
  --bt-info-bg: var(--bt-bone-2);
  --bt-scrim: rgba(var(--bt-ground-rgb), .6);
  --bt-scrim-up: linear-gradient(180deg, rgba(var(--bt-ground-rgb), 0) 35%, rgba(var(--bt-ground-rgb), .82) 100%);
  --bt-scrim-hero: linear-gradient(180deg, rgba(var(--bt-ground-rgb), .25) 0%, rgba(var(--bt-ground-rgb), .55) 55%, var(--bt-ground) 100%);
  --bt-hatch: repeating-linear-gradient(-45deg, rgba(var(--bt-ground-rgb), .08) 0 2px, transparent 2px 10px);
  --bt-hatch-strong: repeating-linear-gradient(-45deg, rgba(var(--bt-ground-rgb), .18) 0 3px, transparent 3px 9px);
  --bt-hatch-bad: repeating-linear-gradient(-45deg, rgba(var(--bt-red-ink-rgb), .28) 0 2px, transparent 2px 10px);
  --bt-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  --bt-rivet: radial-gradient(circle, var(--bt-line-strong) 0 1.6px, transparent 2.4px);
  --bt-lift: -2px;
  --bt-shadow-1: 0 1px 2px rgba(var(--bt-ground-rgb), .18);
  --bt-shadow-2: 0 6px 18px rgba(var(--bt-ground-rgb), .22);
  --bt-shadow-3: 0 24px 64px rgba(var(--bt-ground-rgb), .35);
  --bt-logo: light;
  color-scheme: light;
  /* colour is inherited as a value, not a name, so a light region must restate its own ink and ground */
  color: var(--bt-ink); background-color: var(--bt-surface);
}
:root { color-scheme: dark; }
.bt-dark {
  /* Semantic, dark island: the mirror of .bt-light, for a dark plate inside a bone region */
  --bt-surface: var(--bt-ground);
  --bt-surface-2: var(--bt-ground-2);
  --bt-surface-3: var(--bt-ground-3);
  --bt-surface-0: var(--bt-ground-0);
  --bt-ink: var(--bt-text);
  --bt-ink-strong: var(--bt-bone);
  --bt-ink-muted: var(--bt-text-muted);
  --bt-ink-faint: var(--bt-text-faint);
  --bt-ink-on-brand: var(--bt-bone-2);
  --bt-highlight: var(--bt-accent);
  --bt-line: var(--bt-hairline);
  --bt-line-strong: var(--bt-hairline-strong);
  --bt-rule: var(--bt-brand);
  --bt-selected: var(--bt-brand-soft);
  --bt-link: var(--bt-accent);
  --bt-link-hover: var(--bt-accent-2);
  --bt-cta: var(--bt-accent);
  --bt-cta-hover: var(--bt-accent-2);
  --bt-cta-active: var(--bt-accent-3);
  --bt-cta-ink: var(--bt-ground);
  --bt-focus: var(--bt-accent);
  --bt-focus-ring: 0 0 0 2px var(--bt-ground), 0 0 0 4px var(--bt-accent);
  --bt-selection: var(--bt-accent);
  --bt-ok: var(--bt-green);
  --bt-ok-bg: var(--bt-green-soft);
  --bt-warn: var(--bt-accent);
  --bt-warn-bg: var(--bt-accent-soft);
  --bt-bad: var(--bt-red);
  --bt-bad-bg: var(--bt-red-soft);
  --bt-info: var(--bt-bone);
  --bt-info-bg: var(--bt-ground-3);
  --bt-scrim: rgba(var(--bt-ground-rgb), .82);
  --bt-scrim-up: linear-gradient(180deg, rgba(var(--bt-ground-rgb), 0) 35%, rgba(var(--bt-ground-rgb), .82) 100%);
  --bt-scrim-hero: linear-gradient(180deg, rgba(var(--bt-ground-rgb), .25) 0%, rgba(var(--bt-ground-rgb), .55) 55%, var(--bt-ground) 100%);
  --bt-hatch: repeating-linear-gradient(-45deg, rgba(var(--bt-bone-rgb), .07) 0 2px, transparent 2px 10px);
  --bt-hatch-strong: repeating-linear-gradient(-45deg, rgba(var(--bt-bone-rgb), .16) 0 3px, transparent 3px 9px);
  --bt-hatch-bad: repeating-linear-gradient(-45deg, rgba(var(--bt-red-rgb), .28) 0 2px, transparent 2px 10px);
  --bt-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  --bt-rivet: radial-gradient(circle, var(--bt-line-strong) 0 1.6px, transparent 2.4px);
  --bt-lift: -2px;
  --bt-shadow-1: 0 1px 2px rgba(var(--bt-ground-rgb), .5);
  --bt-shadow-2: 0 6px 18px rgba(var(--bt-ground-rgb), .55);
  --bt-shadow-3: 0 24px 64px rgba(var(--bt-ground-rgb), .7);
  --bt-logo: dark;
  color-scheme: dark; color: var(--bt-ink); background-color: var(--bt-surface);
}
/* The base ground, ink and face live here so a page that links this file is right before it writes a rule of its own. Set on body, not only html: a host that wraps a page (claude.ai artifacts) injects its own body rule, black on white in a 14px system face, ahead of the page's sheet, and anything that only inherits takes it. */
body { background: var(--bt-surface); color: var(--bt-ink); font-family: var(--bt-font-body); font-size: var(--bt-body); line-height: var(--bt-lh-body); scrollbar-color: var(--bt-line-strong) var(--bt-surface-2); }
@media (prefers-reduced-motion: reduce) { :root { --bt-dur-1: 0ms; --bt-dur-2: 0ms; --bt-dur-3: 0ms; --bt-lift: 0px; } }
@media (max-width: 767px) { :root { --bt-h1: var(--bt-h1-m); --bt-h2: var(--bt-h2-m); } }
@media (max-width: 479px) { :root { --bt-body: var(--bt-body-m); } }
/* sha256 0876dca205c691de46491340768e1829ab0039f9ebcf675e18fe33e57afdbb6e */
