@font-face {
  font-family: Inter;
  src: url("assets/fonts/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --text: hsl(211, 25%, 10%);
  --muted: hsl(211, 10%, 40%);
  --link: hsl(211, 75%, 40%);
  --border: hsl(211, 10%, 88%);
  --background: hsl(0, 0%, 98%);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--background);
  color: var(--text);
  font: 1rem/1.375 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: .16em;
}

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

p {
  margin-bottom: .5rem;
}

strong {
  font-weight: 600;
}

h1, h2, h3, h4 {
  margin-bottom: .5rem;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
}

h2 {
  display: inline-block;
  margin-top: 1.5rem;
  padding-bottom: .25rem;
  border-bottom: 2px solid var(--text);
  font-size: 1.5rem;
}

.container {
  max-width: 800px;
  margin-inline: auto;
  padding: .75rem 1.5rem;
}

.skip-link {
  position: absolute;
  top: .5rem;
  left: .75rem;
  z-index: 1;
  padding: .5rem .75rem;
  background: var(--background);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.hero {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.hero h1 {
  margin-bottom: .25rem;
}

.subtitle {
  margin-bottom: 0;
  color: var(--muted);
}

.nav-sections {
  display: flex;
  flex-shrink: 0;
  gap: 1.5rem;
}

.nav-sections a {
  color: var(--text);
  white-space: nowrap;
}

.nav-sections a:hover {
  color: var(--link);
}

.intro-header {
  margin-bottom: 1.5rem;
  padding-block: 1.5rem;
}

.intro-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
}

.intro-text {
  flex: 1;
  max-width: 65%;
}

.greeting {
  display: block;
  margin-bottom: .75rem;
  border-bottom: 0;
  font-size: 1.75rem;
  font-weight: 700;
}

.intro-quote {
  margin-bottom: .75rem;
  font-size: 1.05rem;
  line-height: 1.45;
}

.intro-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .75rem 0;
  list-style: none;
  font-size: .875rem;
}

.intro-links li {
  display: flex;
  margin-bottom: .35rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.intro-links li:hover {
  border-color: var(--link);
  background: #fff;
}

.intro-links a {
  display: inline-flex;
  align-items: center;
  padding: .5em .875em;
  color: var(--text);
}

.intro-image {
  flex-shrink: 0;
}

.intro-image img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

.highlighted-work {
  margin-bottom: 1.25rem;
}

.publications-list, .award-group {
  margin-top: .75rem;
}

.publications-list + .publications-list,
.award-group + .award-group {
  margin-top: 2rem;
}

.section-group-heading {
  margin-bottom: 1rem;
  padding: .6rem .75rem;
  border-inline-start: 3px solid var(--link);
  background: hsl(211, 55%, 94%);
  font-size: 1.25rem;
  font-weight: 700;
}

.publication {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.publication:last-child {
  border-bottom: 0;
}

.pub-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.pub-thumbnail {
  flex-shrink: 0;
  width: 180px;
}

.pub-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

.pub-info {
  flex: 1;
  min-width: 0;
}

.pub-title {
  margin-bottom: .35rem;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.pub-authors {
  margin-bottom: .2rem;
  color: var(--muted);
  font-size: .9rem;
}

.pub-authors strong {
  text-decoration: underline;
  text-underline-offset: .16em;
}

.pub-venue {
  margin-bottom: .5rem;
  font-size: .9rem;
}

.pub-rank,
.pub-status-oral {
  display: inline-block;
  margin-inline-start: .25rem;
  padding: .08rem .4rem;
  border: 1px solid;
  border-radius: .3rem;
  font-size: .85em;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.pub-rank {
  border-color: hsl(211, 46%, 85%);
  background: hsl(211, 65%, 95%);
  color: hsl(211, 55%, 28%);
}

.pub-status-oral {
  border-color: hsl(33, 75%, 69%);
  background: hsl(38, 95%, 88%);
  color: hsl(23, 76%, 26%);
  font-weight: 700;
}

.pub-contribution {
  white-space: nowrap;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  font-size: .875rem;
}

.pub-abstract-button {
  min-height: 1.5rem;
  border: 0;
  background: transparent;
  color: var(--link);
  font: inherit;
  cursor: pointer;
}

.pub-abstract-button:hover, .pub-abstract-button[aria-expanded="true"] {
  text-decoration: underline;
  text-underline-offset: .16em;
}

.pub-abstract {
  margin: .65rem 0 0;
  padding: .75rem .9rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: #fff;
  font-size: .9rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.record-list {
  list-style: none;
}

.record-list > li {
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
}

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

.record-list h3, .record-list h4 {
  margin-bottom: .3rem;
  font-size: 1rem;
}

.record-list p, .record-date {
  color: var(--muted);
  font-size: .9rem;
}

.record-list p {
  margin-bottom: 0;
}

.record-with-date {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .25rem 1rem;
}

#education .record-list > li {
  display: grid;
  row-gap: .25rem;
}

.education-heading, .education-details {
  display: grid;
  align-items: baseline;
  gap: .25rem .75rem;
}

.education-heading {
  grid-template-columns: minmax(0, 1fr) 9.75rem;
}

.education-heading h3 {
  font-size: .9rem;
  line-height: inherit;
  margin-bottom: 0;
}

.education-heading .record-date {
  justify-self: end;
  white-space: nowrap;
}

.education-details {
  grid-template-columns: 5rem minmax(0, 1fr) 9.75rem;
}

.outreach-articles {
  margin-top: .75rem;
  font-size: .9rem;
}

.outreach-articles summary {
  color: var(--link);
  cursor: pointer;
}

.outreach-articles ul {
  margin-top: .5rem;
  padding-inline-start: 1.25rem;
  list-style-type: disc;
}

.outreach-articles li + li {
  margin-top: .25rem;
}

footer {
  margin-top: 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--border);
}

footer p {
  margin-bottom: 0;
  color: var(--muted);
  text-align: center;
  font-size: .875rem;
}

@media (max-width: 768px) {
  .container {
    padding: .5rem 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .hero-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero-info {
    width: 100%;
    text-align: center;
  }

  .nav-sections {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .intro-content {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
  }

  .intro-text {
    max-width: 100%;
  }

  .intro-image img {
    width: 150px;
    height: 150px;
  }

  .pub-content {
    flex-direction: column;
  }

  .pub-thumbnail {
    width: 100%;
  }

  .publication {
    margin-bottom: .75rem;
    padding-bottom: .75rem;
  }
}

@media (max-width: 799px) {
  .education-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .education-details {
    grid-template-columns: 3.5rem minmax(0, 1fr);
  }

  .education-gpa {
    grid-column: 2;
  }
}
