:root {
  color-scheme: light;
  --page: #f8f9fc;
  --paper: #fff;
  --profile: #ebeff8;
  --ink: #171c2b;
  --heading-font: Georgia, "Times New Roman", serif;
  --muted: #4b546b;
  --link: #34498f;
  --line: #dce1eb;
  --width: 73rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --header-height: 4.25rem;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--page);
  color: var(--ink);
  font: 100%/1.6 system-ui, -apple-system, sans-serif;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
h1, h2, .profile-name { font-family: var(--heading-font); font-weight: 400; line-height: 1.06; letter-spacing: -.045em; }
h2 { font-size: clamp(1.95rem, 3.5vw, 3rem); }
h3 { font-size: 1rem; line-height: 1.35; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 3; background: var(--paper); padding: .4rem .8rem; transform: translateY(-180%); }
.skip:focus { transform: none; }
.wrap { width: min(var(--width), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.site-header { position: sticky; inset-block-start: 0; z-index: 2; background: var(--page); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-height); gap: .5rem 1.2rem; padding-block: .65rem; }
.wordmark { font-weight: 700; white-space: nowrap; }
.site-header a { color: var(--ink); text-decoration: none; }
.site-header a:hover, .site-header a[aria-current="page"] { text-decoration: underline; }
nav, .profiles, .paper-links, .footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
nav { font-size: .94rem; }
.layout {
  display: grid;
  grid-template-columns: minmax(20rem, 24rem) minmax(0, 1fr);
  align-items: start;
  gap: var(--gap);
  padding-block: var(--gap) 3rem;
}
.profile {
  position: sticky;
  inset-block-start: calc(var(--header-height) + var(--gap));
  max-block-size: calc(100vh - var(--header-height) - 2 * var(--gap));
  max-block-size: calc(100dvh - var(--header-height) - 2 * var(--gap));
  overflow: auto;
  padding: clamp(1.25rem, 2.7vw, 2rem);
  background: var(--profile);
  border: 1px solid #e0e6f1;
  border-radius: 1rem;
}
.profile-logo { display: block; border-radius: .65rem; margin-block-end: 1rem; }
.profile h1, .profile-name {
  font-size: clamp(1.65rem, 2.65vw, 2.5rem);
  white-space: nowrap;
}
.role { margin-top: .7rem; font-weight: 650; }
.bio { margin-top: 1.25rem; }
.affiliation { margin-top: .85rem; color: var(--muted); }
.profiles { border-top: 1px solid #d7dfef; margin-top: 1.15rem; padding-top: .9rem; font-size: .938rem; }
.main-column { min-inline-size: 0; display: grid; gap: 1.25rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1.25rem, 3.25vw, 2.8rem); }
.kicker, .year { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.kicker { font-weight: 650; }
.feature h2 { margin-block: .6rem .85rem; }
.feature > p:not(.kicker), .writing > p { max-width: 40rem; }
.paper-links { margin-top: .95rem; }
.award { margin-top: .7rem; font-size: .94rem; }
.publication-group { margin-top: 1.5rem; }
.publication-group h3 { margin-bottom: .55rem; }
.papers { list-style: none; padding: 0; }
.papers li { display: grid; grid-template-columns: 3.35rem minmax(0, 1fr); gap: .5rem; padding-block: .75rem; border-top: 1px solid var(--line); }
.papers a { font-weight: 610; }
.papers p, dd, .contact p { color: var(--muted); font-size: .94rem; }
.papers p { margin-top: .18rem; }
.cv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1.6rem; margin-top: 1.4rem; }
dt { font-weight: 600; margin-top: .65rem; }
.footer-links { margin-block: .65rem .35rem; }
.writing-title { font-size: clamp(2.1rem, 4vw, 3.4rem); }
.writing > p { margin-top: .85rem; }
.writing .empty { color: var(--muted); margin-top: 1.3rem; }
@media (max-width: 56rem) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .profile { position: static; max-block-size: none; overflow: visible; }
  .profile h1, .profile-name { font-size: clamp(1.65rem, 6.5vw, 2.5rem); }
}
@media (max-width: 37.5rem) {
  :root { --header-height: 6.5rem; }
  .header-inner { flex-direction: column; align-items: flex-start; justify-content: center; }
  nav { gap: .25rem .8rem; }
  .papers li { grid-template-columns: 2.75rem minmax(0, 1fr); gap: .35rem; }
}
