:root {
  color-scheme: light dark;
  --fg: #1d1d1f;
  --muted: #6b6b70;
  --bg: #fdfdfc;
  --accent: #0b5cad;
  --rule: #e2e2e0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e6e6e3;
    --muted: #9a9a9f;
    --bg: #141416;
    --accent: #6cb2ff;
    --rule: #2c2c30;
  }
}

* { box-sizing: border-box; }

body {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--fg);
  background: var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { font-size: 2rem; margin: 0; line-height: 1.2; }
h2 { font-size: 1.1rem; margin: 2.5rem 0 0.75rem; letter-spacing: 0.02em; }

.tagline { margin: 0.25rem 0 0.75rem; color: var(--muted); }
nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }

.muted, .note { color: var(--muted); }
.note { font-size: 0.9rem; }

dl.news, dl.cv {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.5rem 1rem;
  margin: 0;
}
dt { color: var(--muted); font-variant-numeric: tabular-nums; }
dd { margin: 0; }

ul { padding: 0; list-style: none; }
.pubs li, .projects li { margin-bottom: 0.9rem; }
.pubs span { display: block; }
.pubs .title { font-weight: 600; }
.pubs .venue { color: var(--muted); }

footer {
  margin-top: 3rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
}
footer h2 { margin-top: 1rem; }

@media (max-width: 30rem) {
  dl.news, dl.cv { grid-template-columns: 1fr; gap: 0 0; }
  dd { margin-bottom: 0.6rem; }
}
