:root {
  --accent: #2b579a;
  --text: #1a1a1a;
  --muted: #555;
  --border: #d8dee8;
  --bg: #fafbfc;
  --max: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  padding: 2.5rem 1.25rem 3rem;
}

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

header, main, footer {
  max-width: var(--max);
  margin: 0 auto;
}

.hero {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--accent);
}

.avatar {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.tagline {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.contact { font-size: 0.9rem; margin-bottom: 0.75rem; }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

section { margin-bottom: 2rem; }

h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
  margin-bottom: 0.85rem;
}

p { margin-bottom: 0.75rem; }

.note { font-size: 0.88rem; color: var(--muted); }

.entries, .pubs {
  list-style: none;
}

.entries li, .pubs li {
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #eef1f5;
}

.entries li:last-child, .pubs li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.date {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.15rem;
}

.detail {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.compact li { margin-bottom: 0.55rem; padding-bottom: 0.55rem; }

.pubs em { color: var(--muted); font-style: normal; font-size: 0.88rem; }

footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 520px) {
  .hero { flex-direction: column; text-align: center; }
  .links { justify-content: center; }
}
