:root {
  --text: #626868;
  --heading: #3f4646;
  --link: #1f5f87;
  --link-hover: #153f5c;
  --rule: #dde4e6;
  --background: #ffffff;
  --portrait-a: #dfe8ec;
  --portrait-b: #9caeb8;
  --max-width: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

#title-block-header {
  display: none;
}

#quarto-content,
#quarto-document-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

#quarto-content.page-columns,
#quarto-document-content.column-page {
  display: block;
  grid-column: auto;
}

a {
  color: var(--link);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 120ms ease, font-weight 120ms ease, transform 120ms ease;
}

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

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

p {
  margin: 0 0 0.65rem;
}

strong {
  color: var(--heading);
}

.site-shell {
  width: min(95%, var(--max-width));
  margin: 0 auto;
  padding: 2.1rem 0 1.5rem;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 3.75rem;
  align-items: start;
}

.profile {
  position: sticky;
  top: 1.5rem;
}

.profile h1 {
  margin: 0 0 0.15rem;
  font-size: 2rem;
  line-height: 1.05;
  font-weight: 600;
  color: var(--heading);
}

.profile h1 a {
  color: var(--heading);
}

.field-line {
  margin: 0;
  color: #777c7c;
  font-size: 0.94rem;
}

.field-line p,
.primary-links p,
.profile-links p,
.secondary-links p,
.sidebar-label p,
.paper-title p,
.paper-meta p,
.paper-status p,
.paper-links p {
  margin: 0;
}

.portrait {
  width: min(100%, 250px);
  aspect-ratio: 1;
  margin: 1rem auto 0.9rem;
  border-radius: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--portrait-a), var(--portrait-b));
  color: #ffffff;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
}

.portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.portrait p,
.portrait .quarto-figure,
.portrait figure {
  width: 100%;
  height: 100%;
  margin: 0;
}

.portrait figcaption {
  display: none;
}

.primary-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.45rem 0 0.7rem;
  font-size: 1.08rem;
  font-weight: 500;
}

.primary-links a:hover {
  font-weight: 700;
  transform: scale(1.02);
}

.profile-links {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.profile hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0.7rem 0;
}

.sidebar-label {
  margin: 0 0 0.25rem;
  color: var(--heading);
  font-weight: 700;
}

.secondary-links {
  font-size: 0.86rem;
}

.main-column {
  max-width: 870px;
  padding-top: 0.2rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.intro {
  margin-bottom: 1.55rem;
}

.research-interests {
  color: #596060;
  margin: 0.75rem 0;
}

.section-block {
  margin-top: 1.65rem;
}

.section-block h2 {
  margin: 0 0 0.9rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--rule);
  color: var(--heading);
  font-size: 1.22rem;
  line-height: 1.2;
  font-weight: 700;
}

.paper,
.teaching-item {
  margin-bottom: 1.45rem;
}

.teaching-item > p {
  margin-bottom: 0.25rem;
}

.compact-paper {
  margin-bottom: 1rem;
}

.paper-title {
  margin-bottom: 0.2rem;
  color: var(--heading);
  font-weight: 700;
}

.paper-meta,
.paper-status,
.paper-links {
  margin-bottom: 0.28rem;
}

.paper-meta {
  color: #666b6b;
}

.paper-status {
  color: #596060;
  font-weight: 600;
}

.paper-links {
  color: #777c7c;
}

details {
  margin-top: 0.3rem;
}

summary {
  width: fit-content;
  color: var(--heading);
  cursor: pointer;
  font-weight: 500;
}

summary:hover {
  color: var(--link-hover);
}

details p {
  margin-top: 0.45rem;
}

.site-footer {
  width: min(95%, var(--max-width));
  margin: 0 auto;
  padding: 0 0 1.5rem;
  color: #8a8f8f;
  font-size: 0.85rem;
}

.site-footer p {
  margin-left: 320px;
}

@media (max-width: 860px) {
  .site-shell {
    width: min(92%, 680px);
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 1.5rem;
  }

  .profile {
    position: static;
    text-align: center;
  }

  .portrait {
    width: min(68%, 260px);
  }

  .secondary-links {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.35rem;
    flex-wrap: wrap;
  }

  .secondary-links .sidebar-label {
    width: 100%;
  }

  .main-column {
    max-width: none;
  }

  .site-footer {
    width: min(92%, 680px);
    text-align: center;
  }

  .site-footer p {
    margin-left: 0;
  }
}
