:root {
  --text: #1a1a1a;
  --muted: #666;
  --accent: #1a5fb4;
  --border: #e5e5e5;
  --bg: #ffffff;
  --max-width: 860px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}

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

h1 {
  margin: 0 0 0.25rem;
  font-size: 1.9rem;
}

h2 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin: 2.5rem 0 1rem;
}

/* --- Bio --- */
.bio {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.bio-photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.role {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.plain-link {
  color: inherit;
  text-decoration: none;
}

.plain-link:hover {
  text-decoration: none;
}

.bio-body {
  margin: 0 0 0.75rem;
}

.links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
}
.links a:hover { color: var(--accent); }

.link-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.icon-scholar,
.icon-linkedin,
.icon-university,
.icon-dblp {
  color: #004f9f;
}

@media (max-width: 480px) {
  .bio { flex-direction: column; align-items: center; text-align: center; }
  .links { justify-content: center; }
}

/* --- News --- */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px dotted var(--border);
}
.news-list li:last-child { border-bottom: none; }

.news-date {
  color: var(--muted);
  flex-shrink: 0;
  width: 5.5rem;
  font-variant-numeric: tabular-nums;
}

/* --- Education & Experience --- */
.edu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.edu {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.edu:last-child { border-bottom: none; }

.edu-dates {
  color: var(--muted);
  flex-shrink: 0;
  width: 10.5rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.edu-main {
  display: flex;
  flex-direction: column;
}

.edu-degree {
  font-weight: 600;
}

.edu-institution {
  color: var(--muted);
  font-size: 0.92rem;
}

.edu-description {
  font-size: 0.92rem;
  margin-top: 0.15rem;
}

@media (max-width: 480px) {
  .edu { flex-direction: column; gap: 0.15rem; }
  .edu-dates { width: auto; }
}

/* --- Awards & Honors --- */
.award-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.award {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.award:last-child { border-bottom: none; }

.award-year {
  color: var(--muted);
  flex-shrink: 0;
  width: 10.5rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.award-main {
  display: flex;
  flex-direction: column;
}

.award-name {
  font-weight: 600;
}

.award-org {
  color: var(--muted);
  font-size: 0.92rem;
}

.award-description {
  font-size: 0.92rem;
  margin-top: 0.15rem;
}

@media (max-width: 480px) {
  .award { flex-direction: column; gap: 0.15rem; }
  .award-year { width: auto; }
}

/* --- Publications --- */
.pub-links {
  margin: -0.5rem 0 1rem;
  font-size: 0.88rem;
}
.pub-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-right: 0.75rem;
}

.pub-note {
  margin: -0.5rem 0 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

.paper-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.paper {
  display: flex;
  gap: 1.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.paper:last-child { border-bottom: none; }

.paper-when {
  flex: 0 0 6.5rem;
  padding-top: 0.05rem;
}

.paper-venue {
  display: block;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.92rem;
  line-height: 1.3;
}

.paper-year {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.paper-main {
  flex: 1 1 auto;
  min-width: 0;
}

.paper-title {
  display: block;
  font-weight: 600;
}

.paper-meta {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.paper-meta .me {
  color: inherit;
  font-weight: inherit;
  text-decoration: underline;
}

@media (max-width: 520px) {
  .paper {
    flex-direction: column;
    gap: 0.15rem;
  }
  .paper-when {
    flex: 0 0 auto;
  }
  .paper-venue,
  .paper-year {
    display: inline;
  }
}

.paper-links {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.paper-links a { margin-right: 0.75rem; }

.paper-status {
  display: inline-block;
  background: #fdf0d5;
  color: #8a5a00;
  border-radius: 4px;
  padding: 0.05rem 0.4rem;
  font-size: 0.78rem;
}

.paper-award {
  display: inline-block;
  background: #e6f2e8;
  color: #1e6b3a;
  border-radius: 4px;
  padding: 0.05rem 0.4rem;
  font-size: 0.78rem;
}

/* --- Service --- */
.service h3 {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 1.25rem 0 0.5rem;
}
.service h3:first-of-type { margin-top: 0.5rem; }

.reviewing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
}

.reviewing-list li {
  background: #eef4fb;
  border: 1px solid #d7e6f5;
  color: var(--text);
  border-radius: 4px;
  padding: 0.25rem 0.65rem;
  font-size: 0.92rem;
}

.service-year {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.workshop-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.workshop-list li {
  padding: 0.5rem 0;
  border-bottom: 1px dotted var(--border);
}
.workshop-list li:last-child { border-bottom: none; }

.workshop-title {
  display: block;
  font-weight: 600;
}

.workshop-meta {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

/* --- Footer --- */
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
