:root {
  --text: #222;
  --muted: #666;
  --accent: #1a4f8b;
  --rule: #e2dccd;
  --bg: #f7f3e9;
  color-scheme: light;
}
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.6;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 20px 48px;
}

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

.intro {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
}
.photo {
  width: 160px;
  height: 200px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 4px;
  flex-shrink: 0;
}
h1 { font-size: 2.2rem; font-weight: 500; margin: 0 0 4px; }
.role { margin: 0 0 8px; color: var(--muted); }
.links { margin: 0; }

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 40px 0 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rule);
}

ul { list-style: none; padding: 0; margin: 0; }

.pubs li { margin-bottom: 16px; }
.pubs .title { font-weight: 500; }
.me { text-decoration: underline; text-underline-offset: 3px; }

.timeline li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
.when { color: var(--muted); }
.sub { color: var(--muted); font-size: 0.95em; }

footer {
  margin-top: 56px;
  color: var(--muted);
  font-size: 0.85em;
}

@media (max-width: 560px) {
  main { padding-top: 40px; }
  .intro { flex-direction: column; align-items: flex-start; gap: 20px; }
  .timeline li { grid-template-columns: 1fr; gap: 0; }
}
