:root {
  color-scheme: light;
  font-family: Cantarell, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: #222;
  font-size: 17px;
  line-height: 1.5;
}

.container {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  margin-bottom: 0;
  border-top: 2px solid #181818;
}

.site-nav {
  border-bottom: 1px solid #e5e5e5;
}

.nav-links {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: #657080;
  font-size: 14px;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.quote-banner {
  min-height: 310px;
  margin-bottom: 50px;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.72) 0%, rgba(8, 8, 8, 0.4) 58%, rgba(8, 8, 8, 0.16) 100%),
    url("assets/lab-background.jpg") center 54% / cover no-repeat;
}

.quote-banner-inner {
  display: flex;
  min-height: 310px;
  align-items: center;
}

.quote-banner blockquote {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-style: italic;
  line-height: 1.35;
  text-shadow: 0 2px 16px rgba(255, 255, 255, 0.28), 0 1px 5px rgba(0, 0, 0, 0.8);
}

.quote-banner blockquote span {
  display: block;
}

h2 {
  margin: 0 0 16px;
  color: #181818;
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}

p {
  margin: 0 0 15px;
}

.profile {
  float: right;
  width: 250px;
  margin: 0 0 28px 36px;
}

.profile-photo {
  display: block;
  width: 150px;
  height: auto;
  margin: 0 0 14px auto;
  object-fit: contain;
}

.profile-name {
  width: 150px;
  margin: 0 0 15px auto;
  color: #222;
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

.personal-motto {
  margin: 0;
  padding-left: 12px;
  border-left: 2px solid #d9e3ed;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.55;
}

.personal-motto p {
  margin: 0;
}

.personal-motto p + p {
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-style: italic;
}

.selected-work {
  margin-top: 34px;
}

.publications {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.publications li {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.publications strong {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.35;
}

.paper-figure {
  width: 230px;
  margin: 0;
}

.paper-image-frame {
  display: flex;
  width: 100%;
  aspect-ratio: 23 / 15;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e2e2e2;
  background: #fff;
}

.paper-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.paper-figure figcaption {
  margin-top: 5px;
  color: #777;
  font-size: 13px;
  line-height: 1.4;
}

.interests-section {
  margin-top: 48px;
}

.interests-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
  margin: 0;
  padding-left: 22px;
}

.interests-list li {
  padding-left: 2px;
}

footer {
  clear: both;
  padding: 24px 0 36px;
  color: #777;
  font-size: 14px;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 32px, 960px);
  }

  .site-header {
    margin-bottom: 0;
  }

  .nav-links {
    min-height: 44px;
    gap: 24px;
  }

  .quote-banner {
    min-height: 280px;
    margin-bottom: 34px;
    background-position: 57% center;
  }

  .quote-banner-inner {
    min-height: 280px;
  }

  .quote-banner blockquote {
    max-width: 330px;
    font-size: 24px;
    line-height: 1.32;
  }

  h2 {
    font-size: 25px;
  }

  .profile {
    float: none;
    width: 100%;
    margin: 0 0 28px;
  }

  .profile-photo {
    width: 132px;
    margin: 0 0 14px;
  }

  .profile-name {
    margin-left: 0;
  }

  .personal-motto {
    max-width: 340px;
  }

  .selected-work {
    margin-top: 30px;
  }

  .publications {
    gap: 30px;
  }

  .publications li {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .paper-info {
    order: 1;
  }

  .paper-figure {
    order: 2;
    width: 100%;
  }

  .interests-section {
    margin-top: 38px;
  }
}
