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

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-italic-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  /* Change these two variables to replace the site's typefaces. */
  --font-reading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-structure: var(--font-reading);

  /* Keep the imported Marx stylesheet in sync with the choices above. */
  --font-family: var(--font-reading);
  --serif: var(--font-reading);
  --sans-serif: var(--font-structure);
}

body {
  background-color: #fff;
  color: rgba(0, 0, 0, 0.8);
  font-family: var(--font-reading);
}

h1,
h3,
h4,
h5,
h6 {
  font-family: var(--font-reading);
}

h2,
.menubar,
.paper-year,
.paper-venue,
.talk-venue-name {
  font-family: var(--font-structure);
}

.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.intro-text {
  text-align: justify;
}

.profile {
  flex: 0 0 190px;
  margin-left: 2em;
}

.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5em 1.25em;
  margin-top: 0.5em;
  font-family: var(--font-structure);
}

.contact-links > a {
  display: inline-flex;
  align-items: center;
  padding: 0.25em 0;
}

.contact-links img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.profile-pic {
  display: block;
  width: 190px;
  border-radius: 10px;
}

@media (max-width: 600px) {
  .intro {
    flex-direction: column;
    align-items: center;
  }

  .intro-text {
    text-align: left;
  }

  .profile {
    order: -1;
    flex-basis: auto;
    margin-left: 0;
    margin-bottom: 1em;
  }

  .profile-pic {
    width: 170px;
  }
}

.paper-group {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  column-gap: 1.5rem;
  align-items: start;
  margin-top: 2.5rem;
}

.paper-year {
  margin: 0;
  color: #555;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.papers-note {
  color: #555;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.papers-note + .paper-group {
  margin-top: 1.25rem;
}

.paper-group-manuscripts {
  grid-template-columns: minmax(0, 1fr);
  row-gap: 0.75rem;
}

@media (max-width: 600px) {
  .paper-group {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.75rem;
  }
}

.papers {
  list-style: none;
  margin: 0;
  padding: 0;
}

.papers > li:not(:first-child) {
  margin-top: 1.25rem;
}

.paper-title,
.talk-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.paper-authors,
.paper-details {
  color: #555;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.paper-authors {
  margin-top: 0.125rem;
}

.paper-details {
  margin-top: 0.125rem;
}

.paper-venues {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.5em;
}

.paper-venues + .paper-resources {
  margin-top: 0;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem 0.75rem;
}

.resource-links > a {
  white-space: nowrap;
}

.talk-resources {
  display: inline-flex;
}

.paper-venue {
  color: #AC1754;
  font-weight: 400;
}

.section {
  margin-top: 3em;
}

.talks,
.talk-venues {
  list-style: none;
  margin: 0;
  padding: 0;
}

.talk + .talk {
  margin-top: 1.25rem;
}

.talk-venues {
  margin-top: 0.125rem;
}

.talk-venue {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.125rem 0.75rem;
  color: #555;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.talk-venue + .talk-venue {
  margin-top: 0.125rem;
}

#service h3,
#teaching h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

#service ul,
#teaching ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.25rem;
  color: #555;
  font-size: 0.9375rem;
  line-height: 1.5;
}

#service ul {
  columns: 2;
  column-gap: 2rem;
}

#service li,
#teaching li {
  break-inside: avoid;
  margin-bottom: 0.375rem;
}

#service li strong,
#teaching li strong {
  color: #333;
  font-size: 1rem;
  font-weight: 500;
}

#teaching .teaching-courses > li + li {
  margin-top: 0.875rem;
}

.teaching-offerings {
  margin-top: 0.125rem;
  line-height: 1.4;
}

.teaching-separator {
  padding: 0 0.125em;
}

@media (max-width: 600px) {
  #service ul {
    columns: 1;
  }
}

.menubar {
  display: flex;
  gap: 2em;
  margin-top: 1em;
  justify-content: right;
}

.menubar > a {
  color: #555;
}

@media (max-width: 600px) {
  .menubar {
    flex-wrap: wrap;
    gap: 0.5em 1em;
  }
}
