:root {
  --font-display: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
  --t-h1: 400 24px/0.9 var(--font-display);
  --t-h2: 400 20px/0.9 var(--font-ui);
  --t-h3: 500 16px/1.0 var(--font-ui);
  --t-italic: italic 400 16px/1.45 var(--font-ui);
  --t-lead: 400 14px/1.5 var(--font-ui);
  --t-body: 400 12px/1.66 var(--font-ui);
  --t-eyebrow: 600 12px/1.2 var(--font-ui);
  --t-nav: 500 12px/1.2 var(--font-ui);
  --t-table: 400 12px/1.2 var(--font-ui);
  --t-meta: 400 12px/1.2 var(--font-ui);
  --ls-h1: -0.014em;
  --ls-h2: 0.003em;
  --ls-eyebrow: 0.16em;
  --ink: #161a18;
  --ink-2: #2c3330;
  --ink-3: #5b635f;
  --ink-4: #8a918d;
  --forest: #0d2e22;
  --forest-2: #1b4634;
  --moss: #3a7a5c;
  --accent: #1f8a5b;
  --tan: #9c7e3e;
  --tan-soft: #d9c89a;
  --tan-bg: #f3eadc;
  --red: #7a2424;
  --red-bg: #f7e6e3;
  --green-bg: #e6f3eb;
  --paper: #fbf9f4;
  --paper-2: #f3efe6;
  --card: #ffffff;
  --rule: rgba(20, 30, 26, 0.10);
  --rule-2: rgba(20, 30, 26, 0.18);
  --max: 1440px;
  --prose: 760px;
  --wide: 1040px;
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 30px rgba(20, 30, 26, 0.06);
}
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 19px;
  line-height: 1.66;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "ss02", "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Top progress bar */
.progress-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  z-index: 100;
}
.progress-bar__fill {
  height: 100%;
  width: 0%;
  background: var(--forest);
  transition: width 0.1s ease-out;
}

/* Top nav */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 244, 0.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.topbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.topbar__brand {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--forest);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.topbar__brand .logo {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--forest);
  position: relative;
  flex: none;
}
.topbar__brand .logo::before,
.topbar__brand .logo::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #6cc59b;
}
.topbar__brand .logo::before { top: 2px; left: 6px; opacity: 0.85; }
.topbar__brand .logo::after { bottom: 2px; right: 4px; opacity: 0.55; }

/* Site nav */
.sitenav {
  display: flex;
  gap: 4px;
  flex: 1;
  margin-left: 8px;
}
.sitenav a {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sitenav a .num {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}
.sitenav a:hover {
  color: var(--ink);
  background: var(--paper-2);
}
.sitenav a.is-current {
  color: var(--forest);
  background: rgba(13, 46, 34, 0.08);
}
.sitenav a.is-current .num { color: var(--forest); }

.topbar__title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar__meta {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: 0.02em;
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 32px 56px;
}
.hero__kicker {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tan);
  font-weight: 600;
  margin-bottom: 22px;
}
.hero__title {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0 0 32px;
  max-width: 900px;
}
.hero__sub {
  font-family: var(--font-ui);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.4;
  color: var(--ink-3);
  max-width: 760px;
  margin: 0 0 36px;
}
.hero__byline {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  align-items: baseline;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
}
.hero__byline .label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 600;
  margin-bottom: 4px;
}
.hero__byline .value {
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
}

/* Preface callout */
.preface {
  max-width: var(--max);
  margin: 0 auto 40px;
  padding: 0 32px;
}
.preface__inner {
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--forest);
  padding: 28px 36px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
}
.preface__label {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tan);
  font-weight: 600;
  padding-top: 4px;
}
.preface__body p { margin: 0 0 12px; }
.preface__body p:last-child { margin: 0; }

/* Main grid: sidebar + prose */
.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px 120px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 72px;
}

/* Sticky TOC */
.toc {
  position: sticky;
  top: 80px;
  align-self: start;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 4px;
}
.toc__label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-4);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: tocsec;
}
.toc li {
  margin: 0;
  counter-increment: tocsec;
}
.toc a {
  display: block;
  padding: 7px 12px;
  border-left: 2px solid transparent;
  color: var(--ink-3);
  text-decoration: none;
  font: var(--t-nav);
  border-radius: 4px;
  transition: background-color .12s ease, box-shadow .12s ease;
}
.toc a::before {
  content: "§" counter(tocsec);
  flex: none;
  font-size: 11px;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  min-width: 22px;
}
.toc a:hover { color: var(--ink); }
.toc a.is-current {
  color: var(--forest);
  border-left-color: var(--forest);
  font-weight: 600;
  background: rgba(13, 46, 34, 0.05);
  box-shadow: 0 1px 2px rgba(13, 46, 34, 0.10), 0 0 0 1px rgba(13, 46, 34, 0.05);
}

/* Article */
.article {
  max-width: 980px;
  min-width: 0;
}
.article > section { padding-top: 56px; scroll-margin-top: 72px; }
.article > section:first-child { padding-top: 0; }

.section-head {
  margin: 0 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.section-head__num {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tan);
  font-weight: 600;
  margin-bottom: 10px;
}
.section-head__title {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}

h3.sub {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.28;
  margin: 44px 0 14px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
h4.sub {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 30px 0 10px;
}

.article p {
  margin: 0 0 20px;
  hyphens: auto;
  text-wrap: pretty;
}
.article p > strong { color: var(--ink); font-weight: 600; }
.article a {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-color: rgba(13, 46, 34, 0.3);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.article a:hover {
  text-decoration-color: var(--forest);
}

.article em { font-style: italic; }

.lead {
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-bottom: 28px;
}

ul.bullets, ol.numbered {
  padding-left: 22px;
  margin: 0 0 22px;
}
ul.bullets li, ol.numbered li {
  margin-bottom: 10px;
  padding-left: 6px;
}
ul.bullets li::marker { color: var(--tan); }
ol.numbered li::marker { color: var(--tan); font-variant-numeric: tabular-nums; }

/* Pull-quote */
.pullquote {
  border-left: 3px solid var(--tan);
  padding: 6px 0 6px 28px;
  margin: 30px 0;
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* Tables */
.tablewrap {
  margin: 24px 0 32px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow-x: auto;
  background: #fff;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
}
table.data thead th {
  background: var(--paper-2);
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule-2);
  vertical-align: bottom;
}
table.data tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--ink-2);
}
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody td strong { color: var(--ink); font-weight: 600; }
table.data tbody td:first-child { font-weight: 500; color: var(--ink); }
table.data tbody td .muted { color: var(--ink-4); font-size: 12px; }

table.data.compact { font-size: 13px; }
table.data.compact thead th { padding: 10px 14px; }
table.data.compact tbody td { padding: 11px 14px; }

/* Numeric column */
table.data .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Definition list for entity descriptions */
dl.defs {
  margin: 0 0 24px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
}
dl.defs > div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
dl.defs > div:last-child { border-bottom: 1px solid var(--rule); }
dl.defs dt {
  font-weight: 600;
  color: var(--ink);
}
dl.defs dt .meta {
  display: block;
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-4);
  margin-top: 2px;
}
dl.defs dd {
  margin: 0;
  color: var(--ink-2);
}

/* Figure */
.figure {
  margin: 40px 0 36px;
}
.figure__frame {
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  transition: box-shadow 0.2s;
}
.figure__frame:hover { box-shadow: var(--shadow); }
.figure__frame img {
  display: block;
  width: 100%;
  height: auto;
}
.figure__zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(13, 46, 34, 0.85);
  color: #fff;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.figure__frame:hover .figure__zoom { opacity: 1; }
.figure__caption {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
  margin-top: 14px;
  padding: 0 4px;
  max-width: 100%;
}
.figure__caption .num {
  color: var(--tan);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  margin-right: 8px;
}

/* Figures stay within the article column; click to expand for full detail */
.figure.figure--wide {
  margin-left: 0;
  margin-right: 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 18, 16, 0.92);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.lightbox__caption {
  position: absolute;
  bottom: 24px;
  left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  padding: 0 40px;
}

/* Callout boxes */
.callout {
  margin: 28px 0;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--forest);
  border-radius: 0 4px 4px 0;
  font-size: 17px;
  line-height: 1.55;
}
.callout--tan { border-left-color: var(--tan); }
.callout--red { border-left-color: var(--red); background: var(--red-bg); }
.callout--green { border-left-color: var(--accent); background: var(--green-bg); }

.callout .label {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--forest);
  display: block;
  margin-bottom: 8px;
}
.callout--tan .label { color: var(--tan); }
.callout--red .label { color: var(--red); }
.callout p { margin: 0 0 10px; }
.callout p:last-child { margin: 0; }

/* Open questions list */
ol.questions {
  list-style: none;
  counter-reset: q;
  padding: 0;
  margin: 24px 0;
}
ol.questions li {
  counter-increment: q;
  padding: 22px 0 22px 64px;
  border-top: 1px solid var(--rule);
  position: relative;
}
ol.questions li:last-child { border-bottom: 1px solid var(--rule); }
ol.questions li::before {
  content: counter(q, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 22px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--tan);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
ol.questions .q-title {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 19px;
}
ol.questions .q-body {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* Migration tier cards */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 28px 0;
}
.tier {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 18px 20px;
  background: #fff;
  font-family: "Inter", sans-serif;
  font-size: 14px;
}
.tier__num {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--tan);
}
.tier__when {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 4px 0 10px;
}
.tier__body { color: var(--ink-2); line-height: 1.5; }

/* Footnote refs */
sup.ref {
  font-family: "Inter", sans-serif;
  font-size: 0.7em;
  font-weight: 600;
  color: var(--forest);
  vertical-align: super;
  line-height: 0;
  padding-left: 2px;
  font-feature-settings: "tnum";
}
sup.ref a {
  color: var(--forest);
  text-decoration: none;
  padding: 0 2px;
}
sup.ref a:hover { background: var(--paper-2); border-radius: 2px; }

/* References section */
.refs {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  counter-reset: ref;
  padding: 0;
  list-style: none;
  column-count: 2;
  column-gap: 40px;
}
.refs li {
  counter-increment: ref;
  padding-left: 26px;
  position: relative;
  margin-bottom: 12px;
  break-inside: avoid;
  color: var(--ink-2);
}
.refs li::before {
  content: counter(ref);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  color: var(--tan);
  font-variant-numeric: tabular-nums;
  width: 22px;
}
.refs li a {
  color: var(--forest);
  word-break: break-word;
}

/* Closing/scope */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0;
}
.scope {
  padding: 22px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #fff;
}
.scope__label {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}
.scope--is .scope__label { color: var(--accent); }
.scope--isnot .scope__label { color: var(--red); }
.scope--out .scope__label { color: var(--tan); }
.scope p { font-size: 15px; line-height: 1.55; margin: 0; color: var(--ink-2); }

/* Section divider */
.divider {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 56px 0 0;
}

/* Footer */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px 32px;
  border-top: 1px solid var(--rule);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: var(--ink-4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

/* Responsive */
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 22px 80px;
  }
  .toc {
    position: relative;
    top: auto;
    max-height: none;
    margin: 0 0 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rule);
  }
  .article { max-width: 100%; }
  .hero { padding: 56px 22px 36px; }
  .preface { padding: 0 22px; }
  .preface__inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px;
  }
  .scope-grid { grid-template-columns: 1fr; }
  dl.defs > div { grid-template-columns: 1fr; gap: 4px; }
  body { font-size: 18px; }
  .topbar__inner { padding: 12px 18px; gap: 14px; flex-wrap: wrap; }
  .topbar__title { display: none; }
  .sitenav { margin-left: 0; gap: 0; }
  .sitenav a { padding: 6px 10px; font-size: 12px; }
  .sitenav a .num { display: none; }
}

@media (max-width: 640px) {
  .topbar__title { display: none; }
  .hero__byline { gap: 18px; }
  .figure { margin: 28px 0; }
}

/* Print */
@media print {
  .topbar, .toc, .progress-bar, .lightbox { display: none !important; }
  .shell { grid-template-columns: 1fr; padding: 0; }
  body { background: white; font-size: 11pt; }
  .article { max-width: 100%; }
  .figure { break-inside: avoid; }
  a { color: var(--ink); text-decoration: none; }
}

/* =========================================================
   Page shell (for single-column pages: resume + application)
   ========================================================= */
.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 32px 120px;
}
.page--narrow { max-width: 820px; }

/* =========================================================
   Resume page
   ========================================================= */
.resume-hero {
  max-width: 980px;
  margin: 0 auto;
  padding: 72px 32px 40px;
}
.resume-hero__row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: end;
}
.resume-hero__kicker {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tan);
  font-weight: 600;
  margin-bottom: 18px;
}
.resume-hero__name {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0 0 14px;
}
.resume-hero__role {
  font-family: var(--font-ui);
  font-style: italic;
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.45;
  color: var(--ink-3);
  margin: 0;
}
.resume-hero__contact {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}
.resume-hero__contact .label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 600;
  margin-top: 8px;
}
.resume-hero__contact a {
  color: var(--forest);
  text-decoration: none;
}
.resume-hero__contact a:hover { text-decoration: underline; }


/* Resume body */
.resume {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 32px;
}
.resume__summary {
  font-family: var(--font-ui);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 32px 0;
  margin: 24px 0 48px;
}
.resume__summary p { margin: 0 0 14px; }
.resume__summary p:last-child { margin: 0; }

.r-section { margin-bottom: 56px; }
.r-section__head {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tan);
  font-weight: 600;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.r-section__head .count {
  font-family: var(--font-ui);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-4);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.role {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.role:first-of-type { border-top: none; padding-top: 8px; }
.role__when {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  padding-top: 4px;
}
.role__when .loc {
  display: block;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--ink-4);
  font-size: 12px;
  margin-top: 4px;
}
.role__body { min-width: 0; }
.role__title {
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 4px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.role__org {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--ink-3);
  margin: 0 0 12px;
  font-weight: 500;
}
.role__org .meta { color: var(--ink-4); font-weight: 400; }
.role__summary {
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.role__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.role__bullets li {
  padding: 5px 0 5px 20px;
  position: relative;
}
.role__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 1px;
  background: var(--tan);
}
.role__bullets li strong { color: var(--ink); font-weight: 600; }

/* Skills + education + tags */
.r-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
}
.r-grid__label {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tag-list li {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--ink-2);
}
.tag-list li.is-strong { background: var(--paper-2); color: var(--ink); font-weight: 500; }

.r-edu {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 32px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  font-family: "Inter", sans-serif;
  font-size: 14px;
}
.r-edu__when {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.r-edu__inst { color: var(--ink); font-weight: 500; font-family: var(--font-ui); font-size: 17px; }
.r-edu__detail { color: var(--ink-3); }

@media (max-width: 780px) {
  .resume-hero__row { grid-template-columns: 1fr; gap: 24px; }
  .role, .r-grid, .r-edu { grid-template-columns: 1fr; gap: 8px; }
  .resume-hero, .resume { padding-left: 22px; padding-right: 22px; }
}

/* =========================================================
   Application (cover letter) page
   ========================================================= */
.app-hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 32px 40px;
}
.app-hero__meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.app-hero__meta .label { color: var(--tan); font-weight: 600; margin-right: 6px; }
.app-hero__meta .value { color: var(--ink-2); letter-spacing: 0; text-transform: none; font-size: 14px; font-weight: 500; }
.app-hero__title {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(36px, 4.8vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 14px;
}
.app-hero__sub {
  font-family: var(--font-ui);
  font-style: italic;
  font-size: 21px;
  line-height: 1.45;
  color: var(--ink-3);
  margin: 0;
}

.app {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}
.app .section-head { margin-top: 56px; }
.app p { margin: 0 0 20px; font-size: 19px; line-height: 1.66; text-wrap: pretty; }
.app p strong { font-weight: 600; color: var(--ink); }
.app h3.sub { font-family: var(--font-ui); font-weight: 600; font-size: 22px; line-height: 1.3; margin: 36px 0 12px; }
.app h4.sub { font-family: "Inter", sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--forest); margin: 28px 0 10px; }
.app ul.bullets, .app ol.numbered { padding-left: 22px; margin: 0 0 22px; }
.app ul.bullets li, .app ol.numbered li { margin-bottom: 10px; padding-left: 6px; line-height: 1.55; }
.app ul.bullets li::marker, .app ol.numbered li::marker { color: var(--tan); }

.app a {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-color: rgba(13, 46, 34, 0.3);
  text-underline-offset: 3px;
}

.app .tablewrap { margin: 24px 0 32px; }

.signoff {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-ui);
}
.signoff__name { font-size: 22px; font-weight: 600; color: var(--ink); margin: 4px 0; }
.signoff__attached {
  margin-top: 24px;
  padding: 18px 22px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--forest);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}
.signoff__attached a {
  color: var(--forest);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--forest);
}

@media (max-width: 780px) {
  .app-hero { padding: 56px 22px 32px; }
  .app { padding: 0 22px; }
  .app p { font-size: 18px; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: var(--t-body);
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.page--longform { --t-body: 400 13px/1.62 var(--font-ui); --t-lead: 400 15px/1.5 var(--font-ui); }
body.page--longform .app-hero,
body.page--longform .hero,
body.page--longform .preface { max-width: 980px; margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; }
a { color: var(--forest); text-decoration-color: rgba(13,46,34,.3); text-underline-offset: 3px; }
p, li, dd, td { font: var(--t-body); }
strong { color: var(--ink); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(251,249,244,.88); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--rule); }
.topbar__inner { max-width: var(--max); margin: 0 auto; padding: 14px 32px; display: flex; align-items: center; gap: 28px; }
.topbar__brand, .sitenav a, .topbar__meta { font: var(--t-nav); }
.topbar__brand { letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--forest); display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.sitenav { display: flex; gap: 4px; flex: 1; margin-left: 8px; }
.sitenav a { color: var(--ink-3); text-decoration: none; padding: 8px 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; transition: background .15s, color .15s; }
.sitenav a:hover { background: var(--paper-2); color: var(--ink); }
.sitenav a.is-current { color: var(--forest); background: rgba(13,46,34,.08); }
.sitenav .num { font-size: 10px; font-weight: 600; letter-spacing: .08em; color: var(--ink-4); }
.sitenav a.is-current .num { color: var(--forest); }
.topbar__meta { color: var(--ink-4); white-space: nowrap; }
.progress-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 2px; background: transparent; }
.progress-bar__fill { width: 0%; height: 100%; background: var(--forest); transition: width .1s ease-out; }
.resume-hero { max-width: 980px; margin: 0 auto; padding: 72px 32px 40px; }
.resume-hero__row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: end; }
.resume-hero__kicker, .hero__kicker, .section-head__num, .preface__label, .toc__label, .label, .callout .label, .r-section__head, .r-grid__label, .figure__caption .num, table.data th, .tier__num { font: var(--t-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--tan); }
.resume-hero__name, .app-hero__title, .hero__title { font: var(--t-h1); letter-spacing: var(--ls-h1); color: var(--ink); margin: 12px 0 0; }
.resume-hero__role, .app-hero__sub, .hero__sub, .pullquote { font: var(--t-italic); color: var(--ink-3); }
.resume-hero__contact, .resume-hero__contact a, .app-hero__meta .value, .hero__byline .value { font: var(--t-nav); color: var(--ink-2); }
.resume { max-width: 980px; margin: 0 auto; padding: 0 32px 80px; }
.resume__summary { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 32px 0; margin-bottom: 48px; }
.resume__summary p, p.lead { font: var(--t-lead); color: var(--ink-2); }
.r-section { margin-top: 56px; }
.r-section__head { display: flex; justify-content: space-between; gap: 16px; align-items: end; border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin: 0 0 24px; }
.r-section__head .count { font: var(--t-meta); text-transform: none; letter-spacing: 0; color: var(--ink-4); }
.role { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 24px 0; border-top: 1px solid var(--rule); }
.role:first-of-type { border-top: 0; padding-top: 8px; }
.role__when { font: var(--t-eyebrow); color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
.role__when .loc { display: block; margin-top: 6px; color: var(--ink-4); font-weight: 400; letter-spacing: 0; text-transform: none; }
.role__title, .r-edu__inst, .signoff__name, h3.sub, .tier__when, .q-title { font: var(--t-h3); color: var(--ink); }
.role__org { margin: 8px 0 0; font: 500 14px/1.4 var(--font-ui); color: var(--ink-2); }
.role__org .meta { color: var(--ink-3); font-weight: 400; }
.role__summary { font: var(--t-italic); color: var(--ink-2); margin: 16px 0 0; }
.role__bullets, .bullets, .numbered { margin: 16px 0 0 22px; padding: 0; }
.role__bullets { list-style: none; margin-left: 0; }
.role__bullets li { position: relative; padding-left: 22px; margin: 10px 0; color: var(--ink-2); }
.role__bullets li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 1px; background: var(--tan); }
.r-edu, .r-grid { display: grid; grid-template-columns: 200px 1fr 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--rule); }
.r-grid { grid-template-columns: 200px 1fr; }
.tag-list, .tagrow { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 0; }
.tag-list li, .tag { font: var(--t-table); color: var(--ink-2); background: var(--card); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 11px; }
.tag-list li.is-strong, .tag.is-strong { background: var(--paper-2); color: var(--ink); font-weight: 600; }
.app-hero { max-width: 820px; margin: 0 auto; padding: 72px 32px 40px; }
.app-hero__meta { display: flex; flex-wrap: wrap; gap: 24px 32px; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--rule); }
.app { max-width: 760px; margin: 0 auto; padding: 0 32px 80px; }
.app section, .article section { padding-top: 56px; scroll-margin-top: 72px; }
.section-head { border-bottom: 1px solid var(--rule); padding-bottom: 18px; margin-bottom: 28px; }
.section-head__title { font: var(--t-h2); letter-spacing: var(--ls-h2); color: var(--ink); margin: 8px 0 0; }
h3.sub { margin: 36px 0 12px; }
h4.sub { font: var(--t-eyebrow); letter-spacing: var(--ls-eyebrow); color: var(--forest-2); text-transform: uppercase; margin: 26px 0 10px; }
.callout { background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--forest); border-radius: 4px; padding: 22px 26px; margin: 28px 0; }
.callout--tan { border-left-color: var(--tan); background: var(--tan-bg); }
.callout--red { border-left-color: var(--red); background: var(--red-bg); }
.callout--green { border-left-color: var(--accent); background: var(--green-bg); }
.pullquote { border-left: 3px solid var(--tan); padding-left: 28px; margin: 32px 0; }
.signoff { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--rule); }
.signoff__attached { margin-top: 24px; padding: 18px 22px; border: 1px solid var(--rule); border-left: 3px solid var(--forest); border-radius: 4px; background: var(--card); font: var(--t-meta); color: var(--ink-3); }
.tablewrap { margin: 28px 0; border: 1px solid var(--rule); border-radius: 4px; overflow-x: auto; background: var(--card); }
table.data { width: 100%; border-collapse: collapse; }
table.data th { background: var(--paper-2); border-bottom: 1px solid var(--rule-2); padding: 14px 16px; text-align: left; }
table.data td { font: var(--t-table); color: var(--ink-2); padding: 14px 16px; border-top: 1px solid var(--rule); vertical-align: top; }
table.data.compact th { padding: 10px 14px; }
table.data.compact td { padding: 11px 14px; }
.hero { max-width: var(--max); margin: 0 auto; padding: 88px 32px 56px; }
.hero__byline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; border-top: 1px solid var(--rule); padding-top: 28px; margin-top: 32px; }
.preface { max-width: var(--max); margin: 0 auto 40px; padding: 0 32px; }
.preface__inner { display: grid; grid-template-columns: 140px 1fr; gap: 28px; background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--forest); border-radius: 4px; padding: 28px 36px; }
.shell { max-width: var(--max); margin: 0 auto; padding: 0 32px 80px; display: grid; grid-template-columns: 220px 1fr; gap: 72px; align-items: start; }
.article { max-width: 980px; }
.toc { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; }
.toc ol { counter-reset: tocsec; list-style: none; padding: 0; margin: 14px 0 0; }
.toc li { counter-increment: tocsec; }
.toc a { display: block; padding: 7px 12px; border-left: 2px solid transparent; color: var(--ink-3); text-decoration: none; font: var(--t-nav); border-radius: 4px; transition: background-color .12s ease, box-shadow .12s ease; }
.toc a::before { content: "§" counter(tocsec) " "; color: var(--tan); font-weight: 600; }
.toc a:hover { color: var(--ink); }
.toc a.is-current, .toc a.is-current { color: var(--forest); border-left-color: var(--forest); font-weight: 600; background: rgba(13, 46, 34, 0.05); box-shadow: 0 1px 2px rgba(13, 46, 34, 0.10), 0 0 0 1px rgba(13, 46, 34, 0.05); }
.figure { margin: 34px 0; }
.figure.figure--wide { margin-left: 0; margin-right: 0; }
.figure__frame { position: relative; border: 1px solid var(--rule); border-radius: 4px; background: var(--card); overflow: hidden; cursor: zoom-in; transition: box-shadow .15s ease, transform .15s ease; }
.figure__frame:hover, .figure__frame:focus { box-shadow: var(--shadow); outline: none; }
.figure__frame img { display: block; width: 100%; height: auto; }
.figure__zoom { position: absolute; top: 12px; right: 12px; opacity: 0; transition: opacity .15s; background: rgba(251,249,244,.92); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 10px; font: var(--t-meta); color: var(--ink-2); }
.figure__frame:hover .figure__zoom, .figure__frame:focus .figure__zoom { opacity: 1; }
.figure__caption { margin-top: 14px; font: var(--t-meta); color: var(--ink-3); }
.figure__caption .num { margin-right: 10px; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 40px; background: rgba(12,18,16,.92); cursor: zoom-out; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__close { position: absolute; top: 24px; right: 24px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; padding: 8px 14px; background: rgba(255,255,255,.1); color: #fff; font: var(--t-nav); cursor: pointer; }
.lightbox__caption { position: absolute; left: 40px; right: 40px; bottom: 24px; color: rgba(255,255,255,.86); font: var(--t-meta); text-align: center; }
sup.ref a { color: var(--forest); font-weight: 600; text-decoration: none; }
ol.refs { column-count: 2; column-gap: 40px; padding-left: 0; list-style-position: inside; }
ol.refs li { break-inside: avoid; margin-bottom: 12px; color: var(--ink-2); }
dl.defs > div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--rule); }
dl.defs > div:last-child { border-bottom: 1px solid var(--rule); }
dl.defs dt { font-weight: 600; }
dl.defs .meta { display: block; margin-top: 4px; font: var(--t-meta); color: var(--ink-4); }
dl.defs dd { margin: 0; color: var(--ink-2); }
.tiers, .scope-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 28px 0; }
.tier, .scope { border: 1px solid var(--rule); border-radius: 4px; padding: 18px 20px; background: var(--card); }
.questions { list-style: none; counter-reset: questions; padding: 0; margin: 24px 0; }
.questions li { counter-increment: questions; position: relative; padding: 22px 0 22px 64px; border-top: 1px solid var(--rule); }
.questions li::before { content: counter(questions, decimal-leading-zero); position: absolute; left: 0; top: 22px; color: var(--tan); font: var(--t-eyebrow); }
.q-body { color: var(--ink-2); }
.footer { max-width: var(--max); margin: 0 auto; padding: 32px; display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--rule); color: var(--ink-4); font: var(--t-meta); }
.login-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.login-shell { flex: 1; display: grid; place-items: center; padding: 48px 22px; }
.login-card { width: min(100%, 420px); background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 48px; display: grid; gap: 14px; }
.login-wordmark { font: 400 24px/0.9 var(--font-display); letter-spacing: var(--ls-h1); color: var(--ink); }
.login-eyebrow { font: var(--t-eyebrow); letter-spacing: var(--ls-eyebrow); color: var(--tan); text-transform: uppercase; margin-bottom: 14px; }
.login-card input { width: 100%; border: 1px solid var(--rule-2); border-radius: 4px; padding: 12px 14px; font: var(--t-nav); color: var(--ink); background: var(--paper); }
.login-card button { border: 1px solid var(--forest); border-radius: 4px; padding: 12px 14px; background: var(--forest); color: #fff; font: var(--t-nav); cursor: pointer; }
.login-helper, .login-error { margin: 0; font: var(--t-meta); }
.login-helper { color: var(--ink-3); }
.login-error { color: var(--red); }
.login-footer { padding: 0 0 24px; color: var(--ink-4); font: 400 11px/1.2 var(--font-ui); text-align: center; }
@media (max-width: 1100px) {
  .shell { grid-template-columns: 1fr; gap: 40px; padding: 0 22px 64px; }
  .toc { position: relative; top: auto; max-height: none; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
}
@media (min-width: 1628px) {
  body.page--longform .shell {
    max-width: none;
    margin: 0;
    padding: 0 32px 80px;
    grid-template-columns: 1fr min(100%, 980px) 1fr;
    gap: 0;
  }
  body.page--longform .shell > .toc {
    grid-column: 1;
    justify-self: end;
    width: 220px;
    margin-right: 72px;
  }
  body.page--longform .shell > .article {
    grid-column: 2;
  }
}
@media (max-width: 980px) {
  .topbar__inner { padding: 12px 18px; gap: 14px; }
  .topbar__meta { display: none; }
  .resume-hero, .resume, .app-hero, .app, .hero, .preface { padding-left: 22px; padding-right: 22px; }
  .resume-hero__row, .role, .r-edu, .r-grid, .preface__inner { grid-template-columns: 1fr; gap: 18px; }
  .hero__byline { grid-template-columns: repeat(2, 1fr); }
  ol.refs { column-count: 1; }
}
@media (max-width: 640px) {
  .topbar__brand span:last-child, .sitenav .num { display: none; }
  .sitenav a { padding: 8px 10px; }
  .hero { padding-top: 64px; }
  .hero__byline { grid-template-columns: 1fr; }
  .login-card { padding: 34px 24px; }
}
@media print {
  .topbar, .toc, .progress-bar, .lightbox { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .shell, .article, .app, .resume { display: block; max-width: none; padding: 0; }
  a { color: var(--ink); text-decoration: none; }
  .figure { break-inside: avoid; }
}

/* =========================================================
   Wonder edits — pulled back from canvas, 25 May 2026
   ========================================================= */

/* Résumé hero: name bumped, role intro reuses italic intro token */
.resume-hero__name { font: 400 30px/0.9 var(--font-display); letter-spacing: -0.014em; color: var(--ink); margin: 0 0 18px; }

/* Résumé summary: one paragraph, italic, lighter weight, 16px */
.resume__summary { border: none; padding: 0; margin: 24px 0 48px; }
.resume__summary p, body .resume__summary p { font: italic 300 16px/1.5 var(--font-ui); color: var(--ink-2); margin: 0; }

/* Résumé section heads: bigger eyebrow + tighter side padding */
.r-section__head { font-size: 16px; padding: 0 15px 12px; }
.r-section__head .count { display: none; }

/* Section heads on the Application / Case Study pages — title weight bumped */
.section-head__title { font-weight: 500; }

/* Role cards: narrower date column, tighter padding, stronger top rule between roles */
.role { grid-template-columns: 100px 1fr; gap: 15px; padding: 24px 15px; border-top: 1px solid rgba(20, 30, 26, 0.33); }
.role:first-of-type { border-top: none; padding-top: 8px; }

/* Stronger section-head bottom rule on Adjacent / Education / Certifications / Expertise */
.r-section:not(:first-of-type) .r-section__head { border-bottom-color: rgba(20, 30, 26, 0.33); }

/* Application hero: centered, no meta row, no subtitle, tighter padding */
body.page--longform .app-hero { max-width: 980px; margin: 0 auto; padding: 40px 32px 24px; text-align: center; }
.app-hero__title { text-align: center; margin: 0 auto; }

/* Application + Case Study: tighter section spacing, stronger top divider on §2+ */
.article > section { padding-top: 26px; border-top: 1px solid rgba(0, 0, 0, 0.55); }
.article > section:first-child { padding-top: 26px; border-top: none; }

/* Case Study hero: centered, no byline, tighter top padding */
body.page--longform .hero { padding: 28px 32px 56px; text-align: center; }
.hero__kicker, .hero__title, .hero__sub { margin-left: auto; margin-right: auto; }

/* Footer: tighter top, slightly tighter bottom */
.footer { padding: 16px 32px 23px; }

/* =========================================================
   Phase E refinements (overnight 25 May 2026)
   Surgical overrides per notes/design-audit.md
   ========================================================= */

/* M1: ink-tone consistency on all dividers */
.article > section { border-top: 1px solid var(--rule-2); }
.r-section:not(:first-of-type) .r-section__head { border-bottom-color: var(--rule-2); }
.role { border-top-color: var(--rule-2); }

/* M2: Resume role meta column needs ~140px breathing room */
.role { grid-template-columns: 140px 1fr; }

/* M3: Footer dignity */
.footer { padding: 40px 32px 32px; }

/* M4: vestigial single-line resume summary collapses cleanly */
.resume__summary:has(> p:only-child:not(:has(*))) { display: none; }

/* S1: footnote-ref hit target accessibility */
sup.ref a {
  display: inline-block;
  padding: 0 4px;
  line-height: 1.2;
  margin: 0 -2px;
}

/* S2: section vertical rhythm restored to dignified spacing */
.article > section { padding-top: 40px; }
.article > section:first-child { padding-top: 26px; }

/* S3: subtle visual grouping every 5 questions in §6 */
ol.questions li:nth-child(5n+1):not(:first-child) {
  border-top: 1px solid var(--rule-2);
}

/* S4: references list — widow/orphan + bottom breathing */
ol.refs { widows: 2; orphans: 2; }
ol.refs li { margin-bottom: 14px; }

/* S5: preface label column slightly tighter */
.preface__inner { grid-template-columns: 120px 1fr; }

/* S6: noop — Application hero date stamp lives in HTML; verify in F. (no CSS rule) */

/* S7: case-study hero subtitle dialed back for editorial restraint */
body.page--longform .hero__sub { font-size: 18px; }

/* Section header: equalise spacing above/below and match rule weight on both sides */
.article > section { padding-top: 28px; }
.article > section:first-child { padding-top: 26px; }
.section-head { padding-bottom: 28px; border-bottom-color: var(--rule-2); }
