:root {
  color-scheme: light;
  --ink: #21372e;
  --paper: #f9f8f1;
  --muted: #526257;
  --line: #dcdfd2;
  --accent: #215c47;
  --tag: #e6ecde;
  --tag-ink: #284d3a;
  --display: Georgia, serif;
  --gutter: clamp(16px, 4vw, 48px);
  --measure: 1088px;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
:where(h1, h2, h3, h4, p, dl, dd) { margin: 0; }
a { color: var(--accent); text-underline-offset: 4px; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
img { display: block; max-width: 100%; }
[id] { scroll-margin-top: 18px; }

.wrap {
  width: min(100%, var(--measure));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.12em;
}
.skip-link {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 8px;
  transform: translateY(calc(-100% - 16px));
  padding: 8px 14px;
  background: var(--paper);
}
.skip-link:focus { transform: none; }

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 24px;
  min-height: 60px;
  padding-block: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.brand span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--accent);
  font: 700 14px var(--display);
}
.mast nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 clamp(12px, 2vw, 20px);
}
.mast nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.mast nav a:hover, .text-link:hover, .pub-title a:hover, .paper-link:hover { text-decoration: underline; }

.hero {
  color: #fcfbf2;
  background: radial-gradient(ellipse at 85% 15%, #275743, transparent 57%), #18382c;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(112px, 16vw, 160px);
  align-items: center;
  gap: 24px;
  padding-block: clamp(24px, 3vw, 37px);
}
.kicker {
  font: 650 11px/1.5 ui-monospace, SFMono-Regular, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero .kicker { color: #c8ddbf; }
.hero a { color: inherit; text-decoration-color: #9fbaab; }
.hero h1 {
  margin: 8px 0;
  font: 400 clamp(34px, 5vw, 54px)/1.1 var(--display);
  letter-spacing: -.045em;
}
.hero h1 span {
  color: #cfdebc;
  font-size: .4em;
  letter-spacing: .06em;
  margin-left: .35em;
  vertical-align: middle;
  white-space: nowrap;
}
.affiliation { color: #d7e4d6; }
.actions, .profile-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 16px;
}
.actions { margin-top: 13px; }
.profile-links a { white-space: nowrap; }
.text-link, .hero .hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 650;
  text-decoration: none;
}
.hero .hero-link {
  gap: 10px;
  padding: 8px 14px;
  border-radius: 5px;
  background: #dce9c9;
  color: #17362a;
}
.hero-link:hover { background: #edf4e3; }
.hero .hero-link:focus-visible { outline-color: #fcfbf2; }
.portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 1.18;
  object-fit: contain;
  border-radius: 6px 6px 32px 6px;
  background: #edf2e9;
}

.content { padding-top: 12px; }
.news {
  padding: 4px 0 15px;
  border-bottom: 1px solid var(--line);
}
.news-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.news-heading h2 { font-size: clamp(26px, 3vw, 32px); }
.news-toggle {
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.news-toggle:hover { background: var(--tag); }
.news-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--muted);
}
.news-list[data-collapsed] {
  max-height: var(--news-preview-height);
  overflow-y: auto;
  scrollbar-color: #9bac9d var(--paper);
  scrollbar-width: thin;
}
.news-list:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.news-list li {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  gap: clamp(12px, 3vw, 26px);
  padding: 9px 10px 9px 0;
}
.news-list li + li { border-top: 1px solid var(--line); }
.news-list time { font: 650 13px/1.4 ui-monospace, SFMono-Regular, monospace; }
.news-list a { text-decoration-color: #91ab9c; }

h2 {
  font: 400 clamp(30px, 4vw, 43px)/1.15 var(--display);
  letter-spacing: -.04em;
}
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 26%);
  align-items: start;
  gap: 18px clamp(22px, 5vw, 54px);
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.about-copy p { margin-top: 9px; max-width: 66ch; color: var(--muted); }
.about-copy a { text-decoration-color: #91ab9c; }
.about-topics {
  padding: 4px 0 4px 17px;
  border-left: 1px solid var(--line);
  color: var(--muted);
}
.about-topics h3 { color: var(--accent); }
.about-topics ul { margin: 8px 0 0; padding-left: 16px; }
.about-topics li + li { margin-top: 3px; }

.publications { margin-top: 26px; }
.publication-intro {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 0 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.publication-intro h3 { color: var(--ink); font-size: 15px; }
.conference {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
:is(.conference, .journal) .pub-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffef9;
}
.journal { margin-top: 12px; }
.journal .pub-card {
  display: grid;
  grid-template-columns: minmax(140px, 24%) minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
}
.journal .pub-meta { margin-top: 0; }
.pub-img-wrap {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 2.35;
  padding: 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--accent);
  cursor: zoom-in;
}
.pub-img-wrap:hover { border-color: var(--accent); }
.pub-img-wrap img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.pub-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}
.pub-badge {
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--tag-ink);
  background: var(--tag);
  font-weight: 700;
}
.pub-title { margin: 6px 0 5px; font-size: 15px; line-height: 1.42; }
.pub-title a { color: inherit; text-decoration: none; }
.pub-authors { color: var(--muted); font-size: 13px; line-height: 1.55; }
.pub-authors strong { color: var(--ink); }
.paper-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-self: start;
  min-height: 42px;
  font-weight: 650;
  font-size: 13px;
  text-decoration: none;
}
.preprints .pub-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 14px;
  padding: 9px 0 10px;
  border-bottom: 1px solid var(--line);
}
.preprints .paper-link { grid-row: 1 / span 2; grid-column: 2; }
.preprints .pub-title { margin-top: 0; }

.contact-section { margin-top: 27px; }
.contact-list { display: grid; gap: 10px; margin-top: 12px; }
.contact-list div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; }
.contact-list dt { font-weight: 650; }
.contact-list dd { color: var(--muted); overflow-wrap: anywhere; }
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-top: 24px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.visitor-badge { height: 20px; width: auto; }

#back-to-top {
  position: fixed;
  inset: auto 16px 16px auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--accent);
  cursor: pointer;
}
#back-to-top .icon { width: 19px; height: 19px; }
dialog {
  width: min(900px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fffef9;
}
dialog::backdrop { background: #16251fcc; }
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.dialog-header h2 { font: 650 16px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: normal; }
.dialog-header button {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #9db3a4;
  border-radius: 5px;
  background: #edf2e9;
  color: var(--ink);
  cursor: pointer;
}
dialog img { max-height: 72vh; margin-inline: auto; object-fit: contain; }

@media (max-width: 700px) {
  .about { grid-template-columns: 1fr; }
  .conference { grid-template-columns: 1fr; gap: 8px; }
  :is(.conference, .journal) .pub-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(70px, 29%);
    align-items: center;
    column-gap: 10px;
    padding: 9px;
  }
  :is(.conference, .journal) .pub-text { grid-row: 1; grid-column: 1; }
  .pub-img-wrap { grid-row: 1; grid-column: 2; aspect-ratio: 1.7; }
  .pub-meta { margin-top: 0; }
}
@media (max-width: 470px) {
  .mast { column-gap: 12px; }
  .mast nav a { font-size: 12px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) 78px; column-gap: 12px; }
  .hero h1 span { margin-left: .15em; }
  .actions { align-items: flex-start; flex-direction: column; gap: 5px; }
  .profile-links { column-gap: 12px; font-size: 13px; }
  .portrait { align-self: start; margin-top: 13px; aspect-ratio: 1; border-radius: 6px 6px 16px 6px; }
  .pub-title { font-size: 14px; }
}
