:root {
  --text: #1b1b1b;
  --muted: #666;
  --line: #e8e8e8;
  --width: 700px;
}

* { box-sizing: border-box; }
html { background: #fff; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: min(calc(100% - 40px), var(--width));
  margin: 0 auto;
}

.header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 22px;
  padding: 34px 0 22px;
  border-bottom: 1px solid var(--line);
}

.name {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover,
nav a.active { color: var(--text); }

main { padding: 44px 0 68px; }

h1, h2, h3 {
  line-height: 1.28;
  letter-spacing: -0.015em;
}

h1 {
  margin: 0 0 24px;
  font-size: 30px;
  font-weight: 600;
}

h2 {
  margin: 40px 0 14px;
  font-size: 17px;
  font-weight: 600;
}

h3 {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 600;
}

p { margin: 0 0 17px; }
ul, ol { margin: 0 0 20px; padding-left: 21px; }
li { margin-bottom: 6px; }

a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: #555; }

.tagline {
  margin: 0 0 22px;
  font-weight: 600;
}

.question-list {
  padding-left: 19px;
}

.question-list li {
  margin-bottom: 9px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 4px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  color: var(--muted);
  text-decoration: none;
}

.social-links a:hover { color: var(--text); }

.social-links svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.research-entry {
  margin: 0 0 26px;
}

.research-entry p:last-child { margin-bottom: 0; }

.citation,
.note {
  color: var(--muted);
  font-size: 13.5px;
}

.empty-state {
  margin-top: 30px;
  color: var(--muted);
}

.empty-state p { margin-bottom: 5px; }

footer {
  padding: 21px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
}

@media (max-width: 600px) {
  .page { width: min(calc(100% - 28px), var(--width)); }

  .header {
    display: block;
    padding-top: 25px;
  }

  nav { margin-top: 12px; gap: 14px; }
  main { padding-top: 34px; }
  h1 { font-size: 27px; }
}

/* Projects page */
.project-entry {
  margin: 0 0 34px;
}

.project-entry p:last-of-type {
  margin-bottom: 0;
}

.compact-entry {
  margin-bottom: 8px;
}

.project-intro {
  max-width: 680px;
}

.project-entry h4 {
  margin: 19px 0 8px;
  font-size: 13.5px;
  font-weight: 600;
}

.publication-list {
  margin-top: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13.5px;
}

.publication-list li {
  margin-bottom: 7px;
}

.publication-list a {
  color: var(--text);
}

.project-title {
  color: #2563eb;
}
