:root {
  --paper: #fbf9f5;
  --ink: #4a3428;
  --muted: #7c665a;
  --accent: #8a5a44;
  --line: #ded5cc;
  --max-width: 990px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration-color: rgba(138, 90, 68, 0.38);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

.page-layout {
  width: min(var(--max-width), calc(100% - 60px));
  margin: 0 auto;
  padding-bottom: 76px;
}

.intro {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 58px;
  align-items: start;
  padding: 54px 0 76px;
}

.portrait-column,
.portrait-wrap {
  width: 270px;
}

.portrait-wrap {
  aspect-ratio: 14 / 17;
  overflow: hidden;
  background: #e6dfd8;
  border-radius: 3px;
}

.portrait-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-credit {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.profile-summary {
  margin-top: 16px;
}

.profile-summary h1 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.profile-summary .role,
.profile-summary .affiliation,
.profile-links {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.profile-summary .role {
  margin: 7px 0 3px;
  color: var(--muted);
}

.profile-summary .affiliation {
  margin: 0;
  color: var(--muted);
}

.profile-links {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  color: var(--ink);
}

.contact-label {
  color: var(--ink);
  font-weight: 600;
}

.email-contact a,
.cv-contact a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.intro-copy {
  align-self: start;
  padding-top: 0;
}

.about-heading {
  margin: -4px 0 18px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.intro-copy p {
  max-width: 640px;
  margin: 0 0 15px;
}

.research-interests {
  margin-top: 20px;
  font-size: 15px;
}

.content-section {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 36px;
  padding: 46px 0 52px;
  border-top: 1px solid var(--line);
}

.content-section > h2 {
  margin: 1px 0 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.section-body {
  min-width: 0;
}

.section-kicker {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.paper {
  padding: 22px 0 24px;
  border-top: 1px solid var(--line);
}

.paper:first-of-type {
  border-top: 0;
}

.paper:last-child {
  padding-bottom: 0;
}

.paper h3,
.teaching-group h3,
.education-row h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.paper h3 {
  max-width: 650px;
  font-size: 18px;
  line-height: 1.42;
  letter-spacing: -0.012em;
}

.coauthors {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.teaching-body {
  display: grid;
  gap: 30px;
}

.teaching-group h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.teaching-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.teaching-group li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(222, 213, 204, 0.7);
}

.teaching-group li span:last-child {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.education-list {
  display: grid;
}

.education-row {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.education-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.education-row:last-child {
  padding-bottom: 0;
}

.education-row h3 {
  font-size: 16px;
}

.education-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.education-row > p {
  flex: 0 0 auto;
  margin-top: 1px;
  text-align: right;
}

.contact-address {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.contact-address strong {
  font-weight: 600;
}

.contact-email-block {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.65;
}

.contact-email-block a:last-child {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-footer {
  width: min(var(--max-width), calc(100% - 60px));
  margin: 0 auto;
  padding: 23px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 780px) {
  html {
    scroll-padding-top: 70px;
  }

  .page-layout,
  .site-footer {
    width: min(100% - 36px, var(--max-width));
  }

  .intro {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 34px;
    padding: 44px 0 56px;
  }

  .portrait-column,
  .portrait-wrap {
    width: 200px;
  }

  .profile-summary h1 {
    font-size: 23px;
  }

  .profile-summary .role,
  .profile-summary .affiliation,
  .profile-links {
    font-size: 13px;
  }

  .content-section {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 26px;
  }
}

@media (max-width: 560px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 34px;
  }

  .portrait-column,
  .portrait-wrap {
    width: 200px;
  }

  .profile-summary h1 {
    font-size: 25px;
  }

  .about-heading {
    margin-top: 0;
  }

  .content-section {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 38px 0 42px;
  }

  .teaching-group li,
  .education-row {
    display: grid;
    gap: 2px;
    align-items: flex-start;
  }

  .teaching-group li span:last-child,
  .education-row > p {
    text-align: left;
  }

  .site-footer {
    display: grid;
    gap: 5px;
  }
}

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