:root {
  --bg: #fff;
  --text: #1a1a1a;
  --muted: #5c6370;
  --faint: #9aa0a8;
  --accent: #2b62c4;
  --line: rgba(0, 0, 0, 0.08);
  --card: #f7f7f5;
  --max: 740px;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111315;
    --text: #e8e9eb;
    --muted: #9aa1a9;
    --faint: #6b7280;
    --accent: #7eabf0;
    --line: rgba(255, 255, 255, 0.1);
    --card: #1a1d20;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 920px; }

/* Nav */
.site-nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
  padding: 28px 0 8px;
}
.site-nav .brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.site-nav .brand:hover { color: var(--accent); text-decoration: none; }
.site-nav ul {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}
.site-nav a { color: var(--muted); }
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

/* Hero */
.hero {
  margin: 40px 0 12px;
}
.hero::after {
  content: "";
  display: block;
  clear: both;
}
.hero-photo {
  float: right;
  width: 300px;
  height: 400px;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
  margin: 0 0 20px 36px;
  shape-outside: inset(0 round 18px);
}
.hero h1 {
  font-family: var(--serif);
  font-size: 2.15rem;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 6px;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.hero .role {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 1.02rem;
}
.hero .role a { color: var(--text); border-bottom: 1px solid var(--line); }
.hero .role a:hover { text-decoration: none; border-color: var(--accent); }

.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a {
  color: var(--muted);
  font-size: 0.78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  text-decoration: none;
}
.socials a:hover { color: var(--accent); border-color: var(--accent); }

.bio { margin: 22px 0 0; }
.bio p { margin: 0 0 16px; }
.bio p:last-child { margin-bottom: 0; }
.bio strong { font-weight: 600; }

/* Headings */
.content h1, .post h1 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 28px 0 18px;
  line-height: 1.2;
}
.section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
  font-weight: 600;
  margin: 40px 0 14px;
}
.content h2, .post h2 {
  font-size: 1.15rem;
  font-weight: 650;
  margin: 32px 0 10px;
  letter-spacing: -0.01em;
}
.content > p, .post > p { margin: 0 0 16px; }

/* Highlights */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 8px 0 12px;
}
.highlight {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 16px 14px;
}
.highlight summary { list-style: none; cursor: pointer; }
.highlight summary::-webkit-details-marker { display: none; }
.highlight h3 {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.highlight .lede {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 10px;
  line-height: 1.45;
}
.explore {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.highlight[open] .explore { opacity: 0.55; }
.highlight-body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}
.highlight-body p { margin: 0 0 10px; }
.highlight-body ul { margin: 0; padding-left: 1.1em; }
.highlight-body li { margin: 0 0 6px; }

/* Entries (papers, talks, mentorship) */
.entry {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.entry .meta {
  font-size: 0.78rem;
  color: var(--faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.entry .meta .award {
  color: var(--accent);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}
.entry h3 {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.entry h3 a { color: var(--text); }
.entry h3 a:hover { color: var(--accent); text-decoration: none; }
.entry .sub { color: var(--muted); font-size: 0.92rem; margin: 0 0 6px; }
.entry .links { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.85rem; margin: 0; }

.filter-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 8px;
}

.bio-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 28px;
  font-size: 0.95rem;
  color: var(--muted);
}
.bio-box summary { cursor: pointer; font-weight: 600; color: var(--text); }
.bio-box[open] summary { margin-bottom: 8px; }

/* Talks timeline */
.timeline-year-group,
.paper-year-group { margin: 8px 0 40px; }
.content h2.timeline-year,
.content h2.paper-year {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}
.timeline {
  position: relative;
  padding-left: 1.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.45rem;
  bottom: 0.45rem;
  width: 1px;
  background: var(--line);
}
.timeline__item {
  position: relative;
  padding-bottom: 1.2rem;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.22rem;
  top: 0.48rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline__date {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--faint);
  margin: 0 0 2px;
}
.timeline__desc {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Mentorship */
.mentorship-intro {
  color: var(--muted);
  margin: -8px 0 28px;
  line-height: 1.65;
}
.mentee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 36px;
}
.mentee-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.mentee-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex: none;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mentee-initials {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--faint);
}
.mentee-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.mentee-track,
.mentee-dest {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  color: var(--faint);
  line-height: 1.4;
}
.mentee-dest { color: var(--accent); }
.quiet-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}
.quiet-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.quiet-year {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--faint);
  margin-right: 8px;
}

/* Press */
.press-list { list-style: none; margin: 0; padding: 0; }
.press-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.press-meta {
  color: var(--faint);
  font-size: 0.85rem;
  margin: 0 0 4px;
}
.press-list a { color: var(--text); }
.press-list a:hover { color: var(--accent); }

/* Blog */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.post-list h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 0 6px;
  font-weight: 600;
}
.post-list h2 a { color: var(--text); }
.post-list h2 a:hover { color: var(--accent); text-decoration: none; }
.post-list .meta, .post .meta {
  color: var(--faint);
  font-size: 0.88rem;
  margin: 0 0 8px;
}
.post .meta { margin: -8px 0 24px; }
.post figure { margin: 24px 0; }
.post figcaption {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}
.blog-kicker {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  margin: -8px 0 20px;
}

/* Footer */
footer.site-footer {
  margin: 56px 0 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.85rem;
  text-align: center;
}

.more-link { display: inline-block; margin-top: 14px; font-size: 0.95rem; }

@media (max-width: 720px) {
  .highlights { grid-template-columns: 1fr; }
  .mentee-grid { grid-template-columns: 1fr 1fr; }
  .hero-photo {
    width: 220px;
    height: 293px;
    margin: 0 0 16px 20px;
  }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { margin-top: 24px; }
  .hero-photo {
    float: none;
    display: block;
    width: min(240px, 72vw);
    height: auto;
    aspect-ratio: 3 / 4;
    margin: 0 auto 20px;
  }
  .hero h1 { font-size: 1.85rem; }
  .site-nav { padding-top: 20px; }
  .mentee-grid { grid-template-columns: 1fr; }
}
