:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #ffffff;
  --border: #dbe3ef;
  --text: #0f172a;
  --text-soft: #475569;
  --accent: #1d4ed8;
  --accent-soft: #dbeafe;
  --max-width: 920px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  margin: 0;
  font-family: Calibri, "KaiTi", "Kaiti SC", "STKaiti", serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.68;
}

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

a:hover {
  text-decoration: underline;
}

strong {
  font-weight: 700;
}

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding-bottom: 4rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(219, 227, 239, 0.75);
}

.brand {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-soft);
  font-size: 1rem;
}

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

.site-nav a.is-active {
  color: var(--accent);
  font-weight: 600;
}

.section {
  padding: 2.5rem 0 0;
}

.section--compact {
  padding-bottom: 0;
}

.hero {
  padding-top: 3rem;
}

.hero__main {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.avatar-card {
  width: 136px;
  height: 136px;
  border-radius: 24px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 28%;
}

.hero__content h1,
.section-heading h2,
.publication-item h3 {
  margin: 0;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__content h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.1;
}

.hero__subtitle {
  margin: 0.5rem 0 0;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.hero__intro {
  margin: 1rem 0 0;
  color: var(--text-soft);
}

.link-row {
  display: flex;
  gap: 1rem 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading h2 {
  font-size: 1.65rem;
  line-height: 1.25;
}

.section-note {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
}

.content-card,
.publication-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
}

.publication-item {
  position: relative;
}

.publication-item.publication-featured {
  background: #fffbeb;
  border-color: #fde68a;
  box-shadow: inset 4px 0 0 #fde047;
}

.publication-badge {
  position: absolute;
  top: 3rem;
  right: 1rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #713f12;
  font-size: 1rem;
  line-height: 1.2;
}

.content-card p {
  margin: 0;
}

.content-card > p + p {
  margin-top: 1rem;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chip-grid span {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 1rem;
  font-weight: 500;
}

.timeline-list {
  margin: 0;
  padding-left: 1.2rem;
}

.timeline-list p {
  margin: 0.35rem 0 0;
}

.timeline-list li + li {
  margin-top: 0.7rem;
}

.news-scroll {
  max-height: 16rem;
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.news-scroll li {
  padding: 0.55rem 0;
  overflow: visible;
}

.news-scroll li.news-important {
  position: relative;
  padding-left: 0.8rem;
  padding-right: 2rem;
  border-left: 3px solid #dc2626;
  background: rgba(220, 38, 38, 0.06);
}

.news-scroll li.news-important::after {
  content: "‼️";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: #dc2626;
  font-size: 1.05rem;
  line-height: 1;
}

.news-scroll li + li {
  margin-top: 0;
  border-top: 1px solid var(--border);
}

.news-scroll::-webkit-scrollbar {
  width: 10px;
}

.news-scroll::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.16);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

.news-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.publication-list {
  display: grid;
  gap: 1rem;
}

.publication-item h3 {
  font-size: 1.08rem;
  line-height: 1.45;
}

.publication-authors,
.publication-venue,
.publication-date,
.publication-links {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
  font-size: 1rem;
}

.publication-links {
  display: flex;
  gap: 0.8rem 1rem;
  flex-wrap: wrap;
}

.publication-venue {
  font-style: italic;
}

.publication-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  text-decoration: none;
}

.publication-links a:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

.ongoing-list {
  display: flex;
  flex-direction: column;
}

.ongoing-item {
  width: 100%;
  padding: 0.8rem 0;
}

.ongoing-item + .ongoing-item {
  border-top: 1px solid var(--border);
}

.ongoing-item img {
  width: 64%;
  max-width: 480px;
  height: auto;
  max-height: 260px;
  display: block;
  margin: 0.6rem auto 0.1rem;
  object-fit: contain;
  object-position: center;
  background: var(--surface-soft);
}

.ongoing-item h3 {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  line-height: 1.68;
}

.ongoing-item p {
  margin: 0.25rem 0 0;
  color: var(--text-soft);
}


.section--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-block p {
  margin: 0;
  color: var(--text-soft);
}

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

  .hero__main,
  .section--split {
    grid-template-columns: 1fr;
  }

  .avatar-card {
    width: 112px;
    height: 112px;
    border-radius: 20px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .ongoing-item img {
    width: 100%;
    max-width: 560px;
    max-height: 220px;
  }

  .news-scroll {
    max-height: 12rem;
    padding-right: 0;
    padding-left: 0.75rem;
  }

  .news-scroll li.news-important {
    padding-right: 2.4rem;
  }

  .news-scroll li.news-important::after {
    right: 0;
  }

  .section {
    padding-top: 2rem;
  }

  .hero {
    padding-top: 2rem;
  }
}
