:root {
  --text: #1f2328;
  --muted: #636c76;
  --link: #1767d0;
  --bg: #ffffff;
  --rule: #e5e7eb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6edf3;
    --muted: #9198a1;
    --link: #58a6ff;
    --bg: #0d1117;
    --rule: #30363d;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 16px;
}

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

h1 { font-size: 2rem; margin: 0 0 16px; }
h2 { font-size: 1.35rem; margin: 48px 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
h3 { font-size: 1.05rem; margin: 0; }

.intro {
  display: flex;
  gap: 32px;
  align-items: center;
}

.photo img {
  width: 200px;
  border-radius: 12px;
  height: auto;
  display: block;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  font-weight: 500;
}

.entry {
  display: flex;
  gap: 24px;
  margin-top: 32px;
}

.entry > img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

.entry p { margin: 8px 0 0; }

.place { font-weight: 400; color: var(--muted); font-size: 0.95rem; }
.role { color: var(--muted); font-style: italic; margin-top: 2px !important; }

@media (max-width: 600px) {
  .intro { flex-direction: column-reverse; text-align: center; }
  .links { justify-content: center; }
  .photo img { width: 160px; }
  .entry { flex-direction: column; gap: 12px; }
  .entry > img { width: 80px; height: 80px; }
}

.pub, .edu { margin-top: 24px; }
.pub p, .edu p { margin: 8px 0 0; }
