@import url('fonts.css');

/* ============================================================
   The Howard Infinity Trust
   Palette: ink navy dominant, warm paper ground, muted brass.
   Navy leads rather than the cream - the trust reads as an
   institution, not a stationery brand.
   ============================================================ */

:root {
  --ink:        #141E33;
  --ink-deep:   #0D1524;
  --ink-soft:   #1E2A44;
  --paper:      #F6F3EC;
  --paper-warm: #FBF9F5;
  --brass:      #7A5F33;
  --brass-lift: #C9A265;
  --slate:      #56617A;
  --rule:       #D9D4C8;
  --rule-dark:  #2A3A57;

  --text:       var(--ink);
  --text-muted: var(--slate);
  --bg:         var(--paper);
  --bg-raised:  var(--paper-warm);
  --accent:     var(--brass);
  --border:     var(--rule);

  --serif: 'Spectral', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans:  'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* elevation: layered, low-alpha shadows read as real depth; a single
     big blur reads as a smudge */
  --lift-1: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --lift-2: 0 2px 4px rgba(16,24,40,.05), 0 6px 16px rgba(16,24,40,.08);
  --lift-3: 0 4px 8px rgba(16,24,40,.06), 0 16px 40px rgba(16,24,40,.12);
  --lift-ink: 0 2px 6px rgba(0,0,0,.30), 0 18px 48px rgba(0,0,0,.38);

  --band:  #EFEBE1;

  --measure: 68ch;
  --gap:     clamp(1.25rem, 3vw, 2rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --radius:  2px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text:       #E8E6E0;
    --text-muted: #9AA3B5;
    --bg:         var(--ink-deep);
    --bg-raised:  #131C2E;
    --accent:     var(--brass-lift);
    --border:     #26314A;
    --lift-1: 0 1px 2px rgba(0,0,0,.30), 0 1px 3px rgba(0,0,0,.24);
    --lift-2: 0 2px 4px rgba(0,0,0,.30), 0 6px 16px rgba(0,0,0,.34);
    --lift-3: 0 4px 8px rgba(0,0,0,.34), 0 16px 40px rgba(0,0,0,.44);
    --band: #101827;
  }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-feature-settings: 'kern' 1;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius); }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}
.eyebrow::after {
  content: '';
  flex: 1;
  max-width: 4.5rem;
  height: 1px;
  background: currentColor;
  opacity: .45;
}
.lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.18rem, 1.8vw, 1.42rem);
  line-height: 1.55;
  color: var(--text-muted);
}
p, li, dd { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.prose { max-width: var(--measure); }
.section { padding-block: var(--section); position: relative; }
.section + .section { border-top: 1px solid var(--border); }
/* a raised band breaks the single flat plane the page used to be */
.section--raised {
  background: var(--band);
  border-top: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 12px 24px -18px rgba(20,30,51,.28);
}
@media (prefers-color-scheme: dark) {
  .section--raised { box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
}
.section--raised + .section { border-top: 1px solid var(--border); }
.stack > * + * { margin-top: 1.15em; }

/* ---------- header ---------- */
.masthead { border-bottom: 1px solid var(--border); background: var(--bg); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__mark { width: 30px; height: 30px; flex: none; color: var(--accent); }
.brand__name { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; letter-spacing: .005em; line-height: 1.2; }
.nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.nav a {
  font-size: .93rem; text-decoration: none; color: var(--text-muted);
  padding-block: .2rem; border-bottom: 1px solid transparent; transition: color .18s, border-color .18s;
}
.nav a:hover { color: var(--text); border-bottom-color: var(--accent); }
.nav a[aria-current='page'] { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- hero: the ink panel ----------
   Three stacked layers give it depth: a radial lift so the ground is not a
   flat fill, the guilloche rosette bled off the right edge, and the content.
   ---------------------------------------------------------------- */
.hero, .pagehead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #EEF0F4;
  background:
    radial-gradient(120% 90% at 78% 18%, #24314F 0%, rgba(36,49,79,0) 62%),
    radial-gradient(80% 70% at 8% 100%, #1A2540 0%, rgba(26,37,64,0) 70%),
    var(--ink);
}
.hero     { padding-block: clamp(4rem, 10vw, 7.5rem); }
.pagehead { padding-block: clamp(2.9rem, 6.5vw, 4.75rem); }
/* engine-turned rosette: the ornament on certificates and share instruments */
.hero::before, .pagehead::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -11%;
  width: min(50rem, 92vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: url('guilloche-rosette.svg') center / contain no-repeat;
  opacity: .34;
  /* fade hard on the left so the ornament never runs under the headline */
  -webkit-mask-image:
    radial-gradient(closest-side, #000 38%, transparent 78%),
    linear-gradient(90deg, transparent 0%, #000 34%);
          mask-image:
    radial-gradient(closest-side, #000 38%, transparent 78%),
    linear-gradient(90deg, transparent 0%, #000 34%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
  pointer-events: none;
}
/* a quieter rosette on inner pages - the home hero stays the loudest note */
.pagehead::before { width: min(34rem, 74vw); right: -7%; opacity: .24; }

/* the braided border of a certificate, at the two structural seams of the
   page: the foot of the ink panel and the head of the footer */
.hero::after, .pagehead::after, .foot::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 14px;
  background: url('guilloche-band.svg') repeat-x center / auto 14px;
  opacity: .5;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.hero::after, .pagehead::after { bottom: 0; }
.foot::before { top: 0; opacity: .38; }
.hero > .wrap, .pagehead > .wrap { position: relative; z-index: 1; }
.hero h1, .pagehead h1 { color: #FFF; text-wrap: balance; }
.hero h1 { max-width: 20ch; }
.pagehead h1 { max-width: 24ch; }
.hero .lede, .pagehead .lede { color: #C3CBDB; max-width: 52ch; margin-top: 1.3rem; }
.hero .eyebrow, .pagehead .eyebrow { color: var(--brass-lift); }

/* ---------- signature: the verification panel ----------
   Drawn in the vernacular of a certificate detail view. A
   chain of trust and a line of succession are the same shape.
   ------------------------------------------------------ */
.cert {
  position: relative;
  overflow: hidden;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 46rem;
  border: 1px solid #33425F;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  box-shadow: var(--lift-ink);
  backdrop-filter: blur(2px);
}
.cert__bar {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem 1.1rem; border-bottom: 1px solid #2C3A57;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: #8E9AB4;
}
.cert__seal { width: 13px; height: 13px; flex: none; color: var(--brass-lift); }
.cert__rows { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(9.5rem, auto) 1fr; }
.cert__k, .cert__v { padding: .72rem 1.1rem; border-top: 1px solid #212E47; font-size: .875rem; }
.cert__rows > .cert__k:first-of-type, .cert__rows > .cert__k:first-of-type + .cert__v { border-top: 0; }
.cert__k { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #7E8AA4; }
.cert__v { color: #E4E8EF; }
.cert__v a { color: var(--brass-lift); text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (max-width: 34rem) {
  .cert__rows { grid-template-columns: 1fr; }
  .cert__k { padding-bottom: 0; border-top: 1px solid #212E47; }
  .cert__v { padding-top: .2rem; border-top: 0; }
  .cert__rows > .cert__k:first-of-type + .cert__v { border-top: 0; }
}

/* ---------- columns ---------- */
.cols { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.cols--two { grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); }
.col {
  position: relative;
  padding: 1.6rem 1.5rem 1.7rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg-raised);
  box-shadow: var(--lift-1);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.col::before {
  content: '';
  position: absolute;
  inset: -1px auto auto -1px;
  width: 2.25rem;
  height: 2px;
  background: var(--accent);
  border-radius: 3px 0 0 0;
}
.col:hover { transform: translateY(-3px); box-shadow: var(--lift-2); border-color: var(--text-muted); }
.col h3 { margin-bottom: .5rem; }
.col p { color: var(--text-muted); font-size: .97rem; margin: 0; }

/* ---------- definition pair (is / is not) ---------- */
.pair {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  background: var(--bg-raised);
  box-shadow: var(--lift-2);
}
.pair--is { background: linear-gradient(180deg, var(--bg-raised), var(--bg)); }
.pair--isnot { box-shadow: var(--lift-1); background: transparent; }
.pair h3 { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.pair ul { margin: 0; padding: 0; list-style: none; }
.pair li { position: relative; padding-left: 1.35rem; margin-bottom: .7rem; font-size: .97rem; color: var(--text-muted); }
.pair li:last-child { margin-bottom: 0; }
.pair li::before { content: ''; position: absolute; left: 0; top: .62em; width: .55rem; height: 1px; background: var(--accent); }

/* ---------- long-form documents ---------- */
/* .doc shares its element with .wrap, whose margin-inline:auto would centre
   the text column against a left-aligned page header. Constrain the children
   instead, so the column starts at the same left edge as everything else. */
.doc { max-width: none; }
.doc--legal { counter-reset: sec; }
.doc > * { max-width: var(--measure); }

/* Legal documents are cited by section number, so the numbering carries real
   information rather than decorating the page. */
.doc h2 {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  scroll-margin-top: 1.5rem;
}
.doc--legal > h2 { counter-increment: sec; }
.doc--legal > h2::before {
  content: counter(sec);
  flex: none;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 500;
  color: var(--accent);
  transform: translateY(-.15em);
}
.doc h2 .anchor {
  font-family: var(--mono);
  font-size: .8em;
  text-decoration: none;
  color: var(--accent);
  opacity: 0;
  transition: opacity .15s;
}
.doc h2:hover .anchor, .doc h2 .anchor:focus-visible { opacity: .8; }

/* ---------- contact form sits on a surface, like the certificate panel ---------- */
.formcard {
  max-width: 38rem;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg-raised);
  box-shadow: var(--lift-2);
}
.doc h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-top: 2.6rem; margin-bottom: .8rem; }
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { font-size: 1.02rem; margin-top: 1.7rem; margin-bottom: .45rem; }
.doc ul, .doc ol { padding-left: 1.15rem; margin: 0 0 1.15em; }
.doc li { margin-bottom: .5rem; }
.doc__meta { font-family: var(--mono); font-size: .78rem; color: var(--text-muted); border-left: 2px solid var(--accent); padding-left: .9rem; margin-bottom: 2.5rem; }
.doc code { font-family: var(--mono); font-size: .88em; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: .1em .35em; }

/* contents index - lets a reviewer jump straight to the messaging section */
.toc {
  counter-reset: toc;
  margin: 0 0 2.75rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 3px;
  background: var(--bg-raised);
  box-shadow: var(--lift-1);
  max-width: var(--measure);
}
.doc .toc h2, .toc h2 {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .8rem;
  counter-increment: none;
  display: block;
}
.doc .toc h2::before, .toc h2::before { content: none; }
.toc ol { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 2rem; }
.toc li { counter-increment: toc; margin-bottom: .42rem; break-inside: avoid; font-size: .9rem; }
.toc li::before {
  content: counter(toc) '.';
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--text-muted);
  margin-right: .45rem;
}
.toc a { color: var(--text-muted); text-decoration: none; border-bottom: 1px solid transparent; }
.toc a:hover { color: var(--text); border-bottom-color: var(--accent); }
@media (max-width: 34rem) { .toc ol { columns: 1; } }


/* ---------- forms ---------- */
.form { max-width: 36rem; }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .04em; margin-bottom: .4rem; }
.field .hint { font-size: .82rem; color: var(--text-muted); margin: .35rem 0 0; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .7rem .85rem; transition: border-color .18s;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.req { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: inherit; font-size: .95rem; font-weight: 500;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  border-radius: var(--radius); padding: .72rem 1.5rem; cursor: pointer;
  text-decoration: none; transition: background .18s, color .18s;
}
.btn { box-shadow: var(--lift-1); transition: background .18s, color .18s, transform .18s, box-shadow .18s; }
.btn:hover { background: transparent; color: var(--text); transform: translateY(-2px); box-shadow: var(--lift-2); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
@media (prefers-color-scheme: dark) {
  .btn { background: var(--brass-lift); border-color: var(--brass-lift); color: var(--ink-deep); }
  .btn:hover { background: transparent; color: var(--brass-lift); }
}

.notice { border-radius: var(--radius); padding: .9rem 1.1rem; font-size: .93rem; margin-bottom: 1.5rem; border: 1px solid var(--border); background: var(--bg-raised); }
.notice--ok   { border-color: var(--accent); }
.notice--bad  { border-color: #B4462F; }
[hidden] { display: none !important; }

/* ---------- footer ---------- */
.foot { position: relative; background: var(--ink); color: #9AA6BE; padding-block: clamp(3.2rem, 6vw, 4.6rem) clamp(2rem, 4vw, 2.75rem); font-size: .9rem; }
.foot__grid { display: grid; gap: 2.5rem 3rem; grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr) minmax(0, 1.3fr); align-items: start; }
@media (max-width: 48rem) { .foot__grid { grid-template-columns: 1fr; gap: 2rem; } }
.foot__tag { margin: .9rem 0 0; font-family: var(--serif); font-style: italic; font-size: 1.02rem; line-height: 1.5; color: #AFB8CA; max-width: 30ch; }
.foot__h { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--brass-lift); margin: 0 0 .9rem; }
.foot__note { margin: 0; font-size: .9rem; line-height: 1.65; color: #9AA6BE; max-width: 34ch; }
.foot a { color: #C6CEDD; text-decoration: none; border-bottom: 1px solid transparent; }
.foot a:hover { border-bottom-color: var(--brass-lift); }
.foot__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.foot__links a { font-size: .93rem; }
.foot__legal { margin-top: 2.75rem; padding-top: 1.4rem; border-top: 1px solid #26314A; font-size: .82rem; color: #96A3BC; max-width: 60ch; }
.foot__brand { display: flex; align-items: center; gap: .6rem; color: #E4E8EF; font-family: var(--serif); font-size: .98rem; font-weight: 600; }
.foot__brand svg { width: 24px; height: 24px; color: var(--brass-lift); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--bg); color: var(--text); padding: .7rem 1rem; border: 1px solid var(--accent); border-radius: var(--radius); }

/* ---------- utilities ---------- */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 1.4rem; }
.mt-3 { margin-top: 1.8rem; }
.mt-4 { margin-top: 2.5rem; }
.mt-5 { margin-top: 3rem; }
.muted { color: var(--text-muted); }

/* consent checkbox: box and its explanatory label sit side by side */
/* Consent: a short clickable label, with the fine print outside it so the
   Privacy/Terms links do not toggle the checkbox. .field label is (0,1,1),
   so these selectors are written to out-specify it. */
.consent { display: flex; gap: .75rem; align-items: flex-start; }
.field .consent input[type='checkbox'] { width: 1.1rem; height: 1.1rem; margin: .28rem 0 0; flex: none; accent-color: var(--accent); cursor: pointer; }
.field .consent label { font-size: .95rem; font-weight: 400; line-height: 1.6; letter-spacing: 0; margin-bottom: 0; cursor: pointer; }
.field .consent__terms { margin-top: .7rem; padding-left: 1.85rem; line-height: 1.65; }
.field .consent__terms strong { color: var(--text); font-weight: 600; }
.optional { font-weight: 400; color: var(--text-muted); }


/* ---------- scroll reveal ----------
   Opt-in via .js-reveal on <html>, so with JS off nothing is ever hidden. */
.js-reveal .reveal { opacity: 0; transform: translateY(14px); }
.js-reveal .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; }
}


/* ---------- cross-document view transitions (progressive) ----------
   The masthead holds still while the page beneath it crossfades. */
@view-transition { navigation: auto; }
.masthead { view-transition-name: masthead; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- contact: form beside what the Trust can confirm ---------- */
.contact-grid { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 38rem) minmax(16rem, 22rem); align-items: start; }
@media (max-width: 62rem) { .contact-grid { grid-template-columns: minmax(0, 38rem); } }
.aside { position: sticky; top: 1.5rem; padding: .2rem 0 .2rem 1.5rem; border-left: 2px solid var(--accent); }
.aside h2 { font-size: 1.15rem; margin: 0 0 .8rem; }
.aside h3 { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 1.5rem 0 .6rem; }
.aside p, .aside li { font-size: .93rem; color: var(--text-muted); }
.aside ul { margin: 0; padding: 0; list-style: none; }
.aside li { position: relative; padding-left: 1.2rem; margin-bottom: .55rem; }
.aside li::before { content: ''; position: absolute; left: 0; top: .7em; width: .5rem; height: 1px; background: var(--accent); }
.aside strong { white-space: nowrap; color: var(--text); }

/* ---------- about: definitions, ledger, categories, pull quote ---------- */
.defs { margin: 1.4rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); }
.defs > div { padding: 1.1rem 1.2rem 1.2rem; border: 1px solid var(--border); border-radius: 3px; background: var(--bg-raised); box-shadow: var(--lift-1); }
.defs dt { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; margin: 0 0 .35rem; }
.defs dd { margin: 0; font-size: .95rem; color: var(--text-muted); }

.pull { margin: 2.2rem 0; padding: .3rem 0 .3rem 1.5rem; border-left: 2px solid var(--accent); font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.42; color: var(--text); max-width: 32ch; }
.pull p { margin: 0; }

.ledger { margin: 1.6rem 0; border: 1px solid var(--border); border-radius: 3px; background: var(--bg-raised); box-shadow: var(--lift-2); overflow: hidden; }
.ledger__h { display: flex; align-items: center; gap: .6rem; padding: .7rem 1.1rem; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.ledger__h svg { width: 13px; height: 13px; flex: none; }
.ledger ul { margin: 0; padding: 0; list-style: none; }
.ledger li { display: flex; align-items: center; gap: .9rem; padding: .7rem 1.1rem; border-top: 1px solid var(--border); font-size: .95rem; }
.ledger li:first-child { border-top: 0; }
.ledger li::before { content: ''; flex: none; width: .55rem; height: 1px; background: var(--accent); }

.cats { margin: 1.2rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .55rem; }
.cats li { font-size: .88rem; padding: .42rem .8rem; border: 1px solid var(--border); border-radius: 2px; background: var(--bg-raised); color: var(--text); box-shadow: var(--lift-1); margin: 0; }
.caveat { font-family: var(--serif); font-style: italic; font-size: .98rem; color: var(--text-muted); }

.links-row { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.5rem; }
.links-row a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- print ----------
   Policies get printed by reviewers. Strip the chrome, keep the provenance. */
.printnote { display: none; }
@media print {
  @page { margin: 2cm; }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.5; }
  .skip, .nav, .foot__grid, .btn, .toc, .anchor, .cf-turnstile, #contact-form, .aside,
  .hero::before, .pagehead::before, .hero::after, .pagehead::after, .foot::before { display: none; }
  .masthead { border-bottom: 1px solid #000; background: none; }
  .brand__name { color: #000; }
  .hero, .pagehead { background: none; color: #000; padding: 1.2rem 0 0; box-shadow: none; }
  .hero h1, .pagehead h1, .hero .lede, .pagehead .lede, .hero .eyebrow, .pagehead .eyebrow { color: #000; }
  .section, .section--raised { padding-block: 1rem; background: none; box-shadow: none; }
  .doc a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
  .js-reveal .reveal { opacity: 1; transform: none; }
  .doc__meta, .pull { border-color: #000; color: #000; }
  .doc code { border: 0; background: none; padding: 0; }
  .defs > div, .ledger, .cats li { box-shadow: none; background: none; border-color: #000; }
  .printnote { display: block; font-family: var(--mono); font-size: 9pt; margin: 2rem 0 0; color: #000; }
  .foot { background: none; color: #000; padding: 1rem 0 0; }
  .foot__legal { color: #000; border-top: 1px solid #000; max-width: none; }
}
