:root {
  --bg: #fafaf8;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --max: 836px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  padding: 1rem 24px;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.brand {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.015em;
}

nav { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
nav a { color: var(--muted); font-size: .92rem; font-weight: 500; text-decoration: none; }
nav a:hover { color: var(--text); }

main, footer {
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  padding-inline: 24px;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--line);
}

.hero { padding-top: 7rem; padding-bottom: 6rem; }
.hero.compact { padding-bottom: 4rem; }
.hero-with-photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 3rem;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-photo {
  margin: 0;
  justify-self: end;
}
.hero-photo img {
  display: block;
  width: 176px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 32px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(31, 41, 55, .12);
}

h1, h2, h3 { margin: 0; }
h1, h2 {
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
h1 { font-size: clamp(3.2rem, 12vw, 6.7rem); margin-top: .35rem; }
h2 { font-size: clamp(2rem, 6vw, 3.2rem); margin-top: .2rem; }
h3 { font-size: 1.05rem; line-height: 1.35; }

.eyebrow, .section-kicker {
  margin: 0 0 .6rem;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tagline {
  max-width: 740px;
  margin: 1.4rem 0 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.65rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.current-role { margin: 1.5rem 0 0; color: var(--muted); font-size: 1.05rem; }

.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }
.actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: .68rem .95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(31, 41, 55, .04);
}
.actions a:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--accent); }

.two-column, .split-list {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr);
  gap: 3rem;
  align-items: start;
}
.prose p:first-child, .contact-card p:first-of-type, .feature-card p:first-of-type { margin-top: 0; }
.prose p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem; }
.timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 1.2rem; }
.when { color: var(--muted); font-size: .9rem; font-weight: 600; }
.timeline strong { font-weight: 700; }
.timeline span:not(.when) { color: var(--muted); }

.feature-card, .contact-card {
  margin-top: 4rem;
  margin-bottom: 4rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, var(--panel), color-mix(in srgb, var(--accent-soft) 22%, var(--panel)));
  box-shadow: 0 24px 60px rgba(31, 41, 55, .06);
}
.text-link { display: inline-block; margin-top: .7rem; font-weight: 700; }

.publication-list { display: grid; gap: 1rem; margin-top: 2rem; }
.publication-list article {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}
.publication-list p { margin: .45rem 0; color: var(--muted); }

.simple-list { margin: 0; padding-left: 1.1rem; }
.simple-list li + li { margin-top: .75rem; }
.placeholders { color: var(--muted); }

footer {
  max-width: var(--max);
  padding-block: 3rem 5rem;
  color: var(--muted);
  font-size: .92rem;
}
footer p { margin: .25rem 0; }

@media (max-width: 720px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  nav { justify-content: flex-start; gap: .75rem 1rem; }
  .section { padding: 4rem 0; }
  .hero { padding-top: 4.5rem; }
  .hero-with-photo { grid-template-columns: 1fr; gap: 2rem; }
  .hero-photo { justify-self: start; order: -1; }
  .hero-photo img { width: 132px; border-radius: 26px; }
  .two-column, .split-list { grid-template-columns: 1fr; gap: 1.4rem; }
  .timeline li { grid-template-columns: 1fr; gap: .25rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
  .actions { flex-direction: column; align-items: stretch; }
  .actions a { width: 100%; }
  .feature-card, .contact-card { padding: 1.4rem; border-radius: 22px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111827;
    --panel: #172033;
    --text: #f3f4f6;
    --muted: #a6adbb;
    --line: #2d3748;
    --accent: #60a5fa;
    --accent-soft: #1e3a5f;
  }
  .feature-card, .contact-card, .publication-list article, .hero-photo img { box-shadow: none; }
  .actions a { background: #151f31; }
}


.text-button {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
}
.text-button:hover { text-decoration-thickness: .14em; }

.photo-modal {
  width: min(920px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .34);
}
.photo-modal::backdrop { background: rgba(17, 24, 39, .72); }
.photo-modal figure { margin: 0; }
.photo-modal img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px 24px 0 0;
}
.photo-modal figcaption {
  padding: 1rem 1.25rem 1.25rem;
  color: var(--muted);
  font-size: .95rem;
}
.modal-close {
  position: absolute;
  top: .8rem;
  right: .8rem;
  min-height: 38px;
  padding: .45rem .75rem;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  background: rgba(17, 24, 39, .72);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.identity-note { margin-top: 1.4rem; }
.identity-note p + p { margin-top: .4rem; }


.archive-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.5rem 0 2rem;
}

.archive-nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .55rem .85rem;
  color: var(--text);
  text-decoration: none;
  background: var(--panel);
}

.archive-subsection { margin-top: 2.75rem; }
.archive-subsection h3 { margin-bottom: 1.1rem; }
.archive-list { display: grid; gap: .9rem; }

.publication-item {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
  padding: 1rem 1.1rem;
}

.publication-item summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  align-items: start;
}

.publication-item summary::-webkit-details-marker { display: none; }
.publication-item summary::after {
  content: "+";
  justify-self: end;
  color: var(--muted);
  grid-column: 2;
}
.publication-item[open] summary::after { content: "–"; }
.pub-code { color: var(--accent); font-weight: 700; }
.pub-summary-main { display: grid; gap: .3rem; }
.pub-title { font-weight: 700; color: var(--text); }
.pub-meta { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.publication-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.72;
}
.publication-details p { margin: 0 0 1rem; }
.publication-details ol { margin: 0 0 1rem 1.25rem; padding-left: 1rem; }
.publication-details li { margin: .45rem 0; }
.publication-links { margin-top: .8rem; }
.publication-links a { margin-right: .85rem; font-weight: 600; }
.placeholders { color: var(--muted); }

@media (max-width: 720px) {
  .publication-item summary { grid-template-columns: 1fr; gap: .35rem; }
  .publication-item summary::after { grid-column: 1; justify-self: start; }
}

.publication-links img {
  vertical-align: -0.2em;
}

.teaching-list {
  margin-top: 1.5rem;
}
