:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #343a38;
  background: #faf9f6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body { margin: 0; }

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 86px 36px 32px;
}

.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  grid-template-areas: "name ." "intro photo" "links photo";
  column-gap: 40px;
  align-items: start;
}

.profile h1 { grid-area: name; }
.introduction { grid-area: intro; }
.introduction p:last-child { margin-bottom: 0; }
.profile-links { grid-area: links; margin-top: 17px; }

.portrait-frame {
  grid-area: photo;
  position: relative;
  align-self: stretch;
}

.portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

h1 {
  margin: 0 0 28px;
  color: #20392e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 6vw, 46px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.12;
}

h1 span {
  display: inline-block;
  margin-left: 14px;
  color: #767c73;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 19px;
  letter-spacing: .08em;
  vertical-align: middle;
}

p {
  max-width: 630px;
  margin: 0 0 17px;
  font-size: 16px;
  line-height: 1.85;
}

a {
  color: #285d46;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

a:hover { color: #112e20; }

a:focus-visible {
  outline: 2px solid #285d46;
  outline-offset: 6px;
  border-radius: 2px;
}

.profile-links, .paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  line-height: 1.8;
}

section {
  margin-top: 56px;
  padding-top: 30px;
  border-top: 1px solid #dedfd7;
}

h2 {
  margin: 0 0 25px;
  color: #20392e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -.025em;
}

.publication {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 20px;
  margin: 0 0 32px;
}

h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
}

.publication p {
  margin: 7px 0;
  color: #626a64;
  font-size: 14px;
  line-height: 1.8;
}

h3 a { color: #20392e; text-decoration: none; }
h3 a:hover { text-decoration: underline; }
.year { color: #626a64; font-size: 13px; line-height: 2.2; }
.publication .authors { font-size: 13px; margin: 5px 0; }
.publication .contribution-note { font-size: 12px; margin: 5px 0; }
.authors strong { color: #343a38; font-weight: 600; }
.paper-links { gap: 16px; font-size: 13px; }
.all-publications { font-size: 14px; line-height: 1.8; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 66px;
  padding-top: 22px;
  border-top: 1px solid #dedfd7;
  color: #626a64;
  font-size: 12px;
  line-height: 1.8;
}

@media (max-width: 680px) {
  main { padding: 40px 25px 28px; }
  .profile { grid-template-columns: 1fr; grid-template-areas: "photo" "name" "intro" "links"; gap: 24px; }
  .profile h1 { margin-bottom: 0; }
  .profile-links { margin-top: 0; }
  .portrait-frame { width: 150px; height: 200px; }
  h1 span { margin-left: 8px; font-size: 17px; }
  .publication { grid-template-columns: 1fr; gap: 3px; margin-bottom: 28px; }
  section { margin-top: 42px; }
  footer { margin-top: 44px; }
}
