@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --page: #fbfbf8;
  --ink: #212925;
  --muted: #535e56;
  --green: #285141;
  --line: #d6dbd3;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover, summary:hover { color: var(--green); }
:where(a, button, summary):focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
::selection { background: #dce9d9; color: #21392c; }
h1, h2, h3, p, figure, ul, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
.wrap { width: min(66rem, calc(100% - clamp(2.4rem, 9vw, 8rem))); margin-inline: auto; }
.skip-link { position: fixed; top: .5rem; left: .5rem; padding: .6rem 1rem; background: white; transform: translateY(-170%); z-index: 5; }
.skip-link:focus { transform: none; }
.icon-set { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon { flex: none; width: 1.06rem; height: 1.06rem; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 42rem) minmax(9rem, 13.5rem);
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 6rem);
  padding-block: clamp(2.6rem, 6.25vw, 5.6rem) clamp(1.9rem, 4.4vw, 3.8rem);
}
h1, .section-heading { font-family: var(--serif); font-optical-sizing: auto; }
h1 { font-size: clamp(2.75rem, 5.05vw, 4.45rem); line-height: 1.09; letter-spacing: -.046em; font-weight: 475; }
.affiliation { margin-top: .72rem; color: var(--green); font-size: clamp(1.03rem, 1.7vw, 1.23rem); line-height: 1.4; font-weight: 500; }
.profile-email { margin-top: .2rem; color: var(--muted); overflow-wrap: anywhere; }
.research-interests { margin-top: 1.05rem; max-width: 37rem; }
.research-interests dt { margin-bottom: .12rem; font-size: .92rem; font-weight: 600; }
.research-interests dd { color: var(--muted); font-size: 1.03rem; }
.about p { max-width: 72ch; margin-top: .8rem; color: var(--muted); line-height: 1.65; }
.about a, .bio-group a, .paper-links a, .figure-source { text-decoration: underline; text-decoration-color: #b5c2b5; text-decoration-thickness: 1px; text-underline-offset: .2em; color: var(--green); }
.about a:hover, .bio-group a:hover, .paper-links a:hover, .figure-source:hover { text-decoration-color: currentColor; }
.profile-email a:hover, .affiliation a:hover, .contacts a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .23em; }
.contacts { margin-top: 1.18rem; display: flex; flex-wrap: wrap; gap: .15rem 1.35rem; }
.contacts a { display: inline-flex; align-items: center; gap: .38rem; padding-block: .43rem; font-size: .92rem; font-weight: 550; }
.portrait { width: min(100%, 12.5rem); justify-self: center; }
.portrait img { width: 100%; height: auto; border-radius: 3px; }
.portrait figcaption { display: flex; align-items: center; justify-content: center; gap: .28rem; margin-top: .5rem; font-size: .78rem; color: var(--muted); }
.portrait .icon { width: .85rem; height: .85rem; }

.section-nav { display: flex; gap: clamp(1.25rem, 3.2vw, 2.6rem); position: sticky; top: 0; z-index: 2; border-bottom: 1px solid #bfc7bf; background: var(--page); }
.section-nav a { position: relative; padding-block: .85rem; color: var(--muted); font-size: .94rem; font-weight: 550; }
.section-nav a:hover, .section-nav a[aria-current] { color: var(--green); }
.section-nav a[aria-current]::after, .section-nav a:hover::after { position: absolute; content: ""; height: 2px; inset: auto 0 -1px; background: var(--green); }
.about, .publications, .news, .background { margin-block: 2.6rem 3.4rem; }
.section-heading { font-size: clamp(1.85rem, 3vw, 2.55rem); letter-spacing: -.04em; line-height: 1.18; font-weight: 500; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.paper {
  display: grid;
  grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.4rem, 3.3vw, 3.1rem);
  padding-block: clamp(1.4rem, 2.8vw, 2.2rem);
  border-bottom: 1px solid var(--line);
}
.paper-image { display: block; cursor: zoom-in; }
.paper-image img { width: 100%; height: auto; }
.venue { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .55rem; margin-bottom: .48rem; color: var(--green); font-size: .78rem; font-weight: 650; line-height: 1.45; letter-spacing: .04em; }
abbr[title] { text-decoration: none; }
.venue > span { display: inline-flex; align-items: center; gap: .55rem; color: var(--muted); font-weight: 450; letter-spacing: 0; }
.venue > span::before { content: "·"; }
.distinction { border-radius: 2px; padding: .1rem .38rem; background: #e9eee4; color: #36543c; font: 550 .75rem/1.35 var(--sans); letter-spacing: 0; }
.paper h3 { font: 600 clamp(1.12rem, 1.55vw, 1.37rem)/1.32 var(--sans); letter-spacing: -.022em; }
.paper h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.authors { margin-top: .6rem; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.authors strong, .news-list strong, .bio-group strong { color: var(--ink); font-weight: 600; }
sup { font-size: .67em; vertical-align: .42em; line-height: 0; }
.paper-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .6rem; }
.paper-links a { font-size: .88rem; font-weight: 550; }
.author-key { margin-top: .85rem; color: var(--muted); font-size: .82rem; }
.author-key span:nth-child(2) { margin-left: .7rem; }

.news-list { list-style: none; padding: 0; }
.news-list li { display: grid; grid-template-columns: 8.75rem 1fr; gap: 1rem; border-bottom: 1px solid var(--line); padding-block: .92rem; }
.news-list time { color: var(--green); font-size: .88rem; font-variant-numeric: tabular-nums; }
.news-list p, .bio-group p, .skills-list { color: var(--muted); }
.background-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 5rem); }
.bio-group { padding-block: 1.3rem; border-bottom: 1px solid var(--line); }
.bio-group h3 { font: 600 1.11rem/1.35 var(--sans); letter-spacing: -.015em; margin-bottom: .65rem; }
.bio-group p + p { margin-top: .7rem; }
.bio-group small { font-size: .82rem; }
.skills { padding-top: .8rem; font-size: .92rem; color: var(--green); }
summary { cursor: pointer; }
.skills-list { font-size: .95rem; }
.skills-list dt { font-weight: 550; margin-top: .5rem; color: var(--ink); }
.footer { border-top: 1px solid #bfc7bf; padding-block: 1.1rem 1.55rem; color: var(--muted); font-size: .82rem; }
.footer-row { display: flex; align-items: center; gap: 1rem; }
.footer-row span + span { padding-left: 1rem; border-left: 1px solid var(--line); }
.footer-row a { margin-left: auto; color: var(--green); }
.visitor-map { margin-top: .4rem; }
.visitor-map summary { width: fit-content; }
#clustrmaps-widget { width: min(260px, 100%); margin-top: .75rem; }

.figure-view {
  width: fit-content;
  max-width: min(95vw, 90rem);
  max-height: 94vh;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1rem;
  background: var(--page);
  color: var(--ink);
}
.figure-view::backdrop { background: rgb(22 30 24 / .68); }
.figure-view form { display: flex; justify-content: end; gap: .6rem; margin: 0 0 .7rem; }
.figure-view button { cursor: pointer; font: 550 .9rem var(--sans); color: var(--green); background: transparent; border: 1px solid var(--line); border-radius: 3px; padding: .4rem .7rem; }
.figure-canvas { max-height: 70vh; overflow: auto; }
.figure-canvas img { width: auto; height: auto; max-width: 100%; max-height: 70vh; margin-inline: auto; object-fit: contain; }
.figure-canvas.is-zoomed img { max-width: none; max-height: none; margin: 0; }
.figure-caption { margin-block: .7rem .18rem; font-size: 1rem; }
.figure-source { font-size: .9rem; }

@media (max-width: 45rem) {
  h1 { font-size: clamp(2.45rem, 6.5vw, 3.25rem); }
  .intro { grid-template-columns: minmax(0, 1fr) clamp(6.25rem, 21vw, 9rem); gap: 0 1.2rem; padding-block: 2.4rem 1.3rem; }
  .intro-copy { display: contents; }
  .identity { grid-column: 1; grid-row: 1; }
  .affiliation { margin-top: .52rem; }
  .portrait { grid-column: 2; grid-row: 1; }
  .research-interests, .contacts { grid-column: 1 / -1; }
  .contacts { gap: .15rem 1rem; margin-top: .8rem; }
  .portrait figcaption { font-size: .68rem; gap: .15rem; text-align: center; }
  .portrait .icon { display: none; }
  .about, .publications, .news, .background { margin-block: 1.85rem 2.5rem; }
  .paper { grid-template-columns: minmax(0, 34%) minmax(0, 1fr); gap: 1.25rem; }
}
@media (max-width: 36rem) {
  .wrap { width: calc(100% - 2.2rem); }
  .section-nav { justify-content: space-between; gap: .6rem; }
  .section-nav a { font-size: .88rem; }
  .intro { gap: 0 .7rem; }
  .intro h1 { text-wrap: balance; }
  .profile-email { font-size: .9rem; }
  .contacts a { font-size: .86rem; gap: .28rem; }
  .contacts { gap: .05rem .9rem; }
  .contacts .icon { width: .94rem; height: .94rem; }
  .paper { grid-template-columns: minmax(0,1fr); gap: 0; }
  .paper > div { display: contents; }
  .venue { grid-row: 1; }
  .paper h3 { grid-row: 2; }
  .paper-image { grid-row: 3; margin-block: .72rem; }
  .authors { margin-top: 0; }
  .news-list li { grid-template-columns: minmax(0,1fr); gap: .18rem; padding-block: .78rem; }
  .background-grid { grid-template-columns: minmax(0,1fr); }
  .footer-row { gap: .55rem; }
  .footer-row span + span { padding-left: .55rem; }
}
@media print {
  .section-nav, .contacts, .visitor-map, .footer-row a, .figure-view { display: none; }
  .wrap { width: 100%; }
  .intro { grid-template-columns: 1fr 7rem; padding-block: 0 1rem; }
  .portrait { width: 7rem; }
  h1 { font-size: 2.8rem; }
  .paper, .bio-group, .news-list li { break-inside: avoid; }
  .paper { grid-template-columns: 30% 1fr; }
}
