:root{
  --bg:#fff;
  --text:#494e52;
  --muted:#6f777d;
  --heading:#222;
  --link:#224b8d;
  --border:#f2f3f3;
  --rule:#d8dcdf;
  --soft:#f7f7f7;
  --nav:#7a8288;
  --profile-bg:#f8f9f9;
}
:root[data-theme="dark"]{
  --bg:#101418;
  --text:#d7dce0;
  --muted:#a6afb7;
  --heading:#f3f5f7;
  --link:#8ab4f8;
  --border:#29323a;
  --rule:#3a4650;
  --soft:#171d23;
  --nav:#a6afb7;
  --profile-bg:#161c22;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--bg);font-size:15px}
body{
  margin:0;
  color:var(--text);
  background:var(--bg);
  font-family:"Roboto",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  font-weight:300;
  line-height:1.5;
}
::selection{color:#fff;background:#000}
a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto;vertical-align:middle;border:0}
p{margin:0 0 .65em}
ul,ol{margin:.5em 0 .9em;padding-left:2em}
li{margin-bottom:.42em}
h1,h2,h3,h4{
  color:var(--heading);
  font-family:"Roboto",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  font-weight:700;
  line-height:1.2;
}
h1{margin:1.45em 0 .65em;font-size:1.45em;border-bottom:1px solid var(--border);padding-bottom:.22em}
h2{margin:1.15em 0 .45em;font-size:1.18em}
h3{margin:.9em 0 .35em;font-size:1em}
strong{color:var(--heading)}
em{font-style:italic}
code{
  padding:.1rem .32rem;
  font-family:Monaco,Consolas,"Lucida Console",monospace;
  font-size:.92em;
  background:var(--soft);
  border:1px solid var(--border);
  border-radius:4px;
}
table{width:100%;border-collapse:collapse;margin:1em 0;font-size:.95em}
thead{background:var(--soft)}
th,td{padding:.55em;border-bottom:1px solid var(--rule);text-align:left;vertical-align:top}

.masthead{
  position:sticky;
  top:0;
  z-index:20;
  background:var(--bg);
  border-bottom:1px solid var(--border);
}
.masthead__inner-wrap{
  max-width:none;
  margin:0 auto;
  padding:.5em clamp(1.5em,4vw,4em);
}
.greedy-nav .visible-links{
  display:flex;
  flex-wrap:nowrap;
  justify-content:space-between;
  align-items:center;
  margin:0;
  padding:0;
  list-style:none;
}
.masthead__menu-item{
  margin:0;
  white-space:nowrap;
}
.masthead__menu-item--lg{font-weight:700}
.greedy-nav a{
  display:block;
  margin:0;
  padding:.5rem 0;
  color:var(--nav);
  text-decoration:none;
  text-align:center;
}
.greedy-nav a:hover{color:var(--heading)}
.masthead__menu-item--lg a{color:var(--heading)}

.site-shell{
  max-width:1280px;
  margin:0 auto;
  padding:1.8em 1em 2em;
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:2.5em;
}
.sidebar{
  position:sticky;
  top:5.5em;
  align-self:start;
  max-height:calc(100vh - 5.5em - 1.8em);
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:var(--rule) transparent;
}
.profile-box{
  color:var(--text);
  background:transparent;
}
.profile-photo-frame{
  width:220px;
  max-width:100%;
  margin:0 0 1em;
  overflow:hidden;
  border-radius:4px;
  background:#6f7885;
  border:1px solid var(--border);
}
.profile-photo{
  display:block;
  width:calc(100% + 16px);
  max-width:none;
  height:auto;
  margin:-2px -8px -10px;
}
.profile-name{
  margin:.2em 0 .15em;
  padding:0;
  border:0;
  font-size:1.35em;
}
.profile-title{
  margin:0 0 .8em;
  color:var(--muted);
  font-weight:700;
}
.citation-badge{
  display:inline-flex;
  align-items:center;
  margin:0;
  line-height:1;
  vertical-align:-.16em;
}
.citation-badge img{
  display:block;
  height:18px;
  width:auto;
}
.about-citation{
  display:inline-block;
  white-space:nowrap;
  margin-left:.35em;
  line-height:1;
}
.profile-meta,
.profile-links{
  margin:.8em 0;
  padding:0;
  list-style:none;
}
.profile-meta li,
.profile-links li{
  margin:.25em 0;
  color:var(--muted);
}
.profile-links{
  padding-top:.55em;
  border-top:1px solid var(--border);
}
.page{
  min-width:0;
  max-width:920px;
}
.page__inner-wrap{width:100%}
.page__content{
  font-size:1em;
  max-width:900px;
}
.anchor:before,
.page__content h1:before{
  content:"";
  display:block;
  position:relative;
  width:0;
  height:4em;
  margin-top:-4em;
}

.bibliography{
  margin-top:.7em;
  padding-left:1.4em;
}
.bibliography li{margin-bottom:.8em}
.pub-title strong{color:var(--heading)}
.pub-authors{color:var(--text)}
.pub-year{
  margin:1.2em 0 .45em;
  font-size:1.12em;
  color:var(--heading);
  font-weight:700;
}
.pub-list{padding-left:1.4em}
.pub-item{margin-bottom:.8em}

.course-list{
  margin:1em 0;
  border-top:1px solid var(--border);
}
.course-item{
  display:grid;
  grid-template-columns:125px 1fr;
  gap:1em;
  padding:1em 0;
  border-bottom:1px solid var(--border);
}
.course-item h3{margin:0 0 .25em}
.course-term{
  color:var(--muted);
  font-weight:700;
}
.course-meta{
  color:var(--muted);
  margin-bottom:.35em;
}
.course-tags{
  display:flex;
  flex-wrap:wrap;
  gap:.35em;
  margin:.55em 0 0;
}
.course-tags span{
  display:inline-block;
  padding:.12em .55em;
  color:#24416f;
  background:#edf2f7;
  border-radius:4px;
  font-size:.88em;
}
:root[data-theme="dark"] .course-tags span{
  color:#d7e5ff;
  background:#1b2a3a;
}

.two-col{margin-top:.4em}
@media (min-width:880px){
  .two-col{
    columns:2;
    column-gap:2.5em;
    list-style-position:inside;
    padding-left:0;
  }
  .two-col li{break-inside:avoid}
}

.affiliations{margin:1em 0 1.5em}
.affiliations .container{padding:0;max-width:none}
.affiliations .container.narrow{max-width:none}
.aff-logos{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:0;
  padding:0;
  list-style:none;
}
.aff-logo{
  flex:0 0 132px;
  min-height:72px;
  margin:0;
  padding:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--soft);
  border:1px solid var(--border);
  border-radius:4px;
}
.aff-logo img{
  max-width:100%;
  max-height:48px;
  object-fit:contain;
  transform:scale(var(--s,1));
  filter:grayscale(100%);
  opacity:.9;
}
.aff-logo:hover img{filter:grayscale(0);opacity:1}

.section{
  margin:0 0 1.5em;
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
}
.section .title{
  display:block;
}
.section .title .emoji{display:inline}
.meta{color:var(--muted)}
.card,.teach-card{
  border:1px solid var(--border);
  border-radius:4px;
  background:var(--soft);
  box-shadow:none;
}
.teach-grid{
  display:grid;
  gap:1em;
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.teach-cover{display:none}
.teach-body{padding:1em}
.teach-title{font-weight:700;color:var(--heading)}
.teach-sub,.teach-desc{color:var(--text)}
.teach-tags{display:flex;flex-wrap:wrap;gap:.35em;margin-top:.55em}
.teach-tag{
  font-size:.88em;
  background:#edf2f7;
  color:#24416f;
  border-radius:4px;
  padding:.12em .55em;
}

.site-footer{
  border-top:1px solid var(--border);
  padding:1em;
  color:var(--muted);
}
.footer-inner{
  max-width:1280px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:1em;
}
#toggleTheme{
  padding:.35em .65em;
  border:1px solid var(--rule);
  border-radius:4px;
  background:var(--bg);
  color:var(--muted);
  font:inherit;
}

@media (max-width:920px){
  .site-shell{
    grid-template-columns:1fr;
    gap:1.2em;
  }
  .sidebar{
    position:static;
    max-height:none;
    overflow-y:visible;
  }
  .profile-box{
    display:grid;
    grid-template-columns:120px 1fr;
    gap:0 1em;
    align-items:start;
    padding-bottom:1em;
    border-bottom:1px solid var(--border);
  }
  .profile-photo{
    width:120px;
  }
  .profile-photo-frame{
    grid-row:1 / span 4;
    width:120px;
  }
  .profile-meta,.profile-links{margin:.45em 0}
  .profile-links{border:0;padding:0}
  .course-item{grid-template-columns:1fr}
}
@media (max-width:640px){
  html{font-size:14px}
  .masthead__inner-wrap{padding:.35em .8em}
  .greedy-nav .visible-links{
    display:flex;
    overflow-x:auto;
  }
  .masthead__menu-item{flex:0 0 auto}
  .greedy-nav a{
    margin-right:1.2rem;
    text-align:left;
  }
  .masthead__menu-item:last-child a{text-align:left}
  .site-shell{padding:1.1em .9em}
  .profile-box{grid-template-columns:96px 1fr}
  .profile-photo-frame{width:96px}
  .teach-grid{grid-template-columns:1fr}
  .footer-inner{flex-direction:column}
}

.alumni-list{
  list-style:none;
  padding:0;
  margin:1em 0;
}
.alumni-list > li{
  margin-bottom:1.2em;
}
.alumni-list > li > strong{
  font-size:1.05em;
  color:var(--heading);
}
.alumni-list ul{
  list-style:none;
  padding-left:1.2em;
  margin:.3em 0;
}
.alumni-list ul li{
  margin-bottom:.35em;
  color:var(--text);
}
