:root {
  color-scheme: light;
  --ink: #28282a;
  --muted: #585a60;
  --section-blue: #435399;
  --accent: #3f51b5;
  --line: #dedee3;
  --wash: #f7f7f7;
  --canvas: #fff;
  --panel: #fff;
  --sans: "DM Sans", Arial, sans-serif;
  --rail: 13.6rem;
  --gutter: clamp(2.5rem,6vw,5.2rem);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edeeef; --muted: #bcbec6; --accent: #aebdff; --line: #41434b;
  --wash: #2b2c32; --canvas: #202126; --panel: #202126;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #edeeef; --muted: #bcbec6; --accent: #aebdff; --line: #41434b;
    --wash: #2b2c32; --canvas: #202126; --panel: #202126;
  }
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 1rem/1.62 var(--sans); }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.2; font-weight: 400; }
h2 { font-size: clamp(1.55rem,2.8vw,2rem); letter-spacing: -.025em; }
h3, h4, small { font-size: 1rem; }
code, pre, kbd, samp { font-size: 1rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .17em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select { background: var(--panel); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:target { scroll-margin-top: 1.4rem; }
img { max-width: 100%; }
.wrap { width: min(62.5rem,calc(100% - 5rem)); margin-inline: auto; }
.skip { position: absolute; z-index: 9; top: .4rem; left: .4rem; background: var(--panel); padding: .45rem .8rem; transform: translateY(-180%); }
.skip:focus { transform: none; }
.site-header { background: var(--canvas); }
.header-inner { min-height: 4rem; border-bottom: 1px solid var(--line); display: flex; gap: 0 1.45rem; align-items: center; flex-wrap: wrap; }
.signature { font-weight: 600; line-height: 1.4; color: var(--ink); text-decoration: none; }
#site-navigation { margin-left: auto; display: flex; align-items: center; gap: 1.35rem; }
#site-navigation a, .header-action { padding: .45rem 0; line-height: 1.4; color: var(--muted); text-decoration: none; }
#site-navigation a:hover, #site-navigation a[aria-current="page"], .signature:hover, .header-action:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .25em; }
.header-action { display: none; background: transparent; border: 0; cursor: pointer; }
.js [data-search-open] { display: inline-flex; align-items: center; gap: .4rem; }
.search-symbol { width: .8rem; height: .8rem; border: 1.4px solid currentColor; border-radius: 50%; display: inline-block; position: relative; margin-right: .15rem; }
.search-symbol::after { content: ""; position: absolute; width: .35rem; height: 1.5px; background: currentColor; transform: rotate(46deg); right: -.28rem; bottom: -.12rem; }
.profile, .home-section { display: grid; grid-template-columns: var(--rail) minmax(0,1fr); column-gap: var(--gutter); }
.profile { padding-block: clamp(2rem,5vw,4.5rem) clamp(2.1rem,4vw,3.4rem); align-items: start; }
.profile-intro { max-width: 68ch; }
.profile-intro h1 { font-size: clamp(2.28rem,4vw,3.4rem); line-height: 1.05; letter-spacing: -.052em; margin: .02rem 0 1rem; text-wrap: balance; }
.profile-intro p, .bio-prose p { line-height: 1.72; }
.profile-intro p { margin: 0 0 .8rem; }
.intro-links { display: flex; align-items: baseline; flex-wrap: wrap; gap: .55rem 1.4rem; margin-top: 1rem; }
.intro-links > a { white-space: nowrap; }
.portrait-block { width: 100%; max-width: var(--rail); }
.portrait { display: block; width: 100%; aspect-ratio: 1 / 1.08; }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 39%; }
.portrait-block .vgr-profile-links { display: flex; flex-wrap: nowrap; justify-content: space-between; column-gap: 0; margin: .42rem 0 0; }
.portrait-block .vgr-profile-links li { min-width: 0; flex: 1 1 0; text-align: center; }
.portrait-block .vgr-profile-links a { width: 100%; min-height: 2.35rem; }
.portrait-block .vgr-profile-links a, .portrait-block .vgr-profile-links a:visited { color: var(--accent); }
.portrait-block .vgr-profile-links .vgr-profile-glyph { font-size: 1.55rem; }
.home-section { border-top: 1px solid var(--line); padding: clamp(1.25rem,2.5vw,2rem) 0; }
.section-label h2 { margin: .05rem 0 .25rem; font-size: clamp(1.28rem,2vw,1.55rem); }
.home-papers, .home-awards, .education-list { list-style: none; padding: 0; margin: 0; }
.home-papers li + li, .home-awards li + li { margin-top: .9rem; }
.home-papers li > a, .home-awards li > a { color: var(--ink); text-decoration: none; line-height: 1.45; }
:is(.home-papers,.home-awards) li > a:is(:hover,:focus-visible) { color: var(--accent); text-decoration: underline; }
.home-papers { --rp-link: var(--accent); }
.home-papers li { position: relative; }
.home-papers li > a { display: block; padding-right: 3rem; }
.home-papers .citation-line { margin-right: 3rem; }
.home-papers .rp-paper-panel > summary { top: -.35rem; }
.home-papers .rp-materials { margin-top: .65rem; }
.citation-line { display: block; color: var(--muted); line-height: 1.5; margin-top: .13rem; }
.bio-prose, .home-section address { max-width: 68ch; }
.bio-prose p { margin: 0 0 .85rem; }
.bio-prose p:last-child { margin-bottom: 0; }
.bio-prose h3 { margin: 1.5rem 0 .4rem; font-weight: 600; line-height: 1.45; }
.bio-prose h3:first-child { margin-top: .1rem; }
.education-list li + li { margin-top: .5rem; }
.education-list span { display: block; color: var(--muted); }
.home-section address { font-style: normal; }
.section-main { padding-block: clamp(2rem,4.2vw,3.4rem) 3.4rem; }
.page-head { margin-bottom: 1.45rem; }
.page-head h1 { font-size: clamp(2.3rem,4.3vw,3.2rem); letter-spacing: -.045em; margin: 0 0 .55rem; }
.page-head p { max-width: 72ch; color: var(--muted); margin: 0; }
.page-head.section-banner { padding: clamp(1.2rem,3vw,2rem); color: #fff; background-color: var(--section-blue); }
.page-head.section-banner :is(h1,p) { color: #fff; }
.page-head.section-banner h1:only-child { margin-bottom: 0; }
/* Keep filter announcements available to screen readers without adding a third control row. */
.collection-teaching .cl-course-count {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.site-footer { color: var(--muted); }
.footer-inner { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem 1.6rem; padding-block: 1.2rem 1.6rem; }
.footer-inner > a { text-decoration: none; color: var(--muted); line-height: 1.4; }
.footer-links { display: flex; gap: .45rem 1rem; align-items: center; flex-wrap: wrap; }
.theme-control { display: none; }
.js .theme-control { display: inline-flex; align-items: center; gap: .33rem; }
.theme-control select { border: 1px solid var(--line); padding: .2rem .35rem; }
.search-dialog { padding: 0; width: min(39rem,calc(100% - 1.6rem)); max-height: 84vh; border: 1px solid var(--line); border-radius: .55rem; background: var(--panel); color: var(--ink); box-shadow: 0 .8rem 4rem #20202040; }
.search-dialog::backdrop { background: #20202080; }
.search-content { padding: clamp(1.1rem,3vw,1.9rem); }
.search-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.search-head h2 { font-size: 1.85rem; margin: 0; }
.search-head button { border: 0; background: transparent; color: var(--accent); text-decoration: underline; cursor: pointer; }
.search-content label { display: block; font-weight: 600; padding-bottom: .33rem; }
.search-content input { width: 100%; background: var(--canvas); border: 1px solid var(--muted); border-radius: .25rem; min-height: 2.9rem; padding: .5rem .72rem; }
#site-search-status { color: var(--muted); margin: .65rem 0; }
#site-search-results { list-style: none; padding: 0 .35rem 0 0; margin: 0; max-height: 45vh; overflow-y: auto; }
#site-search-results li { border-top: 1px solid var(--line); padding: .52rem .15rem; }
#site-search-results a { display: block; }
#site-search-results small { display: block; color: var(--muted); }
@media (max-width: 1000px) {
  #site-navigation { gap: .85rem; }
  .header-inner { column-gap: .85rem; }
}
@media (max-width: 920px) {
  .wrap { width: calc(100% - 3rem); }
  :root { --rail: 12rem; --gutter: 2.4rem; }
}
@media (max-width: 900px) {
  .header-inner { min-height: 3.5rem; }
  .signature { margin-right: auto; }
  .js [data-menu-toggle] { display: inline-block; }
  #site-navigation { width: 100%; flex-wrap: wrap; order: 3; padding: .25rem 0 .7rem; gap: .1rem 1.2rem; }
  .js #site-navigation:not([data-open="true"]) { display: none; }
  #site-navigation a { padding: .45rem 0; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 2.4rem); }
  .profile { display: flex; flex-direction: column; padding-block: 1.8rem 1.65rem; }
  .profile-intro { display: contents; }
  .profile-intro h1 { order: 0; width: 100%; text-align: center; font-size: clamp(1.84rem,6.5vw,2.4rem); margin: 0 0 1.15rem; }
  .portrait-block { order: 1; align-self: center; max-width: 13rem; margin-bottom: 1.15rem; }
  .portrait { width: 9.2rem; margin-inline: auto; }
  .profile-intro > p, .profile-intro > .intro-links { order: 2; }
  .intro-links { margin-top: .15rem; }
  .home-section { grid-template-columns: minmax(0,1fr); gap: .75rem; padding-block: 1.35rem; }
  .section-label { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .2rem .7rem; }
  .section-label h2 { margin: 0; }
  .footer-inner { gap: .5rem; }
}
@media (max-width: 350px) {
  .wrap { width: calc(100% - 1.6rem); }
  .header-inner { gap: 0 .65rem; }
  .search-symbol { display: none; }
}
