:root {
  --text-primary: #1b1c1e;
  --text-secondary: #3f4146;
  --text-muted: #6a6f7a;
  --link: #0b57d0;
  --link-hover: #083b8a;
  --border: #e6e7eb;
  --surface: #ffffff;
  --surface-soft: #f7f7f9;
  --accent: #d97706;
  --accent-strong: #b45309;
  --shadow-sm: 0 10px 30px rgba(20, 22, 28, 0.06);
  --shadow-md: 0 18px 38px rgba(20, 22, 28, 0.10);
}

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

body {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, "Nimbus Roman No9 L", serif;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(217,119,6,0.08), transparent 52%),
    radial-gradient(140% 120% at 100% 0%, rgba(11,87,208,0.06), transparent 56%),
    #f4f4f6;
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 17px;
  padding: 40px 0 72px;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 56px 88px;
  background: var(--surface);
  border-radius: 10px;
  box-shadow: none;
  border: none;
}

#top.container {
  padding-bottom: 52px;
}

#teaching .container {
  padding-top: 36px;
}

nav {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  margin-bottom: 46px;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

nav a:hover {
  color: var(--text-primary);
  background: var(--surface-soft);
}

header {
  display: flex;
  gap: 34px;
  align-items: flex-start;
  margin-bottom: 62px;
}

.profile-photo {
  flex: 0 0 222px;
}

.profile-img {
  width: 222px;
  height: 278px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.profile-caption {
  margin-top: 12px;
  font-size: 0.96rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  font-weight: 600;
}

.profile-caption-secondary {
  margin-top: 4px;
}

.header-content h1 {
  font-size: 3.05rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

.bio {
  font-size: 1.08rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.9;
  max-width: 760px;
}

.bio a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(11, 87, 208, 0.35);
  text-underline-offset: 3px;
}

.bio a:hover {
  color: var(--link-hover);
  text-decoration-color: rgba(8, 59, 138, 0.6);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.98rem;
  margin-top: 20px;
  align-items: center;
}

.contact-links a {
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
}

.contact-links a:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

section {
  margin-bottom: 68px;
}

section h2 {
  font-size: 1.9rem;
  font-weight: 780;
  margin-bottom: 20px;
  color: var(--text-primary);
  position: relative;
  padding-left: 14px;
}

section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 6px;
  height: 0.95em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
}

.research-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: center;
}

.research-image img {
  width: 100%;
  max-width: 430px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.paper-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.paper-item {
  border-left: 4px solid var(--accent);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 20px 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.paper-item:hover {
  transform: translateY(-2px);
  border-left-color: var(--accent-strong);
}

#research-interests .paper-item {
  border-left: 3px solid var(--border);
  background: var(--surface);
  box-shadow: none;
}

.paper-title {
  font-size: 1.24rem;
  font-weight: 780;
  color: var(--text-primary);
  margin-bottom: 9px;
}

.paper-authors {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin-bottom: 7px;
  font-style: italic;
}

.paper-venue {
  font-size: 0.96rem;
  color: var(--text-muted);
  margin-bottom: 13px;
}

.paper-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.82;
  margin-bottom: 12px;
}

.paper-keywords {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.94rem;
  color: var(--text-muted);
}

.paper-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.paper-links a {
  color: var(--link);
  text-decoration: none;
  font-weight: 760;
}

.paper-links a:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.teaching-list {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.teaching-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(226,232,240,0.6);
}

.teach-title {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--text-primary);
}

.teach-role {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.teach-meta {
  text-align: right;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.teach-term {
  font-style: italic;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 20px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  align-items: start;
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
}

#publications .project-card {
  grid-template-columns: 232px 1fr;
}

.project-img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: contain;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  box-shadow: none;
}

.project-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-list {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(230, 231, 235, 0.8);
}

.news-date {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.news-text {
  color: var(--text-secondary);
}

@media (max-width: 980px) {
  .container {
    padding: 38px 32px 72px;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  .profile-photo {
    flex: none;
  }
  .project-card {
    grid-template-columns: 1fr;
  }
  .research-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    padding: 24px 0 46px;
  }
  nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
  }
  .news-item {
    grid-template-columns: 1fr;
  }
  .profile-img {
    width: 178px;
    height: 214px;
  }
  .header-content h1 {
    font-size: 2.45rem;
  }
  section h2 {
    font-size: 1.6rem;
  }
}
