:root {
  --notes-paper: #f8f6f1;
  --notes-surface: #fffefa;
  --notes-ink: #24211d;
  --notes-muted: #6f685f;
  --notes-rule: #ded8ce;
  --notes-accent: #8a2635;
  --notes-accent-dark: #681a27;
  --notes-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua",
    Palatino, Georgia, serif;
  --notes-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
  --notes-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--notes-paper);
  color: var(--notes-ink);
  font-family: var(--notes-serif);
  font-size: 1.08rem;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--notes-accent);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.16em;
}

a:hover,
a:focus {
  color: var(--notes-accent-dark);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar,
.quarto-title-meta,
.listing-categories,
.quarto-category,
.page-footer,
.btn {
  font-family: var(--notes-sans);
}

h1,
h2,
h3 {
  color: var(--notes-ink);
  font-weight: 650;
  letter-spacing: -0.025em;
}

h2 {
  margin-top: 2.8rem;
}

.navbar {
  background: rgba(248, 246, 241, 0.96);
  border-bottom: 1px solid var(--notes-rule);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  color: var(--notes-ink);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.navbar-nav .nav-link {
  color: #49433c;
  font-size: 0.91rem;
  font-weight: 560;
}

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

#quarto-content {
  background: var(--notes-paper);
}

main.content {
  max-width: 780px;
}

.page-layout-full main.content {
  max-width: 1120px;
}

.academic-hero {
  border-bottom: 1px solid var(--notes-rule);
  max-width: 1120px;
  padding: 6.3rem 0 4.8rem;
}

.academic-hero-grid {
  align-items: start;
  column-gap: clamp(2.25rem, 4vw, 3.75rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  row-gap: 1.9rem;
}

.academic-hero-copy {
  display: contents;
}

.academic-name {
  color: var(--notes-ink);
  font-family: var(--notes-sans);
  font-size: clamp(4rem, 6.4vw, 5.75rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.98;
  margin: 0;
  grid-column: 1 / -1;
  white-space: nowrap;
}

.academic-portrait {
  grid-column: 2;
  grid-row: 2 / span 2;
  justify-self: start;
  margin: 0;
  max-width: 330px;
  width: 100%;
}

.academic-portrait p {
  margin: 0;
}

.academic-portrait-image {
  border: 1px solid var(--notes-rule);
  box-shadow: 0 18px 44px rgba(36, 33, 29, 0.12);
  display: block;
  height: auto;
  width: 100%;
}

.academic-role {
  color: #504a43;
  font-size: clamp(1.15rem, 2vw, 1.48rem);
  grid-column: 1;
  grid-row: 2;
  line-height: 1.5;
  margin: 0;
}

.academic-hero-copy > .notes-actions {
  grid-column: 1;
  grid-row: 3;
  margin-top: 0.3rem;
}

.home-intro-grid,
.research-theme-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 3.2rem 0 4.8rem;
}

.home-intro {
  padding: 0 3.5rem 0 0;
}

.home-intro + .home-intro {
  border-left: 1px solid var(--notes-rule);
  padding: 0 0 0 3.5rem;
}

.home-intro h2 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.home-intro p {
  color: var(--notes-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.news-panel {
  background: var(--notes-surface);
  border: 1px solid var(--notes-rule);
  border-left: 4px solid var(--notes-accent);
  padding: 1.1rem 1.35rem 0.2rem;
}

.research-theme-grid {
  border-bottom: 1px solid var(--notes-rule);
  border-top: 1px solid var(--notes-rule);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2.4rem 0 2.6rem;
}

.research-theme {
  padding: 1.6rem 1.7rem 1.45rem 0;
}

.research-theme + .research-theme {
  border-left: 1px solid var(--notes-rule);
  padding-left: 1.7rem;
}

.research-theme h3 {
  font-size: 1rem;
  margin: 0 0 0.7rem;
}

.research-theme p {
  color: var(--notes-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.notes-hero {
  max-width: 980px;
  padding: 6.3rem 0 5.1rem;
}

.notes-kicker {
  color: var(--notes-accent);
  font-family: var(--notes-sans);
  font-size: 0.77rem;
  font-weight: 750;
  letter-spacing: 0.17em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.notes-hero h1 {
  font-size: clamp(3.1rem, 8vw, 6.6rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.98;
  margin: 0;
}

.notes-deck {
  color: #504a43;
  font-size: clamp(1.22rem, 2.2vw, 1.65rem);
  line-height: 1.45;
  margin: 2rem 0 0;
  max-width: 780px;
}

.notes-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.2rem;
}

.notes-actions .btn {
  border-radius: 0.2rem;
  font-size: 0.88rem;
  font-weight: 650;
  padding: 0.72rem 1rem;
}

.btn-primary {
  background-color: var(--notes-accent);
  border-color: var(--notes-accent);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--notes-accent-dark);
  border-color: var(--notes-accent-dark);
}

.btn-outline-secondary {
  border-color: #9d958a;
  color: #4f4942;
}

.notes-principles {
  border-bottom: 1px solid var(--notes-rule);
  border-top: 1px solid var(--notes-rule);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 5.2rem;
}

.notes-principle {
  min-height: 185px;
  padding: 1.65rem 2rem 1.75rem 0;
}

.notes-principle + .notes-principle {
  border-left: 1px solid var(--notes-rule);
  padding-left: 2rem;
}

.principle-number {
  color: var(--notes-accent);
  font-family: var(--notes-mono);
  font-size: 0.72rem;
}

.notes-principle h3 {
  font-size: 1.05rem;
  margin: 1.35rem 0 0.5rem;
}

.notes-principle p {
  color: var(--notes-muted);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0;
}

.listing-heading {
  font-size: 1.55rem;
  margin: 0 0 1rem;
}

.quarto-listing-container-default .quarto-post {
  border-bottom: 1px solid var(--notes-rule);
  padding: 1.65rem 0 1.8rem;
}

.quarto-listing-container-default .quarto-post:first-child {
  border-top: 1px solid var(--notes-rule);
}

.quarto-listing-container-default .listing-title {
  color: var(--notes-ink);
  font-family: var(--notes-sans);
  font-size: 1.32rem;
  font-weight: 660;
  letter-spacing: -0.02em;
}

.quarto-listing-container-default .listing-description {
  color: var(--notes-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.quarto-listing-container-default .listing-date {
  color: var(--notes-muted);
  font-family: var(--notes-mono);
  font-size: 0.73rem;
}

.listing-categories .listing-category,
.quarto-category {
  border-color: #b8afa4;
  border-radius: 999px;
  color: #5e574f;
  font-size: 0.68rem;
  letter-spacing: 0.025em;
  text-transform: none;
}

.quarto-title-block {
  border-bottom: 1px solid var(--notes-rule);
  margin-bottom: 2.4rem;
  padding-bottom: 1.8rem;
}

.quarto-title .title {
  font-size: clamp(2.25rem, 5vw, 4.1rem);
  letter-spacing: -0.05em;
  line-height: 1.03;
}

.quarto-title .description {
  color: var(--notes-muted);
  font-family: var(--notes-serif);
  font-size: 1.2rem;
  line-height: 1.5;
  margin-top: 1rem;
}

.quarto-title-meta {
  color: var(--notes-muted);
  font-size: 0.79rem;
}

.note-status {
  background: #f1ede5;
  border-left: 3px solid var(--notes-accent);
  color: #4d463e;
  font-family: var(--notes-sans);
  font-size: 0.88rem;
  margin: 0 0 2.2rem;
  padding: 0.75rem 1rem;
}

.note-status p {
  margin: 0;
}

blockquote {
  border-left-color: var(--notes-accent);
  color: #504941;
}

code {
  color: #703145;
  font-family: var(--notes-mono);
}

pre,
.sourceCode {
  border-radius: 0.2rem;
}

.math.display,
mjx-container[jax="CHTML"][display="true"] {
  box-sizing: border-box;
  display: block;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.7rem 0;
  -webkit-overflow-scrolling: touch;
}

.math-macros {
  display: none;
}

.theorem,
.lemma,
.proposition,
.corollary,
.definition {
  background: var(--notes-surface);
  border-left: 3px solid var(--notes-accent);
  box-shadow: 0 1px 0 rgba(30, 25, 20, 0.04);
  margin: 2rem 0;
  padding: 1.1rem 1.25rem 0.45rem;
}

.proof {
  margin: 1.7rem 0;
}

.page-footer {
  background: transparent;
  border-top: 1px solid var(--notes-rule);
  color: var(--notes-muted);
  font-size: 0.78rem;
}

@media (max-width: 850px) {
  .academic-hero-grid {
    align-items: center;
    gap: 1.75rem;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 140px);
  }

  .academic-hero-copy {
    display: block;
  }

  .academic-name {
    font-size: clamp(2.8rem, 7vw, 3.75rem);
  }

  .academic-portrait {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
    max-width: 140px;
  }

  .academic-role {
    margin-top: 1.9rem;
  }

  .academic-hero-copy > .notes-actions {
    margin-top: 2.2rem;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 1rem;
  }

  .academic-hero {
    padding: 4.3rem 0 3.7rem;
  }

  .home-intro-grid,
  .research-theme-grid {
    display: block;
    margin: 2.6rem 0 3.8rem;
  }

  .home-intro {
    padding: 0 0 1.7rem;
  }

  .home-intro + .home-intro {
    border-left: 0;
    border-top: 1px solid var(--notes-rule);
    padding: 1.7rem 0 0;
  }

  .research-theme {
    padding: 1.45rem 0;
  }

  .research-theme + .research-theme {
    border-left: 0;
    border-top: 1px solid var(--notes-rule);
    padding-left: 0;
  }

  .notes-hero {
    padding: 4.3rem 0 3.7rem;
  }

  .notes-principles {
    display: block;
    margin-bottom: 3.8rem;
  }

  .notes-principle {
    min-height: auto;
    padding: 1.45rem 0;
  }

  .notes-principle + .notes-principle {
    border-left: 0;
    border-top: 1px solid var(--notes-rule);
    padding-left: 0;
  }

  .quarto-title .title {
    font-size: 2.4rem;
  }
}

@media (max-width: 520px) {
  .academic-hero-grid {
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  .academic-name {
    font-size: 2.65rem;
    white-space: normal;
  }

  .academic-portrait {
    max-width: 92px;
  }
}
