:root {
  --bg: #fbfbfa;
  --paper: #ffffff;
  --text: #191919;
  --muted: #656565;
  --line: #e6e4df;
  --soft: #f3f2ef;
  --accent: #1f4d3a;
  --max: 980px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251,251,250,.94);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}
.nav-row { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.wordmark { font-weight: 700; text-decoration: none; letter-spacing: -.02em; }
nav { display: flex; gap: 24px; font-size: 14px; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--text); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 72px;
  align-items: center;
  padding: 92px 0 88px;
  border-bottom: 1px solid var(--line);
}
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(46px, 8vw, 68px); line-height: 1.02; font-weight: 500; letter-spacing: -.045em; margin: 0; }
.affiliation { margin: 16px 0 28px; color: var(--accent); font-weight: 600; }
.intro { max-width: 650px; margin: 0 0 16px; font-size: 18px; line-height: 1.7; }
.hero-links { display: flex; align-items: center; gap: 22px; margin-top: 30px; }
.button { display: inline-flex; padding: 9px 16px; border-radius: 7px; background: var(--text); color: white; text-decoration: none; font-size: 14px; font-weight: 600; }
.text-link { font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid #aaa; }
.portrait-wrap { align-self: start; padding-top: 8px; }
.portrait { width: 210px; height: 210px; object-fit: cover; border-radius: 8px; display: block; background: var(--soft); border: 1px solid var(--line); }
.section { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 44px; padding: 70px 0; border-bottom: 1px solid var(--line); }
.section-label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; padding-top: 8px; }
.section h2 { margin: 0 0 28px; font-size: 28px; letter-spacing: -.025em; }
.school-link { color: inherit; text-underline-offset: 3px; }
.section-copy { max-width: 720px; margin: 0; color: var(--text); font-size: 16px; line-height: 1.75; }
.compact-section { padding-top: 52px; padding-bottom: 52px; }
#research, #software { scroll-margin-top: 84px; }
.project-list { border-top: 1px solid var(--line); }
.project { display: flex; justify-content: space-between; gap: 30px; padding: 23px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.project h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.015em; }
.project:hover h3 { color: var(--accent); }
.project p { margin: 0; color: var(--muted); max-width: 620px; font-size: 15px; }
.project > span { color: var(--muted); font-size: 13px; white-space: nowrap; padding-top: 4px; }
.site-footer { padding: 28px 0 38px; color: var(--muted); font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; }
@media (max-width: 760px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  nav { gap: 14px; overflow-x: auto; }
  .hero { grid-template-columns: 1fr; gap: 34px; padding: 58px 0 54px; }
  .portrait-wrap { order: -1; padding-top: 0; }
  .portrait { width: 128px; height: 128px; }
  .section { grid-template-columns: 1fr; gap: 12px; padding: 48px 0; }
  .section-label { padding-top: 0; }
  .project { flex-direction: column; gap: 8px; }
}
@media (max-width: 500px) {
  #research, #software { scroll-margin-top: 104px; }
  .nav-row { align-items: flex-start; flex-direction: column; padding: 15px 0; gap: 10px; }
  nav { width: 100%; }
  h1 { font-size: 46px; }
  .intro { font-size: 16px; }
}
