:root {
  --bg: #fdfdfc;
  --text: #1c1c1a;
  --muted: #6b6b66;
  --rule: #e4e4df;
  --link: #1a4f8a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17181a;
    --text: #e3e3e0;
    --muted: #9a9a94;
    --rule: #2c2e31;
    --link: #8fb6e8;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 5rem 1.5rem 4rem;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main, footer {
  max-width: 40rem;
  margin: 0 auto;
}

/* ---- headings ---- */

h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h2 {
  margin: 3.5rem 0 1.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

h3 {
  margin: 2rem 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}

p { margin: 0 0 1rem; }

.lede {
  margin: 0.4rem 0 1.75rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---- links ---- */

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--link) 30%, transparent);
}

a:hover {
  border-bottom-color: var(--link);
}

/* ---- publications ---- */

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

.pubs li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}

.pubs li:last-child { border-bottom: 0; }

.pubs .year {
  padding-top: 0.15rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.pubs .title {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.4;
  border-bottom: 0;
}

.pubs .title:hover {
  color: var(--link);
}

.pubs .authors,
.pubs .venue {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pubs .authors b {
  color: var(--text);
  font-weight: 600;
}

.pubs .links {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
}

.pubs .links a {
  margin-right: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 0;
}

.pubs .links a:hover {
  color: var(--link);
}

/* ---- footer ---- */

footer {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
}

footer a {
  margin-right: 1.25rem;
  color: var(--muted);
  border-bottom: 0;
}

footer a:hover { color: var(--link); }

@media (max-width: 34rem) {
  body { padding-top: 3rem; }
  .pubs li { grid-template-columns: 1fr; gap: 0; }
  .pubs .year { padding: 0 0 0.2rem; }
}
