:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #172033;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --max-width: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.container { width: min(calc(100% - 40px), var(--max-width)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(226, 232, 240, .85);
  background: rgba(248, 250, 252, .9);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-name { color: var(--text); font-size: 1.05rem; font-weight: 750; letter-spacing: -.02em; }
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; }
nav a { color: var(--muted); font-size: .92rem; font-weight: 600; }

.hero { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; padding: 88px 0 72px; }
.avatar { width: 220px; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); object-fit: cover; box-shadow: 0 16px 45px rgba(15, 23, 42, .08); }
.eyebrow { margin: 0 0 4px; color: var(--accent); font-size: .85rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: -.055em; }
h1 span { display: block; margin-top: 10px; color: var(--muted); font-size: .42em; font-weight: 550; letter-spacing: .02em; }
.headline { margin: 24px 0 0; font-size: 1.23rem; font-weight: 650; }
.affiliation { margin: 2px 0 0; color: var(--muted); }
.bio { max-width: 700px; margin: 24px 0 0; font-size: 1.05rem; }
.bio p { margin: 0; }
.interests, .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.interests span, .tags span { border: 1px solid #bfdbfe; border-radius: 999px; background: var(--accent-soft); color: #1d4ed8; padding: 3px 11px; font-size: .82rem; font-weight: 600; }
.profile-links, .item-links { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 24px; }
.profile-links a { border-bottom: 1px solid currentColor; font-weight: 650; }

.content-section { padding: 58px 0; border-top: 1px solid var(--line); }
.content-section > h2, .section-heading h2 { margin: 0 0 34px; font-size: 1.75rem; letter-spacing: -.035em; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.section-heading > a { font-size: .9rem; font-weight: 650; }
.news-list { display: grid; gap: 13px; }
.news-item { display: grid; grid-template-columns: 90px 1fr; gap: 20px; }
.news-item time { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 650; }
.news-item p { margin: 0; }

.publication-list { margin: 0; padding: 0; list-style: none; counter-reset: publication; }
.publication-list li { position: relative; padding: 0 0 30px 34px; counter-increment: publication; }
.publication-list li::before { content: counter(publication); position: absolute; left: 0; top: 1px; color: var(--muted); font-size: .85rem; font-weight: 700; }
.publication-list h3, .card h3, .timeline-item h3 { margin: 0; font-size: 1.08rem; line-height: 1.45; }
.authors, .venue { margin: 4px 0 0; color: var(--muted); }
.venue strong { color: #b45309; }
.item-links { margin-top: 8px; gap: 12px; }
.item-links a { font-size: .84rem; font-weight: 700; }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 24px; box-shadow: 0 8px 28px rgba(15, 23, 42, .035); }
.card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.card-title span, .period { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.card > p { margin: 12px 0 0; color: #475569; }
.card .tags { margin-top: 17px; }
.card .tags span { border-color: var(--line); background: #f8fafc; color: var(--muted); }

.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 55px; }
.column-label { margin: 0 0 24px; color: var(--accent); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.timeline-item { position: relative; margin-left: 5px; padding: 0 0 30px 22px; border-left: 2px solid var(--line); }
.timeline-item::before { position: absolute; top: 7px; left: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); content: ""; }
.timeline-item .period { display: block; margin-bottom: 4px; }
.timeline-item p { margin: 5px 0 0; color: var(--muted); font-size: .92rem; }
.timeline-item .role { color: var(--text); }
.compact-item { display: grid; grid-template-columns: 90px 1fr; gap: 16px; margin-bottom: 18px; }
.compact-item > span { color: var(--muted); font-size: .85rem; }
.compact-item p { margin: 0; }

footer { margin-top: 35px; border-top: 1px solid var(--line); padding: 35px 0 45px; color: var(--muted); font-size: .82rem; }
footer p { margin: 2px 0; }
.credit { opacity: .8; }

@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --bg: #0b1120; --surface: #111827; --text: #e5e7eb; --muted: #94a3b8; --line: #273449; --accent: #60a5fa; --accent-soft: #12213b; }
  .site-header { background: rgba(11, 17, 32, .9); border-bottom-color: rgba(39, 52, 73, .9); }
  .interests span { border-color: #1e4b7a; color: #93c5fd; }
  .card > p { color: #aebacd; }
  .card .tags span { background: #0f172a; }
  .venue strong { color: #fbbf24; }
}

@media (max-width: 760px) {
  .header-inner { padding: 13px 0; align-items: flex-start; }
  nav { gap: 8px 14px; }
  nav a { font-size: .78rem; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding: 55px 0 50px; }
  .avatar { width: 155px; border-radius: 18px; }
  .card-grid, .two-columns { grid-template-columns: 1fr; gap: 25px; }
  .content-section { padding: 45px 0; }
}

@media (max-width: 460px) {
  .site-name { display: none; }
  nav { justify-content: flex-start; }
  .news-item, .compact-item { grid-template-columns: 1fr; gap: 2px; }
  .card-title { align-items: flex-start; flex-direction: column; gap: 2px; }
}
