@font-face {
  font-family: Inter;
  src: url("assets/inter.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("assets/inter-semibold.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "STIX Two Text";
  src: url("assets/stix-two-text.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #27222b;
  --text: #3a373e;
  --muted: #615c64;
  --plum: #743f60;
  --rule: #e4dfe3;
  --serif: "STIX Two Text", Georgia, serif;
  font: 400 100%/1.6 Inter, system-ui, sans-serif;
  color: var(--text);
  background: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
button { font: inherit; }
a { color: var(--plum); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .19em; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 4px; }
::selection { color: var(--ink); background: #efdee8; }
main {
  width: min(65rem, calc(100% - clamp(2.5rem, 8vw, 6rem)));
  margin-inline: auto;
  padding-block: clamp(3.25rem, 7.6vw, 6.5rem) 4.5rem;
  display: grid;
  gap: clamp(2.1rem, 4vw, 3.4rem);
}
.profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "avatar name" "avatar bio" "avatar contacts";
  column-gap: clamp(1.3rem, 2.5vw, 2rem);
}
.avatar {
  grid-area: avatar;
  display: block;
  width: clamp(5.4rem, 7.8vw, 6.5rem);
  height: auto;
  border-radius: 50%;
  margin-top: .3rem;
}
h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); }
h1 { grid-area: name; font-size: clamp(2.85rem, 4.5vw, 3.75rem); line-height: 1.03; letter-spacing: -.035em; }
.bio { grid-area: bio; margin-top: .85rem; font-size: 1.065rem; line-height: 1.65; }
.bio > span { display: inline-block; max-width: 100%; text-wrap: balance; overflow-wrap: anywhere; }
.bio a { text-decoration: underline; text-decoration-color: #c8a9bc; text-underline-offset: .17em; white-space: nowrap; }
.bio a:hover { text-decoration-color: currentColor; }
.links { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; font-size: .94rem; }
.links > span { color: #877780; }
address { grid-area: contacts; margin-top: 1.05rem; font-style: normal; }
#news, .news-entry { display: flex; align-items: baseline; }
#news { column-gap: 1.6rem; }
#news h2 { font-size: 1.55rem; line-height: 1.16; letter-spacing: -.025em; }
.news-entry { column-gap: 1rem; }
time, .venue { color: var(--muted); font-size: .91rem; }
time { font-variant-numeric: tabular-nums; white-space: nowrap; }
#news p { font-size: .97rem; line-height: 1.5; text-wrap: pretty; }
#publications { padding-top: 1.65rem; border-top: 1px solid var(--rule); }
#publications h2 { margin-bottom: 1.2rem; font-size: 2.12rem; line-height: 1.15; letter-spacing: -.035em; }
.publication {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 3vw, 2.75rem);
  align-items: center;
}
h3 { font: 400 clamp(1.1rem, 1.75vw, 1.425rem)/1.25 var(--serif); letter-spacing: -.026em; text-wrap: balance; }
h3 a { color: var(--ink); }
h3 a:hover { color: var(--plum); }
h3 span, .authors span, .authors strong { white-space: nowrap; }
.authors { margin-top: .67rem; font-size: .95rem; line-height: 1.55; text-wrap: balance; }
strong { font-weight: 600; color: var(--ink); }
.publication-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1.2rem; margin-top: .46rem; }
.publication-image {
  display: block;
  width: 100%;
  line-height: 0;
  border: 1px solid var(--rule);
  border-radius: .35rem;
  padding: clamp(.5rem, 1.15vw, 1rem);
  background: white;
  cursor: zoom-in;
}
.publication-image:hover { border-color: #bcacb7; }
.publication-image img { display: block; width: 100%; height: auto; }
#pipeline-view {
  width: min(96vw, 108rem);
  max-width: none;
  max-height: 94vh;
  color: var(--text);
  background: white;
  border: 1px solid var(--rule);
  border-radius: .5rem;
  padding: .85rem min(2vw, 1.7rem) 1.2rem;
}
#pipeline-view::backdrop { background: rgb(29 24 33 / .57); }
.viewer-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.viewer-heading button { background: transparent; color: var(--plum); border: 1px solid var(--rule); border-radius: .3rem; padding: .2rem .65rem; cursor: pointer; }
.viewer-figure { overflow: auto; max-height: 78vh; }
.viewer-figure img { display: block; width: max(100%, 76rem); height: auto; }
@media (max-width: 55rem) {
  #publications { padding-top: 1.4rem; }
  .publication { grid-template-columns: 1fr; gap: 1.1rem; }
  .publication-image { width: min(100%, 36rem); }
  #publications h2 { margin-bottom: .95rem; }
}
@media (max-width: 34rem) {
  main { width: calc(100% - 2rem); padding-block: 2rem 2.85rem; }
  .profile { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "avatar name" "bio bio" "contacts contacts"; align-items: center; column-gap: 1.05rem; }
  .avatar { width: 4.1rem; margin-top: 0; }
  h1 { font-size: 2.85rem; }
  .bio { font-size: 1rem; margin-top: 1rem; }
  #publications h2 { font-size: 1.85rem; }
  .publication-meta { column-gap: 1rem; }
  .publication-meta .links { column-gap: .5rem; }
  #news { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; }
  .news-entry { display: contents; }
  #news p { grid-column: 1 / -1; }
  #pipeline-view { padding-inline: .75rem; }
}
