:root {
  --text: #222;
  --muted: #666;
  --light: #999;
  --link: #3a6d99;
  --link-hover: #204c6f;
  --line: #ddd;
  --bg: #fcfcfc;
  --thumb-bg: #eef3f8;
}

* {
  box-sizing: border-box;
}

body {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.2rem 1.5rem 2rem;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ── Header ── */

.header {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 1.6rem;
}

.profile-photo {
  width: 120px;
  height: 170px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.header-info h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.2;
}

.headline {
  margin: 0.2rem 0 0.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.social-links {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
}

.social-links a {
  color: var(--link);
  text-decoration: none;
}

.social-links a:hover {
  text-decoration: underline;
}

.office-note {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--light);
}

/* ── Sections ── */

.section {
  margin-bottom: 1.6rem;
}

.section-title {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.25rem;
  margin: 0 0 0.7rem;
  font-size: 1.1rem;
  font-weight: bold;
  color: #111;
}

/* Bio paragraph */
.bio-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.bio-text a {
  color: var(--link);
  text-decoration: none;
}

.bio-text a:hover {
  text-decoration: underline;
}

/* ── News ── */

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
}

.news-date {
  color: var(--light);
  font-variant-numeric: tabular-nums;
}

.news-older {
  margin-top: 0.5rem;
}

.news-older summary {
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
}

.news-older summary:hover {
  color: var(--link);
}

.news-older .news-list {
  margin-top: 0.5rem;
}

/* ── Education / Teaching ── */

.split-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.split-table td {
  padding: 0.18rem 0;
  vertical-align: baseline;
}

.split-table td:first-child {
  font-weight: bold;
}

.work-desc {
  font-weight: normal !important;
}

.split-table td:last-child {
  text-align: right;
  color: var(--muted);
  font-weight: normal;
  font-size: 0.88rem;
}

/* ── Publications ── */

.pub-group-label {
  font-size: 0.75rem;
  font-weight: bold;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 1rem 0 0.5rem;
}

.pub-group-label:first-of-type {
  margin-top: 0;
}

.pub {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.9rem;
  align-items: flex-start;
}

.pub-thumb {
  width: 130px;
  height: 82px;
  background-color: var(--thumb-bg);
  background-size: cover;
  background-position: center;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  flex-shrink: 0;
}

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

.pub-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: bold;
  line-height: 1.35;
  color: #222;
}

.pub-authors {
  margin: 0.15rem 0;
  font-size: 0.88rem;
  color: #444;
}

.pub-venue {
  margin: 0.15rem 0;
  font-size: 0.85rem;
  color: #555;
  font-style: italic;
}

.pub-links {
  margin-top: 0.2rem;
  font-size: 0.85rem;
}

.pub-link {
  color: var(--link);
  text-decoration: none;
}

.pub-link:hover {
  text-decoration: underline;
}

/* Author self-highlight */
.author-me {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Projects ── */

.project {
  margin-bottom: 0.7rem;
}

.project-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: bold;
}

.project-desc {
  margin: 0.1rem 0;
  font-size: 0.88rem;
  color: #555;
}

.project-links {
  margin-top: 0.15rem;
  font-size: 0.85rem;
}

.project-links a {
  color: var(--link);
  text-decoration: none;
}

.project-links a:hover {
  text-decoration: underline;
}

/* ── Awards ── */

.awards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.12rem 1.5rem;
  font-size: 0.9rem;
}

.award-meta {
  color: var(--light);
  font-size: 0.82rem;
}

/* ── Work Experience ── */

.placeholder-note {
  color: var(--light);
  font-style: italic;
  font-size: 0.9rem;
  margin: 0;
}

/* ── Visitor Globe ── */

.visitor-widget {
  max-width: 200px;
  margin: 0 auto 0.8rem;
}

.visitor-widget img {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: block;
}

/* ── Footer ── */

.footer {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: var(--light);
  font-size: 0.85rem;
  text-align: center;
}

/* ── Links (global) ── */

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

a:hover {
  text-decoration: underline;
}

/* ── Responsive ── */

@media (max-width: 640px) {
  body {
    padding: 1.2rem 1rem 1.5rem;
    font-size: 0.9rem;
  }

  .header {
    flex-direction: column;
    text-align: center;
  }

  .pub {
    flex-direction: column;
  }

  .pub-thumb {
    width: 100%;
    height: 120px;
  }

  .awards-grid {
    grid-template-columns: 1fr;
  }

  .split-table td:last-child {
    text-align: left;
    display: block;
  }

  .split-table td:first-child {
    display: block;
  }

  .split-table tr {
    display: block;
    margin-bottom: 0.4rem;
  }
}
