:root {
  --background: #ffffff;
  --surface: #f5f7fa;
  --text: #20242c;
  --muted: #646b78;
  --line: #e1e5eb;
  --accent: #285f9e;
  --accent-dark: #174a84;
  --content-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 18px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: 3px;
  background: linear-gradient(90deg, #214f82, #4c84bd 62%, #91b5d8);
  content: "";
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent-dark); }
a:focus-visible { border-radius: 3px; outline: 3px solid rgba(40, 95, 158, 0.28); outline-offset: 3px; }
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.55rem 0.85rem;
  border-radius: 4px;
  background: var(--text);
  color: #fff;
  transform: translateY(-180%);
}
.skip-link:focus { color: #fff; transform: translateY(0); }
.site-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 6.5rem);
  width: min(calc(100% - 3rem), var(--content-width));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 4rem;
}
.profile { position: sticky; top: 2.5rem; align-self: start; }
.profile-photo {
  width: 190px;
  height: 190px;
  aspect-ratio: 1;
  margin-bottom: 1.4rem;
  border-radius: 8px;
  object-fit: cover;
  object-position: 50% 46%;
  box-shadow: 0 10px 30px rgba(28, 39, 53, 0.12);
}
.site-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin: 1.7rem 0;
  padding: 1.15rem 0;
  border-block: 1px solid var(--line);
}
.site-nav a { padding: 0.18rem 0; color: var(--muted); font-size: 0.92rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.profile-links { display: grid; gap: 0.45rem; font-size: 0.87rem; }
.profile-links a { width: fit-content; overflow-wrap: anywhere; text-decoration: none; }
.profile-links a:hover { text-decoration: underline; }
main { min-width: 0; }
.page-intro { margin-bottom: 3.5rem; }
.eyebrow { margin: 0 0 0.65rem; color: var(--accent); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; }
.page-intro h1,
.page-intro h2 {
  max-width: 760px;
  margin: 0;
  color: #18212c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -0.035em;
}
.page-intro .home-title { font-size: clamp(2rem, 4vw, 2.75rem); }
.home-subtitle { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.lead { max-width: 720px; margin: 1.25rem 0 0; color: var(--muted); font-size: 1.08rem; }
.section { scroll-margin-top: 2rem; margin-top: 3.8rem; }
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.45rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}
.section-heading h2 { margin: 0; color: #18212c; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 500; letter-spacing: -0.015em; }
.bio p { max-width: 760px; margin: 0 0 1rem; }
.interest-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.interest-list li { padding: 0.8rem 0.95rem; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #343b46; font-size: 0.93rem; }
.publication-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: publications; }
.publication { position: relative; padding: 1.3rem 0 1.45rem 2.6rem; border-bottom: 1px solid var(--line); counter-increment: publications; }
.publication:first-child { padding-top: 0.15rem; }
.publication::before { position: absolute; top: 1.35rem; left: 0; color: #8c939d; font-family: Georgia, "Times New Roman", serif; font-size: 0.95rem; content: counter(publications, decimal-leading-zero); }
.publication:first-child::before { top: 0.2rem; }
.publication-title { margin: 0; color: #202731; font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; font-weight: 600; line-height: 1.45; }
.publication-authors, .publication-venue { margin: 0.38rem 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.publication-venue { color: #454c57; font-style: italic; }
.publication-summary { max-width: 760px; margin: 0.58rem 0 0; color: #4f5762; font-size: 0.9rem; line-height: 1.6; }
.publication-links { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.72rem; }
.paper-link, .status-label {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.16rem 0.55rem;
  border: 1px solid #bac9da;
  border-radius: 4px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}
.paper-link:hover { border-color: var(--accent); background: #f3f7fb; }
.status-label { border-color: var(--line); color: #7c838d; font-weight: 600; letter-spacing: 0.02em; text-transform: none; }
.equal-note { margin-top: 1rem; color: var(--muted); font-size: 0.84rem; }
.timeline { display: grid; gap: 2.6rem; }
.timeline-item { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 1.5rem; }
.timeline-date { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.88rem; }
.timeline-content h3 { margin: 0; color: #202731; font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; font-weight: 600; line-height: 1.35; }
.timeline-subtitle { margin: 0.28rem 0 0.65rem; color: var(--accent); font-size: 0.93rem; font-weight: 600; }
.timeline-content p { margin: 0.55rem 0 0; color: #3e4651; }
.compact-list { margin: 0.7rem 0 0; padding-left: 1.15rem; }
.compact-list li + li { margin-top: 0.35rem; }
.site-footer { margin-top: 4.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }

@media (max-width: 820px) {
  .site-shell { grid-template-columns: 1fr; gap: 3rem; width: min(calc(100% - 2rem), 680px); padding-top: 2.75rem; }
  .profile { position: static; display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 1.25rem; }
  .profile-photo { grid-column: 1; grid-row: 1; width: 128px; height: 128px; margin: 0; }
  .site-nav { grid-column: 2; grid-row: 1; justify-content: center; gap: 0.35rem; margin: 0; padding: 0 0 0 1.25rem; border-block: 0; border-left: 1px solid var(--line); }
  .profile-links { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-intro { margin-bottom: 2.7rem; }
}
@media (max-width: 560px) {
  html { font-size: 17px; }
  .site-shell { width: min(calc(100% - 1.5rem), 680px); }
  .profile { grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; }
  .profile-photo { width: 96px; height: 96px; border-radius: 6px; }
  .profile-links, .interest-list { grid-template-columns: 1fr; }
  .page-intro h1, .page-intro h2 { font-size: 2.25rem; }
  .publication { padding-left: 2.15rem; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.35rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body::before, .site-nav, .skip-link { display: none; }
  .site-shell { display: block; width: 100%; padding: 0; }
  .profile { position: static; margin-bottom: 2rem; }
  .profile-photo { width: 120px; height: 120px; }
}
