/* ============================================================================
   Design system — "working paper"
   (The practice name lives only in src/content/site.js — do not put it here.)

   ⚠️ THIS SITE DELIBERATELY DOES NOT FOLLOW the "what makes a site look 2026"
   recipe in PLAYBOOK.md, and the departure is the point. Three sites in this
   folder implemented that recipe and became indistinguishable from each other:
   the same Playfair Display / DM Sans pairing, the same warm off-white ground,
   the same white cards. This file used to say "tokens adapted from
   thelocalcard" and 21 of its 31 tokens were byte-identical to that project's.

   KEPT from the playbook:   self-hosted fonts, one accent colour, entry motion,
                             dark mode, fluid type, hairline separation.
   REJECTED on purpose:      display serif, white cards, large radii, layered
                             depth, generous banding, the serif-italic eyebrow.

   The brief instead: a statistical working paper. A text serif for everything,
   a monospace for labels, dates and captions, rules rather than boxes, and a
   denser vertical rhythm than a marketing site would use.

   TWO COLOURS, and they do different jobs. Oxblood #7A2E2E is the accent —
   links, buttons, figure lines — a printed-report colour, and unlike the teal
   it replaced it is not within 18° of hue of a sibling project's green. Brown
   #6F6151 is the brand: the header and footer grounds, the 2px rules that
   bracket them, and every hairline in between. The page itself is a warm cream
   rather than the near-neutral off-white the other projects share.

   ⚠️ The brown is a GROUND and a RULE colour, never a text colour. See the note
   on --muted before using it for anything small.

   Do not restore Playfair Display or DM Sans. Do not reintroduce cards.
   ========================================================================= */

/* ---- 1. Fonts. Self-hosted: no third-party request, no consent question. ----
   Both families are SIL Open Font License 1.1 — see public/fonts/OFL.txt.

   ⚠️ Source Serif 4 is VARIABLE (wght 200-900), IBM Plex Mono is NOT. There is
   no variable cut of IBM Plex Mono anywhere — the Google css2 API returns 400
   for it, the fontsource variable package does not exist, and both the IBM npm
   package and google/fonts ship static files only. So the mono is two static
   weights, and its descriptor must be format('woff2'). Copying
   format('woff2-variations') down from the serif blocks makes some engines
   discard the whole @font-face, and the symptom — small uppercase letterspaced
   Courier — looks almost deliberate.                                     ---- */

@font-face {
  font-family: 'Source Serif 4';
  src: url('/fonts/SourceSerif4-normal.woff2') format('woff2-variations');
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('/fonts/SourceSerif4-italic.woff2') format('woff2-variations');
  font-weight: 200 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/IBMPlexMono-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/IBMPlexMono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---- 2. Tokens ---------------------------------------------------------- */

:root {
  /* Four grounds, warming as they recede: page, tinted band, header, footer.
     The header and footer carry a wash of the brand brown, which is what makes the
     brown read as an identity rather than as a grey. */
  --paper:      #FDFBF6;
  --paper-deep: #F5EFE4;
  --paper-head: #F7F1E7;
  --paper-foot: #EFE7DA;

  --ink:        #211C16;
  --body:       #3C352C;
  /* --muted carries the nav, every mono label, every date, every figure caption and
     every section ordinal, so it is bound by WCAG AA, not by taste. Measured:
     #5F5548 gives 7.05:1 on the page and 5.94:1 on the footer, its darkest ground;
     #A39887 gives 6.28:1 in dark mode. Two earlier values failed this check on this
     project (#767D87 at 3.94:1, and #6F6151 below at 4.88:1 on the footer). Do not
     lighten it, and do not "simplify" it to the brand brown. */
  --muted:      #5F5548;
  --accent:     #7A2E2E;
  --accent-ink: #FFFFFF;
  --accent-tint:#F4EBE7;

  /* ⚠️ The brand brown. Rules, grounds and section ordinals ONLY — never body or
     small text. As text on --paper-foot it measures 4.88:1, which passes AA with
     almost no headroom; --muted above is its darker relative and does that job. */
  --brown:      #6F6151;

  /* Three weights of rule, because rules do the work cards used to do, and they are
     brown-tinted rather than neutral. --rule-strong is the only one that carries
     meaning (figure axes, section dividers) and the only one held to 3:1 non-text:
     it composites to #8E8375, 3.59:1 on the page and 3.25:1 on the tinted band. */
  --rule-hair:   rgba(111, 97, 81, 0.22);
  --rule:        rgba(111, 97, 81, 0.34);
  --rule-strong: rgba(111, 97, 81, 0.78);
  --fig-fill:    rgba(122, 46, 46, 0.65);

  --shadow-pop: 0 6px 18px rgba(33, 28, 22, 0.12);

  --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  /* There is no --sans. This site has no sans-serif. */

  --t-2xs:  0.6875rem;
  --t-xs:   0.75rem;
  --t-sm:   0.875rem;
  --t-base: 1.0625rem;
  --t-lg:   clamp(1.125rem, 1.05rem + 0.32vw, 1.25rem);
  --t-xl:   clamp(1.25rem,  1.10rem + 0.65vw, 1.5rem);
  --t-2xl:  clamp(1.5rem,   1.28rem + 0.95vw, 2rem);
  --t-3xl:  clamp(1.875rem, 1.50rem + 1.60vw, 2.75rem);

  --radius: 2px;

  --gutter: clamp(20px, 5vw, 40px);
  --band:   clamp(52px, 6vw, 88px);
  --wide:   1100px;
  /* --narrow is the TEXT column, not the container. `.wrap.narrow` adds the gutter back
     on top, or the padding eats the measure — that is how this ended up at 49 characters
     per line. Source Serif 4 is wider per character than the sans it replaced, so this
     number is not transferable from the old design. Measured: 38rem gives 66. */
  --narrow: 38rem;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Warm brown-black rather than the near-neutral graphite this replaced. Header
       and footer share the band ground here — a lighter header on a dark page reads
       as a bar, which is the opposite of the light version's effect. */
    --paper:      #1B1712;
    --paper-deep: #241F19;
    --paper-head: #1B1712;
    --paper-foot: #241F19;

    --ink:        #F3EEE4;
    --body:       #CFC7B9;
    --muted:      #A39887;
    --accent:     #E09B90;
    --accent-ink: #1B1712;
    --accent-tint:#332720;

    --brown:      #A8937A;

    --rule-hair:   rgba(243, 238, 228, 0.14);
    --rule:        rgba(243, 238, 228, 0.26);
    --rule-strong: rgba(243, 238, 228, 0.42);
    --fig-fill:    rgba(224, 155, 144, 0.60);

    --shadow-pop: 0 6px 18px rgba(0, 0, 0, 0.55);
  }
}

/* ---- 3. Base ------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--serif);
  font-size: var(--t-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* A text serif is not a display serif. Source Serif 4 at 700 with -0.015em tracking
   reads as a magazine headline; at 600 with almost no negative tracking and a looser
   line-height it reads as a paper, which is the brief. */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
  overflow-wrap: break-word;  /* a long word must never overflow the viewport */
}
h1 { font-size: var(--t-3xl); line-height: 1.12; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-xl); line-height: 1.25; }
h4 { font-size: var(--t-lg); line-height: 1.3; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

strong { color: var(--ink); font-weight: 600; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: 0.45em; }

::selection { background: var(--accent-tint); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- 4. Layout ---------------------------------------------------------- */

.wrap   { max-width: var(--wide);   margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--narrow); }        /* the reading measure — 66 characters */
/* A .wrap that is also .narrow has the gutter inside it, so add it back. */
.wrap.narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }

/* The reading measure is a rule for prose, not for headlines. The hero gets its own
   wider column; the prose inside it stays at the measure. */
.hero { max-width: 44rem; }
.hero .lede, .hero p:not(.eyebrow) { max-width: var(--narrow); }

.band       { padding-block: var(--band); }
.band-tight { padding-block: calc(var(--band) * 0.62); }
.band-deep  { background: var(--paper-deep); }

/* Two consecutive bands on the same background stack their padding, which reads as a
   gap rather than as deliberate space. Where the tint does not change, collapse it. */
.band + .band-tight:not(.band-deep) { padding-top: 0; }

/* ---- 4b. Mono furniture --------------------------------------------------
   Every small label on this site is the same object: monospace, uppercase,
   tracked, muted. One rule rather than the six near-duplicates this replaced.
   The eyebrow used to be italic display serif at --t-lg, which was the single
   most manifesto-shaped element on the page.                            ---- */

.eyebrow, .label, .meta, .case-meta, .tags, .clients-head, .foot-head {
  display: block;      /* some of these are spans inside a link, not paragraphs */
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin: 0 0 0.6rem;
}
/* A date in uppercase tracked mono is unreadable. Dates keep the family, lose the case. */
.entry .meta, .meta-date {
  text-transform: none; letter-spacing: 0.02em;
}

.lede { font-size: var(--t-lg); color: var(--body); }

/* ---- 5. Masthead -------------------------------------------------------- */

/* The header and footer carry the brand brown as a 2px rule, which is the one place
   #6F6151 appears at full strength. Everything else uses it diluted. */
.masthead { border-bottom: 2px solid var(--brown); background: var(--paper-head); }
.masthead .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 0.4rem 1.6rem; padding-block: 1.05rem;
}
.brand {
  font-family: var(--serif); font-weight: 600; font-size: var(--t-lg);
  color: var(--ink); text-decoration: none; margin-right: auto;
  letter-spacing: -0.005em;
}
.brand:hover { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.nav a {
  font-family: var(--mono); font-size: var(--t-xs); font-weight: 400;
  letter-spacing: 0.06em; color: var(--muted); text-decoration: none;
  padding-bottom: 3px; border-bottom: 1.5px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---- 6. Components ------------------------------------------------------ */

/* ⚠️ There is no .card on this site and there must not be one. A white box with a
   24px radius and a shadow is the house style three sibling projects share; the
   whole point of this design is that a document separates its parts with rules,
   not with boxes. .item is the replacement everywhere .card used to be. */

.item {
  border-top: 1px solid var(--rule);
  padding: 0.9rem 0 1.3rem;
}
.item-link {
  display: flex; flex-direction: column; text-decoration: none; color: var(--body);
}
.item-link h3 { color: var(--ink); }
.item-link:hover h3 {
  color: var(--accent); text-decoration: underline; text-underline-offset: 3px;
}

/* A list of entries rather than a grid of them. Five items in a three-column grid leave a
   ragged empty cell; a report lists them one per line with the name on the left and the
   description beside it. Used for the service list and the case-study ledger. */
.rows { display: block; }
.rows .item { display: grid; gap: 0.15rem 2.5rem; }
@media (min-width: 56rem) {
  .rows .item { grid-template-columns: 20rem 1fr; align-items: start; }
}
.row-head h3 { margin-bottom: 0; }
.row-head .meta { margin-bottom: 0.35rem; }
.row-body { max-width: var(--narrow); }

/* The one boxed component left, and it is boxed because it is genuinely an aside:
   the personal-capacity disclaimer on /about. A rule on the left, nothing else. */
.aside {
  border-left: 2px solid var(--accent);
  padding-left: clamp(0.9rem, 2.5vw, 1.4rem);
  font-size: var(--t-sm);
  margin: 1.4rem 0;
}
.aside h3 { font-size: var(--t-base); margin-bottom: 0.35em; }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
@media (min-width: 46rem) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* One per line on a phone. Inline with separators, the middle dot leads the wrapped line
   and reads as a bullet that belongs to the wrong name. */
.names {
  display: flex; flex-direction: column; gap: 0.3rem;
  font-family: var(--serif); font-size: var(--t-base); color: var(--ink);
  margin: 0; padding: 0; list-style: none;
}
.names li { margin: 0; }
@media (min-width: 40rem) {
  .names { flex-direction: row; flex-wrap: wrap; gap: 0.5rem 0; }
  .names li + li::before {
    content: '·'; color: var(--muted); margin: 0 0.85rem; font-family: var(--mono);
  }
}

.btn {
  display: inline-block;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.7rem 1.4rem; border-radius: var(--radius);
  text-decoration: none;
  font-family: var(--mono); font-size: var(--t-xs); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--accent);
}
.btn:hover { color: var(--accent-ink); background: var(--ink); border-color: var(--ink); }

.placeholder {
  display: block; background: var(--accent-tint); border: 1px dashed var(--accent);
  color: var(--ink); padding: 0.8rem 1rem; margin: 0.9rem 0;
  border-radius: var(--radius); font-size: var(--t-sm);
}

/* ---- 7. Footer ---------------------------------------------------------- */

.foot {
  border-top: 2px solid var(--brown); background: var(--paper-foot);
  padding-block: calc(var(--band) * 0.5);
  font-size: var(--t-sm); color: var(--muted);
}
.foot a { color: var(--body); }
.foot .cols { display: grid; gap: 1.5rem; }
@media (min-width: 46rem) { .foot .cols { grid-template-columns: 2fr 1fr; } }

/* ---- 8. Entry motion ----------------------------------------------------
   Motion on entry, never on hover — mechanic 5.

   ⚠️ THE SAFE STATE IS THE DEFAULT. Everything below is visible unless BOTH
   (a) the visitor has not asked for reduced motion, and (b) JavaScript ran and
   set html.js. So a JS failure, a blocked script or a reduced-motion preference
   all land on "fully visible" rather than on a permanently blank page — which
   is the failure mode you cannot see on your own machine.               ---- */

.reveal { opacity: 1; transform: none; }

/* ⚠️ THE POSITION OF THE LINE BELOW IS ASSERTED BY A TEST. The test slices this file
   at the index of the `no-preference` marker and fails if any `opacity: 0` appears
   before it. The only other `opacity: 0` in the file is the nav dropdown, which sits
   further down — that is the only reason the test passes. Moving this block up the
   file, or adding an `opacity: 0` above it, leaves every section permanently
   invisible to a reduced-motion visitor, which you will not see on your own machine. */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  }
  html.js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---- 9. Navigation: dropdown, hover-capable pointers only ----------------
   No JavaScript, so it cannot break. On touch and at narrow widths the menu is
   not shown at all and the parent link goes to the hub page instead — which is
   why every dropdown parent is itself a real page.                       ---- */

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--accent);
  color: var(--accent-ink); padding: 0.6rem 1rem; z-index: 20;
}
.skip:focus { left: 0; }

.nav-group { position: relative; display: inline-flex; }
.nav-menu { display: none; }

@media (hover: hover) and (min-width: 46rem) {
  .nav-menu {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: -0.9rem;
    min-width: 16rem; padding: 0.5rem 0; margin-top: 0.5rem;
    background: var(--paper-head); border: 1px solid var(--brown);
    border-radius: var(--radius); box-shadow: var(--shadow-pop);
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity 0.14s var(--ease), transform 0.14s var(--ease), visibility 0.14s;
    z-index: 15;
  }
  .nav-group:hover .nav-menu,
  .nav-group:focus-within .nav-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-menu a {
    padding: 0.4rem 1.1rem; border-bottom: 0; color: var(--body);
    font-family: var(--serif); font-size: var(--t-sm);
    letter-spacing: 0; text-transform: none;
  }
  .nav-menu a:hover { color: var(--accent); background: var(--paper-deep); }
}

/* ---- 10. Layout helpers -------------------------------------------------- */

.center { text-align: center; }
.narrow-center { max-width: var(--narrow); margin-inline: auto; }
.hero-band { padding-bottom: calc(var(--band) * 0.7); }

.grid-2, .grid-3 { display: grid; gap: clamp(1rem, 2.4vw, 1.75rem); }
@media (min-width: 40rem) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 56rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 52rem) { .split { grid-template-columns: 1.05fr 0.95fr; } }
.split-text { max-width: var(--narrow); }

/* A service page is four or five paragraphs with one figure beside them, so an even split
   starves the prose — measured at 55 characters per line against a 62-72 target. The
   figure needs far less room than the text does. Verify by counting characters, not by
   looking: the page looks fine at 55. */
@media (min-width: 52rem) { .split-prose { grid-template-columns: 1.7fr 1fr; align-items: start; } }
.split-prose .split-fig { position: sticky; top: 2rem; }

/* ---- 11. Lists, sections, offers ------------------------------------------ */

.more {
  margin-top: auto; padding-top: 0.7rem; color: var(--accent);
  font-family: var(--mono); font-size: var(--t-xs); font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
}
/* ⚠️ Leave this escape exactly as it is. A `content: ' \\2192'` written from a JS
   tool once shipped a literal \2192 onto the page — verify by rendering, not reading. */
.more::after { content: ' \2192'; }

/* Numbered sections, from a CSS counter — no number is ever typed into copy.
   decimal-leading-zero needs no escape, and generated content stays out of the
   HTML string, so the numeric-outcome sweep in the tests cannot trip over a
   section number. Above 60rem the ordinal moves into the left margin. */
.numbered { counter-reset: sec; }
.numbered > h2 {
  counter-increment: sec;
  border-top: 1px solid var(--rule-strong);
  padding-top: 0.9rem;
  margin-top: 2.8rem;
}
.numbered > h2:first-child { margin-top: 0; }
.numbered > h2::before {
  content: counter(sec, decimal-leading-zero);
  display: block;
  font-family: var(--mono); font-size: var(--t-2xs); font-weight: 500;
  letter-spacing: 0.12em; color: var(--muted);
  margin-bottom: 0.45rem;
}
@media (min-width: 64rem) {
  .numbered > h2 { position: relative; }
  .numbered > h2::before { position: absolute; left: -4rem; top: 0.9rem; margin: 0; }
}


.offers { margin: 0; }
.offers dt {
  font-family: var(--serif); font-weight: 600; color: var(--ink);
  font-size: var(--t-lg); margin-top: 1.3rem;
  padding-top: 0.9rem; border-top: 1px solid var(--rule-hair);
}
.offers dt:first-child { margin-top: 0; }
.offers dd { margin: 0.2rem 0 0; color: var(--body); }

/* A method inventory: mono, one per line, rule-separated. Reads as a list of
   named techniques rather than as a set of claims. */
.inventory { list-style: none; margin: 1.1rem 0 0; padding: 0; }
.inventory li {
  font-family: var(--mono); font-size: var(--t-sm); color: var(--body);
  padding: 0.5rem 0; border-top: 1px solid var(--rule-hair); margin: 0;
}

.case-body h2 { font-size: var(--t-xl); margin-top: 2.2rem; }
.tags { margin-top: 2rem; }

.entry { padding: 1.4rem 0; border-top: 1px solid var(--rule); }
.entry h2 { font-size: var(--t-xl); margin-bottom: 0.3em; }
.entry h2 a { color: var(--ink); text-decoration: none; }
.entry h2 a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.prose h2 { font-size: var(--t-xl); margin-top: 2.2rem; }
.prose { font-size: var(--t-base); }

.btn-quiet {
  background: transparent; color: var(--accent);
  border-color: var(--rule-strong); margin-left: 0.4rem;
}
.btn-quiet:hover { background: var(--accent-tint); color: var(--accent); border-color: var(--accent); }

.band-cta { background: var(--paper-deep); border-top: 1px solid var(--rule-strong); }
.band-cta h2 { font-size: var(--t-xl); }

/* ---- 12. Figures ---------------------------------------------------------
   Illustrative diagrams. They inherit the palette through custom properties, so
   they follow dark mode without a second set of colours.                 ---- */

.fig { margin: 0; }
.fig-svg {
  width: 100%; height: auto; display: block;
  padding: 0.4rem 0;
}
.fig figcaption {
  margin-top: 0.6rem; padding-top: 0.5rem; border-top: 1px solid var(--rule-hair);
  font-family: var(--mono); font-size: var(--t-xs); color: var(--muted); line-height: 1.5;
}
.fig-tag {
  display: inline-block; margin-right: 0.5rem;
  letter-spacing: 0.10em; text-transform: uppercase; color: var(--accent);
}

.fig-axis      { stroke: var(--rule-strong); stroke-width: 1.5; }
.fig-guide     { stroke: var(--rule-strong); stroke-width: 1.5; stroke-dasharray: 4 4; }
.fig-line      { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.fig-line-key  { stroke: var(--accent); }
.fig-line-muted{ stroke: var(--muted); stroke-dasharray: 6 5; }
.fig-line-thin { stroke: var(--fig-fill); stroke-width: 1.75; }
.fig-dot       { fill: var(--accent); }
.fig-dot-key   { fill: var(--ink); }
.fig-dot-sm    { fill: var(--accent); opacity: 0.75; }
.fig-ci        { stroke: var(--muted); stroke-width: 2.5; stroke-linecap: round; }
.fig-ci-key    { stroke: var(--ink); }
/* Flat token rather than accent-at-28%-opacity: the old bars measured about 1.65:1
   against the paper, which is below the 3:1 floor for a graphic that carries meaning.
   --fig-fill is 3.30:1 light and 3.39:1 dark. Do not put the opacity back. */
.fig-bar       { fill: var(--fig-fill); }
.fig-bar-key   { fill: var(--accent); }
.fig-box-outer { fill: none; stroke: var(--rule-strong); stroke-width: 1.5; }
.fig-box-inner { fill: var(--accent-tint); }

.fig-svg text { font-family: var(--mono); fill: var(--muted); font-variant-numeric: tabular-nums; }
.fig-label       { font-size: 11px; }
.fig-label-muted { fill: var(--muted); }
.fig-bar-label   { font-size: 11px; fill: var(--ink); }
.fig-anchor-end  { text-anchor: end; }
.fig-axis-title  { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---- 13. Footer sitemap -------------------------------------------------- */

.foot-cols { display: grid; gap: 2rem; }
@media (min-width: 46rem) { .foot-cols { grid-template-columns: 1.5fr 1fr 1fr; } }
.foot-brand { font-family: var(--serif); font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.foot-head { color: var(--ink); }
.foot-cols a { display: block; padding: 0.16rem 0; color: var(--body); text-decoration: none; }
.foot-cols a:hover { color: var(--accent); text-decoration: underline; }
.foot-about a { display: inline; }
.foot-note { color: var(--muted); }
.foot-legal {
  margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--rule-hair);
  font-family: var(--mono); font-size: var(--t-xs); line-height: 1.6; color: var(--muted);
}
