/* Heartwood Guild · II. The Sovereign Chancellery
   Bona Nova (display + italic) · Bona Nova SC (section apparatus) · General Sans (body) · Geist Mono (data)
   Heartwood & Mithril palette. Source: Agency_Kit_2026-10/_build/heartwood_brand_guide.html
   Injected into every Constraint Intelligence page by _brand/apply_brand.py (and the Agency Kit build). */

html:root{
  /* Heartwood & Mithril */
  --hg-paper:#F6F5F0; --hg-surface:#FDFCF9; --hg-wash:#EDEBE4;
  --hg-forest:#174232; --hg-walnut:#6B5740; --hg-ink:#121916; --hg-ink-sub:#4C5751;
  --hg-rule:#BFC8C3; --hg-rule-strong:#87968E; --hg-celadon:#72BD9C; --hg-gold:#C4A97D;
  --hg-forest-07:rgba(23,66,50,.07); --hg-forest-12:rgba(23,66,50,.12);
  --hg-display:"Bona Nova",Georgia,serif; --hg-sc:"Bona Nova SC","Bona Nova",Georgia,serif;
  --hg-sans:"General Sans",-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
  --hg-mono:"Geist Mono","SF Mono",ui-monospace,monospace;

  /* Monograph tokens (ground / ink / accent) */
  --ground:var(--hg-paper); --surface:var(--hg-surface); --surface-2:var(--hg-wash);
  --ink:var(--hg-ink); --ink-soft:#2C3631; --ink-faint:var(--hg-ink-sub);
  --rule:var(--hg-rule); --rule-soft:#DDE2DF;
  --accent:var(--hg-forest); --accent-wash:var(--hg-forest-07);
  --slate:var(--hg-walnut); --slate-wash:rgba(107,87,64,.10);
  --serif:var(--hg-sans); --mono:var(--hg-mono);

  /* Guild tokens (paper / forest / display) */
  --paper:var(--hg-paper); --paper-warm:var(--hg-wash); --cream:var(--hg-surface); --codex:var(--hg-wash);
  --white:var(--hg-surface); --forest:var(--hg-forest); --forest-deep:#0D1411; --dark-forest:#0D1411; --dark:#0D1411;
  --sage:var(--hg-celadon); --sky:var(--hg-rule-strong); --walnut:var(--hg-walnut);
  --charcoal:var(--hg-ink); --ink-sub:var(--hg-ink-sub); --ink-blue:var(--hg-forest); --stone:var(--hg-rule-strong);
  --border:rgba(18,25,22,.08); --border-solid:var(--hg-rule);
  --forest-10:rgba(23,66,50,.10); --forest-15:rgba(23,66,50,.15); --green-dim:var(--hg-forest-07); --accent-dim:var(--hg-forest-07);
  --stone-tint:rgba(135,150,142,.18); --blue-tint:rgba(135,150,142,.18); --blue-dim:rgba(135,150,142,.07);
  --display:var(--hg-display); --sans:var(--hg-sans);
  --r-md:0; --r-lg:0;

  /* App-mock tokens */
  --font:var(--hg-sans); --bg:var(--hg-paper); --panel:var(--hg-surface); --line:var(--hg-rule); --line-strong:var(--hg-rule-strong);
  --ink-2:var(--hg-ink-sub); --ink-3:var(--hg-rule-strong); --navy:var(--hg-forest); --navy-2:#225A45;
  --accent-soft:var(--hg-forest-07); --eic:var(--hg-forest); --eic-soft:var(--hg-forest-12);
  --tic:var(--hg-walnut); --tic-soft:rgba(107,87,64,.12); --r:0; --r-lg:0;
  color-scheme:light;
}

/* Light only: pin the light palette so a Mac in dark mode (or a page's own dark theme) never turns these pages dark */
html:root{
  --ground:var(--hg-paper) !important; --surface:var(--hg-surface) !important; --surface-2:var(--hg-wash) !important;
  --ink:var(--hg-ink) !important; --ink-soft:#2C3631 !important; --ink-faint:var(--hg-ink-sub) !important;
  --rule:var(--hg-rule) !important; --rule-soft:#DDE2DF !important;
  --accent:var(--hg-forest) !important; --accent-wash:var(--hg-forest-07) !important;
  --slate:var(--hg-walnut) !important; --slate-wash:rgba(107,87,64,.10) !important;
  color-scheme:light !important;
}

/* ── Type ─────────────────────────────────────────────────────────── */
body{font-family:var(--hg-sans) !important; background:var(--ground); color:var(--ink);
  font-feature-settings:"kern" 1; -webkit-font-smoothing:antialiased;}
h1,h2,h3,h4,.h,.display,.pull,.close,blockquote{
  font-family:var(--hg-display) !important; font-weight:400 !important;
  font-feature-settings:"liga" 1,"dlig" 1,"kern" 1;}
h1,.h{letter-spacing:-.015em !important; line-height:1.03;}
h2{letter-spacing:-.012em !important; line-height:1.12;}
h3,h4{letter-spacing:-.005em !important;}
h4{font-weight:700 !important;}
h1 em,h2 em,h3 em,h4 em,.h em,.pull em,blockquote em{
  font-family:var(--hg-display) !important; font-style:italic !important; font-weight:400 !important; color:var(--hg-forest);}
strong,b{font-weight:600;}

/* Engraved small caps for section apparatus: kickers, eyebrows, running heads */
.eyebrow,.kicker,.overline,.sec,.section-label,.label,.colh,.tl,.rep,.by,
.kitnav .links,th{
  font-family:var(--hg-sc) !important; letter-spacing:.14em !important; text-transform:uppercase; font-weight:400 !important;}

code,pre,kbd,samp,.mono,.num,.data{font-family:var(--hg-mono) !important; font-variant-numeric:tabular-nums lining-nums;}
td,.tabular{font-variant-numeric:tabular-nums lining-nums;}

a{color:var(--hg-forest); text-decoration-color:var(--hg-rule-strong); text-underline-offset:.18em;}
::selection{background:var(--hg-forest-12);}

/* ── Mithril joinery: zero-radius folio grid, silver-point hairlines ─ */
div,section,aside,article,figure,table,pre,img,button,input,select,textarea,.card,.box,.pill,.badge,.chip{border-radius:0 !important;}
hr{border:0; border-top:1px solid var(--hg-rule);}
table{border-color:var(--hg-rule);}
th,td{border-color:var(--hg-rule) !important;}
/* Axioms sit between a 2px iron rule and a 1px mithril rule, never in a rounded box */
blockquote{border:0 !important; border-top:2px solid var(--hg-ink) !important; border-bottom:1px solid var(--hg-rule-strong) !important;
  background:transparent !important; padding:1.1em 0 !important; margin-left:0 !important; margin-right:0 !important;}

/* Shared Agency Kit nav */
.kitnav{font-family:var(--hg-sans) !important;}
.kitnav .brand{background:var(--hg-forest) !important; color:var(--hg-paper) !important; font-family:var(--hg-display) !important; font-weight:400 !important;}
.kitnav .title{border-color:var(--hg-ink) !important; color:var(--hg-ink) !important;}
.kitnav .links a{color:var(--hg-ink-sub) !important;}
.kitnav .links a:hover,.kitnav .links a.on{color:var(--hg-forest) !important; border-bottom-color:var(--hg-forest) !important;}

@media print{body{background:#fff !important;}}
