:root {
  --navy: #1B3A5C;
  --accent: #2E75B6;
  --bg: #ffffff;
  --panel: #EDF2F7;
  --text: #333333;
  --muted: #666666;
  --rule: #d9e1ea;
}
@media (prefers-color-scheme: dark) {
  :root {
    --navy: #cfe0f3;
    --accent: #7fb3e6;
    --bg: #0f1722;
    --panel: #172233;
    --text: #e3e8ee;
    --muted: #a3afbd;
    --rule: #26344a;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.top {
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between;
  max-width: 880px; margin: 0 auto; padding: 20px 16px; border-bottom: 1px solid var(--rule);
}
.brand { color: var(--navy); font-weight: 700; font-size: 1.05rem; }
nav a { margin-left: 18px; color: var(--muted); }
nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
main { max-width: 880px; margin: 0 auto; padding: 8px 16px 48px; }
h1, h2, h3 { color: var(--navy); line-height: 1.25; }
h1 { font-size: 2rem; margin: 0 0 4px; }
h2 { font-size: 1.3rem; margin: 40px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--panel); }
h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.hero { display: flex; gap: 28px; align-items: center; margin-top: 32px; }
.photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; flex: none; }
.cred { color: var(--muted); margin: 0 0 6px; }
.role { margin: 0 0 10px; }
.links a { white-space: nowrap; }
.metrics { background: var(--panel); padding: 10px 14px; border-radius: 8px; }
.note { color: var(--muted); font-size: 0.85em; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.card { background: var(--panel); border-radius: 10px; padding: 14px 16px; }
.card h3 { margin-top: 0; }
.card p { margin: 0; font-size: 0.95rem; }
.pubs li, .entries li, .posts li { margin-bottom: 10px; }
.pubs { padding-left: 1.4em; }
.entries { list-style: none; padding: 0; }
.row { display: flex; justify-content: space-between; gap: 16px; }
.what { font-weight: 600; }
.amt { font-weight: 400; color: var(--muted); }
.when { color: var(--muted); white-space: nowrap; font-size: 0.92em; }
.sub { color: var(--muted); }
.det { font-size: 0.95rem; }
.doi { font-size: 0.88em; }
.button {
  display: inline-block; background: var(--navy); color: var(--bg); padding: 8px 16px;
  border-radius: 6px; font-weight: 600;
}
.button:hover { text-decoration: none; opacity: 0.9; }
.toc { font-size: 0.92rem; color: var(--muted); }
footer { max-width: 880px; margin: 0 auto; padding: 24px 16px 40px; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--rule); }
@media (max-width: 600px) {
  .hero { flex-direction: column; align-items: flex-start; }
  .row { flex-direction: column; gap: 0; }
  nav a { margin-left: 0; margin-right: 14px; }
  h1 { font-size: 1.7rem; }
}
