:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #1f2933;
  --muted: #667085;
  --line: #e5e7eb;
  --accent: #2357a6;
  --accent-strong: #173d77;
  --chip: #f3f6fb;
  --warm: #f4f6f8;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.site-header,
.site-footer,
.page {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 22px;
}

.site-title {
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
}

.site-nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: #344054;
  padding: 7px 11px;
}

.site-nav a:hover {
  background: #f8fafc;
  border-color: var(--line);
  text-decoration: none;
}

.page {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0 0 48px;
  box-shadow: none;
}

.content > :first-child,
.hero-copy > :first-child {
  margin-top: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(380px, 0.88fr);
  gap: 34px;
  align-items: center;
  padding: 52px 0 44px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 18px;
  max-width: 780px;
  font-size: clamp(20px, 6vw, 38px);
  font-weight: 800;
  line-height: 1.04;
}

h2 {
  margin: 44px 0 16px;
  font-size: 30px;
  font-weight: 760;
}

h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.subtitle {
  color: #415058;
  font-size: 18px;
  margin: 0 0 18px;
}

.hero-statement {
  max-width: 720px;
  color: #27323a;
  font-size: clamp(24px, 3.8vw, 42px);
  font-weight: 720;
  line-height: 1.12;
  margin: 0 0 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-weight: 650;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.button:hover {
  text-decoration: none;
}

.profile-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--panel);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.profile-panel h2 {
  margin: 24px 0 14px;
  font-size: 18px;
}

.profile-main {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.avatar {
  display: block;
  width: 136px;
  height: 136px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--warm);
}

.avatar.placeholder {
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  font-size: 42px;
  font-weight: 800;
}

.profile-summary p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.profile-summary .profile-name {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.12;
}

.profile-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.profile-social-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.profile-social-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.news-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.news-item time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.publication-list {
  display: grid;
  gap: 14px;
}

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

.bibliography > li {
  margin: 0;
  padding: 0;
}

.publication {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.publication-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.publication-title {
  margin: 0;
  color: var(--text);
}

.publication-authors,
.publication-venue {
  margin: 7px 0 0;
  color: #475467;
  font-size: 15px;
}

.publication-venue span::before {
  content: "·";
  padding: 0 8px;
  color: #98a2b3;
}

.author-me {
  color: var(--text);
  font-weight: 750;
}

.publication-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
}

.publication-tags span {
  border: 1px solid #c8d7ee;
  border-radius: 999px;
  background: #f4f8ff;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 8px;
}

.publication-links {
  display: grid;
  grid-template-columns: repeat(4, max-content) minmax(0, 1fr);
  align-items: start;
  gap: 10px 8px;
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 650;
}

.publication-links a,
.bibtex-label {
  order: 1;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #344054;
  cursor: pointer;
  display: inline-flex;
  list-style: none;
  padding: 4px 9px;
}

.bibtex-checkbox {
  display: none;
}

.publication-links a:hover,
.bibtex-label:hover {
  border-color: #b9c7da;
  color: var(--accent-strong);
  text-decoration: none;
}

.publication-links .publication-link-code {
  border-color: #b7e1c2;
  background: #f0fbf3;
  color: #176b37;
}

.publication-links .publication-link-code:hover {
  border-color: #79c58e;
  color: #0f5429;
}

.bibtex-panel {
  order: 2;
  display: none;
  grid-column: 1 / -1;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  width: 100%;
  overflow-x: auto;
  margin: 10px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: #344054;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.bibtex-checkbox:checked + .bibtex-label + .bibtex-panel {
  display: block;
}

.bibtex {
  overflow-x: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f6f8;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 24px 0 34px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .page {
    width: min(100% - 24px, var(--max-width));
    padding-bottom: 34px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 0 34px;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .profile-panel {
    padding: 16px;
  }

  .profile-main {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
  }

  .avatar {
    width: 104px;
    height: 104px;
  }

  .profile-summary .profile-name {
    font-size: 19px;
  }

  .publication-heading {
    display: block;
  }

  .publication-tags {
    justify-content: flex-start;
    margin-top: 10px;
  }
}
