:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-alt: #fffbdc;
  --text: #1d2733;
  --muted: #5e6b78;
  --border: #d7dee7;
  --accent: #1772d0;
  --accent-hover: #f09228;
  --shadow: 0 14px 36px rgba(19, 46, 77, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f9fbfe 0%, #eef3f9 100%);
  color: var(--text);
  font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
}

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

a:hover {
  color: var(--accent-hover);
}

a:focus-visible {
  color: var(--accent-hover);
}

img {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.page {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(180px, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: 12px 8px 4px;
}

.hero__content p:last-child {
  margin-bottom: 0;
}

.name {
  margin-bottom: 18px;
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.15;
}

.hero__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.hero__links span,
.section__note,
.paper__venue,
.link-disabled {
  color: var(--muted);
}

.hero__photo img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: 0 10px 24px rgba(23, 114, 208, 0.18);
}

.section {
  margin-top: 24px;
  padding: 24px 28px;
}

.section h2 {
  margin-bottom: 18px;
  font-size: 1.55rem;
  font-weight: 400;
}

.section__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 18px;
}

.section__heading h2 {
  margin-bottom: 0;
}

.section__note {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.paper-list {
  display: grid;
  gap: 18px;
}

.paper {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fcfdff;
}

.paper--highlight {
  background: var(--surface-alt);
}

.paper__media img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(23, 114, 208, 0.08);
}

.papertitle {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 700;
}

.paper__authors,
.paper__venue,
.paper__links,
.paper__body p:last-child {
  margin-bottom: 8px;
}

.paper__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.link-disabled {
  cursor: default;
}

.link-disabled:focus,
.link-disabled:focus-visible {
  color: var(--muted);
}

.link-disabled:hover,
.link-disabled:hover:focus,
.link-disabled:hover:focus-visible {
  color: var(--accent-hover);
}

.info-card {
  display: grid;
  gap: 14px;
}

.info-card p:last-child {
  margin-bottom: 0;
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf1f5;
}

.timeline-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.timeline-item span:last-child {
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .page {
    padding: 20px 14px 32px;
  }

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

  .hero {
    padding: 22px;
  }

  .hero__photo {
    max-width: 240px;
    margin: 0 auto;
  }

  .section {
    padding: 20px;
  }

  .paper {
    padding: 16px;
  }

  .paper__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .timeline-item {
    flex-direction: column;
    gap: 4px;
  }

  .timeline-item span:last-child {
    white-space: normal;
  }
}
