:root {
  --ink: #202124;
  --muted: #666b70;
  --accent: #22664f;
  --accent-soft: #eef5f1;
  --line: #e1e4e2;
  --paper: #ffffff;
  --max: 900px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: #1769aa; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin-top: 0; }
.skip-link { position: fixed; top: -4rem; left: 1rem; z-index: 10; padding: .5rem .75rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }

.site-header, .page, .site-footer { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 58px; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; font-weight: 700; }
.wordmark:hover { text-decoration: none; }
nav { display: flex; align-items: center; gap: 1.15rem; }
nav a { color: #4f5551; font-size: .78rem; }
nav a:hover { color: var(--accent); }

.intro { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 3.5rem; align-items: start; padding: 3.25rem 0 2.75rem; scroll-margin-top: 1rem; }
h1 { margin-bottom: .15rem; font-family: Georgia, "Times New Roman", serif; font-size: 2.45rem; font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.role { margin-bottom: 1.4rem; color: var(--muted); font-size: .88rem; }
.intro-copy > p:not(.role):not(.keywords) { margin-bottom: .9rem; }
.intro-copy strong { font-weight: 700; }
.keywords { margin: 1.15rem 0 .9rem; }
.profile-links { display: flex; gap: 1rem; font-size: .82rem; }
.portrait { margin: .35rem 0 0; }
.portrait img { width: 190px; height: 190px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; object-position: center; }
.portrait figcaption { margin-top: .45rem; color: var(--muted); font-size: .68rem; text-align: center; }

.site-section { padding: 2.8rem 0; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
h2 { margin-bottom: 1.55rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; font-weight: 500; letter-spacing: -.025em; line-height: 1.2; }
.section-note { margin: -1.2rem 0 1.5rem; color: var(--muted); font-size: .75rem; }

.publication-list { display: grid; gap: 2rem; }
.publication { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.6rem; align-items: center; }
.publication-image { display: grid; place-items: center; min-height: 120px; margin: 0; padding: .6rem; border: 1px solid var(--line); border-radius: 3px; background: #fafbfa; }
.publication-image img { width: 100%; max-height: 135px; object-fit: contain; }
.publication h3 { margin-bottom: .42rem; font-size: 1.02rem; line-height: 1.35; }
.publication p { margin-bottom: .32rem; }
.authors { color: #50555a; font-size: .82rem; }
.authors strong { color: var(--ink); }
.venue { color: var(--accent); font-size: .8rem; }
.tldr { color: #555a5e; font-size: .82rem; }
.paper-links { font-size: .8rem; }
.paper-links a + a { margin-left: .55rem; }

.career-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; border-top: 1px solid var(--line); }
.career-section { border-top: 0; }
.timeline { --timeline-gap: 1.65rem; display: grid; gap: var(--timeline-gap); }
.timeline-item { display: grid; grid-template-columns: 16px 44px minmax(0, 1fr); gap: .7rem; align-items: start; }
.timeline-rail { position: relative; align-self: stretch; min-height: 44px; }
.timeline-rail span { position: absolute; top: 4px; left: 50%; z-index: 2; width: 9px; height: 9px; border: 2px solid white; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); transform: translateX(-50%); }
.timeline-item:not(:last-child) .timeline-rail::after { content: ""; position: absolute; top: 8.5px; left: 50%; z-index: 1; width: 1px; height: calc(100% + var(--timeline-gap)); background: #cdd6d1; transform: translateX(-50%); }
.education-timeline .timeline-rail span { background: #819989; box-shadow: 0 0 0 1px #819989; }
.timeline-logo { width: 44px; height: 44px; padding: 3px; border: 1px solid var(--line); border-radius: 5px; background: white; object-fit: contain; }
.timeline-logo-wide { padding: 5px 2px; }
.timeline-copy { min-width: 0; }
.date { margin-bottom: .22rem; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .03em; }
.timeline-copy h3 { margin-bottom: .15rem; font-size: .92rem; line-height: 1.35; }
.organization { margin-bottom: .28rem; color: var(--accent); font-size: .8rem; font-weight: 700; }
.timeline-copy > p:last-child { margin-bottom: 0; color: var(--muted); font-size: .8rem; }

.outside { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 3rem; align-items: start; }
.outside-copy { grid-column: 2; padding-top: .7rem; }
.outside h2 { margin-bottom: .9rem; }
.outside-copy p { max-width: 520px; margin-bottom: 0; color: #4f5551; }
.outside-copy p + p { margin-top: .8rem; }
.outside-photo { grid-column: 1; grid-row: 1; margin: 0; }
.outside-photo img { width: 280px; height: 350px; border: 1px solid var(--line); border-radius: 7px; object-fit: cover; box-shadow: 0 8px 24px rgba(32, 33, 36, .08); }
.outside-photo figcaption { margin-top: .55rem; color: var(--muted); font-size: .68rem; line-height: 1.4; text-align: center; }

.site-footer { display: flex; justify-content: space-between; gap: 2rem; padding: 1.6rem 0 2.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.site-footer p { margin: 0; }

@media (max-width: 700px) {
  .site-header { min-height: 54px; }
  nav { gap: .75rem; }
  nav a:not(:last-child) { display: none; }
  .intro { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 2.3rem; }
  .portrait { grid-row: 1; width: 140px; }
  .portrait img { width: 140px; height: 140px; }
  h1 { font-size: 2.15rem; }
  .publication { grid-template-columns: 1fr; gap: .9rem; }
  .publication-image { width: min(100%, 340px); min-height: 110px; }
  .career-grid { grid-template-columns: 1fr; gap: 0; }
  .career-section + .career-section { padding-top: 0; }
  .outside { grid-template-columns: 1fr; gap: 1.25rem; }
  .outside-copy { grid-column: 1; grid-row: 1; padding-top: 0; }
  .outside-photo { grid-column: 1; grid-row: 2; width: min(100%, 300px); }
  .outside-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; }
  .site-footer { display: block; }
  .site-footer p + p { margin-top: .45rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
