:root {
  --paper: #fffefd;
  --canvas: #ededed;
  --ink: #171717;
  --muted: #5e646d;
  --rule: #c7c9cc;
  --link: #244f86;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.38;
}

a { color: var(--link); text-decoration: none; text-underline-offset: 3px; }
a:hover, a:focus-visible { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }

.page-shell { min-height: 100vh; padding: 30px 18px 54px; }

.paper {
  width: min(1050px, 100%);
  margin: 0 auto;
  padding: 54px 68px 34px;
  background: var(--paper);
  border-radius: 17px;
  box-shadow: 0 1px 7px rgb(0 0 0 / 7%);
}

.profile-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 184px;
  gap: 58px;
  align-items: start;
  margin-bottom: 40px;
}

h1, h2 { font-family: 'Times New Roman', Times, STSong, serif; font-weight: 700; }

h1 {
  margin: 0 0 56px;
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0;
}

h1 span { color: #8c8c8c; font-weight: 400; }

.position {
  margin: 0 0 9px;
  font-family: 'Times New Roman', Times, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.affiliation { margin: 0 0 9px; line-height: 1.45; }
.profile-links, .inline-links { font-weight: 500; }
.profile-links { display: flex; flex-wrap: wrap; gap: 0 9px; line-height: 1.45; }
.profile-links span { color: #777; }

.portrait {
  display: block;
  width: 184px;
  aspect-ratio: 1;
  margin-top: 9px;
  border: 1px solid #d0d2d3;
  border-radius: 5px;
  object-fit: cover;
  object-position: 50% 36%;
  box-shadow: 0 1px 4px rgb(0 0 0 / 10%);
}

section { margin-top: 34px; }

section > h2 {
  margin: 0 0 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rule);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

section > p { margin: 0; }
.project-list { display: grid; gap: 29px; padding: 9px 18px 0; }
.project { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; align-items: center; }

.project img {
  width: 180px;
  height: 132px;
  border: 1px solid #d0d2d3;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 1px 4px rgb(0 0 0 / 12%);
}

.project h3, .publication h3 { margin: 0; font-size: 16px; line-height: 1.25; }
.project p, .publication p { margin: 5px 0 0; }
.meta { color: var(--muted); font-style: italic; }
.inline-links { line-height: 1.2; }
.publication-list { display: grid; gap: 22px; padding: 7px 18px 0; }
.publication h3 { font-family: Georgia, 'Times New Roman', serif; font-size: 17px; }
.publication p { font-size: 15px; }
.publication p:first-of-type { color: #34373b; }
.honors { display: grid; gap: 6px; margin: 0; padding: 1px 18px 0; list-style: none; }
.honors li { display: flex; justify-content: space-between; gap: 24px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
  color: #777;
  font-size: 12px;
}

@media (max-width: 720px) {
  .page-shell { padding: 0; }
  .paper { padding: 36px 22px 28px; border-radius: 0; box-shadow: none; }
  .profile-header { grid-template-columns: 1fr 105px; gap: 20px; margin-bottom: 34px; }
  .portrait { width: 105px; }
  h1 { margin-bottom: 36px; font-size: 32px; }
  .position { font-size: 17px; }
  .project-list, .publication-list { padding-inline: 0; }
  .project { grid-template-columns: 136px minmax(0, 1fr); gap: 17px; align-items: start; }
  .project img { width: 136px; height: 104px; }
}

@media (max-width: 520px) {
  body { font-size: 15px; }
  .profile-header { grid-template-columns: 1fr; }
  .portrait { display: none; }
  .project { grid-template-columns: 1fr; }
  .project img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .honors li, footer { align-items: flex-start; flex-direction: column; gap: 2px; }
}

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