:root {
  color-scheme: light;
  --link-color: #000000;
  --mentor-color: #0969da;
  font-family: "Anthropic Serif", "Source Serif 4", Georgia, serif;
  font-size: 16px;
  color: #1e1e1e;
  background: #f5f5f5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
}

body {
  margin: 0;
}

button {
  font: inherit;
  cursor: pointer;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover,
a:focus,
a:visited {
  color: var(--link-color);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--link-color);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.home-main {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 70px);
  max-width: 656px;
  margin: 0 auto;
  padding: 48px 24px;
}

.academic-home {
  width: 100%;
  min-width: 0;
  line-height: 1.45;
  hyphens: auto;
  word-break: normal;
  overflow-wrap: normal;
}

.academic-hero {
  margin-bottom: 10px;
}

.academic-hero__portrait {
  margin-bottom: 18px;
}

.academic-hero__portrait img {
  display: block;
  width: 160px;
  height: 160px;
  border: 1px solid #d6d6d6;
  border-radius: 50%;
  object-fit: cover;
}

.academic-hero__name {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
}

.academic-hero__native-name {
  display: inline-block;
  font-size: 0.7em;
  font-weight: 400;
  white-space: nowrap;
}

.academic-bio p {
  margin: 0;
}

.academic-bio a,
.academic-bio a:visited,
.academic-bio a:hover,
.academic-bio a:focus {
  color: var(--mentor-color);
}

.academic-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 0 20px;
}

.academic-social a,
.academic-social a:visited,
.academic-social a:hover,
.academic-social a:focus {
  color: var(--link-color);
}

.academic-research__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.academic-research__controls button {
  margin: 6px 0;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  background: #d6d6d6;
  color: #1e1e1e;
  line-height: 1.45;
}

.academic-research__controls button[aria-expanded="true"] {
  background: #1e1e1e;
  color: #ffffff;
}

.academic-research__panel {
  margin-top: 28px;
}

.academic-research__panel h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.3;
}

.academic-research__note {
  margin: 0 0 16px;
  color: #6c6c6c;
  font-size: 13px;
}

ol.bibliography {
  margin: 0;
  padding: 0;
  list-style: none;
}

ol.bibliography > li {
  margin: 0 0 16px;
  padding: 0;
}

.paper-code {
  --link-color: #0969da;
  position: relative;
  padding: 18px 20px;
  border: 1px solid #c8cdd3;
  border-radius: 6px;
  background: #f5f5f5;
  color: #444444;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
  font-family: "Anthropic Serif", "Source Serif 4", Georgia, serif;
  font-size: 15px;
  line-height: 1.5;
}

.paper-code__title {
  margin: 0 0 8px;
  color: #24292f;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.paper-code__authors {
  margin: 0 0 6px;
  color: #444444;
  font-size: 15px;
}

.paper-code__authors strong {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.paper-code__venue {
  margin: 0;
  color: #656d76;
  font-size: 15px;
  font-style: italic;
}

.paper-code__links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin-top: 10px;
}

.paper-code__links a:hover,
.paper-code__links a:focus-visible,
.paper-code__copy:hover,
.paper-code__copy:focus-visible {
  color: #0550ae;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.paper-code__copy {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--link-color);
}

.paper-code__copy-status {
  color: #656d76;
  font-size: 14px;
}

.paper-code__citation {
  margin: 16px 0 0;
  padding: 14px;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  background: #f6f8fa;
  color: #444444;
  font: inherit;
  white-space: pre-wrap;
  hyphens: none;
  overflow-wrap: anywhere;
}

.academic-research__panel:not([hidden]) .bibliography > li {
  animation: paper-appear 460ms ease both;
  animation-delay: calc(var(--paper-order, 0) * 100ms);
}

.academic-research__panel .bibliography > li:nth-child(2) {
  --paper-order: 1;
}

.academic-research__panel .bibliography > li:nth-child(3) {
  --paper-order: 2;
}

.academic-research__panel .bibliography > li:nth-child(4) {
  --paper-order: 3;
}

.academic-research__panel .bibliography > li:nth-child(5) {
  --paper-order: 4;
}

.academic-research__panel .bibliography > li:nth-child(6) {
  --paper-order: 5;
}

.academic-research__panel .bibliography > li:nth-child(n + 7) {
  --paper-order: 6;
}

@keyframes paper-appear {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.paper-code:focus-within {
  z-index: 1;
  border-color: #aab2bc;
  box-shadow: 0 6px 18px rgb(31 35 40 / 7%);
  transform: translateY(-2px);
}

@media (hover: hover) and (pointer: fine) {
  .paper-code:hover {
    z-index: 1;
    border-color: #aab2bc;
    box-shadow: 0 6px 18px rgb(31 35 40 / 7%);
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .academic-research__panel:not([hidden]) .bibliography > li {
    animation: none;
  }

  .paper-code {
    transition: none;
  }

  .paper-code:hover,
  .paper-code:focus-within {
    transform: none;
  }
}

.academic-research__empty {
  margin: 0;
  padding: 20px;
  border-radius: 8px;
  background: #ededed;
  color: #626262;
}

.home-footer {
  min-height: 70px;
  padding: 24px;
  color: #6c6c6c;
  font-size: 13px;
  line-height: 22px;
  text-align: center;
}

@media (max-width: 600px) {
  .home-main {
    padding: 32px 24px;
  }

  .academic-hero__name {
    font-size: 34px;
  }

  .academic-social {
    gap: 8px 14px;
  }

  .paper-code {
    padding: 16px;
  }
}
