:root {
  --ink: #1f2933;
  --muted: #52606d;
  --line: #dde3ea;
  --accent: #1f4e79;      /* deep academic blue */
  --accent-dark: #163a5a;
  --accent-soft: #eef4fa;
  --gold: #b7791f;
  --bg: #ffffff;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; display: block; }

.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

/* Header */
.site-header { background: var(--accent); color: #fff; border-bottom: 4px solid var(--gold); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { font-family: var(--serif); font-size: 22px; font-weight: 600; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { color: #dbe7f3; text-decoration: none; font-weight: 600; font-size: 16px; padding: 8px 12px; border-radius: 6px; }
.nav a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav a.active { color: #fff; background: rgba(255,255,255,0.16); }

/* Layout */
.layout { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 44px; padding-bottom: 56px; }
.sidebar { flex: 1 1 240px; max-width: 280px; display: flex; flex-direction: column; gap: 18px; align-self: flex-start; position: sticky; top: 24px; }
.content { flex: 999 1 560px; min-width: 0; }

.portrait { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); }
.who-name { font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.3; }
.who-role { color: var(--muted); font-size: 15.5px; margin-top: 4px; }
.contact { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.contact li { display: flex; gap: 10px; align-items: flex-start; }
.contact svg { flex: 0 0 auto; margin-top: 3px; color: var(--accent); }
.contact a { text-decoration: none; overflow-wrap: anywhere; }
.contact .email { font-size: 14.5px; letter-spacing: -0.01em; }
.contact a:hover { text-decoration: underline; }

/* Typography */
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.25; }
h1 { font-size: 34px; font-weight: 600; margin: 0 0 16px; }
h2 { font-size: 24px; font-weight: 600; margin: 0 0 14px; padding-bottom: 6px; border-bottom: 2px solid var(--accent-soft); }
h3 { font-size: 19px; font-weight: 600; margin: 0 0 6px; color: var(--accent-dark); }
p { margin: 0 0 14px; }
.lead { font-size: 18.5px; }
section { margin-bottom: 40px; }
.muted { color: var(--muted); font-size: 15.5px; }
.more { font-weight: 600; text-decoration: none; display: inline-block; margin-top: 12px; }
.more:hover { text-decoration: underline; }

/* Highlights */
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.highlight { background: var(--accent-soft); border-radius: 8px; padding: 18px 18px 16px; border-top: 3px solid var(--gold); }
.hl-kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.hl-text { font-size: 16px; line-height: 1.5; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 18px 4px; }
.stat-num { font-family: var(--serif); font-size: 32px; font-weight: 700; color: var(--accent); line-height: 1.1; }
.stat-label { font-size: 14.5px; color: var(--muted); }

/* Lists */
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Publications */
.pubs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pub { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pub:last-child { border-bottom: 0; }
.pub-id { flex: 0 0 52px; font-size: 14px; font-weight: 700; color: var(--accent); padding-top: 2px; }
.pub-title { font-weight: 600; line-height: 1.45; }
.pub-authors { font-size: 15.5px; color: var(--muted); margin-top: 2px; }
.pub-authors strong { color: var(--ink); }
.pub-venue { font-size: 15.5px; margin-top: 2px; }
.doi { display: inline-block; margin-left: 6px; font-size: 13px; font-weight: 700; text-decoration: none; background: var(--accent-soft); padding: 1px 8px; border-radius: 4px; font-style: normal; }
.doi:hover { background: var(--accent); color: #fff; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.jump a:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.card { border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; border-left: 4px solid var(--accent); }
.card p { margin: 0; font-size: 16px; color: var(--muted); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tl-item { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tl-item:last-child { border-bottom: 0; }
.tl-date { flex: 0 0 160px; font-size: 15px; font-weight: 600; color: var(--accent); }
.tl-item > div:last-child { flex: 1 1 320px; min-width: 0; }
.tl-title { font-weight: 600; }

/* Teaching */
.inst { margin-top: 26px; }
.inst h2 { font-size: 20px; }
.courses { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.course { font-weight: 600; }

.button { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; padding: 11px 20px; border-radius: 6px; }
.button:hover { background: var(--accent-dark); color: #fff; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; padding: 22px 0; }

@media (max-width: 760px) {
  .sidebar { position: static; max-width: none; flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .portrait { width: 140px; }
  .who { flex: 1 1 160px; }
  .contact { flex: 1 1 100%; }
  h1 { font-size: 29px; }
  .tl-date { flex-basis: 100%; }
}
