:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #202532;
  --muted: #5d6678;
  --faint: #dfe4ec;
  --link: #1f5fbf;
  --link-hover: #9b3d2f;
  --accent: #b84a3a;
  --soft-accent: #f7ece8;
  --gold: #a47727;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Lato", "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0;
  background:
    linear-gradient(180deg, #ffffff 0, #f7f8fb 360px),
    var(--bg);
}

a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

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

p,
ul {
  margin-top: 0;
}

.site-shell {
  display: grid;
  grid-template-columns: 150px minmax(0, 1020px);
  gap: 30px;
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 0 28px;
}

.page {
  width: 100%;
  margin: 0 auto;
  padding: 44px 0 24px;
}

.side-nav {
  position: sticky;
  top: 28px;
  align-self: start;
  padding-top: 62px;
  color: var(--muted);
  font-size: 13px;
}

.side-nav p {
  margin: 0 0 10px;
  color: var(--gold);
  font-weight: 760;
  text-transform: uppercase;
}

.side-nav nav {
  display: grid;
  gap: 5px;
}

.side-nav a {
  display: block;
  padding: 5px 0 5px 10px;
  border-left: 2px solid var(--faint);
  color: var(--muted);
}

.side-nav a:hover,
.side-nav a:focus {
  border-left-color: var(--accent);
  color: var(--link-hover);
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 44px;
  align-items: center;
  padding: 18px 0 34px;
  border-bottom: 1px solid var(--faint);
}

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

h1 {
  margin: 0 0 10px;
  font-size: 36px;
  font-weight: 800;
}

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

h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.affiliation,
.advisor {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 16px;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.profile-links a,
.paper-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 3px 10px;
  border: 1px solid var(--faint);
  border-radius: 6px;
  color: var(--link);
  background: #ffffff;
  font-weight: 650;
}

.profile-links a:hover,
.profile-links a:focus,
.paper-links a:hover,
.paper-links a:focus {
  border-color: #d5b4aa;
  color: var(--link-hover);
  background: var(--soft-accent);
  text-decoration: none;
}

.profile-photo {
  margin: 0;
}

.profile-photo img {
  display: block;
  width: 220px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--faint);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(32, 37, 50, 0.12);
}

.section {
  scroll-margin-top: 26px;
  padding: 32px 0;
  border-bottom: 1px solid var(--faint);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px;
}

.section p {
  color: var(--muted);
}

.research-summary {
  max-width: 820px;
  margin-bottom: 18px;
}

.timeline-list {
  padding-left: 20px;
  margin-bottom: 0;
}

.timeline-list {
  list-style: none;
  padding-left: 0;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid #edf0f5;
}

.timeline-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.timeline-list time {
  color: var(--gold);
  font-weight: 750;
}

.news-panel {
  max-height: 260px;
  overflow-y: auto;
  padding: 2px 14px 2px 0;
  scrollbar-gutter: stable;
}

.news-panel::-webkit-scrollbar {
  width: 8px;
}

.news-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c8d0dc;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--faint);
  font-size: 14px;
}

.info-table tr {
  border-bottom: 1px solid var(--faint);
}

.info-table th,
.info-table td {
  padding: 9px 0;
  vertical-align: top;
}

.info-table th {
  width: 1%;
  padding-right: 18px;
  color: var(--gold);
  font-weight: 760;
  text-align: left;
  white-space: nowrap;
}

.info-table td {
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 4px;
}

.section-heading p {
  margin-bottom: 0;
  font-size: 13px;
}

.paper {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--faint);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(32, 37, 50, 0.05);
}

.paper-image {
  display: block;
  overflow: hidden;
  border: 1px solid #e7ebf2;
  border-radius: 6px;
  background: #f3f5f9;
}

.paper-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 180ms ease;
}

.paper-image:hover img,
.paper-image:focus img {
  transform: scale(1.025);
}

.paper-title {
  margin-bottom: 6px;
  font-size: 17px;
}

.paper-title a {
  color: var(--text);
}

.paper-title a:hover,
.paper-title a:focus {
  color: var(--link-hover);
}

.authors,
.venue,
.paper-links,
.abstract {
  margin-bottom: 6px;
}

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

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

.paper-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.paper-links span {
  color: #aab2c0;
}

.abstract {
  margin-top: 10px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.highlight {
  padding: 0 3px;
  border-radius: 3px;
  color: #a22d22;
  background: #fff0c7;
  font-weight: 750;
}

.star {
  color: #c23225;
  font-weight: 800;
}

.footer {
  width: min(100%, 1020px);
  margin: 0 auto;
  padding: 22px 28px 40px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.footer p {
  margin: 4px 0;
}

@media (max-width: 780px) {
  body {
    font-size: 14px;
  }

  .site-shell {
    display: block;
    padding: 0 18px;
  }

  .page {
    padding: 20px 0 16px;
  }

  .side-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    margin: 0 -18px;
    padding: 10px 18px;
    border-bottom: 1px solid var(--faint);
    background: rgba(247, 248, 251, 0.96);
    backdrop-filter: blur(10px);
  }

  .side-nav p {
    display: none;
  }

  .side-nav nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .side-nav a {
    padding: 4px 9px;
    border: 1px solid var(--faint);
    border-radius: 6px;
    background: #ffffff;
  }

  .hero,
  .intro-grid,
  .paper {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 24px;
  }

  .profile-photo {
    order: -1;
  }

  .profile-photo img {
    width: 168px;
  }

  h1 {
    font-size: 30px;
  }

  .timeline-list li {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
  }

  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
  }

  .info-table th {
    width: auto;
    padding: 9px 0 0;
  }

  .info-table td {
    padding: 2px 0 9px;
  }

  .paper {
    gap: 16px;
    padding: 14px;
  }

  .paper-image {
    max-width: 320px;
  }

  .section-heading {
    display: block;
  }
}

@media (max-width: 460px) {
  .profile-links a,
  .paper-links a {
    min-height: 32px;
  }

  .timeline-list li {
    display: block;
  }

  .timeline-list time {
    display: block;
    margin-bottom: 2px;
  }
}
