:root {
  --bg: #ffffff;
  --fg: #1a1f24;
  --muted: #5b6670;
  --accent: #0b6486;
  --accent-soft: #e3f0f5;
  --border: #e3e7ea;
  --award: #8a5a00;
  --award-bg: #fdf3dd;
  --max: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181c;
    --fg: #e6e9ec;
    --muted: #9aa6b0;
    --accent: #5ab3d6;
    --accent-soft: #1b2e38;
    --border: #2a3138;
    --award: #e8c170;
    --award-bg: #2e2614;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

main, .site-header, .site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

h1 { font-size: 1.7rem; line-height: 1.3; margin: 0 0 0.5rem; }
h2 {
  font-size: 1.15rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}
h3 { font-size: 1rem; margin: 1.5rem 0 0.5rem; }

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 650; color: var(--fg); font-size: 1.05rem; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-header nav a { color: var(--muted); font-size: 0.95rem; }
.site-header nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* Home hero */
.hero { display: flex; gap: 1.75rem; align-items: flex-start; margin: 1.5rem 0 0; }
.hero img {
  width: 130px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}
.hero .role { color: var(--muted); margin: 0 0 0.75rem; }
.phd-note { font-size: 0.95rem; }
@media (max-width: 540px) {
  .hero { flex-direction: column; }
}

/* At-a-glance facts */
.glance {
  list-style: none;
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
  background: var(--accent-soft);
  border-radius: 10px;
  font-size: 0.95rem;
}
.glance li { margin: 0.3rem 0; padding-left: 1.1rem; position: relative; }
.glance li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

/* Publications */
.pub { margin: 0 0 1.15rem; }
.pub .pub-title { font-weight: 600; }
.pub .pub-authors { font-size: 0.95rem; }
.pub .pub-authors a { color: inherit; }
.pub .pub-venue { font-size: 0.95rem; color: var(--muted); font-style: italic; }
.pub .pub-links { font-size: 0.85rem; }
.pub .pub-links a { margin-right: 0.65rem; }
.award-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 600;
  color: var(--award);
  background: var(--award-bg);
  border-radius: 5px;
  padding: 0 0.45rem;
  margin-left: 0.25rem;
}
.me { font-weight: 600; }

.year-heading {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 2rem 0 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25rem;
}

/* News */
.news-item { display: flex; gap: 1rem; margin: 0 0 0.9rem; }
.news-item .news-date {
  flex: 0 0 7.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  padding-top: 0.15rem;
}
.news-item .news-text { flex: 1; font-size: 0.97rem; }
@media (max-width: 540px) {
  .news-item { flex-direction: column; gap: 0; }
}

/* Footer */
.site-footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer .profiles a { margin-right: 1rem; }

.more-link { font-size: 0.95rem; }
