:root {
  --bg: #fff;
  --text: #222;
  --muted: #666;
  --link: #1a0dab;
  --rule: #e5e5e5;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #161616; --text: #ddd; --muted: #999; --link: #8ab4f8; --rule: #2a2a2a; }
}

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
main { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }

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

header { display: flex; gap: 28px; align-items: center; margin-bottom: 32px; }
.photo { width: 140px; height: 140px; border-radius: 4px; object-fit: cover; flex: none; }
h1 { font-size: 28px; font-weight: 600; margin: 0 0 4px; }
.sub { margin: 0 0 8px; color: var(--muted); }
.contact { margin: 0; }

section { margin-top: 36px; }
h2 { font-size: 20px; font-weight: 600; margin: 0 0 14px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
h3 { font-size: 16px; font-weight: 600; margin: 24px 0 12px; }
p { margin: 0 0 12px; }

.news { list-style: none; margin: 0; padding: 0; }
.news li { margin-bottom: 6px; }
.news span { display: inline-block; min-width: 80px; color: var(--muted); }

.pub { margin-bottom: 16px; line-height: 1.5; }
.pub .title { font-weight: 600; }
.pub .venue { color: var(--muted); font-style: italic; }

.cv { border-collapse: collapse; }
.cv td { padding: 3px 0; vertical-align: top; }
.cv td:first-child { width: 88px; color: var(--muted); white-space: nowrap; padding-right: 12px; }

@media (max-width: 560px) {
  main { padding-top: 36px; }
  header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .photo { width: 112px; height: 112px; }
}
