@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #fbfbf9;
  --ink: #1b2120;
  --muted: #5c6866;
  --rule: #e0e4e1;
  --accent: #125e5b;
  --accent-ink: #0c4542;
  --panel: #f1f4f2;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 52rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111514;
    --ink: #e4eae8;
    --muted: #9aa8a5;
    --rule: #2a3331;
    --accent: #6ec4bd;
    --accent-ink: #9ad9d3;
    --panel: #182020;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
cite { font-style: italic; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; margin: 0; text-wrap: balance; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: 0.5rem 0.75rem; z-index: 10; }

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

/* header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.5rem 1.5rem; padding-top: 1.4rem; padding-bottom: 1.1rem;
}
.brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: 1.4rem; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; padding-bottom: 0.15rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

main { padding: 2.5rem 0 3.5rem; }
main > .wrap > section + section { margin-top: 2.75rem; }
.page-title { font-size: 2rem; margin-bottom: 1.75rem; }
h2 {
  font-size: 1.3rem; margin-bottom: 1rem; padding-bottom: 0.45rem; border-bottom: 1px solid var(--rule);
}

/* home */
.intro { display: grid; grid-template-columns: 13.5rem 1fr; gap: 2.25rem; align-items: start; }
.portrait img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 4px; background: var(--panel);
}
.intro h1 { font-size: 2.3rem; letter-spacing: -0.01em; }
.role { margin: 0.35rem 0 1.25rem; color: var(--muted); font-size: 1.02rem; line-height: 1.5; }
.role strong { color: var(--ink); font-weight: 600; }
.bio p { margin: 0 0 1rem; }
.links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.links a {
  display: inline-block; padding: 0.3rem 0.8rem; font-size: 0.92rem; text-decoration: none;
  border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); background: var(--bg);
}
.links a:hover { border-color: var(--accent); color: var(--accent); }
.links a.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.links a.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--bg); }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.facts address { font-style: normal; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li + li { margin-top: 0.5rem; }
.dim { color: var(--muted); }
.yr { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* research */
.pubs { list-style: none; margin: 0; padding: 0; }
.pub { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.pub:first-child { padding-top: 0.25rem; }
.pub:last-child { border-bottom: 0; }
.pub h3 { font-size: 1.12rem; font-weight: 600; text-wrap: pretty; }
.pub h3 a { color: var(--ink); text-decoration: none; }
.pub h3 a:hover { color: var(--accent); text-decoration: underline; }
.meta { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.97rem; }
.meta cite { color: var(--ink); }
.status { color: var(--accent-ink); font-weight: 500; }
.status cite { color: inherit; }
h3.sub {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 0.6rem;
}
ul + h3.sub { margin-top: 1.4rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; margin-top: 0.45rem; font-size: 0.9rem; }
.actions a { text-decoration: none; }
.actions a:hover { text-decoration: underline; }
.abs-toggle {
  font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer;
}
.abs-toggle::after { content: " +"; }
.abs-toggle[aria-expanded="true"]::after { content: " \2212"; }
.abs-toggle:hover { text-decoration: underline; }
.abstract {
  margin: 0.7rem 0 0.2rem; padding: 0.85rem 1rem; background: var(--panel); border-radius: 4px;
  font-size: 0.95rem; line-height: 1.6;
}
.no-js .abs-toggle { display: none; }
.no-js .abstract[hidden] { display: block; }

/* teaching */
.dated li { display: flex; justify-content: space-between; gap: 1.5rem; }

/* footer */
.site-footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.85rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 1.25rem; padding-bottom: 2rem; }

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .portrait { max-width: 11rem; }
  .intro h1 { font-size: 2rem; }
  .facts { grid-template-columns: 1fr; gap: 2.25rem; }
  .page-title { font-size: 1.75rem; }
  .dated li { flex-direction: column; gap: 0; }
}

@media print {
  .site-header .nav, .actions, .links { display: none; }
  .abstract[hidden] { display: block; }
  body { background: #fff; color: #000; }
}
