@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(../fonts/bricolage-grotesque-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(../fonts/bricolage-grotesque-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/source-serif-4-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/source-serif-4-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/source-serif-4-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/source-serif-4-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --band: #1a1613;
  --band-ink: #f1ece4;
  --band-muted: #a99f93;
  --paper: #f3f4f0;
  --ink: #1b2233;
  --muted: #5d6576;
  --rule: #d9dcd3;
  --link: #24408e;
  --accent: #e3a13b;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --text: "Source Serif 4", Georgia, serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #23201c;
    --ink: #ebe6de;
    --muted: #a49c91;
    --rule: #3b3631;
    --link: #a9bdf2;
  }
}
:root[data-theme="dark"] {
  --paper: #23201c;
  --ink: #ebe6de;
  --muted: #a49c91;
  --rule: #3b3631;
  --link: #a9bdf2;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--text);
  font-optical-sizing: auto;
}
a { color: var(--link); text-decoration-color: color-mix(in srgb, var(--link) 35%, transparent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- top bar ---------- */
.band { background: var(--band); color: var(--band-ink); }
.band a { color: var(--band-ink); text-decoration: none; }
.top { position: relative; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.mark { font: 700 1.125rem/1 var(--display); font-stretch: 75%; letter-spacing: -.01em; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 30px); flex-wrap: wrap; font: 500 .98rem/1 var(--display); }
.nav a { color: var(--band-muted); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--band-ink); }
.nav a[aria-current="page"] { color: var(--band-ink); border-bottom-color: var(--accent); }

/* ---------- home hero ---------- */
/* the portrait keeps its own framing: scaled to the hero height, anchored bottom-right,
   its dark studio backdrop blending into the band */
.hero { --photo-h: min(440px, 38vw); position: relative; overflow: hidden; }
.hero-img {
  position: absolute; right: 0; bottom: 0; height: var(--photo-h); width: auto; max-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 88%, transparent 100%), linear-gradient(180deg, transparent 0, #000 15%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 88%, transparent 100%), linear-gradient(180deg, transparent 0, #000 15%);
          mask-composite: intersect;
}
.home-top { justify-content: flex-end; }
.hero-body { position: relative; z-index: 1; min-height: calc(var(--photo-h) - 8px); display: flex; flex-direction: column; justify-content: center; padding-top: 8px; padding-bottom: 56px; }
.name { margin: 0; font: 700 clamp(2.4rem, 5vw, 3.75rem)/1 var(--display); font-stretch: 80%; letter-spacing: -.025em; }
.role { max-width: 27rem; margin: 16px 0 0; color: var(--band-muted); font-size: 1.08rem; line-height: 1.55; }
.role a { color: var(--band-ink); border-bottom: 1px solid var(--accent); }
@media (max-width: 720px) {
  .hero-img { position: static; display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 15%;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); -webkit-mask-composite: source-over; mask-composite: add; }
  .home-top { justify-content: flex-start; }
  .hero-body { min-height: 0; margin-top: -24px; padding-bottom: 40px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-img { animation: develop 1.2s ease-out both; }
  @keyframes develop { from { opacity: 0; } }
}

/* ---------- inner page title ---------- */
.page-title { margin: 0; padding: clamp(20px, 3vw, 36px) 0 clamp(24px, 3vw, 36px); font: 700 clamp(2.4rem, 6vw, 3.75rem)/.95 var(--display); font-stretch: 75%; letter-spacing: -.03em; }
.lede { max-width: 40rem; margin: -12px 0 0; padding-bottom: clamp(28px, 4vw, 40px); color: var(--band-muted); font-size: 1.08rem; }
.lede a { color: var(--band-ink); border-bottom: 1px solid var(--accent); }

/* ---------- sections ---------- */
main { padding-bottom: 40px; }
.section { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 48px; padding: 32px 0; border-top: 1px solid var(--rule); }
.section:first-child { border-top: 0; }
.section > h2 { margin: 0 0 16px; font: 600 1.35rem/1.15 var(--display); letter-spacing: -.01em; }
.section > h2 small { display: block; margin-top: 6px; color: var(--muted); font: 400 .9rem/1.3 var(--display); }
@media (min-width: 821px) { .section > h2 { position: sticky; top: 24px; align-self: start; } }
@media (max-width: 820px) { .section { grid-template-columns: 1fr; padding: 26px 0; } }
.section h3 { margin: 28px 0 8px; font: 600 1.05rem/1.3 var(--display); color: var(--muted); }
.section h3:first-child { margin-top: 0; }

.prose { max-width: 38rem; }
.prose p { margin: 0 0 1.05em; }

/* entries: year column + body */
.entries { list-style: none; margin: 0; padding: 0; }
.entries > li { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 0 16px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.entries > li:last-child { border-bottom: 0; }
.entries.plain > li { grid-template-columns: minmax(0, 1fr); }
.entries.compact > li { padding: 7px 0; }
.entries.compact > li > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; }
.entries.compact .meta { display: inline; }
.yr { color: var(--muted); font: 500 .92rem/1.75 var(--display); font-variant-numeric: tabular-nums; }
.t { font-weight: 600; }
.meta { display: block; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.res { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 3px; font: 500 .84rem/1.5 var(--display); }
.res a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.res a:hover { border-bottom-color: var(--accent); }
.kind { color: var(--muted); font: 500 .92rem/1.75 var(--display); }

/* collapsible "more" lists */
details.more { margin-top: 4px; }
details.more > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; color: var(--link); font: 500 .95rem/1.2 var(--display); }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1px solid currentColor; border-radius: 50%; font-size: .9rem; line-height: 1; }
details.more[open] > summary::before { content: "\2212"; }
details.more > summary:hover { color: var(--ink); }
details.more[open] > summary { margin-bottom: 4px; }

/* career */
.career { list-style: none; margin: 0; padding: 0; position: relative; }
.career::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: var(--rule); }
.career li { position: relative; padding: 0 0 18px 26px; }
.career li::before { content: ""; position: absolute; left: 0; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.career .yr { display: block; line-height: 1.4; }
.career b { display: block; font: 600 1rem/1.3 var(--display); }
.career span.org { color: var(--muted); font-size: .95rem; }

.bio { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 0 56px; align-items: start; }
@media (max-width: 960px) { .bio { grid-template-columns: 1fr; } .bio .career { margin-top: 24px; } }

.feed-status { color: var(--muted); }

/* ---------- footer ---------- */
.foot { margin-top: 24px; border-top: 1px solid var(--rule); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; padding-top: 20px; padding-bottom: 28px; }
.icons { display: flex; gap: 14px; }
.icons a { display: block; opacity: .75; }
.icons a:hover, .icons a:focus-visible { opacity: 1; }
.icons img { width: 24px; height: 24px; padding: 2px; border-radius: 5px; background: #fff; }

@media print {
  .band, .nav, details.more > summary { background: none !important; color: #000 !important; }
  .hero-img { display: none; }
  details.more > * { display: block; }
}
