:root {
  --ink: #494e52;
  --ink-strong: #303436;
  --muted: #6f777d;
  --link: #2f4f69;
  --line: #f0f1f2;
  --page-width: 1280px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Trebuchet MS", Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover,
a:focus-visible {
  color: #111;
}

a:focus-visible {
  outline: 2px solid #8aa6bb;
  outline-offset: 3px;
}

.masthead {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.site-nav {
  width: min(var(--page-width), calc(100% - 15px));
  min-height: 52px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink-strong);
}

.site-title {
  flex: 0 0 102px;
  font-weight: 700;
}

.nav-links {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 42px);
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.page-shell {
  width: min(var(--page-width), calc(100% - 30px));
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 45px;
  align-items: start;
}

.author-profile {
  position: sticky;
  top: 22px;
  min-width: 0;
}

.author-avatar {
  display: block;
  width: 178px;
  height: 218px;
  margin: 20px 0 14px 5px;
  border: 1px solid #e4e6e7;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 32%;
}

.author-profile h1 {
  margin: 0 0 5px;
  color: var(--ink-strong);
  font-size: 21px;
  line-height: 1.2;
}

.author-role,
.author-bio {
  margin: 0 0 17px;
}

.author-bio {
  line-height: 1.55;
}

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

.author-links li {
  min-height: 30px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.author-links a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}

.author-links a:hover {
  color: var(--link);
}

.author-links i {
  width: 15px;
  margin-top: 4px;
  color: #333;
  text-align: center;
}

.page-content {
  min-width: 0;
  padding: 0 0 32px;
}

.content-section {
  padding-top: 24px;
  scroll-margin-top: 58px;
}

.first-section {
  padding-top: 0;
}

.content-section h2 {
  margin: 0 0 11px;
  padding: 0 0 9px;
  color: var(--ink-strong);
  border-bottom: 1px solid var(--line);
  font-size: 21px;
  line-height: 1.2;
}

.content-section h3 {
  margin: 18px 0 6px;
  color: var(--ink-strong);
  font-size: 15px;
  line-height: 1.4;
}

.content-section p {
  margin: 0 0 8px;
}

.research-list,
.news-list,
.entry-list,
.project-list,
.skills-list {
  margin: 6px 0 0;
  padding-left: 29px;
}

.research-list li,
.news-list li,
.skills-list li {
  margin: 0 0 7px;
}

.entry-list,
.project-list {
  list-style: none;
  padding-left: 0;
}

.entry-list > li,
.project-list > li {
  position: relative;
  margin: 0 0 17px;
  padding-left: 29px;
}

.entry-list > li::before,
.project-list > li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

.entry-list p,
.project-list p,
.publication-list p {
  margin: 0 0 2px;
}

.project-role {
  margin-left: 6px;
  color: #be2020;
  font-weight: 700;
}

.project-list em {
  float: right;
  color: var(--ink-strong);
  font-weight: 700;
}

.section-note {
  color: var(--muted);
  font-style: italic;
}

.publication-list {
  margin: 6px 0 0;
  padding-left: 29px;
}

.publication-list > li {
  margin: 0 0 14px;
  padding-left: 4px;
}

.publication-list a {
  text-decoration: none;
}

.publication-list a:hover {
  text-decoration: underline;
}

.publication-list sup,
.section-note sup {
  font-size: 0.72em;
}

.site-footer {
  padding-top: 28px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.site-footer hr {
  height: 1px;
  margin: 0 0 12px;
  border: 0;
  background: var(--line);
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 58px;
  }

  .site-nav {
    width: calc(100% - 24px);
    gap: 20px;
  }

  .site-title {
    flex-basis: auto;
  }

  .nav-links {
    gap: 24px;
  }

  .page-shell {
    width: min(720px, calc(100% - 30px));
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .author-profile {
    position: static;
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    column-gap: 22px;
    align-items: start;
  }

  .author-avatar {
    grid-row: 1 / span 5;
    width: 145px;
    height: 176px;
    margin: 4px 0 0;
  }

  .author-profile h1 {
    margin-top: 4px;
  }

  .author-role,
  .author-bio {
    margin-bottom: 9px;
  }

  .author-links {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 16px;
  }

  .author-links li {
    min-height: 25px;
  }

  .content-section {
    scroll-margin-top: 42px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 14px;
  }

  .masthead {
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .site-nav {
    min-height: 46px;
  }

  .nav-links {
    gap: 19px;
  }

  .page-shell {
    width: calc(100% - 24px);
    margin-top: 16px;
  }

  .author-profile {
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 17px;
  }

  .author-avatar {
    width: 112px;
    height: 136px;
  }

  .author-profile h1 {
    font-size: 20px;
  }

  .author-bio {
    line-height: 1.4;
  }

  .author-links {
    grid-column: 1 / -1;
    margin-top: 13px;
  }

  .content-section {
    padding-top: 20px;
  }

  .content-section h2 {
    font-size: 20px;
  }

  .project-list em {
    display: block;
    float: none;
    margin-top: 2px;
  }
}

@media print {
  .masthead {
    display: none;
  }

  .page-shell {
    width: 100%;
    grid-template-columns: 180px 1fr;
  }

  .author-profile {
    position: static;
  }

  a {
    color: inherit;
  }
}
