:root {
  --accent: #003b5c;
  --text: #1f2933;
  --muted: #5b6770;
  --rule: #e5e7eb;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  width: 100vw;
  overflow-x: hidden;
  color: var(--text);
  font-size: 16px;
  line-height: 1.58;
}

.navbar-title {
  font-weight: 500;
}

.navbar {
  border-bottom: 1px solid var(--rule);
}

.quarto-title-block {
  display: none;
}

main.content {
  max-width: 940px;
  margin: 0 auto;
  padding: 3.4rem 1.4rem 4rem;
}

h1 {
  font-size: 1.9rem;
  margin-bottom: 3rem;
  font-weight: 500;
  text-align: center;
}

h2 {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.35rem;
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 1.15rem;
  font-size: 1.28rem;
}

/* Home page */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 340px;
  gap: 3rem;
  align-items: stretch;
}

.hero-text {
  padding-top: 1.5rem;
}

.hero h1 {
  font-size: 2.25rem;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 0.3rem;
}

.welcome {
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.hero-photo {
  height: 100%;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  object-position: center top;
  border-radius: 3px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.09);
}

.links,
.home-links {
  margin-top: 1.25rem;
}

.home-links strong {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.links a,
.home-links a,
.paper-links a,
details summary {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.home-links a {
  margin-right: 1rem;
}

.links a:hover,
.home-links a:hover,
.paper-links a:hover {
  text-decoration: underline;
}

/* Research and teaching entries */

.paper {
  margin-bottom: 0.75rem;
}

.paper h3 {
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
  margin-bottom: 0.1rem;
}

.paper-meta {
  color: var(--text);
  margin-bottom: 0.1rem;
}

.paper-links {
  display: inline;
  margin-left: 0.35rem;
}

details,
details[open],
details > summary,
details > p {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

details {
  display: block;
  margin-top: 0.1rem;
}

details summary {
  cursor: pointer;
  display: inline-block;
  list-style-position: inside;
}

details[open] summary {
  margin-bottom: 0.35rem;
}

details p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.58;
  margin-top: 0.45rem;
}

.teaching-list p {
  margin-bottom: 0.65rem;
}

@media (max-width: 760px) {
  body {
    font-size: 15.5px;
  }

  main.content {
    max-width: 100%;
    padding: 2.4rem 1.2rem 3rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .hero-text {
    padding-top: 0.5rem;
  }

  .hero-photo {
    order: -1;
    max-width: 260px;
    height: auto;
  }

  .hero-photo img {
    height: auto;
    min-height: 0;
  }

  .hero h1 {
    font-size: 2rem;
  }
}
