:root {
  --bg: #fbfaf7;
  --text: #1d1d1f;
  --muted: #5f6368;
  --accent: #1f4e79;
  --line: #e4e1da;
  --card: #ffffff;
  --max: 46rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --text: #e8e6e1;
    --muted: #a0a4a8;
    --accent: #8db8e0;
    --line: #2c3036;
    --card: #1c1f23;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 Georgia, "Iowan Old Style", "Times New Roman", serif;
}
a { color: var(--accent); }
h1, h2, h3, .brand, nav, .role, .site-footer, dt {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.site-header, main, .site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}
.site-header {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  justify-content: space-between; align-items: center;
  padding-top: 1.25rem; padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 600; text-decoration: none; color: var(--text); }
nav { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .95rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--accent); }

section { padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
section:last-child { border-bottom: 0; }
h1 { font-size: 2.2rem; line-height: 1.2; margin: 0 0 .25rem; }
h2 { font-size: 1.35rem; margin: 0 0 1rem; }
h3 { font-size: 1.05rem; margin: 0 0 .4rem; }

.hero { display: flex; gap: 1.75rem; align-items: center; flex-wrap: wrap; }
.portrait { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; }
.role { color: var(--muted); margin: 0 0 1rem; }
.lead { font-size: 1.15rem; margin: 0; }

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.cards article {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 1rem 1.1rem;
}
.cards p { margin: 0; color: var(--muted); font-size: .95rem; }

.pubs { padding-left: 1.25rem; }
.pubs li { margin-bottom: .8rem; }
.authors { font-variant: small-caps; }

.cv { display: grid; grid-template-columns: 7.5rem 1fr; gap: .4rem 1rem; margin: 0; }
dt { color: var(--muted); font-size: .9rem; padding-top: .15rem; }
dd { margin: 0; }
@media (max-width: 480px) {
  .cv { grid-template-columns: 1fr; }
  dd { margin-bottom: .6rem; }
}

.links { display: flex; gap: 1.25rem; }
.site-footer {
  padding-top: 2rem; padding-bottom: 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: .9rem;
}
.site-footer a { color: var(--muted); }
