:root {
  --text: #222222;
  --muted: #555555;
  --line: #eeeeee;
  --link: #1772d0;
  --link-hover: #f09228;
  --bg: #ececec;
  --panel: #ffffff;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 3em auto 1em auto;
  background: var(--bg);
  color: var(--text);
  font-family:
    Lato, Verdana, Helvetica, Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-align: justify;
}

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

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

p {
  margin: 0;
  line-height: 1.65;
  color: var(--text);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 40px 48px 64px;
  background: var(--panel);
}

.site-header {
  padding: 1.2em 1.25em 0.9em;
  border-bottom: 1px solid var(--line);
}

.profile-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 3em;
  align-items: start;
}

.profile-text h1 {
  font-size: 22pt;
  line-height: 1.7;
  font-weight: 500;
}

.affiliation {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

.header-links {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.95;
}

.header-links span {
  margin: 0 8px;
  color: #999999;
}

.profile-photo {
  display: flex;
  justify-content: flex-end;
}

.profile-photo img {
  width: 180px;
  height: 180px;
  border: none;
  object-fit: cover;
  object-position: center top;
}

.section {
  clear: both;
  margin-bottom: 1.75em;
  padding: 0.85em 1.25em 0;
  background: var(--panel);
}

.section h2 {
  margin-bottom: 0.8em;
  font-size: 17pt;
  font-weight: 500;
}

.section p + p {
  margin-top: 16px;
}

.news-list {
  margin: 0;
  padding-left: 1.4em;
  list-style: square;
}

.news-list li {
  padding-bottom: 0.8em;
  line-height: 1.6;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0.8em;
}

.text-link,
.inline-link {
  color: var(--link);
}

.publication-list {
  display: grid;
  gap: 0.9em;
}

.publication {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 0.65em;
  margin-bottom: 0.65em;
  padding: 0.35em 1em 0.55em;
  border: 1px solid #ffffff;
  background: var(--panel);
}

.publication.featured {
  border: 1px solid #ffffff;
  background: var(--panel);
}

.pub-body {
  display: flex;
  flex-direction: column;
  gap: 0.02em;
}

.pub-thumb {
  width: 280px;
  height: 117px;
  border: none;
  background: #f3f3f3;
  color: #666666;
  display: block;
  object-fit: cover;
}

.publication h3 {
  font-size: 16px;
  line-height: 1.28;
  font-weight: 500;
}

.authors,
.meta {
  color: var(--muted);
  line-height: 1.22;
}

.pub-links {
  line-height: 1.1;
}

.pub-body .authors,
.pub-body .meta,
.pub-body .pub-links {
  margin-top: 0;
}

.pub-links a + a {
  margin-left: 8px;
}

.site-footer {
  margin-top: 28px;
  padding: 0 1.25em;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10pt;
}

@media (max-width: 720px) {
  body {
    margin: 1.2em auto;
  }

  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding: 24px 24px 40px;
  }

  .profile-header,
  .publication {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    justify-content: flex-start;
  }

  .profile-photo img {
    width: 160px;
    height: 160px;
  }

  .pub-thumb {
    width: 100%;
    max-width: 280px;
    height: auto;
  }

  .section {
    padding: 0.8em 1em 0;
  }
}
