:root {
  --background: #ffffff;
  --text: #65696d;
  --heading: #202326;
  --link: #176c9c;
  --link-hover: #0b4668;
  --line: #e1e4e6;
  --soft: #f5f7f8;
  --label: #858b90;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
  text-decoration: underline;
}

a:focus-visible,
summary:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--link);
  outline-offset: 4px;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.22;
}

h2 {
  margin: 0 0 1.6rem;
  font-size: 1.42rem;
  letter-spacing: -0.02em;
}

.layout {
  width: min(1110px, calc(100% - 96px));
  margin: 0 auto;
  padding: 58px 0 36px;
  display: grid;
  grid-template-columns: 275px minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.profile {
  min-height: calc(100vh - 94px);
  position: sticky;
  top: 58px;
  display: flex;
  flex-direction: column;
}

.name {
  width: fit-content;
  color: var(--heading);
  font-size: 1.46rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.name:hover,
.name:focus-visible {
  color: var(--heading);
  text-decoration: none;
}

.rule {
  height: 1px;
  margin: 13px 0 15px;
  background: var(--line);
}

nav {
  display: grid;
  gap: 8px;
}

nav a {
  width: fit-content;
  font-size: 0.92rem;
}

.portrait {
  width: 214px;
  height: 270px;
  margin-top: 23px;
  display: block;
  object-fit: cover;
  object-position: center 22%;
  filter: saturate(0.88) contrast(0.98);
}

.profile-meta {
  margin-top: 16px;
  color: var(--label);
  font-size: 0.78rem;
  line-height: 1.55;
}

.profile-meta p {
  margin: 0;
}

.credit {
  margin: auto 0 0;
  padding-top: 24px;
  color: #979ca0;
  font-size: 0.72rem;
}

main {
  min-width: 0;
}

section {
  scroll-margin-top: 36px;
}

.intro {
  padding-top: 1px;
}

.eyebrow,
.paper-label {
  margin-bottom: 0.58rem;
  color: var(--label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lead {
  margin-bottom: 1rem;
  color: #4e5357;
  font-size: 1.04rem;
}

.document-links {
  margin-top: 1.45rem;
}

.documents-label {
  margin: 0 0 0.55rem;
  color: var(--label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.documents-label span {
  padding: 0 0.2em;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-links a {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.file-icon {
  width: 16px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-links .primary-link {
  border-color: var(--link);
  background: var(--link);
  color: #fff;
}

.quick-links .primary-link:hover,
.quick-links .primary-link:focus-visible {
  background: var(--link-hover);
  text-decoration: none;
}

hr {
  height: 1px;
  margin: 28px 0;
  border: 0;
  background: var(--line);
}

.paper {
  margin-bottom: 2.35rem;
}

.paper.featured {
  padding-left: 15px;
  border-left: 3px solid var(--link);
}

.paper h3 {
  margin: 0 0 0.38rem;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.paper h3 a {
  font-weight: 700;
}

.paper p {
  margin-bottom: 0.3rem;
}

.paper-status {
  color: var(--label);
  font-size: 0.88rem;
}

details {
  margin-top: 0.55rem;
}

summary {
  width: fit-content;
  cursor: pointer;
  color: var(--link);
  font-size: 0.9rem;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "▷";
  margin-right: 0.38em;
  display: inline-block;
  color: #5b9aba;
  font-size: 0.78em;
  transform-origin: center;
  transition: transform 120ms ease;
}

details[open] summary::before {
  transform: rotate(90deg);
}

details p {
  margin: 0.72rem 0 0;
  padding: 0.82rem 0.95rem;
  border-left: 1px solid var(--line);
  background: var(--soft);
  color: #5a5f63;
  font-size: 0.91rem;
}

.results {
  margin: 1.1rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.results div {
  padding: 0.72rem 0.75rem 0.72rem 0;
}

.results div + div {
  padding-left: 0.75rem;
  border-left: 1px solid var(--line);
}

.results dt {
  color: var(--heading);
  font-size: 1.02rem;
  font-weight: 700;
}

.results dd {
  margin: 0.1rem 0 0;
  color: var(--label);
  font-size: 0.72rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.subsection {
  margin-top: 2.6rem;
}

.subsection-title {
  margin: 0 0 1.2rem;
  color: #3d4246;
  font-size: 1.02rem;
}

.paper.compact {
  margin-bottom: 1.4rem;
}

.paper.compact h3 {
  font-size: 1rem;
}

.facts,
.timeline {
  margin: 0;
}

.facts > div,
.timeline > div {
  padding: 0.72rem 0;
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
}

.facts > div:last-child,
.timeline > div:last-child {
  border-bottom: 1px solid var(--line);
}

.facts dt,
.timeline dt {
  color: var(--heading);
  font-weight: 700;
}

.facts dd,
.timeline dd {
  margin: 0;
}

.timeline > div {
  grid-template-columns: 58px minmax(0, 1fr);
}

.timeline dt {
  color: var(--link);
}

.teaching-list {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.teaching-list article {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.teaching-list h3 {
  margin: 0 0 0.28rem;
  font-size: 1rem;
}

.teaching-list p {
  margin: 0;
  color: var(--label);
  font-size: 0.86rem;
}

.teaching-list strong {
  color: #54595d;
}

.contact .email {
  font-size: 1.16rem;
  font-weight: 700;
}

.address {
  color: var(--label);
  font-size: 0.84rem;
}

footer {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #9a9fa3;
  font-size: 0.75rem;
}

footer p {
  margin: 0;
}

.sr-only {
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .layout {
    width: min(720px, calc(100% - 48px));
    padding-top: 38px;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .profile {
    min-height: auto;
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 0 28px;
  }

  .name,
  .rule,
  nav,
  .profile-meta,
  .credit {
    grid-column: 1;
  }

  nav {
    grid-template-columns: repeat(5, max-content);
    gap: 10px 18px;
  }

  .portrait {
    width: 160px;
    height: 200px;
    margin: 0;
    grid-column: 2;
    grid-row: 1 / span 5;
  }

  .profile-meta {
    margin-top: 18px;
  }

  .credit {
    margin-top: 18px;
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 14.5px;
  }

  .layout {
    width: calc(100% - 32px);
    padding: 24px 0;
    gap: 34px;
  }

  .profile {
    display: block;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .portrait {
    width: 150px;
    height: 188px;
    margin-top: 22px;
  }

  .credit {
    display: none;
  }

  .results {
    grid-template-columns: 1fr;
  }

  .results div {
    padding: 0.65rem 0;
  }

  .results div + div {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .facts > div,
  .timeline > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .timeline > div {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

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

  .layout {
    width: 100%;
    padding: 0;
    display: block;
  }

  .profile {
    min-height: 0;
    position: static;
  }

  nav,
  .portrait,
  .credit,
  .quick-links {
    display: none;
  }

  section,
  article {
    break-inside: avoid;
  }
}
