:root {
  --text: #3d4147;
  --heading: #25282c;
  --muted: #747b83;
  --link: #236b93;
  --line: #e7e9eb;
  --soft: #f7f8f9;
  --page-width: 1120px;
  --sidebar-width: 230px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:hover,
a:focus-visible {
  color: #154e70;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -70px;
  left: 16px;
  z-index: 1000;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--heading);
}

.skip-link:focus { top: 12px; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.97);
}

.header-inner {
  width: min(calc(100% - 48px), var(--page-width));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-title {
  color: var(--heading);
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.site-title:hover { text-decoration: none; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: .93rem;
}

.primary-nav a { color: #50565c; }
.primary-nav a[aria-current="page"] {
  color: var(--heading);
  font-weight: 600;
}

.layout {
  width: min(calc(100% - 48px), var(--page-width));
  margin: 54px auto 76px;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 34px;
  min-width: 0;
}

.avatar {
  display: block;
  width: 176px;
  height: 176px;
  object-fit: cover;
  object-position: 50% 33%;
  border: 1px solid #edf0f2;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}

.profile-name {
  margin: 22px 0 4px;
  color: var(--heading);
  font-size: 1.32rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.015em;
}

.profile-role {
  margin: 0 0 11px;
  color: #4f555c;
  font-size: .93rem;
  line-height: 1.48;
}

.profile-location {
  margin: 0;
  color: var(--muted);
  font-size: .89rem;
}

.follow-label {
  margin: 24px 0 10px;
  color: var(--heading);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-links li { margin: 7px 0; }

.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #555c63;
  font-size: .91rem;
}

.profile-links svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: #717981;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.content {
  max-width: 760px;
  min-width: 0;
}

section { margin: 0 0 47px; }
section:last-child { margin-bottom: 0; }

h1,
h2 {
  color: var(--heading);
  font-weight: 600;
  letter-spacing: -.025em;
}

h1 {
  margin: 0 0 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 2rem;
  line-height: 1.25;
}

h2 {
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 1.58rem;
  line-height: 1.3;
}

p { margin: 0 0 16px; }

.interests {
  margin: 6px 0 0;
  padding-left: 1.25rem;
}

.interests li { margin: 4px 0; }

.timeline-item {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 20px;
  margin: 0 0 20px;
}

.timeline-date {
  color: var(--muted);
  font-size: .9rem;
  white-space: nowrap;
}

.timeline-body p { margin: 0; }
.timeline-body strong { color: var(--heading); font-weight: 620; }

.note {
  color: var(--muted);
  font-size: .92rem;
}

.publication-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pub;
}

.publication {
  position: relative;
  margin: 0 0 31px;
  padding-left: 32px;
  counter-increment: pub;
}

.publication::before {
  content: "[" counter(pub) "]";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--muted);
  font-size: .92rem;
}

.paper-title {
  margin: 0 0 3px;
  color: var(--heading);
  font-weight: 640;
  line-height: 1.46;
}

.paper-authors,
.paper-venue,
.paper-links {
  margin: 2px 0;
  font-size: .94rem;
  line-height: 1.58;
}

.paper-venue { color: #50565c; }
.paper-summary {
  margin-top: 7px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.58;
}
.paper-links { margin-top: 6px; font-size: .9rem; }
.paper-links a { margin-right: 12px; }

.section-intro {
  max-width: 680px;
  margin-bottom: 23px;
  color: #555c63;
}

.more-link {
  margin-top: 4px;
  font-size: .92rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.footer-inner {
  width: min(calc(100% - 48px), var(--page-width));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: .82rem;
}

.footer-inner p { margin: 0; }
.footer-links { white-space: nowrap; }

@media (max-width: 820px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 38px;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    column-gap: 26px;
    align-items: start;
  }

  .avatar {
    grid-row: 1 / span 6;
    width: 132px;
    height: 132px;
  }

  .profile-name { margin-top: 4px; }
  .follow-label { margin-top: 17px; }

  .profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 18px;
  }

  .profile-links li { margin: 3px 0; }
  .content { max-width: none; }
}

@media (max-width: 590px) {
  .header-inner,
  .layout,
  .footer-inner {
    width: min(calc(100% - 30px), var(--page-width));
  }

  .header-inner {
    min-height: auto;
    padding: 16px 0 13px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .primary-nav {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 2px;
    font-size: .9rem;
  }

  .layout { margin: 34px auto 56px; }

  .sidebar {
    display: block;
  }

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

  .profile-name { margin-top: 18px; }
  .profile-links { margin-top: 0; }

  h1 { font-size: 1.78rem; }
  h2 { font-size: 1.43rem; }

  .timeline-item {
    display: block;
    margin-bottom: 24px;
  }

  .timeline-date {
    display: block;
    margin-bottom: 3px;
  }

  .footer-inner {
    padding: 20px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}
