:root {
  --text: #222;
  --muted: #666;
  --link: #1f5d8f;
  --border: #d9d9d9;
  --page-width: 980px;
  --content-size: .9375rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Book Antiqua", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.7;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: .5rem .75rem;
  background: #fff;
  border: 1px solid var(--border);
  z-index: 10;
}

.skip-link:focus { top: 1rem; }
.site-header { border-bottom: 1px solid var(--border); }

.header-inner {
  max-width: var(--page-width);
  min-height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

nav a { color: #444; font-size: .92rem; }

.page {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.profile {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--border);
}

.profile-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: 66% 22%;
  border: 1px solid #eee;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: .25rem;
  font-family: "Book Antiqua", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.2;
}

.profile-content p,
section:not(.profile),
footer p {
  font-family: "Times New Roman", Times, serif;
}

section:not(.profile) {
  font-size: var(--content-size);
}

.position { margin-bottom: .1rem; font-size: 1.12rem; font-weight: 700; }
.affiliation, .profile-links { margin-bottom: .75rem; }
.profile-links span { margin: 0 .35rem; color: #999; }
section:not(.profile) { padding-top: 36px; }

h2 {
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  font-family: "Book Antiqua", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.affiliation-list { margin: 0; padding-left: 1.35rem; }
.affiliation-list li { margin-bottom: .25rem; }

.timeline-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: .55rem;
}

.timeline-period {
  color: var(--muted);
  white-space: nowrap;
}

.current-role { font-weight: 700; }

.publication-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.publication-list li {
  margin: 0 0 1rem;
  padding: 0;
}

.publication-list li:last-child {
  margin-bottom: 0;
}

.pub-title,
.pub-authors,
.pub-venue {
  display: block;
  font-size: inherit;
  line-height: 1.4;
}

.pub-title { line-height: 1.35; }
.pub-title,
.pub-title a { font-weight: 700; }
.pub-authors { color: #333; }
.pub-venue { color: #666; font-style: normal; }

#contact p { margin-bottom: .7rem; }
#contact p:last-child { color: var(--muted); }

footer { border-top: 1px solid var(--border); color: var(--muted); }
footer p { max-width: var(--page-width); margin: 0 auto; padding: 22px 24px; font-size: .86rem; }

@media (max-width: 700px) {
  .header-inner {
    padding-top: 14px;
    padding-bottom: 14px;
    align-items: flex-start;
    flex-direction: column;
    gap: .45rem;
  }

  nav { gap: .5rem 1.1rem; }
  .page { padding-top: 32px; }

  .profile {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .profile-photo {
    width: min(200px, 60vw);
    height: min(200px, 60vw);
  }

  h1 { font-size: 1.75rem; }

  .timeline-list li {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: .8rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
