:root {
  color-scheme: light dark;
  --bg: #fdfdfc;
  --text: #1d1d1f;
  --muted: #6b6b70;
  --rule: #e4e4e7;
  --accent: #1a5fb4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161618;
    --text: #e8e8ea;
    --muted: #9a9aa0;
    --rule: #2e2e32;
    --accent: #7fb2ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 42rem;
  padding: 4rem 1.25rem 5rem;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

header { margin-bottom: 2.5rem; }
h1 { margin: 0 0 0.5rem; font-size: 2rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }

h2 {
  margin: 3rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1.25rem;
  font-weight: 600;
}

.pubs { list-style: none; margin: 0; padding: 0; }
.pubs li { margin-bottom: 1.75rem; }
.pubs cite { display: block; font-style: normal; font-weight: 600; line-height: 1.4; }
.pubs p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.9375rem; }
.pubs b { color: var(--text); font-weight: 500; }
.pubs .links { display: flex; gap: 1rem; margin-top: 0.3rem; }
