:root {
  color-scheme: light;
  --background: #ffffff;
  --text: #24292f;
  --muted: #586069;
  --link: #267cb9;
  --rule: #e5e7eb;
  --soft: #f6f8fa;
  --button: #eef5fb;
  --button-border: #c9dff0;
  --accent: #2f6f73;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 15px;
  line-height: 1.55;
}

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

a:hover {
  text-decoration: underline;
}

.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 58px;
  width: min(1000px, calc(100% - 44px));
  margin: 0 auto;
  padding: 56px 0 44px;
}

.sidebar {
  position: sticky;
  top: 42px;
  align-self: start;
  color: var(--muted);
}

.avatar {
  width: 172px;
  height: 172px;
  margin-bottom: 22px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.sidebar h1 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.role,
.affiliation,
.location,
.email {
  margin: 0 0 4px;
}

.role {
  color: var(--text);
}

.profile-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
}

.content {
  min-width: 0;
}

section {
  margin-bottom: 30px;
}

h2 {
  margin: 0 0 12px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4px;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
}

h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.28;
}

p {
  margin: 0 0 10px;
}

.compact-list {
  margin: 0;
  padding-left: 19px;
}

.compact-list li {
  margin-bottom: 5px;
}

.publication-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.publication {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--rule);
}

.publication:last-child {
  border-bottom: 0;
}

.pub-index {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.3;
  padding-top: 1px;
  white-space: nowrap;
}

.paper-info {
  min-width: 0;
}

.authors,
.venue {
  color: var(--muted);
}

.authors strong {
  color: var(--text);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}

.buttons a,
.buttons span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--button-border);
  border-radius: 3px;
  background: var(--button);
  color: #285a7a;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 8px;
}

.buttons span {
  border-color: #cfd8d3;
  background: #eef5ef;
  color: #3d6d45;
}

details {
  margin: 0;
}

summary {
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

.bibtex-control {
  display: inline-block;
}

.bibtex-control[open] {
  flex-basis: 100%;
}

.bibtex-control summary {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--button-border);
  border-radius: 3px;
  background: var(--button);
  color: #285a7a;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 8px;
}

pre {
  overflow-x: auto;
  margin: 8px 0 0;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: #f8fafc;
  padding: 10px 12px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

footer {
  margin-top: 34px;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 30px;
    width: min(100% - 28px, 1000px);
    padding-top: 28px;
  }

  .sidebar {
    position: static;
  }

  .avatar {
    width: 132px;
    height: 132px;
    font-size: 38px;
  }

  .publication {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
  }

  .pub-index {
    font-size: 14px;
  }

}
