:root {
  color-scheme: light;
  --ink: #272727;
  --text: #333944;
  --muted: #667085;
  --line: rgba(0, 0, 0, 0.12);
  --soft-line: rgba(0, 0, 0, 0.07);
  --link: #1f5f8b;
  --link-hover: #9a3412;
  --accent: #d49b12;
  --selected-bg: #fff5c7;
  --selected-line: #e7c66a;
  --page: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

strong {
  color: var(--ink);
  font-weight: 700;
}

.wrapper {
  min-height: 100%;
}

.container {
  max-width: 960px;
  margin: auto;
}

.navbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 50px 0;
}

#author-name {
  color: var(--ink);
  display: inline-block;
  font-size: 30px;
  font-weight: 400;
  white-space: nowrap;
}

#author-name:hover {
  text-decoration: none;
}

#navlist {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 9px;
  color: #9aa3af;
  font-size: 15px;
  font-weight: 700;
}

#navlist a {
  color: var(--ink);
}

#navlist a:hover {
  color: var(--link-hover);
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  height: 0;
  margin: 0;
}

.content {
  padding-bottom: 42px;
}

.content h2 {
  margin: 34px 0 12px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
}

.content p {
  margin: 0 0 15px;
}

.content ul {
  margin: 0 0 15px;
  padding: 0 20px;
}

.content li {
  margin: 5px 0;
}

.intro {
  padding-top: 28px;
}

.profile-picture {
  float: right;
  width: 155px;
  height: 155px;
  margin: -10px 0 16px 28px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 35%;
  border: 1px solid var(--soft-line);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
  align-items: center;
}

.collab-note {
  border-left: 4px solid var(--link);
  background: #eef5fb;
  padding: 11px 14px;
  font-size: 16px;
}

#research ul strong {
  color: var(--link);
}

.legend {
  color: var(--muted);
  font-size: 14px;
}

.pub-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 12px;
  padding: 7px 0 11px;
  border-bottom: 1px solid var(--soft-line);
}

.pub-item.selected {
  padding: 10px 12px;
  border: 1px solid var(--selected-line);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  background: var(--selected-bg);
}

.pub-image {
  flex: 0 0 180px;
  width: 180px;
  min-height: 112px;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  background: #ffffff;
}

.pub-image img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.pub-main {
  flex: 1 1 auto;
  min-width: 0;
}

.pub-main h3 {
  margin: -2px 0 3px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.28;
}

.pub-main p {
  margin: 0 0 3px;
  font-size: 16px;
  line-height: 1.42;
}

.pub-links {
  margin-top: 5px;
}

.pub-links a {
  font-weight: 700;
}

.selected h3 {
  color: var(--link);
}

.plain-list {
  padding-left: 20px;
}

footer {
  padding: 18px 0 34px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 800px) {
  .container {
    max-width: 780px;
    width: calc(100% - 40px);
  }
}

@media (max-width: 650px) {
  body {
    font-size: 17px;
  }

  .container {
    width: calc(100% - 34px);
  }

  .navbar {
    display: block;
    padding: 38px 0 18px;
    text-align: center;
  }

  #author-name {
    width: 100%;
    white-space: normal;
  }

  #navlist {
    justify-content: center;
    margin-top: 12px;
  }

  .intro {
    padding-top: 22px;
  }

  .profile-picture {
    float: none;
    width: 142px;
    height: 142px;
    margin: 0 auto 20px;
  }

  .links {
    justify-content: center;
  }

  .content h2 {
    font-size: 23px;
  }

  .pub-item {
    gap: 12px;
  }

  .pub-image {
    flex-basis: 132px;
    width: 132px;
    min-height: 92px;
  }

  .pub-image img {
    height: 92px;
  }

  .pub-main h3 {
    font-size: 17px;
  }

  .pub-main p {
    font-size: 15.5px;
  }
}

@media (max-width: 500px) {
  .container {
    width: calc(100% - 28px);
    max-width: 362px;
    margin-left: 14px;
    margin-right: auto;
  }

  #navlist {
    gap: 0 7px;
    font-size: 14px;
  }

  .pub-item {
    display: block;
  }

  .pub-image {
    width: 100%;
    min-height: 128px;
    margin: 0 0 9px;
  }

  .pub-image img {
    height: 128px;
  }
}
