/* Hallmark · pre-emit critique: P5 H5 E5 S5 R4 V5
 * Hallmark · macrostructure: Long Document · genre: editorial · theme: Studio
 * tone: technical-editorial · anchor hue: forest green (145°)
 * nav: N6 Newspaper masthead (knobs: issue-line=above, wordmark=3xl, rule=double)
 * hero: H2 Split diptych (knobs: ratio=7/5, right=photo, divider=negative-space)
 * section heads: S4 Inline no-break · proof: T4 Numbered stat strip (4-up, under)
 * features: F3 Tabular spec sheet (knobs: cols=2, rules=every-row, nums=tabular)
 * cta: C3 Typographic link (knobs: underline=solid, hover=thicken, arrow=→)
 * footer: Ft2 Inline rule single line (knobs: order=credit/wordmark/links, sep=middot)
 * enrichment: real headshot, chroma-keyed to transparent PNG. No invented imagery.
 * motion: underline-thicken · press-1px. No scroll reveals — Long Document is just there.
 */

@import url("tokens.css");

/* ══ Reset ══════════════════════════════════════════════════════ */

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

html, body {
  margin: 0;
  padding: 0;
  overflow-x: clip; /* never `hidden` — it would break position: sticky */
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--color-paper);
  color: var(--color-ink-2);
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: var(--leading-body);
  font-weight: 380;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }

ul, ol { padding: 0; list-style: none; }

a { color: inherit; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ══ Shared primitives ══════════════════════════════════════════ */

.shell {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.prose { max-width: var(--measure); }
.prose > p + p { margin-top: var(--space-md); }

.display {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-style: italic;
  font-variation-settings: "opsz" var(--display-optical), "SOFT" var(--display-soft);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-display);
  color: var(--color-ink);
  /* Long words must break rather than push the page sideways. */
  overflow-wrap: anywhere;
  min-width: 0;
}

.label {
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
}

:where(a, button, summary):focus-visible {
  /* Instant. Never transitioned — a keyboard user must see it on frame one. */
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: var(--space-xs);
  z-index: calc(var(--z-sticky-nav) + 1);
  background: var(--color-ink);
  color: var(--color-paper);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  text-decoration: none;
  white-space: nowrap;
}
.skip:focus { left: var(--space-md); }

/* ── C3 · Typographic link ─────────────────────────────────────── */

.tlink {
  color: var(--color-accent-ink);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  padding-bottom: 2px;
  transition: background-size var(--dur-short) var(--ease-out);
}
.tlink:hover, .tlink.is-hover { background-size: 100% 2px; }
.tlink:active, .tlink.is-active { color: var(--color-accent); }
.tlink .arrow { font-family: var(--font-body); }

/* Inline links inside running prose stay quieter than standalone CTAs. */
.prose a:not(.tlink) {
  color: var(--color-accent-ink);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: text-decoration-thickness var(--dur-micro) var(--ease-out);
}
.prose a:not(.tlink):hover { text-decoration-thickness: 2px; }

/* ══ N6 · Newspaper masthead ════════════════════════════════════ */

.masthead {
  padding-block: var(--space-xl) 0;
  text-align: center;
}

/* A 200px source, so it is set at a size where it stays sharp rather
   than blown up soft. Round, because that is what a profile picture is. */
.masthead__portrait {
  width: 7rem;
  height: 7rem;
  margin: 0 auto var(--space-lg);
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-paper-2);
  box-shadow: 0 0 0 1px var(--color-rule);
}
.masthead__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.masthead__issue {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-xs) var(--space-md);
  padding-bottom: var(--space-lg);
}
.masthead__issue span { white-space: nowrap; }
.masthead__issue .pending { white-space: normal; }

.masthead__name {
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  margin-block: 0 var(--space-md);
}

/* The double rule is the masthead's signature — a heavy rule, a gap, a hairline.
   Height must exceed the two border widths or the gap collapses and it reads
   as one thick bar. */
.masthead__rules {
  border-top: 3px solid var(--color-ink);
  border-bottom: var(--rule-hair) solid var(--color-ink);
  height: 8px;
}

/* ══ Roles — experience & education ═════════════════════════════ */

.roles { border-top: var(--rule-hair) solid var(--color-rule-2); }

.role {
  padding-block: var(--space-xl);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.role__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  gap: var(--space-2xs) var(--space-lg);
  align-items: baseline;
  margin-bottom: var(--space-sm);
}

.role__title {
  grid-column: 1;
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 84, "SOFT" var(--display-soft);
  font-weight: var(--display-weight);
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--color-ink);
  overflow-wrap: anywhere;
  min-width: 0;
}

.role__org {
  grid-column: 1;
  font-size: var(--text-base);
  color: var(--color-neutral);
  min-width: 0;
}
.role__loc { color: var(--color-muted); }

.role__dates {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  letter-spacing: 0.04em;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.role__summary {
  max-width: var(--measure);
  color: var(--color-ink-2);
  margin-bottom: var(--space-sm);
}

.role__list {
  display: grid;
  gap: var(--space-xs);
  max-width: var(--measure);
}
.role__list li {
  position: relative;
  padding-left: var(--space-lg);
  font-size: var(--text-base);
  line-height: 1.55;
}
.role__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: var(--space-sm);
  height: var(--rule-hair);
  background: var(--color-rule-2);
}

/* The sample block shipped in profile.js, flagged so it can't be mistaken
   for real history. */
.role.is-example { opacity: 0.62; }
.role__flag {
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-pending);
  margin-bottom: var(--space-xs);
}

/* ══ Empty states ═══════════════════════════════════════════════ */

.empty {
  border: var(--rule-card) dashed var(--color-rule-2);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  color: var(--color-muted);
  font-size: var(--text-base);
  max-width: var(--measure);
}
.empty b { color: var(--color-neutral); font-weight: 500; }
.empty p + p { margin-top: var(--space-xs); }
.empty code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-paper-3);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-pill);
  color: var(--color-ink-2);
}

/* ══ Hero — typographic ═════════════════════════════════════════ */

.hero { padding-block: var(--space-3xl) var(--space-2xl); }

.hero__headline {
  font-size: var(--text-display);
  margin-bottom: var(--space-lg);
  max-width: 16ch;
}

.hero__lede {
  font-size: var(--text-xl);
  color: var(--color-neutral);
  max-width: 56ch;
}

/* ══ Tabs ═══════════════════════════════════════════════════════ */

.tabs { padding-block: var(--space-sm) 0; }

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 var(--space-lg);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.tab {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;              /* a tab label never wraps to two lines */
  padding: var(--space-sm) var(--space-2xs);
  /* The active marker is a rule that sits ON the tablist's own border. */
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--dur-micro) var(--ease-out),
              border-color var(--dur-micro) var(--ease-out);
}
.tab:hover { color: var(--color-ink-2); }
.tab[aria-selected="true"] {
  color: var(--color-accent-ink);
  border-bottom-color: var(--color-accent);
  font-weight: 500;
}
.tab:active { transform: translateY(1px); }

.panel { padding-block: var(--space-2xl) var(--space-3xl); }

/* Panels are all visible until JS confirms it can manage them, so the
   page is complete with scripting off. */
.js-tabs .panel[hidden] { display: none; }
.panel[hidden] { display: block; }

/* ══ T4 · Numbered stat strip ═══════════════════════════════════ */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-lg);
  padding-block: var(--space-xl);
  border-block: var(--rule-hair) solid var(--color-rule);
}

.stat__num {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 72, "SOFT" var(--display-soft);
  font-size: var(--text-4xl);
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}

.stat__qual {
  margin-top: var(--space-xs);
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--color-muted);
  max-width: 26ch;
}

/* ══ Sections ═══════════════════════════════════════════════════ */

.section { padding-block: var(--section-gap) 0; }

/* Trailing note after the work dossier — sits closer to the list it
   annotates than a new section would. */
.section__coda { margin-top: var(--space-2xl); }

/* S4 · Inline no-break — the heading emerges from the flow rather than
   sitting in its own labelled band. Single column, always. */
.section__head {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 96, "SOFT" var(--display-soft);
  font-weight: var(--display-weight);
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--color-ink);
  margin-bottom: var(--section-head-gap);
  overflow-wrap: anywhere;
  min-width: 0;
}

/* A second heading inside a panel needs air above it that the first
   one, sitting under the tab bar, does not. */
.section__head--mid { margin-top: var(--space-3xl); }

.section__intro {
  font-size: var(--text-xl);
  color: var(--color-neutral);
  max-width: var(--measure);
  margin-bottom: var(--space-2xl);
}

/* ══ Case study — the one story told at length ══════════════════ */

.pullquote {
  margin-block: var(--space-2xl);
  max-width: 30ch;
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 120, "SOFT" var(--display-soft);
  font-size: var(--text-4xl);
  line-height: 1.15;
  letter-spacing: var(--tracking-display);
  color: var(--color-ink);
}
.pullquote cite {
  display: block;
  margin-top: var(--space-md);
  font-family: var(--font-label);
  font-style: normal;
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
}

/* A genuine ordered trace — five architectures in the order they were
   tried and killed. Numbered because the sequence IS the content. */
.trace {
  counter-reset: attempt;
  border-top: var(--rule-hair) solid var(--color-rule-2);
  margin-block: var(--space-xl);
  max-width: var(--measure-wide);
}

.trace > li {
  counter-increment: attempt;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: var(--space-2xs) var(--space-md);
  padding-block: var(--space-md);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.trace > li::before {
  content: counter(attempt, decimal-leading-zero);
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  letter-spacing: 0.04em;
  color: var(--color-rule-2);
  font-variant-numeric: tabular-nums;
  padding-top: 0.35em;
}

.trace__what { font-size: var(--text-base); color: var(--color-ink); font-weight: 500; }
.trace__what + .trace__why { grid-column: 2; }
.trace__why { font-size: var(--text-sm); color: var(--color-muted); line-height: 1.55; }

.trace code, .prose code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-paper-3);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-pill);
  color: var(--color-ink-2);
  overflow-wrap: anywhere;
}

.trace__verdict {
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  white-space: nowrap;
}
.trace__verdict.is-dead { color: var(--color-muted); }
.trace__verdict.is-win  { color: var(--color-accent-ink); font-weight: 500; }

/* ══ Work dossier — the Long Document body ══════════════════════ */

/* Eighteen entries need grouping or they read as a wall. */
.work__group {
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-accent-ink);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-sm);
}
.work__group:first-of-type { margin-top: var(--space-xl); }

.work { border-top: var(--rule-hair) solid var(--color-rule); }

.entry {
  padding-block: var(--space-2xl);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-sm);
}

.entry__title {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 84, "SOFT" var(--display-soft);
  font-weight: var(--display-weight);
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--color-ink);
  overflow-wrap: anywhere;
  min-width: 0;
}
.entry__title em {
  font-style: normal;
  font-family: var(--font-body);
  font-size: var(--text-base);
  letter-spacing: 0;
  color: var(--color-muted);
  display: block;
  margin-top: var(--space-2xs);
  font-weight: 380;
}

/* Machine-readable spine under each title: year · stack · status. */
.entry__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-sm);
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  letter-spacing: 0.04em;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}
.entry__meta li { white-space: nowrap; }
.entry__meta li + li::before {
  content: "·";
  margin-right: var(--space-sm);
  color: var(--color-rule-2);
}
.entry__meta .is-live { color: var(--color-accent-ink); font-weight: 500; }

.entry__body { max-width: var(--measure); }
.entry__body p + p { margin-top: var(--space-md); }

.entry__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-lg);
  margin-top: var(--space-xs);
  font-size: var(--text-sm);
}

/* ══ Credentials ════════════════════════════════════════════════ */

.creds { display: grid; gap: var(--space-lg); }

.cred {
  border: var(--rule-card) solid var(--color-rule);
  border-radius: var(--radius-card);
  background: var(--color-paper-2);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: start;
  min-width: 0;
}

/* A credential with an actual certificate gets a two-column treatment:
   the document itself, then the detail. Without one it stays single. */
.cred:has(.cred__proof) { grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); }

.cred__body { display: grid; gap: var(--space-xs); min-width: 0; }

.cred__proof { margin: 0; min-width: 0; }
.cred__proof a {
  display: block;
  border: var(--rule-hair) solid var(--color-rule-2);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-paper);
  transition: border-color var(--dur-short) var(--ease-out);
}
.cred__proof a:hover { border-color: var(--color-accent); }
.cred__proof img { width: 100%; display: block; }
.cred__proof figcaption {
  margin-top: var(--space-xs);
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

.cred__date {
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  letter-spacing: 0.04em;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}

.cred__verify { margin-top: var(--space-2xs); font-size: var(--text-sm); }

.cred__issuer {
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-accent-ink);
}

.cred__title {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 60, "SOFT" var(--display-soft);
  font-weight: var(--display-weight);
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
  color: var(--color-ink);
  overflow-wrap: anywhere;
}

.cred__note { font-size: var(--text-sm); color: var(--color-muted); }

.cred--pending { border-style: dashed; background: transparent; box-shadow: none; }
.cred--pending .cred__issuer { color: var(--color-pending); }
.cred--pending .cred__title { color: var(--color-pending); }

/* ══ F3 · Tabular spec sheet ════════════════════════════════════ */

.spec { border-top: var(--rule-hair) solid var(--color-rule-2); }

.spec__row {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: var(--space-xs) var(--space-xl);
  padding-block: var(--space-md);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  align-items: baseline;
}

.spec__key {
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
}

.spec__val {
  font-size: var(--text-base);
  color: var(--color-ink-2);
  line-height: 1.55;
  min-width: 0;
}
.spec__val b { font-weight: 500; color: var(--color-ink); }

/* ══ Contact ════════════════════════════════════════════════════ */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  gap: var(--space-xl) var(--space-3xl);
  align-items: end;   /* the last contact line settles on the last body line */
  padding-block: var(--space-md) 0;
}

.contact__lines {
  display: grid;
  gap: var(--space-sm);
  font-size: var(--text-lg);
}
.contact__lines .label { display: block; margin-bottom: var(--space-2xs); }

/* ══ Pending-detail marker ══════════════════════════════════════
   Every unverified fact on this page carries this class. It is
   deliberately visible: a blank that looks like a blank is honest,
   a plausible invention is not. */

.pending {
  color: var(--color-pending);
  border-bottom: 1.5px dashed var(--color-pending);
  font-style: italic;
}

.pending-note {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border-left: 2px solid var(--color-pending);
  background: var(--color-paper-2);
  font-size: var(--text-sm);
  color: var(--color-muted);
  max-width: var(--measure);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}
.pending-note b { color: var(--color-neutral); font-weight: 500; }

/* ══ Ft2 · Inline rule, single line ═════════════════════════════ */

.colophon {
  margin-top: var(--section-gap);
  border-top: var(--rule-hair) solid var(--color-rule);
  padding-block: var(--space-lg) var(--space-2xl);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-xs) var(--space-md);
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  letter-spacing: 0.04em;
  color: var(--color-muted);
}
.colophon span { white-space: nowrap; }
.colophon .sep { color: var(--color-rule-2); }
.colophon a { text-decoration: none; white-space: nowrap; }
.colophon a:hover { color: var(--color-accent-ink); }
.colophon .spacer { flex: 1 1 var(--space-md); }

/* ══ Responsive ═════════════════════════════════════════════════ */

@media (max-width: 60rem) {
  .cred:has(.cred__proof) { grid-template-columns: minmax(0, 1fr); }
  .cred__proof { max-width: 26rem; }
  .role__head { grid-template-columns: minmax(0, 1fr); }
  .role__dates { grid-column: 1; grid-row: auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--space-lg); }
  .contact { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .spec__row { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .pullquote { max-width: none; }
}

@media (max-width: 40rem) {
  :root { --section-gap: 4rem; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat__qual { max-width: none; }
  .masthead__nav { gap: var(--space-sm) var(--space-lg); }
  .masthead__nav a { padding-block: var(--space-xs); }  /* 44px hit target */
  .entry { padding-block: var(--space-xl); }
  .masthead__portrait { width: 5.5rem; height: 5.5rem; }
  .tabs__list { gap: 0 var(--space-md); }
  .tab { padding-inline: var(--space-2xs); }
  .trace > li { grid-template-columns: minmax(0, 1fr); }
  .trace > li::before { padding-top: 0; }
  .trace__what + .trace__why { grid-column: 1; }
}

/* ══ Print — this page is also the résumé ═══════════════════════ */

@media print {
  /* Paper is paper. Force the light palette back regardless of the
     viewer's theme — and match the specificity of :root[data-theme="dark"]
     or a dark-mode reader prints white ink onto a white page. */
  :root, :root[data-theme="dark"], :root[data-theme="light"] {
    --color-paper:      white;
    --color-paper-2:    white;
    --color-paper-3:    oklch(93% 0.006 205);
    --color-rule:       oklch(80% 0.008 205);
    --color-rule-2:     oklch(62% 0.010 205);
    --color-muted:      oklch(45% 0.012 205);
    --color-neutral:    oklch(30% 0.016 205);
    --color-ink-2:      oklch(18% 0.020 205);
    --color-ink:        oklch(10% 0.024 205);
    --color-accent:     oklch(42% 0.140 145);
    --color-accent-ink: oklch(36% 0.130 145);
    --color-pending:    oklch(55% 0.030 205);
    --color-portrait-ground: transparent;
    --shadow-card: none;
    --section-gap: 1.5rem;
    --page-pad: 0;
  }
  body { font-size: 10.5pt; line-height: 1.45; }
  .skip, .tabs, .pending-note, .cred__proof figcaption { display: none; }

  /* Tabs are a screen affordance. On paper the résumé is every section,
     in order, so force all panels open regardless of which one is active. */
  .js-tabs .panel[hidden], .panel[hidden] { display: block !important; }
  .panel { padding-block: 0 1rem; }

  /* A sheet of paper is ~816 px wide, so the 60rem mobile rules would
     otherwise apply and stack everything. Restore the wider shapes —
     print has the width, it just isn't a screen. */
  .masthead__portrait { width: 1.1in; height: 1.1in; }
  .hero { padding-block: 0 0.75rem; }
  .hero__headline { font-size: 24pt; }
  .hero__lede { font-size: 11pt; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
  .spec__row { grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); gap: 1rem; }
  .role__head { grid-template-columns: minmax(0, 1fr) minmax(0, auto); }
  .role__dates { grid-column: 2; grid-row: 1; }
  .role { padding-block: 0.7rem; break-inside: avoid; }
  .cred:has(.cred__proof) { grid-template-columns: minmax(0, 2.6in) minmax(0, 1fr); }
  .cred__proof a { border-color: var(--color-rule-2); }

  .section { padding-block: 1.25rem 0; }
  .section__head--mid { margin-top: 1.25rem; }
  /* A heading stranded at the foot of a page is the classic print tell. */
  .section__head { font-size: 16pt; break-after: avoid; }
  .section__intro { break-before: avoid; }
  .section__intro { font-size: 11pt; margin-bottom: 1rem; }
  .entry { padding-block: 0.7rem; break-inside: avoid; }
  .entry__title { font-size: 13pt; }
  .pullquote { font-size: 15pt; margin-block: 1rem; break-inside: avoid; }
  .trace { margin-block: 0.75rem; }
  .trace > li { padding-block: 0.5rem; break-inside: avoid; }
  .cred { break-inside: avoid; border-color: var(--color-rule-2); }
  .colophon { margin-top: 1.5rem; }
  .tlink { background-image: none; }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-family: var(--font-label);
    font-size: 8pt;
    color: var(--color-muted);
  }
}
