@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2') format('woff2');
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2') format('woff2');
}

:root {
  color-scheme: light;
  font-family: 'Lato', Arial, sans-serif;
  color: #252a30;
  background: #fff;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 68px 32px 28px;
}

a {
  color: #1766a9;
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover { text-decoration: underline; }

a:focus-visible {
  outline: 2px solid #1766a9;
  outline-offset: 4px;
  border-radius: 2px;
}

p { margin: 0 0 16px; }

h1, h2, h3, h4 { line-height: 1.35; }

h1 {
  margin: 0 0 22px;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1px;
}

h2 {
  margin: 0 0 23px;
  font-size: 23px;
  font-weight: 400;
}

.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: start;
  gap: 46px;
}

.portrait { margin-top: 9px; }

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 22px;
  font-size: 14px;
}

.profile-links a, .paper-links a {
  display: inline-block;
  padding: 3px 0;
}

section {
  margin-top: 46px;
  padding-top: 29px;
  border-top: 1px solid #e4e7eb;
  scroll-margin-top: 24px;
}

.lab p:last-child { margin-bottom: 0; }

.separator {
  color: #79818b;
  padding: 0 10px;
}

.publication-year {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.year {
  margin: 2px 0 0;
  color: #65707a;
  font-size: 15px;
  font-weight: 400;
}

.paper + .paper { margin-top: 31px; }

.paper h3, .paper h4 {
  margin: 0 0 7px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.authors {
  margin: 0 0 5px;
  color: #4a525b;
  font-size: 14px;
  line-height: 1.6;
}

.authors strong { color: #252a30; }

.venue {
  margin: 0 0 7px;
  font-size: 14px;
  font-weight: 700;
}

.venue-detail { font-weight: 400; }

.paper-summary {
  margin: 0 0 5px;
  font-size: 14px;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.contribution-note {
  margin: 27px 0 0 78px;
  color: #65707a;
  font-size: 12px;
}

footer {
  margin-top: 48px;
  color: #65707a;
  font-size: 12px;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 16px;
  padding: 8px 12px;
  background: #fff;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

@media (max-width: 640px) {
  main { padding: 32px 24px 24px; }
  .profile {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .portrait {
    grid-row: 1;
    width: 120px;
    margin: 0;
  }
  h1 { font-size: 32px; margin-bottom: 18px; }
  .publication-year {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .year { font-weight: 700; }
  .contribution-note { margin-left: 0; }
  section { margin-top: 36px; padding-top: 25px; }
}

@media print {
  main { max-width: none; padding: 0; }
  a { color: inherit; }
  .skip-link { display: none; }
  .paper { break-inside: avoid; }
  h2, .year { break-after: avoid; }
}
