@font-face {
  font-family: Figtree;
  src: url("fonts/figtree-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: Figtree;
  src: url("fonts/figtree-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
}
:root {
  --ink: #252831;
  --muted: #5c626a;
  --link: #69409a;
  --link-hover: #492673;
  --wash: #fbf9fa;
  --rule: #e5e1e3;
  --site-font: Figtree, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 5rem; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 400 1rem/1.65 var(--site-font);
}
h1, h2, h3 { text-wrap: balance; }
a, a:visited { color: var(--link); text-decoration: none; }
a:hover, a:active { color: var(--link-hover); }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
img { display: block; }
.wrap { width: min(90%, 1030px); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -6rem; padding: .5rem 1rem; background: white; z-index: 10; }
.skip:focus { top: .5rem; }
.topbar {
  position: sticky; top: 0; z-index: 5;
  background: var(--wash);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 2px 5px rgb(35 27 30 / 4%);
}
.nav-inner, .nav-links { display: flex; align-items: center; }
.nav-inner { min-height: 3.75rem; gap: clamp(1.4rem, 3vw, 2.5rem); }
.brand { font-size: 1.32rem; font-weight: 700; letter-spacing: -.035em; }
.nav-links { gap: clamp(.8rem, 2.2vw, 1.8rem); }
.nav-links a { padding-block: .4rem; font-size: .98rem; }
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.13fr);
  gap: clamp(1.5rem, 3.5vw, 3.25rem);
  padding-block: clamp(1.65rem, 3vw, 2.75rem);
}
.identity { text-align: center; padding-block: .65rem; align-self: start; }
.portrait {
  width: clamp(13.45rem, 18vw, 16.9rem); height: auto; aspect-ratio: 1;
  margin: 0 auto 1.05rem; border-radius: 50%; object-fit: cover; object-position: 50% 40%;
}
.identity h1 { font-weight: 500; font-size: clamp(1.7rem, 2.35vw, 2.2rem); line-height: 1.22; letter-spacing: -.045em; margin: 0 0 .6rem; }
.identity p { margin: .2rem 0; color: var(--muted); font-size: 1.02rem; line-height: 1.5; }
.social { display: flex; gap: .7rem; align-items: center; justify-content: center; margin: 1rem 0 .3rem; }
.social a { width: 1.95rem; height: 2.1rem; display: grid; place-items: center; }
.social svg { width: 1.74rem; height: 1.74rem; fill: currentColor; }
.cv-icon { font-weight: 700; font-size: 1.32rem; line-height: 1; }
.email { font-size: .875rem; }
.bio { font-size: clamp(1.05rem, 1.26vw, 1.14rem); line-height: 1.72; }
.bio p { margin: 0 0 .65rem; }
.education-section { margin-top: 1.975rem; }
.about h2 { font-size: 1.125rem; margin: 0 0 .65rem; line-height: 1.3; font-weight: 650; }
.education { margin: 0; padding: 0; list-style: none; }
.education li { display: grid; grid-template-columns: 4.2rem 2rem 1fr; align-items: start; gap: .55rem; margin-bottom: .6rem; line-height: 1.4; }
.education li:last-child { margin-bottom: 0; }
.education img { object-fit: contain; width: 2rem; height: 2rem; }
.education strong, .education span, .education time { display: block; }
.education strong { font-weight: 580; font-size: .95rem; }
.education span { font-size: .9rem; margin: .17rem 0; }
.education time, .service dd span { font-size: .83rem; color: var(--muted); }
.education time { padding-top: .13rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.service { margin-top: 1.05rem; padding-top: .85rem; border-top: 1px solid var(--rule); }
.service dl { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; font-size: .94rem; line-height: 1.5; margin: 0; }
.service dt { font-weight: 550; }
.service dd { margin: 0; }
.featured { padding: 1.9rem 0; background: var(--wash); border-block: 1px solid var(--rule); }
.featured .pub-list, .featured-heading, .pub-archive .pub-year { max-width: 50rem; margin-inline: auto; }
.featured-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .65rem; margin-bottom: 1rem; }
#selected-title, .pub-archive-heading h1 { font-size: 1.1875rem; font-weight: 650; line-height: 1.3; letter-spacing: -.02em; }
#selected-title { margin: 0; }
.all-pubs { font-size: .875rem; line-height: 1.35; text-align: end; }
.foot { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); padding-block: 1.5rem; font-size: .9rem; }
@media(max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 1.55rem; max-width: 41.5rem; }
  .portrait { width: 12.5rem; }
  .identity { padding: 0; }
}
@media(max-width: 580px) {
  .wrap { width: calc(100% - 2.7rem); }
  .nav-inner { flex-wrap: wrap; gap: .15rem; padding: .6rem 0 .5rem; }
  .brand { line-height: 1.3; }
  .nav-links { gap: .85rem; order: 1; width: 100%; }
  .nav-links a { font-size: .85rem; }
  html { scroll-padding-top: 5.5rem; }
  .about { padding-block: 1.55rem; }
  .education li { grid-template-columns: 3.8rem 1.65rem 1fr; gap: .45rem; }
  .education img { width: 1.65rem; height: 1.65rem; }
  .service dl { grid-template-columns: 1fr; gap: .12rem; }
  .service dt:not(:first-child) { margin-top: .65rem; }
  .featured { padding: 1.6rem 0; }
}
