:root {
  --text: #181818;
  --secondary: #3d3d3d;
  --link: #173b64;
}

* {
  box-sizing: border-box;
}

html {
  background: #fff;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  display: grid;
  grid-template-columns: 230px minmax(0, 640px);
  gap: 76px;
  width: min(100% - 56px, 946px);
  margin: 64px auto 80px;
  align-items: start;
}

.profile {
  position: sticky;
  top: 48px;
}

.portrait {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0 0 24px;
  object-fit: cover;
  object-position: center 30%;
}

h1 {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.profile p {
  margin: 0 0 20px;
  color: var(--secondary);
}

.affiliation {
  font-size: 14px;
  white-space: nowrap;
}

.content {
  min-width: 0;
}

.intro {
  margin: 0 0 26px;
  line-height: 1.52;
}

section {
  margin: 28px 0 0;
}

h2 {
  margin: 0 0 17px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.paper {
  margin: 0 0 19px;
}

.paper p {
  margin: 0;
}

.paper p + p {
  color: var(--secondary);
}

.title {
  color: var(--link);
  font-weight: 500;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

@media (max-width: 740px) {
  .page {
    display: block;
    width: min(100% - 44px, 620px);
    margin: 32px auto 56px;
  }

  .profile {
    position: static;
    margin-bottom: 44px;
  }

  .portrait {
    width: min(220px, 68vw);
    height: auto;
    aspect-ratio: 1;
  }

  .paper {
    margin-bottom: 22px;
  }
}
