:root {
  --ink: #25272b;
  --body: #34373b;
  --muted: #636870;
  --accent: #813447;
  --line: #dddeda;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 5.4rem; }
body { margin: 0; color: var(--body); background: white; font: 400 1.1rem/1.53 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
a { color: var(--accent); text-decoration-color: #caa8ae; text-decoration-thickness: 1px; text-underline-offset: .17em; }
a:hover { color: #5e1d2b; text-decoration-color: currentColor; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
strong { font-weight: 600; }
.wrap { width: min(calc(100% - clamp(2.2rem, 9vw, 8rem)), 70rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -6rem; z-index: 4; background: white; padding: .55rem 1rem; }
.skip:focus { top: .5rem; }
.masthead { position: sticky; top: 0; z-index: 3; background: #fff; border-top: 3px solid #813447; border-bottom: 1px solid #e8e8e5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 3.8rem; }
.site-name { flex-shrink: 0; font: 550 1.3rem/1 var(--serif); letter-spacing: -.035em; color: var(--ink); text-decoration: none; }
.site-name span { font-weight: 400; color: #65696d; }
.masthead nav { display: flex; flex-wrap: wrap; gap: clamp(1rem, 2vw, 1.65rem); }
.masthead nav a { font-weight: 500; font-size: 1rem; color: #484c51; text-decoration: none; }
.masthead nav a:hover, .masthead nav a:focus-visible { color: var(--accent); text-decoration: underline; }
h1 { color: var(--ink); text-align: center; font: 500 clamp(2.95rem, 5.2vw, 4.35rem)/1.05 var(--serif); letter-spacing: -.053em; padding: clamp(2rem, 3.4vw, 3rem) 0 clamp(1.5rem, 2.4vw, 2rem); border-bottom: 1px solid var(--line); }
.profile-grid { display: grid; grid-template-columns: minmax(9rem, .6fr) minmax(14rem, .91fr) minmax(0, 1.78fr); align-items: start; column-gap: clamp(1.75rem, 3.35vw, 3.3rem); padding: clamp(2rem, 3vw, 2.75rem) 0 .3rem; }
.portrait { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; max-width: 12.5rem; margin-inline: auto; }
.role { font: 500 clamp(1.38rem, 1.9vw, 1.63rem)/1.17 var(--serif); color: var(--ink); letter-spacing: -.035em; margin: 0 0 .38rem; }
.department { font-size: 1.06rem; line-height: 1.36; }
.affiliation, .profile-contact { font-size: .97rem; line-height: 1.4; }
.affiliation { color: var(--muted); margin: .65rem 0; }
.profile-contact { margin: .75rem 0 .6rem; }
.profile-contact span, .profile-contact a { display: block; }
.cv { font-weight: 600; font-size: 1rem; }
.cv-date { font-size: .85rem; color: var(--muted); margin-left: .3rem; white-space: nowrap; }
.bio { line-height: 1.5; }
.bio p + p { margin-top: .76rem; }
.page-section { margin-top: clamp(2.5rem, 4.4vw, 4rem); }
.section-heading { display: flex; align-items: center; gap: 1.2rem; margin-bottom: .95rem; }
.section-heading span { flex: 1; height: 1px; background: var(--line); }
h2 { color: var(--ink); font: 500 clamp(2rem, 3.1vw, 2.6rem)/1.05 var(--serif); letter-spacing: -.05em; }
.section-heading>a { font-size: .98rem; }
h3 { font: 600 1.25rem/1.3 var(--sans); color: var(--ink); margin: 1.75rem 0 .55rem; letter-spacing: -.015em; }
.interests { max-width: 64rem; }
.pub-nav { display: flex; align-items: baseline; gap: .25rem 1rem; flex-wrap: wrap; margin-top: .8rem; font-size: .96rem; }
.pub-nav strong { color: var(--ink); }
.pub-nav a { white-space: nowrap; }
.pub-note { font-size: .92rem; color: var(--muted); margin: .65rem 0 0; }
.citations { padding-left: 1.85rem; max-width: 65rem; }
.citations>li { padding: .65rem 0 .67rem .32rem; line-height: 1.46; }
.citations>li+li { border-top: 1px solid #eeeeeb; }
.citations li::marker { color: #74767a; font-size: .95rem; font-variant-numeric: tabular-nums; }
.pub-title { font-weight: 600; color: var(--ink); font-size: 1.115rem; }
.pub-authors, .pub-venue { color: #565b61; font-size: 1rem; }
.pub-links { display: inline; font-size: .96rem; margin-left: .22rem; }
.pub-links span { color: #8c8d91; }
.earlier-versions { border-left: 2px solid #e4e2df; padding-left: 1rem; margin: .6rem 0 .3rem; }
.earlier-label { font-size: .9rem; color: var(--muted); }
.earlier-papers { list-style: none; padding: 0; }
.earlier-papers li { margin: .38rem 0; }
.earlier-papers .pub-title { font-size: 1rem; }
.roster, .courses { list-style: none; padding: 0; max-width: 61rem; }
.roster li, .courses li { display: grid; grid-template-columns: minmax(10rem,.85fr) minmax(0,1.65fr); gap: 1.25rem; padding: .55rem 0; border-bottom: 1px solid #ededeb; }
.roster li>span:last-child, .courses li>span:last-child { color: var(--muted); font-size: 1rem; }
.courses li { grid-template-columns: minmax(13rem,1.12fr) minmax(0,1fr); }
.courses li a { white-space: nowrap; }
details { margin-top: 1rem; }
summary { width: fit-content; color: var(--accent); cursor: pointer; font-weight: 550; }
details[open] summary { margin-bottom: .55rem; }
.facts { display: grid; grid-template-columns: minmax(8rem,11rem) minmax(0,1fr); gap: .48rem 1.2rem; }
.facts dt { color: var(--ink); font-weight: 600; }
.credits { color: var(--muted); font-size: 1rem; margin-top: .25rem; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 3rem; padding: 1.1rem 0 1.65rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
footer.wrap { margin-top: 3rem; }
@media(max-width: 980px) {
  .profile-grid { grid-template-columns: minmax(8rem,.55fr) minmax(10rem,.96fr) minmax(0,1.55fr); column-gap: 1.65rem; }
}
@media(max-width: 790px) {
  .masthead { position: static; }
  html { scroll-padding-top: 1.2rem; }
  .header-inner { flex-wrap: wrap; gap: .45rem 1rem; padding: .75rem 0; }
  .masthead nav { gap: .22rem 1rem; }
  .profile-grid { grid-template-columns: minmax(6rem, 9.75rem) minmax(0,1fr); row-gap: 1.4rem; align-items: center; }
  .bio { grid-column: 1/-1; }
  h1 { padding: 1.7rem 0 1.3rem; }
  .profile-grid { padding-top: 1.6rem; }
}
@media(max-width: 540px) {
  .masthead nav { gap: .16rem .86rem; }
  .masthead nav a { font-size: .93rem; line-height: 1.75; }
  .header-inner { display: block; }
  .masthead nav { margin-top: .38rem; }
  body { font-size: 1.035rem; }
  .profile-grid { grid-template-columns: minmax(5.9rem,.48fr) minmax(0,1fr); align-items: start; column-gap: 1rem; }
  .role { font-size: 1.45rem; }
  .department { font-size: 1rem; }
  .affiliation, .profile-contact { font-size: .93rem; }
  .profile-contact a { overflow-wrap: anywhere; }
  .section-heading { gap: .85rem; }
  .citations { padding-left: 1.55rem; }
  .pub-links { margin-left: 0; }
  .roster li, .courses li { grid-template-columns: 1fr; gap: .08rem; }
  .facts { grid-template-columns: 1fr; gap: .1rem; }
  .facts dd+dt { margin-top: .65rem; }
}
@media print {
  .masthead, .skip, .pub-nav, footer a { display: none; }
  .wrap { width: 100%; }
  body { font-size: 10pt; }
  .page-section { margin-top: 1.5rem; }
  h2, h3, .section-heading { break-after: avoid; }
  li { break-inside: avoid; }
}
