:root {
  color-scheme:light;
  --bg:#fff;
  --ink:#292833;
  --muted:#5d5b6b;
  --accent:#4f46e5;
  --soft:#f5f5ff;
  --line:#e3e2ec;
  --panel:#fff;
  --sans:"Avenir Next",Avenir,"Segoe UI",Arial,sans-serif;
  --serif:Charter,"Bitstream Charter",Georgia,serif}
* {
  box-sizing:border-box}
html {
  scroll-padding-top:22px}
body {
  margin:0;
  color:var(--ink);
  background:var(--bg);
  font:16px/1.65 var(--sans);
  -webkit-font-smoothing:antialiased}
a {
  color:var(--accent);
  text-decoration:none}
a:hover {
  text-decoration:underline;
  text-underline-offset:4px}
button {
  font:inherit;
  color:inherit;
  cursor:pointer}
a:focus-visible,button:focus-visible,[tabindex]:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:4px}
::selection {
  background:#e4e0ff;
  color:#312e81}
.wrap,.site-header,footer {
  width:min(1040px,calc(100% - 80px));
  margin:auto}
.site-header {
  height:60px;
  display:flex;
  align-items:center;
  justify-content:flex-end}
.nav {
  height:100%;
  display:flex;
  align-items:center;
  gap:18px}
#nav-links {
  height:100%;
  display:flex;
  gap:20px;
  align-items:center}
.nav a {
  height:100%;
  display:flex;
  align-items:center;
  color:var(--muted);
  font-size:14px;
  position:relative}
.nav a.active {
  color:var(--accent)}
.nav a:hover {
  text-decoration:none;
  color:var(--accent)}
#theme-toggle {
  border:0;
  background:none;
  padding:5px;
  display:flex;
  width:28px;
  height:28px;
  align-items:center;
  justify-content:center;
  border-radius:4px}
#theme-toggle:hover {
  background:var(--soft)}
svg {
  fill:none;
  stroke:currentColor;
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round}
#theme-toggle svg,.menu-toggle svg {
  width:18px;
  height:18px}
.sun,.menu-toggle {
  display:none}
.intro {
  display:grid;
  grid-template-columns:232px 1fr;
  align-items:center;
  gap:40px;
  padding:40px 0}
.portrait {
  display:block;
  width:232px;
  height:232px;
  object-fit:cover;
  object-position:50% 43%;
  border-radius:10px}
.intro-copy h1 {
  margin-bottom:10px}
.intro-copy .bio {
  margin-top:17px}
.intro-copy .social-bar {
  margin-top:18px}
h1 {
  font-family:var(--serif);
  font-size:45px;
  line-height:1.08;
  letter-spacing:-1.2px;
  font-weight:400;
  margin:0 0 17px}
.lab {
  font-size:16px;
  line-height:1.6;
  display:inline-block}
.lab span {
  margin-left:5px}
.social-bar {
  display:flex;
  gap:10px}
.social-bar a {
  display:flex;
  align-items:center;
  justify-content:center;
  width:35px;
  height:35px;
  border:0;
  border-radius:5px;
  color:var(--accent)}
.social-bar a:hover {
  background:var(--soft)}
.social-bar svg {
  width:20px;
  height:20px;
  stroke-width:1.5}
.bio {
  font-size:16px;
  line-height:1.75;
  color:var(--muted);
  margin:0}
.research-section {
  color:var(--ink);
  padding:0}
.research-heading {
  margin-bottom:17px;
  display:flex;
  align-items:center;
  gap:22px}
.research-heading:after {
  content:"";
  height:1px;
  background:var(--line);
  flex:1}
h2 {
  font-size:24px;
  letter-spacing:-.4px;
  line-height:1.3;
  margin:0;
  font-weight:600}
.research-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}
.research-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--soft);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
}
.research-card:hover,
.research-card:focus-visible {
  color: var(--ink);
  text-decoration: none;
}
.research-card h3 {
  font: 400 24px/1.2 var(--serif);
  letter-spacing: -.35px;
  color: var(--ink);
  margin: 0;
  min-height: 2.4em;
}
.research-details {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 450ms cubic-bezier(.4, 0, .2, 1), opacity 300ms ease;
}
.research-details-inner {
  min-height: 0;
  overflow: hidden;
}
.research-card p {
  margin: 14px 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.research-more {
  display: flex;
  align-items: baseline;
  gap: 9px;
  color: var(--accent);
  font-size: 14px;
  line-height: 1.6;
}
.research-card:hover .research-details,
.research-card:focus-visible .research-details {
  grid-template-rows: 1fr;
  opacity: 1;
}
.news-section {
  padding:32px 0}
.news-heading {
  margin-bottom:17px;
  display:flex;
  align-items:center;
  gap:22px}
.news-heading:after {
  content:"";
  height:1px;
  background:var(--line);
  flex:1}
.news-item {
  display:grid;
  grid-template-columns:125px 1fr;
  gap:21px;
  padding:13px 0;
  align-items:baseline}
.news-item[hidden] {
  display:none}
.news-item time {
  font-size:14px;
  color:var(--accent)}
.news-item p {
  font-size:16px;
  line-height:1.7;
  color:var(--muted);
  margin:0}
#news-toggle {
  background:none;
  border:0;
  padding:0;
  color:var(--accent);
  font-size:14px;
  display:flex;
  gap:15px;
  align-items:center;
  margin-top:16px}
#news-toggle span {
  font-size:18px}
footer {
  padding:18px 0}
footer p {
  font-size:13px;
  color:var(--muted);
  margin:0}
.skip {
  position:absolute;
  top:-60px;
  left:10px;
  padding:10px;
  z-index:10;
  background:var(--panel)}
.skip:focus {
  top:10px}
html[data-theme="dark"] {
  color-scheme:dark;
  --bg:#16151c;
  --ink:#efedf6;
  --muted:#bcb8cc;
  --accent:#b2a5ff;
  --soft:#211f31;
  --line:#383448;
  --panel:#16151c}
html[data-theme="dark"] .moon {
  display:none}
html[data-theme="dark"] .sun {
  display:block}
@media(max-width:900px) {
  .intro {
    grid-template-columns:200px 1fr;
    gap:30px  }
  .portrait {
    width:200px;
    height:220px  }
  h1 {
    font-size:41px  }
  
  
  .research-card h3 {
    font-size:23px  }
}
@media(max-width:700px) {
  .wrap,.site-header,footer {
    width:calc(100% - 40px)  }
  .site-header {
    height:56px  }
  .nav {
    gap:14px  }
  #nav-links {
    gap:18px  }
  .intro {
    display:block;
    padding:28px 0  }
  .portrait {
    float:right;
    width:112px;
    height:136px;
    margin:0 0 18px 18px;
    border-radius:8px  }
  .intro-copy .bio {
    clear:both;
    margin-top:20px  }
  h1 {
    font-size:40px;
    letter-spacing:-1px;
    margin-bottom:14px  }
  .bio {
    line-height:1.7  }
  h2 {
    font-size:23px  }
  
  .research-cards {
    grid-template-columns:1fr;
    gap:14px  }
  .research-card h3 {
    font-size:25px;
    min-height:0;
    max-width:400px  }
  
  .news-section {
    padding:27px 0  }
  .news-item {
    grid-template-columns:1fr;
    gap:5px;
    padding:15px 0  }
  footer {
    padding-block:16px  }
}
@media(max-width:620px) {
  .site-header {
    position:relative  }
  .menu-toggle {
    display:flex;
    gap:9px;
    align-items:center;
    border:0;
    background:none;
    font-size:14px;
    padding:4px 0  }
  #nav-links {
    display:none;
    position:absolute;
    left:-20px;
    right:-20px;
    top:55px;
    background:var(--bg);
    height:auto;
    z-index:10;
    padding:10px 20px 14px;
    border-bottom:1px solid var(--line)  }
  #nav-links.open {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:0  }
  #nav-links a {
    padding:8px 0;
    font-size:15px  }
}
@media(max-width:520px) {
  h1 {
    font-size:39px  }
}
@media(max-width:380px) {
  .portrait {
    width:88px;
    height:112px;
    margin-left:14px  }
  .intro-copy h1 {
    font-size:34px  }
}

/* Touch devices expose the description and link without requiring hover. */
@media (hover: none), (pointer: coarse) {
  .research-details {
    grid-template-rows: 1fr;
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .research-details {
    transition: none;
  }
}
