:root {
  --bg: #ffffff;
  --text: #1f2328;
  --muted: #5b6470;
  --accent: #1a5fb4;
  --line: #e3e6ea;
  --max: 780px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181c;
    --text: #e6e8eb;
    --muted: #9aa3ad;
    --accent: #7fb2ff;
    --line: #2b3036;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 "Source Serif 4", Georgia, "Times New Roman", serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header {
  border-bottom: 1px solid var(--line);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 22px 20px 16px;
}

.name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

nav a {
  margin-right: 18px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  color: var(--muted);
  white-space: nowrap;
  display: inline-block;
}
nav a:last-child { margin-right: 0; }
nav a.active { color: var(--text); font-weight: 600; }

main.wrap { padding-top: 32px; padding-bottom: 48px; }

h1 { font-size: 1.7rem; margin: 0 0 18px; }
h2 {
  font-size: 1.2rem;
  margin: 30px 0 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.intro {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.intro img {
  width: 240px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 55% 30%;
  border-radius: 6px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .intro { flex-direction: column; }
  .intro img { width: 200px; }
}

.links a { white-space: nowrap; }
.muted { color: var(--muted); }

ol.pubs, ul.plain { padding-left: 1.4em; }
ol.pubs li, ul.plain li { margin-bottom: 7px; line-height: 1.5; }
ol.pubs li { margin-bottom: 11px; font-size: 0.96rem; }
.title { font-style: italic; }

footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 28px;
  font-size: 0.85rem;
  color: var(--muted);
}

.collab { line-height: 1.9; }
a.title { font-style: italic; }

.jump {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  margin: 0 0 8px;
}
.jump a { margin-right: 14px; white-space: nowrap; display: inline-block; }
h2 { scroll-margin-top: 16px; }
@media (min-width: 720px) {
  ul.cols { columns: 2; column-gap: 40px; }
  ul.cols li { break-inside: avoid; }
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}
.name:hover { text-decoration: none; }
