:root {
  --ink: #1c2127;
  --muted: #5d6671;
  --faint: #8a929b;
  --accent: #1f3a5f;
  --accent-hover: #b4541f;
  --rule: #e4e1da;
  --bg: #fbfaf7;
  --card: #ffffff;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(31,58,95,.25); transition: color .15s, border-color .15s; }
a:hover { color: var(--accent-hover); border-bottom-color: currentColor; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
nav.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251,250,247,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
nav.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
nav.top .brand { font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--ink); border: 0; white-space: nowrap; }
nav.top ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
nav.top ul::-webkit-scrollbar { display: none; }
nav.top li a { font-size: 14px; font-weight: 500; color: var(--muted); border: 0; white-space: nowrap; }
nav.top li a:hover { color: var(--accent); }

/* Header */
header.hero { padding: 56px 0 44px; border-bottom: 1px solid var(--rule); }
.hero .wrap { display: grid; grid-template-columns: 200px 1fr; gap: 44px; align-items: center; }
.hero img.portrait { width: 200px; height: 200px; object-fit: cover; object-position: 35% 30%; border-radius: 50%; display: block; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1.15; margin: 0 0 6px; letter-spacing: -.01em; }
.hero .role { font-family: var(--serif); font-size: 20px; color: var(--accent); margin: 0 0 4px; }
.hero .rank { font-size: 14px; color: var(--muted); margin: 0 0 18px; letter-spacing: .01em; }
.hero address { font-style: normal; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.links a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 6px;
  border: 1px solid var(--rule); background: var(--card); color: var(--ink);
}
.links a:hover { border-color: var(--accent); color: var(--accent); }
.links a.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.links a.primary:hover { background: #16304f; color: #fff; }
.links svg { flex: none; }

/* Sections */
section { padding: 48px 0 8px; }
h2 {
  font-family: var(--serif); font-weight: 600; font-size: 26px; margin: 0 0 22px;
  padding-bottom: 10px; border-bottom: 1px solid var(--rule);
}
h3 { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin: 30px 0 12px; }
h3:first-of-type { margin-top: 0; }
.motto { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 18px; margin: 0 0 16px; }
.lead { font-family: var(--serif); font-size: 19px; line-height: 1.65; max-width: 760px; margin: 0; }

/* Lists */
ul.items { list-style: none; margin: 0; padding: 0; }
ul.items > li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
ul.items > li:last-child { border-bottom: 0; }
.meta { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.tag {
  display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent); background: rgba(31,58,95,.07); border-radius: 4px; padding: 2px 7px; margin-right: 8px; vertical-align: 1px;
}
.role-badge { font-size: 13px; color: var(--faint); white-space: nowrap; }
.title { font-weight: 500; }
ul.compact { margin: 0; padding-left: 18px; }
ul.compact li { margin: 7px 0; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.person { font-weight: 600; }

/* Outreach */
.book { display: grid; grid-template-columns: 110px 1fr; gap: 28px; align-items: start; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 24px; }
.book img { width: 110px; height: auto; display: block; border-radius: 2px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.book a.cover { border: 0; }
.book h4 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 0 0 4px; }

/* Footer */
footer { margin-top: 64px; padding: 32px 0 44px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--muted); }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer img { height: 64px; width: auto; display: block; }
footer a.logo { border: 0; }

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  nav.top .brand { display: none; }
  header.hero { padding: 36px 0 32px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 22px; text-align: center; }
  .hero img.portrait { width: 150px; height: 150px; margin: 0 auto; }
  .hero h1 { font-size: 31px; }
  .links { justify-content: center; }
  .cols { grid-template-columns: 1fr; }
  .book { grid-template-columns: 80px 1fr; gap: 18px; padding: 18px; }
  .book img { width: 80px; }
  .lead { font-size: 17.5px; }
}

/* Inner pages */
nav.top li a[aria-current="page"] { color: var(--ink); }
header.pagehead { padding: 44px 0 28px; border-bottom: 1px solid var(--rule); }
.pagehead h1 { font-family: var(--serif); font-weight: 600; font-size: 38px; line-height: 1.15; margin: 0 0 8px; letter-spacing: -.01em; }
.pagehead .sub { color: var(--muted); margin: 0; max-width: 720px; }
.pagehead .links { margin-top: 18px; }
.jump { font-size: 14px; color: var(--faint); margin: 18px 0 0; }
.jump a { border: 0; }
.toolbar { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.toolbar input {
  flex: 1; max-width: 460px; font: inherit; font-size: 15px; padding: 9px 12px;
  border: 1px solid var(--rule); border-radius: 6px; background: var(--card); color: var(--ink);
}
.toolbar input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,58,95,.12); }
.qcount { font-size: 13.5px; color: var(--muted); }
h2 .count { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--faint); margin-left: 6px; }

ol.pubs { list-style: none; margin: 0; padding: 0; }
ol.pubs li.year { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--accent); padding: 18px 0 4px; }
ol.pubs li.pub { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
ol.pubs li.pub:last-child { border-bottom: 0; }
ol.pubs .num { font-size: 13px; color: var(--faint); padding-top: 2px; text-align: right; font-variant-numeric: tabular-nums; }
ol.pubs p { margin: 0; font-size: 15px; line-height: 1.55; }
ol.pubs strong { font-weight: 600; }
.btns { margin-top: 6px !important; display: flex; gap: 8px; flex-wrap: wrap; }
.btns a {
  font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 2px 9px; border-radius: 4px;
  border: 1px solid var(--rule); background: var(--card); color: var(--accent);
}
.btns a:hover { border-color: var(--accent); }

dl.timeline { display: grid; grid-template-columns: 150px 1fr; gap: 0; margin: 0; }
dl.timeline dt, dl.timeline dd { padding: 11px 0; border-bottom: 1px solid var(--rule); margin: 0; }
dl.timeline dt { font-size: 14px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; padding-right: 16px; }
dl.timeline dd { font-size: 15.5px; }
dl.timeline dt:last-of-type, dl.timeline dd:last-of-type { border-bottom: 0; }
dl.dense dt, dl.dense dd { padding: 8px 0; font-size: 14.5px; }
dl.dense dt { font-size: 13px; }
ul.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
ul.chips li { font-size: 14px; padding: 4px 11px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); }

@media (max-width: 720px) {
  .pagehead h1 { font-size: 30px; }
  dl.timeline { grid-template-columns: 1fr; }
  dl.timeline dt { border-bottom: 0; padding-bottom: 0; }
  ol.pubs li.pub { grid-template-columns: 30px 1fr; gap: 8px; }
}

/* Conferences */
ol.conf li.pub { grid-template-columns: 1fr; }
ol.pubs p.tags { margin: 0 0 4px; }
.tag.inv { color: #8a4a12; background: rgba(180,84,31,.09); }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); white-space: nowrap; cursor: pointer; }
.chk input { accent-color: var(--accent); }
#organized ul.items .tag { margin-right: 10px; }
#organized .title { font-weight: 500; }
@media (max-width: 720px) { .toolbar { flex-wrap: wrap; } .toolbar input[type=search] { flex-basis: 100%; max-width: none; } }

/* Curriculum extras */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 560px; gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 16px 14px; }
.stat .v { display: block; font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--accent); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .l { display: block; font-size: 13px; color: var(--ink); margin-top: 4px; line-height: 1.35; }
.stat small { color: var(--faint); font-size: 12px; }
.note { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }
ul.chips small { color: var(--faint); font-size: 12px; margin-left: 4px; }
dl.timeline dd .meta { margin-top: 2px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
