/* ============================================
   Page background
   ============================================ */
body {
  background-color: #fdfcf9;
  color: #1a1a1a;
}
.navbar,
#quarto-header > nav {
  background-color: #fdfcf9 !important;
  border-bottom: none;
}
/* ============================================
   Typography
   ============================================ */
body,
h1, h2, h3, h4, h5, h6,
.header-name,
.paper-title,
.paper-abstract {
  font-family: "Times New Roman", Times, serif;
}
/* ============================================
   Header: photo floats right, text wraps around it
   ============================================ */
.header-photo {
  float: right;
  margin: 0 0 1rem 1.5rem;
}
.header-photo img {
  width: 300px;
  height: auto;
  display: block;
}
.header-name {
  position: relative;
  font-size: 1.95rem;
  font-weight: 400;
  line-height: 1;
  width: fit-content;
  padding-bottom: 0.2rem;
  margin-bottom: 1.6rem;
}
.header-name p {
  margin: 0;
  line-height: inherit;
}
/* ============================================
   Section headings
   ============================================ */
h2 {
  clear: both;
  position: relative;
  font-size: 1.95rem;
  font-weight: 400;
  line-height: 1;
  width: fit-content;
  padding-top: 1rem;
  padding-bottom: 0.2rem;
  margin-bottom: 1.25rem;
}
/* Tapering azure rule under name and section headings */
.header-name::after,
h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5625px;
  background-color: #007FFF;
  clip-path: polygon(0 0, 100% 55%, 100% 100%, 0 100%);
}
/* ============================================
   Research papers
   ============================================ */
.paper {
  margin-bottom: 2.75rem;
}
.paper-title {
  font-size: 1rem;
  margin-bottom: 0.85rem;
}
.paper-body {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.paper-figure {
  flex: 0 1 auto;
}

.paper-figure img {
  max-width: 100%;
  display: block;
}

.paper-abstract {
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.55;
}
/* ============================================
   Narrow screens
   ============================================ */
@media (max-width: 700px) {
  .header-photo {
    float: none;
    margin: 0 0 1rem 0;
  }
  .header-photo img {
    width: 220px;
  }
  .paper-body {
    flex-direction: column;
    align-items: flex-start;
  }
  .paper-figure {
    flex: 1 1 auto;
    width: 100%;
  }
}