:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #252525;
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: #252525;
  font-size: 15px;
  line-height: 1.65;
}

a {
  color: #7b3f91;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: #4d235f;
  text-decoration: underline;
}

#header {
  position: relative;
  z-index: 1;
  width: 100%;
  border-bottom: 1px solid #e9e9e9;
  background: #fff;
}

.header-pill {
  width: min(100% - 48px, 1120px);
  min-height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-pill {
  color: #202020;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.nav-link {
  color: #555;
  font-size: 13px;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #7b3f91;
}

#main {
  width: min(100% - 48px, 1020px);
  margin: 0 auto;
}

.profile-section {
  padding: 50px 0 42px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: start;
  gap: 46px;
}

.profile-copy {
  grid-column: 1;
}

.eyebrow {
  margin: 0 0 8px;
  color: #666;
  font-size: 13px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  color: #202020;
  font-size: clamp(30px, 4vw, 38px);
  font-weight: 400;
  letter-spacing: -1.1px;
  line-height: 1.2;
}

h2 {
  margin-bottom: 18px;
  color: #262626;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -0.35px;
  line-height: 1.25;
}

h3 {
  margin-bottom: 5px;
  color: #292929;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.profile-bio {
  max-width: 700px;
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.75;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin: 0 0 12px;
}

.affiliation {
  margin: 0;
  color: #666;
  font-size: 13px;
}

.profile-photo {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  margin: 4px 0 0;
}

.profile-photo img {
  display: block;
  width: 100%;
  height: 250px;
  border-radius: 3px;
  object-fit: cover;
  object-position: center 35%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.content-section {
  padding: 30px 0;
  border-top: 1px solid #e8e8e8;
}

.content-section .inner {
  width: 100%;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 36px;
}

.interest-grid article {
  max-width: 440px;
}

.interest-grid p,
.project-card p,
.skill-card p {
  margin-bottom: 9px;
  color: #4f4f4f;
}

.news-list,
.publication-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.news-list li:last-child {
  border-bottom: 0;
}

.news-list time {
  color: #333;
  font-size: 13px;
  font-weight: 600;
}

.news-list span {
  color: #4f4f4f;
}

.news-list a {
  white-space: nowrap;
}

.project-card {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid #ededed;
  list-style: none;
}

.project-card:first-child {
  padding-top: 0;
}

.project-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.project-card h3 {
  font-size: 17px;
}

.project-actions {
  display: flex;
  gap: 14px;
  margin: 8px 0 0;
  font-size: 14px;
}

.button {
  color: #7b3f91;
}

.skills-header {
  margin-bottom: 20px;
  text-align: left;
}

.skills-subtitle {
  margin-bottom: 0;
  color: #666;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.skill-card {
  min-width: 0;
}

.skill-icon {
  display: none;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  color: #6c4779;
  font-size: 13px;
}

#leadership ul {
  margin: 0;
  padding-left: 20px;
}

#leadership li {
  margin: 4px 0;
}

.contact-section {
  padding-bottom: 38px;
}

.contact-section header p {
  color: #666;
}

.contact-card {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0;
}

.contact-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  height: 40px;
}

.contact-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  font-size: 20px;
  line-height: 1;
  text-align: center;
}

#footer {
  padding: 18px 24px;
  border-top: 1px solid #e8e8e8;
  color: #777;
  font-size: 12px;
  text-align: center;
}

#footer p {
  margin: 0;
}

@media (max-width: 700px) {
  .header-pill {
    width: min(100% - 32px, 1020px);
    min-height: 0;
    padding: 13px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .header-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 17px;
  }

  #main {
    width: min(100% - 32px, 1020px);
  }

  .profile-section {
    padding: 32px 0;
  }

  .profile-layout {
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 24px;
  }

  .profile-photo img {
    height: 180px;
  }

  .interest-grid {
    gap: 16px 24px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 520px) {
  .profile-layout {
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
  }

  .profile-photo {
    width: min(100%, 210px);
    margin: 0;
  }

  .profile-photo img {
    height: 210px;
  }

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

  .news-list li {
    grid-template-columns: 1fr auto;
    gap: 2px 10px;
  }

  .news-list time {
    grid-column: 1 / -1;
  }
}

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