/* Latin Modern, matching the typeface of Andrea Merlo's supplied LaTeX CV. */
@font-face {
  font-family: "Latin Modern Roman";
  src: url("assets/fonts/lmroman10-regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Latin Modern Roman";
  src: url("assets/fonts/lmroman10-bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Latin Modern Roman";
  src: url("assets/fonts/lmroman10-italic.otf") format("opentype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Latin Modern Roman";
  src: url("assets/fonts/lmroman10-bolditalic.otf") format("opentype");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Latin Modern Headings";
  src: url("assets/fonts/lmroman12-bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
html {
  background: #343a40;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: white;
  color: #212529;
  font-family: "Latin Modern Roman", "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.5;
}
h1, h2, h3 {
  font-family: "Latin Modern Headings", "Latin Modern Roman", serif;
  font-weight: 700;
}
h1 {
  font-size: 2.25rem;
}
h2, .custom-h2 {
  font-size: 1.7rem;
}
h3 {
  font-size: 1.3rem;
}
.navbar {
  flex-shrink: 0;
}
.navbar-toggler {
  margin-left: auto;
}
main {
  flex: 1 0 auto;
  width: 100%;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
main a {
  overflow-wrap: anywhere;
}
main ol, main ul {
  padding-left: 1.5rem;
}
main li + li {
  margin-top: 0.4rem;
}
section[id] {
  scroll-margin-top: 5rem;
}
.home {
  display: flex;
  align-items: center;
}
.profile-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 2rem;
  width: 100%;
}
.profile-photo {
  display: block;
  width: 90%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
  border: 3px solid black;
}
.profile-card {
  min-width: 0;
  border: 2px solid black;
  border-radius: 5px;
  padding: 20px;
  text-align: center;
  overflow-wrap: anywhere;
}
.profile-card h2 {
  margin-bottom: 1.25rem;
}
.profile-card p:last-child {
  margin-bottom: 0;
}
.site-footer {
  flex-shrink: 0;
  margin-top: auto;
}
.footer {
  width: 100%;
  background: #343a40;
  color: white;
  text-align: center;
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1rem;
}
.footer a {
  color: white;
  text-decoration: none;
  white-space: nowrap;
}
.footer a:hover {
  color: #ddd;
  text-decoration: underline;
}
.funding {
  background: white;
  border-top: 1px solid #ddd;
  padding: 1.5rem 1rem;
}
.funding-inner {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  max-width: 1140px;
  margin: 0 auto;
}
.funding-logo {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
}
.funding-text {
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}
.funding-text p:last-child {
  margin-bottom: 0;
  font-size: 10px;
  line-height: 1.4;
}
@media (max-width: 767.98px) {
  main, .home {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .home {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .profile-layout, .funding-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  .profile-photo {
    max-width: 420px;
  }
  .profile-card h2 {
    font-size: 1.5rem;
  }
  .funding-logo {
    max-width: 340px;
    margin: 0 auto;
  }
  .funding-inner {
    gap: 1rem;
  }
}
