:root {
  --text: #1a1f26;
  --muted: #4a5568;
  --accent: #1e5a8a;
  --bg: #fdfdfc;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  max-width: 44rem;
  padding: 1.75rem 1.25rem 3rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.58;
  color: var(--text);
  background: var(--bg);
}

.masthead {
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.breadcrumb a {
  color: var(--accent);
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.2rem;
  margin-top: 1.75rem;
}

.lede,
.lede code {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  font-weight: 500;
}

.projects {
  list-style: none;
  padding: 0;
  margin: 0;
}

.projects li {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border);
}

.projects li:last-child {
  border-bottom: none;
}

.project-title {
  font-weight: 600;
}

.project-meta {
  font-size: 0.92rem;
  color: var(--muted);
}

.publist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.publist.numbered {
  counter-reset: pub;
}

.publist.numbered .pub::before {
  counter-increment: pub;
  content: counter(pub) ".";
  font-weight: 600;
  color: var(--muted);
  margin-right: 0.65rem;
}

.pub {
  margin: 0 0 1rem;
}

.pub .title {
  font-style: italic;
}

.pub .venue {
  color: var(--muted);
}

.pub .doi {
  font-size: 0.9rem;
  white-space: nowrap;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--muted);
}

code {
  font-size: 0.88em;
}
