/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- palette and type ---------- */

:root {
  --ink: #1f2124;
  --ink-soft: #55595e;
  --link: #14568f;
  --link-hover: #964d1b;
  --rule: #e2e2e0;
  --paper: #fdfdfc;
  --notice: #f7f3eb;
  --author-accent: #a34444;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 24px 40px;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page { max-width: 840px; margin: 0 auto; }

p { margin: 0 0 .85em; }

strong, b { font-weight: 700; }
strong { color: inherit; }
em { color: var(--ink-soft); }

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

a:hover, a:focus {
  color: var(--link-hover);
  border-bottom-color: currentColor;
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;
  border-radius: 2px;
}

a:has(> img), a:has(> img):hover { border-bottom: none; }

::selection { background: #f5e6c9; }

h2 {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  scroll-margin-top: 24px;
}

/* ---------- introduction ---------- */

.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 196px;
  align-items: center;
  gap: 48px;
  padding: 44px 0 26px;
}

.name {
  margin: 0 0 18px;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.2;
}

.profile-copy { min-width: 0; }
.profile-copy > p:last-of-type { margin-bottom: 16px; }
.profile-photo { position: relative; --photo-size: 196px; }
.profile-photo.is-stacked {
  width: var(--photo-size);
  height: var(--photo-size);
  margin-block: 56px 30px;
  isolation: isolate;
}
.profile-photo .profile-photo-slide {
  display: block;
  width: 196px;
  height: 196px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--rule);
}

.profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--photo-zoom, 1));
}

.profile-photo [hidden] { display: none; }

.profile-photo.is-stacked .profile-photo-slide {
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translate(12%, -34%) scale(.82) rotate(-6deg);
  z-index: 1;
  box-shadow: 0 0 0 1px var(--rule), 0 8px 24px rgba(0, 0, 0, .08);
  pointer-events: none;
}
.profile-photo.is-stacked .profile-photo-slide.is-current {
  transform: translate(0, 0) scale(1) rotate(0deg);
  z-index: 10;
  pointer-events: auto;
  box-shadow: 0 0 0 1px var(--rule), 0 12px 28px rgba(0, 0, 0, .13);
}

.profile-photo-arrow {
  position: absolute;
  z-index: 20;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .10);
  font: 28px/1 Arial, sans-serif;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, background .15s ease;
}

.profile-photo-prev { left: -12px; }
.profile-photo-next { right: -12px; }
.profile-photo:hover .profile-photo-arrow,
.profile-photo:focus-within .profile-photo-arrow {
  opacity: 1;
  pointer-events: auto;
}
.profile-photo-arrow:hover { background: #fff; }
.profile-photo-arrow:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.profile-photo-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (hover: none), (pointer: coarse) {
  .profile-photo-arrow { opacity: 1; pointer-events: auto; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-photo-arrow { transition: none; }
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.contact-links > span { white-space: nowrap; }
.contact-links > span:not(:last-child)::after {
  content: '/';
  display: inline-block;
  margin: 0 10px;
  color: #b3b3af;
}

/* Star counts are generated from one repository snapshot. */
.github-stars-summary {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.github-stars-total { display: inline-block; color: var(--ink-soft); }
.github-stars-total strong {
  color: var(--ink);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.github-stars-number { white-space: nowrap; margin-right: 4px; }
.github-star-icon { color: #9a7837; margin-right: 3px; }
.github-stars-updated {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-soft);
}

/* ---------- repository list ---------- */

.repository-page { max-width: 620px; padding-top: 40px; }
.repository-back { font-size: 14px; }
.repository-page h1 {
  margin: 24px 0 6px;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.3;
}
.repository-description { margin-bottom: 2px; color: var(--ink-soft); font-size: 15px; }
.repository-description strong { color: var(--ink); }
.repository-updated { margin: 0 0 24px; color: var(--ink-soft); font-size: 12px; }
.repository-list { list-style: none; margin: 0; padding: 0; }
.repository-list li { padding: 7px 0; }
.repository-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.repository-row a { overflow-wrap: anywhere; }
.repository-stars { color: var(--ink-soft); font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }

.availability {
  margin: 0 0 26px;
  padding: 14px 18px;
  background: var(--notice);
  border-left: 3px solid #ccb58d;
  border-radius: 3px;
  font-size: 15px;
  line-height: 1.65;
}

.availability p { margin: 0; }

/* ---------- research ---------- */

.research > p { margin-bottom: 14px; }
.research-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.research-list > li + li { margin-top: 18px; }
.research-list p { margin: 0; }
.research-list .research-works {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.7;
}

.research-works a {
  color: var(--ink);
  border-bottom: none;
  text-decoration: none;
}

.research-works a.first-author {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.research-work { display: inline-block; white-space: nowrap; }
.research-stars-badge { display: inline-block; margin-left: 3px; line-height: 1; }
.research-stars-badge img { display: inline-block; height: 16px; width: auto; vertical-align: -2px; }

.works-label { color: var(--ink-soft); margin-right: 3px; }

/* ---------- navigation and news ---------- */

.nav {
  margin: 26px 0 28px;
  text-align: center;
  font-size: 14px;
  line-height: 2;
}

.nav a { color: var(--ink-soft); white-space: nowrap; }
.nav a:hover, .nav a:focus { color: var(--link-hover); }
.nav .sep { color: #c8c8c4; padding: 0 10px; }

.section + .section { margin-top: 32px; }

ul.news { list-style: none; margin: 0; padding: 0; }
ul.news li {
  margin-bottom: 7px;
  padding-left: 5.4em;
  text-indent: -5.4em;
  font-size: 15px;
}

.newsdate {
  display: inline-block;
  width: 5.4em;
  text-indent: 0;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.newstoggle { margin: 8px 0 0; padding-left: 5.4em; font-size: 15px; }
.newstoggle a { color: var(--ink-soft); }
.newstoggle a:hover, .newstoggle a:focus { color: var(--link-hover); }

/* ---------- publications ---------- */

.paper {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  padding: 20px 0;
}

.paper-content { min-width: 0; }
.paper-thumbnail img {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: contain;
  border-radius: 3px;
}

.papertitle {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.paper-authors, .paper-venue {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.paper-authors strong { color: var(--author-accent); }
.paper-venue { margin-top: 3px; }
.paper-links { margin: 5px 0 0; font-size: 14px; line-height: 1.6; }
.paper-stars {
  display: inline-block;
  margin-left: 10px;
  line-height: 1;
}
.paper-stars img {
  display: inline-block;
  height: 16px;
  width: auto;
  vertical-align: -2px;
}
.paper-summary { margin: 8px 0 0; font-size: 15px; line-height: 1.6; }
.full-publications .paper { padding: 17px 0; }
.full-publications .paper-thumbnail img { height: 115px; }

/* ---------- closing sections ---------- */

.awards p { font-size: 15px; }
.footer { margin-top: 32px; text-align: center; }
.visitor-map { max-width: 300px; margin: 0 auto 22px; }
.footer p { margin: 0; color: var(--ink-soft); font-size: 13px; }

/* ---------- small screens ---------- */

@media (max-width: 720px) {
  body { padding: 0 20px 30px; }
  .profile { grid-template-columns: minmax(0, 1fr) 138px; gap: 24px; padding-top: 32px; }
  .profile-photo { --photo-size: 138px; }
  .profile-photo .profile-photo-slide { width: 138px; height: 138px; }
  .name { font-size: 29px; }
  .paper { grid-template-columns: 150px minmax(0, 1fr); gap: 20px; }
  .paper-thumbnail img { height: 115px; }
  .nav .sep { padding: 0 7px; }
}

@media (max-width: 540px) {
  .profile { grid-template-columns: 1fr; gap: 20px; padding-top: 26px; }
  .profile-photo { grid-row: 1; justify-self: center; --photo-size: 128px; }
  .profile-photo.is-stacked { margin-block: 46px 16px; }
  .profile-photo .profile-photo-slide { width: 128px; height: 128px; }
  .name { text-align: center; font-size: 28px; }
  .contact-links { font-size: 14px; }
  .contact-links > span:not(:last-child)::after { margin: 0 8px; }
  .availability { padding: 12px 14px; }
  .research-list > li + li { margin-top: 20px; }
  .nav { margin: 22px 0 24px; }
  .nav .sep { padding: 0 5px; }
  h2 { font-size: 19px; }
  ul.news li { padding-left: 0; text-indent: 0; }
  .newsdate { display: block; width: auto; font-size: 13px; }
  .newstoggle { padding-left: 0; }
  .paper { grid-template-columns: 1fr; gap: 14px; padding: 22px 0; }
  .paper-thumbnail { width: min(100%, 300px); justify-self: center; }
  .paper-thumbnail img, .full-publications .paper-thumbnail img { height: 150px; }
  .full-publications .paper { padding: 20px 0; }
}
