:root {
  --text: #252525;
  --muted: #626262;
  --link: #245d92;
  --line: #dedede;
  --background: #ffffff;
  --content-width: 900px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

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

.page {
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
  padding: 54px 0 38px;
}

.profile {
  display: flex;
  gap: 34px;
  align-items: flex-start;
  margin-bottom: 42px;
}

.portrait {
  display: block;
  flex: 0 0 170px;
  width: 170px;
  height: 170px;
  border: 1px solid #d7d7d7;
  object-fit: cover;
  object-position: center;
}

.profile-content {
  padding-top: 2px;
}

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

h1 {
  margin-bottom: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.2;
}

.profile-content p {
  margin-bottom: 8px;
}

.position {
  color: var(--muted);
  font-size: 16px;
}

section {
  margin: 34px 0;
}

h2 {
  margin-bottom: 12px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}

h3 {
  margin: 23px 0 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 600;
}

section > p {
  margin-bottom: 11px;
}

ul,
ol {
  margin: 8px 0;
  padding-left: 25px;
}

li {
  margin: 5px 0;
}

.section-note {
  color: var(--muted);
  font-size: 13px;
}

.publication-list {
  padding-left: 32px;
}

.publication-list li {
  margin-bottom: 17px;
  padding-left: 3px;
}

.authors {
  color: #3f3f3f;
}

.paper-links {
  display: inline-block;
  margin-left: 4px;
  white-space: nowrap;
}

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

.dated-list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
}

.dated-list time,
.entry-list time {
  color: var(--muted);
  white-space: nowrap;
}

.entry-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin: 0;
  padding: 8px 0;
}

.entry-list.compact li {
  padding: 3px 0;
}

.summary-list {
  margin: 0;
  padding-left: 22px;
}

.summary-list li {
  padding: 3px 0;
}

.project-list article + article {
  margin-top: 18px;
}

.project-list h3 {
  margin: 0 0 3px;
}

.project-list p {
  margin: 0;
}

.project-status {
  color: var(--muted);
  font-size: 0.9em;
  font-weight: 400;
}

.subentry-list {
  margin: 3px 0 0;
  padding-left: 22px;
}

.subentry-list li {
  margin: 0;
  padding: 0;
}

footer {
  margin-top: 44px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

footer p {
  margin: 0;
}

@media (max-width: 620px) {
  .page {
    width: min(calc(100% - 32px), var(--content-width));
    padding-top: 30px;
  }

  .profile {
    gap: 22px;
    margin-bottom: 36px;
  }

  .portrait {
    flex-basis: 118px;
    width: 118px;
    height: 118px;
  }

  h1 {
    font-size: 28px;
  }

  .position {
    font-size: 15px;
  }

  .profile-content p {
    font-size: 13px;
  }

  .entry-list li {
    display: block;
  }

  .entry-list time {
    display: block;
    margin-top: 2px;
  }

}

@media (max-width: 430px) {
  .profile {
    display: block;
  }

  .portrait {
    margin-bottom: 18px;
  }

  .dated-list li {
    display: block;
    margin-bottom: 9px;
  }

  .dated-list time {
    display: inline-block;
    min-width: 92px;
  }
}

@media print {
  body {
    color: #000;
    font-size: 11pt;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  a {
    color: inherit;
  }

  section {
    break-inside: avoid;
  }
}
