/*
  michaelcbond.com · v2 system (Do, 2026-10-06)
  Idea: the page is a performance report. Numbers are the brand.
  - One family: Archivo (OFL), one variable woff2, wght 400–800, wdth 72–100.
    Normal width for reading; condensed width for figures and the email.
  - Color means data, and only where data is drawn to scale: --signal fills a
    result bar, --base fills its baseline bar. No highlights on type (pass 4).
  - Neutrals are tinted toward the signal hue (OKLCH h≈118–128), not pure grey.
  - No JS. No motion. 12-column grid, two content widths: full and text.
*/

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 72% 100%;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallback so the swap doesn't shift layout. */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 101%;
  ascent-override: 87%;
  descent-override: 21%;
  line-gap-override: 0%;
}

:root {
  --field:  #fcfdfa;  /* oklch(.992 .004 118) */
  --ink:    #14190f;  /* oklch(.205 .020 128)  17.5:1 on field */
  --ink-2:  #454a40;  /* 8.9:1 on field (pass 4: raised from #50554a, 7.5:1) */
  --rule:   #d3d5cd;  /* oklch(.87 .012 118)   hairlines only */
  --base:   #85887b;  /* oklch(.62 .020 118)   baseline bars, 3.5:1 on field */
  --signal: #d7f144;  /* oklch(.91 .190 118)   result-bar fill only (pass 4) */
  --on-ink:   #fcfdfa;
  --on-ink-2: #c5c9bc; /* 10.6:1 on ink (pass 4: raised from #b7bcae) */

  --font: "Archivo", "Archivo Fallback", "Helvetica Neue", Arial, sans-serif;

  --wrap: 76rem;
  --gutter: clamp(1rem, 4.5vw, 3rem);
  --gap: clamp(1rem, 2vw, 1.5rem);

  /* three vertical steps */
  --s: clamp(1.75rem, 4vw, 2.5rem);
  --m: clamp(3rem, 6.5vw, 4.5rem);
  --l: clamp(3.5rem, 9vw, 6.5rem);

  /* type scale */
  --t-sm: 0.875rem;   /* 14 */
  --t-body: 1.0625rem;/* 17 */
  --t-lead: clamp(1.25rem, 2.2vw, 1.5rem);
  --t-h2: clamp(1.75rem, 3.2vw, 2.25rem);
  --t-h1: clamp(2.25rem, 4.2vw, 3rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--field);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.55;
  font-kerning: normal;
  font-variant-numeric: lining-nums;
}

h1, h2, h3 { text-wrap: balance; margin: 0; }
p, li, dd, figcaption { text-wrap: pretty; }
p { margin: 0; }

/* every number and date is tabular + lining */
.num, time, .fig, .proof-figure, .ledger td, .when, .row-value {
  font-variant-numeric: tabular-nums lining-nums;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -5rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 0.5rem; }

/* ---------- grid ---------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}
.grid > * { grid-column: 1 / -1; }
/* text width = 7 of 12 columns; used by every reading block */
.lead, .prose, .deck { max-width: 40rem; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--rule); }
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 3.75rem;
}
.mark, .wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 800;
  font-stretch: 80%;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.wordmark { font-stretch: 100%; letter-spacing: 0; font-size: 1rem; }
.mark[aria-current="page"], .wordmark[aria-current="page"] { text-decoration: none; }
.crumb {
  white-space: nowrap;
  color: var(--ink-2);
  font-size: 1rem;
  margin-left: 0.5rem;
}
.crumb::before { content: "/ "; color: var(--rule); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0 clamp(0.125rem, 1.6vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 clamp(0.3rem, 1vw, 0.5rem);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.site-nav a.nav-action {
  padding: 0 0.875rem;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 700;
}
.site-nav a.nav-action:hover { text-decoration: underline; text-decoration-thickness: 1px; }

/* visible current state, no JS: the section in the URL hash is marked */
.home:has(#results:target) .site-nav a[href="#results"],
.home:has(#work:target)    .site-nav a[href="#work"],
.home:has(#about:target)   .site-nav a[href="#about"],
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}
.home:has(#contact:target) .site-nav a.nav-action { outline: 2px solid var(--ink); outline-offset: 2px; }

section[id] { scroll-margin-top: 1rem; }

/* ---------- section heads ---------- */
.section-head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
h2 {
  font-size: var(--t-h2);
  font-weight: 750;
  font-stretch: 88%;
  line-height: 1.05;
  letter-spacing: -0.012em;
}
.deck {
  margin-top: 0.5rem;
  color: var(--ink-2);
  font-size: var(--t-body);
}

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 5.5vw, 4.5rem) 0 var(--m); }
@media (max-width: 37.99rem) { .hero { padding-top: 2.5rem; } .hero .grid { row-gap: 2.75rem; } }
.hero .grid { row-gap: var(--m); align-items: start; }
.hero h1 {
  text-box: trim-start cap alphabetic; /* cap height sits on the proof's top rule */
  font-size: var(--t-h1);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: 0;
}
.claim {
  margin-top: 0.75rem;
  max-width: 22ch;
  font-size: var(--t-lead);
  line-height: 1.3;
  font-weight: 400;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: var(--t-body);
}
.facts li + li::before { content: "·"; margin: 0 0.5em; color: var(--ink-2); }
.facts .open { color: var(--ink); font-weight: 600; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 1.75rem;
  padding: 0 1.375rem;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0;
}
.button:hover { text-decoration: underline; text-decoration-thickness: 1px; }

/* proof object: the one lead metric, set as a typographic figure + a to-scale comparison */
.proof { margin: 0; }
.proof-label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--ink);
  font-weight: 700;
}
.proof-label .where { font-weight: 400; color: var(--ink-2); }
.proof-figure {
  margin-top: 0.25rem;
  font-size: clamp(5rem, 14vw, 9.5rem);
  font-weight: 800;
  font-stretch: 74%;
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.compare {
  display: grid;
  gap: 0.625rem;
  margin-top: 1.25rem;
}
.compare .row {
  display: grid;
  grid-template-columns: 9.5rem 1fr 5.5rem;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--t-sm);
}
.row-label { color: var(--ink-2); }
.result .row-label { color: var(--ink); font-weight: 700; }
.row-value { text-align: right; font-weight: 700; }
.baseline .row-value { font-weight: 400; color: var(--ink-2); }
.track { display: block; height: 1.25rem; }
.bar { display: block; height: 100%; }
/* Shared scale: the full track = $150 (MB's approximate figures, Oct 6).
   Each bar is solid to the low end of its range, hatched out to the high end. */
.bar { position: relative; }
.bar-range {
  position: absolute;
  left: 100%;
  top: 0;
  height: 100%;
}
/* Michael ~$15–30: solid to 15/150, hatched to 30/150 */
.result .bar {
  width: 10%;
  background: var(--signal);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.result .bar-range {
  width: 100%; /* (30-15)/15 of the solid bar = 15/150 of the track */
  border: 1px solid var(--ink);
  border-left: 0;
  background: repeating-linear-gradient(135deg, var(--signal) 0 3px, transparent 3px 6px);
}
/* Category ~$100–150: solid to 100/150, hatched to 150/150 */
.baseline .bar { width: 66.667%; background: var(--base); }
.baseline .bar-range {
  width: 50%; /* (150-100)/100 of the solid bar = 50/150 of the track */
  background: repeating-linear-gradient(135deg, var(--base) 0 3px, transparent 3px 6px);
}
@media (max-width: 37.99rem) {
  .compare .row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0.25rem; }
  .compare .track { grid-column: 1 / -1; grid-row: 2; }
}
.proof figcaption {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: var(--t-body);
  max-width: 34rem;
}

@media (min-width: 60rem) {
  .hero-id { grid-column: 1 / span 5; }
  .proof   { grid-column: 7 / span 6; }
}

/* ---------- results: booktabs ledger ---------- */
.results { padding: var(--m) 0 var(--s); }
.ledger {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.ledger thead th {
  padding: 0.625rem 1.25rem 0.625rem 0;
  border-bottom: 1px solid var(--ink);
  color: var(--ink-2);
  font-size: var(--t-sm);
  font-weight: 500;
  text-align: left;
}
.ledger tbody th, .ledger tbody td {
  padding: 1rem 1.25rem 1rem 0;
  border-top: 1px solid var(--rule);
  text-align: left;
  vertical-align: baseline;
}
.ledger tbody tr:first-child > * { border-top: 0; }
.ledger .c-fig { width: 8.5rem; padding-right: 1.5rem; text-align: right; }
.ledger thead .c-fig { text-align: right; }
.ledger .c-what { font-weight: 700; width: 11.5rem; font-size: 1.0625rem; }
.ledger .c-ctx { color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.ledger .c-co, .ledger .c-yr { font-size: 1rem; }
.ledger .c-co { font-weight: 600; white-space: nowrap; }
.ledger .c-yr { text-align: right; white-space: nowrap; padding-right: 0; color: var(--ink-2); }
.ledger thead .c-yr { text-align: right; padding-right: 0; }
.ledger thead th.c-what, .ledger thead th.c-co, .ledger thead th.c-yr, .ledger thead th.c-ctx {
  font-size: var(--t-sm); font-weight: 500; color: var(--ink-2);
}

/* figure: digits right-aligned on one common edge (tabular), unit in a
   fixed slot at the same size, so "+" hangs left of the edge. No highlight. */
.fig {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.45em;
  align-items: baseline;
  font-size: 2.25rem;
  font-weight: 800;
  font-stretch: 76%;
  line-height: 1;
}
.fig .n { text-align: right; }
.fig .u { text-align: left; padding-left: 0.03em; }
/* "Result" header sits on the digits' edge: cell padding + unit slot */
.ledger thead .c-fig { padding-right: calc(1.5rem + 2.25rem * 1.45); }

@media (max-width: 47.99rem) {
  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ledger, .ledger tbody { display: block; }
  .ledger tr {
    display: grid;
    grid-template-columns: 5.75rem minmax(0, 1fr);
    column-gap: 0.875rem;
    padding: 0.875rem 0;
    border-top: 1px solid var(--rule);
  }
  .ledger tbody tr:first-child { border-top: 0; }
  .ledger tbody th, .ledger tbody td { display: block; padding: 0; border: 0; width: auto; }
  .ledger .c-fig { grid-row: 1 / span 3; text-align: right; padding: 0; width: auto; }
  .ledger .c-what, .ledger .c-ctx, .ledger .c-co, .ledger .c-yr { grid-column: 2; text-align: left; }
  .ledger .c-ctx { margin-top: 0.125rem; font-size: 1rem; line-height: 1.45; }
  .ledger .c-co, .ledger .c-yr { font-size: 0.9375rem; margin-top: 0.375rem; }
  .ledger .c-co { grid-row: 3; white-space: normal; padding-right: 5.75rem; }
  .ledger .c-yr { grid-row: 3; justify-self: end; text-align: right; padding-left: 0.75rem; }
  .fig { font-size: 1.875rem; }
}

/* ---------- what he does: statement left, the spear first on the right ---------- */
.does { padding: var(--s) 0; }
.does .grid { row-gap: 1.5rem; }
.does .lead { margin-top: 1rem; font-size: var(--t-lead); line-height: 1.35; }
.skills { margin: 0; border-top: 2px solid var(--ink); }
.skill { padding: 0.875rem 0; border-top: 1px solid var(--rule); }
.skill:first-child { border-top: 0; }
.skill dt { font-weight: 700; }
.skill dd { margin: 0.25rem 0 0; color: var(--ink-2); }
.skill.primary dt { font-size: 1.25rem; }
.skill.primary dd { color: var(--ink); font-size: 1.125rem; }
@media (min-width: 60rem) {
  .does-intro { grid-column: 1 / span 5; }
  .skills { grid-column: 7 / span 6; }
}

/* ---------- work: the experience ledger ---------- */
.work { padding: var(--m) 0; }
.roles { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.role {
  padding: 1.5rem 0 1.75rem;
  border-top: 1px solid var(--rule);
}
.role:first-child { border-top: 0; }
.role-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.125rem 1rem;
  align-items: baseline;
}
.co {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-weight: 750;
  font-stretch: 88%;
  line-height: 1.1;
}
.title { grid-column: 1; color: var(--ink-2); }
.when { grid-column: 2; grid-row: 1; color: var(--ink-2); font-size: var(--t-sm); white-space: nowrap; }
.role-body { margin-top: 1rem; }
.role-body h3 {
  font-size: var(--t-lead);
  font-weight: 650;
  line-height: 1.25;
  max-width: 40rem;
}
.role-body p { margin-top: 0.625rem; max-width: 40rem; }
.wins { margin: 0.75rem 0 0; padding: 0; list-style: none; max-width: 40rem; }
.wins li { position: relative; padding-left: 1.25rem; }
.wins li + li { margin-top: 0.5rem; }
.wins li::before { content: "–"; position: absolute; left: 0; color: var(--ink); }
.role.earlier .co, .role.building .co { font-size: 1.25rem; }
.earlier-list { margin: 0; padding: 0; list-style: none; }
.earlier-list li + li { margin-top: 0.875rem; padding-top: 0.875rem; border-top: 1px solid var(--rule); }
.e-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 1rem;
  align-items: baseline;
}
.e-co { font-weight: 700; }
.e-title { grid-column: 1 / -1; grid-row: 2; color: var(--ink-2); }
.e-when { grid-column: 2; grid-row: 1; color: var(--ink-2); font-size: var(--t-sm); white-space: nowrap; }
.role-body .e-head { margin-top: 0; max-width: none; }
.role-body .e-body { margin-top: 0.375rem; }
@media (min-width: 48rem) {
  .e-head { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) auto; }
  .e-title { grid-column: 2; grid-row: 1; }
  .e-when { grid-column: 3; text-align: right; }
}
.role.building { border-top: 1px solid var(--rule); }

@media (min-width: 48rem) {
  .role {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
  }
  .role-head {
    grid-column: 1 / span 4;
    display: block;
  }
  .title { margin-top: 0.375rem; }
  .when  { margin-top: 0.125rem; }
  .role-body { grid-column: 5 / span 8; margin-top: 0; }
  .role-body > :first-child { margin-top: 0; }
}

/* ---------- about ---------- */
.about { padding: var(--s) 0 var(--m); }
.about-grid { display: grid; gap: 2rem var(--gap); }
.prose p + p { margin-top: 1rem; }
.prose p:first-child { font-size: var(--t-lead); line-height: 1.35; }
.prose .aside { color: var(--ink-2); font-size: var(--t-sm); }
.certs h3 { font-size: var(--t-sm); font-weight: 700; color: var(--ink-2); }
.certs ul { margin: 0.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.certs li { padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
.cert { display: block; font-weight: 700; }
.by { display: block; color: var(--ink-2); font-size: var(--t-sm); }
.headshot { margin: 0; }
.headshot img {
  display: block;
  width: 100%;
  max-width: 18rem;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
@media (min-width: 60rem) {
  .about-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .prose { grid-column: 1 / span 7; }
  .certs { grid-column: 9 / span 4; }
  .about-grid:has(.headshot) .headshot { grid-column: 1 / span 3; }
  .about-grid:has(.headshot) .prose    { grid-column: 4 / span 5; }
  .about-grid:has(.headshot) .certs    { grid-column: 10 / span 3; }
}

/* ---------- case study slots (inactive until uncommented in index.html) ---------- */
.cases { padding: var(--m) 0; }
.case { padding: 1.5rem 0; border-top: 2px solid var(--ink); display: grid; gap: 1.25rem var(--gap); align-items: start; }
.case-title { font-size: var(--t-lead); font-weight: 700; }
.case-steps { margin: 0; display: grid; gap: 0.75rem; align-content: start; }
.case-steps dt { font-weight: 700; font-size: var(--t-sm); }
.case-steps dd { margin: 0.125rem 0 0; }
.artifact { margin: 0; }
.artifact img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.artifact figcaption { margin-top: 0.5rem; color: var(--ink-2); font-size: var(--t-sm); }
.case:not(:has(img[src])) .artifact { display: none; }
@media (min-width: 60rem) {
  .case { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .case-title { grid-column: 1 / -1; }
  .case-steps { grid-column: 1 / span 4; }
  .artifact { grid-column: 6 / span 7; }
}

/* ---------- contact: the closing band ---------- */
.contact {
  padding: var(--l) 0 var(--m);
  background: var(--ink);
  color: var(--on-ink);
}
.contact h2 {
  font-size: var(--t-body);
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: 0;
  color: var(--on-ink-2);
}
.contact .ask {
  margin-top: 1rem;
  font-size: clamp(1.25rem, 3.2vw, 2.25rem);
  font-weight: 500;
  line-height: 1.15;
  max-width: 24ch;
}
.contact .email {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  font-size: clamp(1.5rem, 8.3vw, 5.75rem);
  font-weight: 800;
  font-stretch: 72%;
  line-height: 1;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.contact .email a {
  display: inline-block;
  min-height: 44px;
  padding: 0.12em 0;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.12em;
}
.contact .email a:hover { text-decoration-thickness: 0.1em; }
.contact .fastest { margin-top: 1rem; color: var(--on-ink-2); font-size: 1.0625rem; }
.channels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 2rem;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 1rem 0 0;
  list-style: none;
  border-top: 1px solid #3a4033;
}
.channels a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  font-size: 1.125rem;
}
.channels .status { color: var(--on-ink-2); font-size: 1.0625rem; }
.contact :focus-visible { outline-color: var(--on-ink); }

/* ---------- footer ---------- */
.site-footer { color: var(--ink-2); font-size: var(--t-sm); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0 2rem;
  padding-top: 0.75rem;
  padding-bottom: 1.5rem;
}
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }

/* ---------- inner pages (writing, 404) ---------- */
.page { padding: var(--l) 0 var(--m); }
.page h1 {
  font-size: var(--t-h1);
  font-weight: 750;
  line-height: 1.05;
}
.page .lead { margin-top: 1rem; font-size: var(--t-lead); line-height: 1.35; }
.queue { margin: var(--m) 0 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); max-width: 48rem; }
.queue li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 1.5rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.queue h2 { font-size: 1.25rem; font-weight: 700; font-stretch: 100%; letter-spacing: 0; line-height: 1.3; }
.queue .status { color: var(--ink-2); font-size: var(--t-sm); white-space: nowrap; }
.note { margin-top: 1.5rem; }
.page .button { margin-top: 2rem; }
.code {
  display: block;
  margin-bottom: 1rem;
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 800;
  font-stretch: 72%;
  line-height: 0.9;
  color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
}

/* ---------- print ---------- */
@media print {
  @page { margin: 16mm; }
  html, body { background: #fff; color: #000; font-size: 10.5pt; }
  .skip, .site-nav, .button, .nav-action { display: none !important; }
  .site-header { border: 0; }
  .hero, .results, .does, .work, .about, .contact, .page { padding: 10mm 0; }
  .contact { background: #fff; color: #000; border-top: 2px solid #000; }
  .contact h2, .contact .fastest, .channels .status { color: #333; }
  .contact .email { font-size: 22pt; }
  .channels { border-color: #999; }
  .channels a[href^="http"]::after { content: " (" attr(href) ")"; font-weight: 400; }
  .role, .ledger tr, .proof, .case { break-inside: avoid; }
  .result .bar { background: #ccc; }
  a { text-decoration: none; }
}

/* inner-page masthead + inline link target size */
.brand { display: flex; align-items: center; margin: 0; min-width: 0; }
.brand .wordmark { white-space: nowrap; }
.inline-target { display: inline-block; padding: 0.6rem 0; margin: -0.6rem 0; }
@media (max-width: 30rem) {
  /* inner pages: wordmark shortens so the nav stays one row */
  .brand .wordmark { font-size: 0; }
  .brand .wordmark::before { content: "MCB"; font-size: 1.125rem; font-weight: 800; font-stretch: 80%; letter-spacing: 0.01em; }
  /* the H1 already names the page on small screens; keep the crumb for screen readers only */
  .crumb { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (max-width: 22.5rem) {
  .site-nav ul { gap: 0; }
  .site-nav a { padding: 0 0.3rem; font-size: 0.875rem; }
  .site-nav a.nav-action { padding: 0 0.6rem; margin-left: 0.125rem; }
  .mark, .brand .wordmark::before { font-size: 1rem; }
}

.nowrap { white-space: nowrap; }
