@font-face {
  font-family: Montserrat;
  src: url("../fonts/montserrat-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Roboto;
  src: url("../fonts/roboto-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Roboto;
  src: url("../fonts/roboto-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

/* Resolve the original 72ch measure on the surrounding Montserrat text. */
@property --bio-width {
  syntax: "<length>";
  inherits: true;
  initial-value: 2000px;
}
body {
  --bio-width: 72ch;
  --reading-family: Roboto, sans-serif;
  --heading-family: Montserrat, sans-serif;
}
:is(.masthead, #main, .breadcrumbs, .page__footer),
:is(.masthead, #main, .breadcrumbs, .page__footer) :where(:not(.fa, .fas, .far, .fab, .ai)) {
  font-family: var(--role-family, var(--reading-family));
}
:is(h1, h2, h3, h4, h5, h6, .masthead__menu-item--lg, .author__name) { --role-family: var(--heading-family); }
:is(.minimal-paper__title, .selected-paper__title) { --role-family: var(--reading-family); }
#site-nav .masthead__menu-item--lg, #main .author__name { font-weight: 500; }

#main .home-hero__name { font-size: 30px; font-weight: 300; line-height: 1.2; letter-spacing: -1px; }
#main :is(.home-section-head h2, .page__title) { font-size: 24px; font-weight: 300; line-height: 1.35; letter-spacing: 1px; }
#main .project-group__title { font-size: 20px; font-weight: 500; line-height: 1.35; }
@media (min-width: 550px) {
  #main .home-hero__name { font-size: 36px; }
  #main :is(.home-section-head h2, .page__title) { font-size: 30px; }
  #main .project-group__title { font-size: 22px; }
}
#main .about-bio { max-width: var(--bio-width, 72ch); }
#main .home-hero__lede { max-width: calc(var(--bio-width, 72ch) * .94); }
#main :is(.archive > p, .project-description, .page__content > p) { font-size: 16px; font-weight: 400; line-height: 1.6; }
#main .about-bio p { font-size: 17px; font-weight: 400; line-height: 29px; }
#main .about-bio p + p { margin-top: 18px; }

.selected-paper-list, .project-list { grid-template-columns: minmax(0, 1fr); }
.project-item { min-width: 0; }
#main :is(.minimal-paper__title, .selected-paper__title) {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: normal;
}
#main :is(.minimal-paper__authors, .selected-paper__authors, .minimal-paper__venue, .selected-paper__venue-line) {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}
.minimal-paper__authors, .selected-paper__authors {
  font-style: italic;
}
:is(.minimal-paper__title, .minimal-paper__authors, .minimal-paper__venue, .selected-paper__title, .selected-paper__authors, .selected-paper__venue-line) {
  overflow-wrap: anywhere;
  white-space: normal;
}
