:root {
  color-scheme: light;
  --paper: #fbfbf8; --surface: #f1f3f6; --ink: #191e29; --muted: #515966;
  --rule: #cbd0d5; --faint: #e1e4e5; --accent: #294bc0; --tint: #eaf0ff;
  --field: #fff; --art-filter: none; --blend: multiply;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif: "Baskervville", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark; --paper: #161a20; --surface: #202630; --ink: #f3f4f5; --muted: #bcc3ce;
    --rule: #4b5462; --faint: #343c47; --accent: #a6baff; --tint: #27324f; --field: #1c222a;
    --art-filter: grayscale(1) invert(1); --blend: screen;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark; --paper: #161a20; --surface: #202630; --ink: #f3f4f5; --muted: #bcc3ce;
  --rule: #4b5462; --faint: #343c47; --accent: #a6baff; --tint: #27324f; --field: #1c222a;
  --art-filter: grayscale(1) invert(1); --blend: screen;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font: 100%/1.55 var(--sans); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; }
.wrap { width: min(100% - 7rem, 72rem); margin-inline: auto; }
a { color: var(--accent); text-underline-offset: .23em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--paper); }
button, select, input { font: inherit; color: inherit; }
button, select { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 5; padding: .6rem; background: var(--field); transform: translateY(-170%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; min-height: 5.15rem; gap: 2.1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 650; font-size: 1.18rem; letter-spacing: -.04em; text-decoration: none; color: var(--ink); white-space: nowrap; margin-right: auto; }
.brand img { width: 2.05rem; height: 2.05rem; border-radius: 3px; }
nav { display: flex; align-items: stretch; align-self: stretch; gap: 1.7rem; }
nav a { position: relative; display: inline-flex; align-items: center; color: var(--muted); font-size: .91rem; font-weight: 510; text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--accent); }
nav a[aria-current]::after { content: ""; position: absolute; bottom: -1px; inset-inline: 0; height: 3px; background: var(--accent); }
.theme-control { position: relative; display: inline-flex; align-items: center; }
.theme-control select { appearance: none; background: var(--field); border: 1px solid var(--rule); border-radius: 5px; font: .8125rem var(--mono); padding: .57rem 1.7rem .57rem 2.03rem; }
.theme-control svg { width: 1rem; height: 1rem; position: absolute; left: .65rem; z-index: 1; pointer-events: none; color: var(--muted); }
.theme-control svg:last-child { width: .8rem; left: auto; right: .55rem; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.057em; line-height: 1.05; }
h1 { font-size: clamp(3.1rem, 5.8vw, 5rem); }
h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
h3 { line-height: 1.3; }
.accent { color: var(--accent); }
.eyebrow { display: flex; align-items: center; gap: .7rem; text-transform: uppercase; letter-spacing: .11em; font: 600 .77rem/1.5 var(--mono); letter-spacing: .105em; color: var(--accent); margin-bottom: 1.25rem; }
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: currentColor; }
.hero { display: grid; grid-template-columns: 1.18fr 1fr; gap: clamp(1.5rem, 3.5vw, 4rem); align-items: center; padding: clamp(3.2rem, 6vw, 5.5rem) 0 clamp(3rem, 5.5vw, 4.8rem); border-bottom: 1px solid var(--rule); }
.hero h1 { font-size: clamp(4.35rem, 6.8vw, 6.25rem); line-height: 1; }
.hero-intro, .hero-current { max-width: 32.6rem; line-height: 1.65; font-size: clamp(1.075rem, 1.42vw, 1.24rem); color: var(--muted); }
.hero-intro { margin: 1.15rem 0 .6rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.2rem; margin-top: 1.2rem; }
.availability { display: inline-flex; align-items: center; gap: .58rem; padding: .48rem .78rem; min-height: 2.75rem; font-size: .875rem; font-weight: 570; background: var(--tint); color: var(--accent); border-radius: 4px; text-decoration: none; }
.availability:hover { text-decoration: underline; }
.status-dot { width: .48rem; height: .48rem; flex: 0 0 auto; border-radius: 50%; background: var(--accent); }
.hero-art { position: relative; isolation: isolate; overflow: hidden; background-color: var(--paper); border: 1px solid var(--rule); }
.hero-art img { display: block; width: 100%; height: auto; filter: var(--art-filter); mix-blend-mode: var(--blend); }
.hero-art::after { content: ""; position: absolute; inset: 0; background: var(--accent); pointer-events: none; mix-blend-mode: color; opacity: .55; }
.selected { padding: 2.8rem 0 4.3rem; }
.selected h2 { margin-bottom: 1.55rem; }
.archive-link { display: inline-flex; align-items: center; min-height: 2.75rem; gap: .55rem; font-size: .91rem; font-weight: 570; text-decoration: none; }
.archive-link #browse-archive { text-decoration: underline; }
.archive-link:hover #browse-archive { text-decoration-thickness: 2px; }
.archive-link svg, .search-box svg { width: 1.2rem; height: 1.2rem; flex: none; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.7rem; height: 1.4rem; font: .8rem var(--mono); border: 1px solid var(--rule); border-radius: 3px; color: var(--muted); }
.features, .archive-list { list-style: none; padding: 0; margin: 0; }
.features, .archive-list { border-top: 1px solid var(--rule); }
.feature-row, .archive-row { display: grid; grid-template-columns: 6.7rem 1fr 8.4rem; column-gap: 1.2rem; align-items: baseline; border-bottom: 1px solid var(--faint); text-decoration: none; color: inherit; padding: 1.3rem .1rem; }
.feature-row:hover, .archive-row:hover { background: var(--surface); }
.feature-row:hover strong, .archive-row:hover strong { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; }
.identifier { color: var(--accent); font: .875rem/1.5 var(--mono); letter-spacing: .015em; }
.feature-text, .record-text { min-width: 0; display: grid; gap: .22rem; }
.feature-text strong, .record-text strong { font-size: 1.14rem; font-weight: 580; line-height: 1.4; letter-spacing: -.025em; overflow-wrap: anywhere; }
.feature-text > span, .record-meta { color: var(--muted); font-size: .94rem; }
.feature-date { text-align: right; }
time, .mono, .year { font-family: var(--mono); }
.feature-date { color: var(--muted); font: .825rem/1.45 var(--mono); }
footer { border-top: 1px solid var(--rule); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding-block: 1.4rem; color: var(--muted); font: .8rem/1.5 var(--mono); }
.footer-mark { margin-right: .25rem; color: var(--accent); }
.page-intro { padding: clamp(3rem, 5.5vw, 4.8rem) 0 2.3rem; }
.lead, .large-copy { max-width: 43rem; font-size: 1.21rem; color: var(--muted); margin-top: 1.2rem; line-height: 1.65; }
.archive-section, .consulting-body, .reading { padding-bottom: 4.5rem; }
.search-box { display: flex; align-items: center; gap: .75rem; border: 1px solid var(--muted); border-radius: 4px; background: var(--field); padding: .6rem .9rem; color: var(--muted); max-width: 38rem; }
.search-box:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.search-box input { outline: none; flex: 1; min-width: 0; border: none; background: transparent; color: var(--ink); min-height: 1.8rem; }
.search-box input::placeholder { color: var(--muted); opacity: 1; }
.search-box input::-webkit-search-cancel-button { appearance: none; }
.search-box button { background: transparent; border: 0; text-decoration: underline; color: var(--accent); }
#result-count { margin: 1.7rem 0 .65rem; font: .86rem var(--mono); color: var(--muted); }
.record-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: .6rem; }
.review-label { color: var(--muted); font-size: .79rem; border-left: 1px solid var(--rule); padding-left: .6rem; }
.empty { padding: 2rem 0; }
.reading { max-width: 49rem; padding-top: 2.5rem; }
.reading .back { display: inline-block; margin-bottom: 2.7rem; font-size: .92rem; }
.reading h1 { overflow-wrap: anywhere; font-size: clamp(2.4rem, 4.2vw, 3.8rem); }
.reading h2, .consulting-body h2 { font-size: 2rem; }
.reading h2 { margin: 2rem 0 .75rem; }
.reading p:not(.eyebrow), .reading li, .consulting-body section p { color: var(--muted); line-height: 1.7; }
.facts { margin: 1.8rem 0 2.4rem; padding-block: .7rem; border-block: 1px solid var(--rule); }
.facts > div { display: grid; grid-template-columns: 9.2rem 1fr; padding: .3rem 0; gap: .8rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.ref-list { padding-left: 1.4rem; }
.review-box { background: var(--surface); border-left: 3px solid var(--accent); padding: 1rem 1.3rem; margin-top: 2rem; }
.review-box h2 { font: 600 1rem var(--sans); letter-spacing: 0; margin: 0 0 .55rem; }
.review-box ul { margin: 0; padding-left: 1.2rem; }
.year { color: var(--accent); font-size: .95rem; padding-top: .15rem; }
.consulting-body { max-width: 46rem; }
.large-copy { margin: -.7rem 0 .75rem; color: var(--ink); }
.project-examples { max-width: 43rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.6rem; }
.consulting-body section { padding: 1.6rem 0; border-top: 1px solid var(--rule); }
.consulting-body section h2 { margin-bottom: .8rem; }
.email-link { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: .45rem; font-weight: 600; }
.contact-note { margin-top: 1rem; font-size: .95rem; }
.article-body p, .article-body ul { margin-block: .8rem; }
.writing-list { list-style: none; margin: 0; padding: 0 0 4rem; }
.writing-list li { display: flex; align-items: baseline; gap: 1.2rem; border-top: 1px solid var(--rule); padding: 1rem 0; }
@media (max-width: 850px) {
  .wrap { width: calc(100% - 3rem); }
  .header-inner { gap: 1.25rem; }
  nav { gap: 1.1rem; }
  .feature-row, .archive-row { grid-template-columns: 5.1rem 1fr 7.6rem; gap: .8rem; }
  .hero { gap: 1.4rem; }
  .hero h1 { font-size: clamp(3.6rem, 7.8vw, 4.4rem); }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 2.5rem); }
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; padding-top: .8rem; }
  .brand { font-size: 1.05rem; }
  .brand img { width: 1.8rem; height: 1.8rem; }
  .theme-control { grid-column: 2; grid-row: 1; }
  nav { grid-column: 1 / -1; grid-row: 2; gap: 1.45rem; margin-top: .35rem; flex-wrap: wrap; }
  nav a { min-height: 2.85rem; }
  .hero { grid-template-columns: 1fr; padding: 2.65rem 0 2rem; gap: 1.7rem; }
  .hero h1 { font-size: clamp(3.75rem, 11.5vw, 5.4rem); }
  .hero .eyebrow { margin-bottom: 1rem; }
  .hero-intro { margin-top: .8rem; }
  .hero-actions { margin-top: 1rem; }
  .hero-art { width: 100%; max-width: 28rem; }
  .selected { padding: 2rem 0 2.8rem; }
  .selected h2 { font-size: clamp(1.83rem, 6vw, 2.15rem); margin-bottom: 1.05rem; }
  .feature-row, .archive-row { grid-template-columns: 1fr auto; gap: .4rem .8rem; padding: 1rem 0; }
  .feature-text, .record-text { grid-row: 2; grid-column: 1 / -1; }
  .feature-date { grid-column: 2; grid-row: 1; }
  .feature-text strong, .record-text strong { font-size: 1.08rem; }
  .identifier { font-size: .81rem; }
  .page-intro { padding: 2.7rem 0 1.8rem; }
  .lead, .large-copy { font-size: 1.08rem; }
  .facts > div { grid-template-columns: 1fr; gap: .1rem; padding: .4rem 0; }
  .footer-inner { padding-block: 1.05rem; }
}
@media (max-width: 370px) {
  .wrap { width: calc(100% - 2rem); }
  .availability { font-size: .82rem; }
}
.reading .original-heading { margin-top: .8rem; font-size: .92rem; }
.record-citations { color: var(--muted); font: .8rem/1.6 var(--mono); }
.work-history, .career-highlights { max-width: 50rem; border-top: 1px solid var(--rule); padding: 1.8rem 0 2rem; }
.work-history h2, .career-highlights h2 { font-size: 2rem; margin-bottom: .8rem; }
.career-highlights ul { max-width: 43rem; padding-left: 1.2rem; margin: 1rem 0; }
.career-highlights li + li { margin-top: .55rem; }
.career-highlights li::marker { color: var(--accent); }

.work-list { margin: 1.1rem 0 0; }
.work-list > div { display: grid; grid-template-columns: minmax(13rem, .9fr) 1.3fr; align-items: baseline; gap: 1rem; padding: .54rem 0; border-bottom: 1px solid var(--faint); }
.work-list dt { font-weight: 600; }
.work-list dd { color: var(--muted); margin: 0; }
.credit-note { font-size: .94rem; line-height: 1.65; max-width: 43rem; color: var(--muted); }
@media (max-width: 650px) {
  .work-list > div { grid-template-columns: minmax(0, .88fr) minmax(0, 1.15fr); gap: .85rem; }
}
.profile-intro { max-width: 57rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title portrait" "description portrait"; gap: 1.15rem 2.5rem; align-items: center; padding: clamp(3rem, 5.5vw, 4.8rem) 0 2.3rem; }
.profile-title { grid-area: title; }
.profile-title .eyebrow { margin-bottom: .85rem; }
.profile-intro .lead { grid-area: description; margin: 0; }
.profile-social { display: inline-flex; align-items: center; justify-self: start; gap: .5rem; min-height: 2rem; font: .9rem var(--mono); }
.portrait { grid-area: portrait; width: clamp(6.5rem, 10vw, 8.25rem); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 1px solid var(--rule); }
@media (max-width: 650px) {
  .profile-intro { grid-template-areas: "title portrait" "description description"; gap: 1.1rem .9rem; padding: 2.35rem 0 1.8rem; }
  .profile-title .eyebrow { margin-bottom: .55rem; }
  .profile-title h1 { font-size: clamp(2.4rem, 8.3vw, 3.2rem); }
  .portrait { width: clamp(4.3rem, 18vw, 6rem); }
}
