:root {
  --accent: #2563eb;
  --accent-light: #dbeafe;
  --accent-border: #bfdbfe;
  --accent-dark: #1e40af;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --radius: 12px;
  --max-width: 880px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}

nav .nav-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}

nav a.nav-name:hover {
  color: var(--text-primary);
  text-decoration: none;
}

nav .nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

nav .nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

/* ── Profile ── */

.profile {
  padding: 36px 0 24px;
}

.profile-inner {
  display: flex;
  gap: 32px;
  align-items: center;
}

.profile-photo-wrapper {
  flex-shrink: 0;
}

.profile-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  display: block;
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-info h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 2px;
}

.profile-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.profile-full {
  margin-top: 20px;
}

.profile-bio {
  font-size: 14.25px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.profile-bio a {
  font-weight: 700;
}

.profile-interests {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-interests-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Social Icons */

.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: all 0.2s;
}

.social-link:hover {
  text-decoration: none;
  transform: translateY(-2px);
  opacity: 0.7;
}

.social-link img {
  width: 22px;
  height: 22px;
  display: block;
}

/* Research Interests */

.research-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.interest-tag {
  display: inline-block;
  padding: 3px 12px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* ── Section Common ── */

.section {
  padding: 24px 0;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.section-heading .section-title {
  margin-bottom: 0;
}

.view-all-link {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
}

.view-all-link:hover {
  text-decoration: none;
}

.author-legend {
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
}

/* ── Academic Journey ── */

.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

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

.timeline-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-institution {
  font-size: 15px;
  font-weight: 700;
}

.timeline-degree {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.timeline-period {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.timeline-status {
  display: inline-block;
  padding: 1px 8px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
}

/* ── News ── */

.news-list {
  list-style: none;
  padding: 5px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.news-item {
  display: flex;
  gap: 18px;
  padding: 7px 4px;
  align-items: flex-start;
}

.news-date {
  flex-shrink: 0;
  width: 82px;
  padding-top: 1px;
  color: var(--accent-dark);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

.news-content {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.55;
}

.empty-placeholder {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

/* ── Honors & Awards ── */

.honors-list {
  list-style: none;
  padding: 5px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.honor-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding: 7px 4px;
}

.honor-title {
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.55;
}

.honor-date {
  flex-shrink: 0;
  min-width: 76px;
  padding-top: 1px;
  text-align: right;
  color: var(--accent-dark);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

/* ── Publications ── */

.pub-list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pub-item {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 14px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s;
}

.pub-item:last-child {
  border-bottom: none;
}

.pub-item:hover {
  background: var(--bg-alt);
}

.pub-visual {
  width: 100%;
  min-height: 128px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  transform: rotate(-0.65deg);
  transform-origin: center;
}

.pub-thumb {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 128px;
  object-fit: cover;
  border-radius: inherit;
  background: var(--bg-alt);
}

.pub-visual-placeholder {
  min-height: 120px;
  background: var(--bg-alt);
}

.pub-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.pub-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.pub-title {
  color: var(--text-primary);
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: -0.025em;
}

.pub-venue-inline {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.pub-secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
}

.pub-authors {
  font-size: 12.75px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.pub-authors sup {
  position: relative;
  top: -0.1em;
  color: var(--accent-dark);
  font-size: 9px;
  font-weight: 800;
}

.pub-authors .self {
  font-weight: 700;
  color: var(--text-primary);
}

.pub-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: baseline;
}

.pub-link {
  display: inline-block;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pub-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.pub-link-separator {
  color: var(--text-muted);
  font-size: 11px;
}

/* ── All Publications Page ── */

.all-publications-page {
  min-height: calc(100vh - 116px);
  padding: 42px 0 56px;
}

.all-publications-page .author-legend {
  margin-bottom: 0;
}

.page-back-link {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
}

.page-back-link:hover {
  text-decoration: none;
}

.page-title {
  margin-bottom: 6px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.page-intro {
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 13.5px;
}

.all-pub-list {
  overflow: hidden;
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.all-pub-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s;
}

.all-pub-item:last-child {
  border-bottom: none;
}

.all-pub-item:hover {
  background: var(--bg-alt);
}

/* ── Footer ── */

footer {
  margin-top: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Responsive ── */

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .profile-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .profile-photo {
    width: 120px;
    height: 120px;
  }

  .profile-full {
    text-align: center;
  }

  .profile-interests {
    flex-direction: column;
    gap: 6px;
  }

  .social-links {
    justify-content: center;
  }

  .research-interests {
    justify-content: center;
  }

  .profile-info h1 {
    font-size: 24px;
  }

  .news-item {
    flex-direction: column;
    gap: 2px;
    padding: 7px 2px;
  }

  .news-date {
    width: auto;
  }

  .news-list,
  .honors-list {
    padding: 4px 12px;
  }

  .honor-item {
    flex-direction: column;
    gap: 2px;
    padding: 7px 2px;
  }

  .honor-date {
    min-width: 0;
    text-align: left;
  }

  .pub-item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .pub-visual {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
    transform: rotate(-0.6deg);
  }

  .pub-thumb {
    min-height: 0;
  }

  .pub-title {
    font-size: 15.5px;
  }

  .pub-primary,
  .pub-secondary {
    align-items: flex-start;
  }

  .all-publications-page {
    padding: 30px 0 44px;
  }

  .page-title {
    font-size: 24px;
  }

  .all-pub-item {
    padding: 15px 14px;
  }

}
