@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --ink: #252525;
  --muted: #666;
  --link: #2867a8;
  --line: #e6e6e6;
  --paper: #fff;
  --site-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --bs-body-font-family: var(--site-font);
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--site-font);
  font-size: 16px;
}

.navbar {
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.navbar,
.page-footer,
button,
input {
  font-family: var(--site-font);
}

.navbar-brand {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}

.navbar-nav .nav-link {
  color: var(--muted);
  font-size: 0.95rem;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--ink);
}

#quarto-content {
  padding-top: 2rem;
}

main.content {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1.25rem;
  padding-left: 1.25rem;
}

h1, h2, h3 {
  color: var(--ink);
  font-family: var(--site-font);
  font-weight: 600;
  letter-spacing: -0.015em;
}

h2 {
  margin-top: 2.6rem;
  font-size: 1.35rem;
}

p, li {
  line-height: 1.7;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link);
  text-decoration: underline;
}

.intro {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin: 1.5rem 0 2.25rem;
}

.portrait {
  display: block;
  width: 150px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.intro-copy h2 {
  margin: 0 0 0.8rem;
  font-size: 1.55rem;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.school {
  font-weight: 600;
  white-space: nowrap;
}

.school .emblem {
  display: inline-block;
  height: 1.15em;
  width: auto;
  vertical-align: -0.2em;
}

.school.stanford { color: #b1040e; }
.school.dartmouth { color: #00693e; }
.school.duke { color: #00539b; }
.school.cmu { color: #7a1020; }
.school.uw { color: #4b2e83; }

.publication-callout {
  margin: 1.25rem 0 2.5rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--line);
  background: #fafafa;
  container-type: inline-size;
}

/* Keep the selected paper's title on one line by scaling it to the box width. */
.publication-callout .callout-title {
  white-space: nowrap;
  font-size: min(1rem, 2.2cqi);
}

#refs .csl-entry {
  margin-bottom: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.quarto-listing-default .listing-item {
  padding: 1.2rem 0;
  border-bottom-color: var(--line);
}

.blog-post #title-block-header h1.title {
  text-align: center;
  margin-bottom: 1.25rem;
}

.post-list {
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.post-row {
  margin-bottom: 1.1rem;
  line-height: 1.5;
}

.post-row .post-title {
  color: var(--ink);
  font-weight: 600;
}

.post-row .post-title:hover {
  color: var(--link);
}

.post-row .post-meta {
  color: var(--muted);
}

.page-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  #quarto-content {
    padding-top: 1rem;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .publication-callout .callout-title {
    white-space: normal;
    font-size: 1rem;
  }

  .portrait {
    width: 120px;
  }
}
