:root {
  --ink: #1d1f23;
  --muted: #5d636e;
  --line: #e4e2dd;
  --bg: #fbfaf7;
  --accent: #8a2432;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--serif); line-height: 1.6;
}
.wrap { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .5rem 1.5rem; padding-top: 1.1rem; padding-bottom: 1.1rem;
}
.site-name { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; color: var(--ink); letter-spacing: -.01em; }
nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; font-family: var(--sans); font-size: .85rem; }
nav a { color: var(--muted); }
nav a.active, nav a:hover { color: var(--ink); text-decoration: none; }
nav a.active { border-bottom: 2px solid var(--accent); }

main.wrap { padding-top: 3.25rem; padding-bottom: 3rem; }
h1, h2, h3 { font-family: var(--sans); letter-spacing: -.015em; line-height: 1.25; }
h1 { font-size: 1.9rem; font-weight: 600; margin: 0 0 1.25rem; }
h2 { font-size: 1.15rem; font-weight: 600; margin: 2.4rem 0 .8rem; padding-bottom: .35rem; border-bottom: 1px solid var(--line); }
h3 { font-size: 1rem; font-weight: 600; margin: 1.6rem 0 .4rem; }
ul { padding-left: 1.2rem; }
li { margin: .3rem 0; }
.muted, .meta { color: var(--muted); }
.meta { font-size: .92rem; }

/* Home */
.intro { display: flex; gap: 2.25rem; align-items: flex-start; }
.intro img { width: 220px; flex: 0 0 220px; border-radius: 4px; display: block; }
.intro > div { flex: 1 1 auto; min-width: 0; }
.intro .role { font-family: var(--sans); color: var(--muted); font-size: .95rem; margin: -.8rem 0 1.2rem; }
.links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; font-family: var(--sans); font-size: .85rem; }
.links a { border: 1px solid var(--line); background: #fff; padding: .35rem .8rem; border-radius: 999px; color: var(--ink); }
.links a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.links a.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 640px) {
  .intro { flex-direction: column; }
  .intro img { width: 180px; flex-basis: auto; }
}

/* Papers */
.paper { margin: 0 0 1.4rem; }
.paper .title { font-weight: 600; }
.paper .meta a { font-family: var(--sans); font-size: .8rem; margin-right: .6rem; }
.paper .former { font-size: .88rem; color: var(--muted); font-style: italic; }

/* Year blocks (talks, awards) */
.year-block h2 { border-bottom: none; color: var(--accent); margin-bottom: .2rem; }
.year-block h3 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.note { font-size: .88rem; color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line); padding-top: 1.2rem; padding-bottom: 2rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  font-family: var(--sans); font-size: .8rem; color: var(--muted);
}
