:root {
  --bg: #faf6ec;        /* cream */
  --text: #2b2a27;
  --muted: #6f6a60;
  --rule: #e2dccd;
  --link: #8a3b12;      /* warm rust */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1d1a;
    --text: #e8e2d4;
    --muted: #a39c8d;
    --rule: #3a3631;
    --link: #e0a070;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.55;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 1rem 3rem;
}

h1 {
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 1.1;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

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

nav { display: flex; flex-wrap: wrap; gap: 0 1.1rem; }

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

ul, ol { padding-left: 0; list-style: none; }
li { margin-bottom: 0.6rem; }

.news .date {
  display: inline-block;
  min-width: 5.5rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.title { font-weight: 600; }
.authors, .venue { color: var(--muted); }
.venue { font-style: italic; }

.pubs li, .edu li { margin-bottom: 1rem; }

.talks li { display: flex; gap: 1rem; }
.talks .date {
  flex: 0 0 4.5rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 30rem) {
  .talks li { flex-direction: column; gap: 0; }
}

footer {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}
