:root {
  --paper: #f8f7f3;
  --ink: #27342d;
  --muted: #626960;
  --green: #315e48;
  --line: #dedfd5;
  --soft-green: #edf0e7;
  --serif: 'Libre Caslon Display', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: #dce6d5; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--green); }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; border-radius: 2px; }
main:focus { outline: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; line-height: 1.12; }
h1 { font-size: 76px; }
h2 { font-size: 34px; }
h3 { font-size: 20px; font-weight: 550; line-height: 1.45; letter-spacing: -.025em; }
.site-shell { width: min(100% - 96px, 960px); margin: auto; min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1; padding-bottom: 64px; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 18px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; color: white; }
.site-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 28px 0; }
.wordmark { font-size: 23px; font-weight: 600; letter-spacing: -1.1px; text-decoration: none; }
nav { display: flex; align-items: center; gap: 29px; font-size: 13px; }
nav a { text-decoration: none; color: var(--muted); padding: 5px 0; }
nav a:hover { text-decoration: underline; }
nav a[aria-current='page'] { color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.home-intro { display: grid; grid-template-columns: minmax(0, 1fr) 205px; gap: 75px; align-items: center; padding: 70px 0 64px; }
.role { font-size: 21px; color: var(--green); margin: 10px 0 21px; letter-spacing: -.3px; }
.prose { max-width: 555px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.prose p + p { margin-top: 14px; }
.profile-links, .paper-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 25px; font-size: 13px; font-weight: 550; }
.profile-links a, .paper-links a { text-decoration: none; }
.profile-links a:hover, .paper-links a:hover { text-decoration: underline; }
.profile-links span, .paper-links span { color: var(--green); margin-left: 4px; }
.portrait { padding-top: 8px; align-self: start; }
.portrait img { width: 205px; aspect-ratio: 1/1.13; object-fit: cover; border: 6px solid white; border-radius: 3px; box-shadow: 0 3px 15px #27342d0c; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 23px; }
.news-section { border-top: 1px solid var(--line); padding-top: 34px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 29px; padding: 0 0 26px 20px; }
.timeline li::before { content: ''; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border: 1px solid #718268; border-radius: 50%; background: var(--paper); z-index: 1; }
.timeline li:not(:last-child)::after { content: ''; position: absolute; left: 3px; top: 15px; bottom: -10px; width: 1px; background: var(--line); }
.timeline time { font-size: 12px; color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.timeline p { font-size: 14px; line-height: 1.85; }
.timeline a { text-decoration-color: #b5c1af; }
.timeline a:hover { text-decoration-color: var(--green); }
.page-intro { padding: 65px 0 53px; }
.page-intro h1 { font-size: 68px; }
.publications .section-heading { padding-bottom: 22px; margin-bottom: 0; border-bottom: 1px solid var(--line); }
.publications h2 { font-size: 29px; }
.projects { margin-top: 48px; }
.paper { display: grid; grid-template-columns: minmax(0, 1fr) 185px; gap: 35px; padding: 32px 0 35px; border-bottom: 1px solid var(--line); }
.paper-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--muted); font-size: 10px; margin-bottom: 13px; }
.badge { color: var(--green); background: var(--soft-green); border: 1px solid #dce3d4; border-radius: 3px; padding: 2px 7px; font-weight: 550; }
.paper h3 a { text-decoration: none; }
.paper h3 a:hover { text-decoration: underline; }
.authors { font-size: 11px; color: var(--muted); line-height: 1.8; margin-top: 10px; }
.authors strong { color: var(--ink); font-weight: 600; }
.paper-summary { font-size: 13px; color: var(--muted); line-height: 1.85; margin-top: 14px; }
.paper-links { font-size: 12px; margin-top: 17px; }
.paper-figure { align-self: start; display: flex; align-items: center; justify-content: center; margin-top: 37px; padding: 12px; background: white; border: 1px solid #e6e7df; border-radius: 3px; min-height: 137px; }
.paper-figure:hover { border-color: #aebfa4; }
.writing-empty { border-top: 1px solid var(--line); padding: 44px 0 92px; max-width: 100%; }
.writing-empty p { color: var(--muted); margin: 14px 0 24px; font-size: 14px; }

@media (max-width: 850px) {
  .site-shell { width: calc(100% - 64px); }
  .home-intro { grid-template-columns: minmax(0, 1fr) 170px; gap: 40px; }
  h1 { font-size: 65px; }
  .portrait img { width: 170px; }
  .paper { grid-template-columns: minmax(0, 1fr) 150px; gap: 25px; }
}

@media (max-width: 600px) {
  .site-shell { width: calc(100% - 42px); }
  .site-header { padding: 20px 0; }
  .wordmark { font-size: 21px; }
  nav { gap: 18px; font-size: 12px; }
  .home-intro { grid-template-columns: 1fr; gap: 30px; padding: 42px 0 40px; }
  h1 { font-size: 62px; }
  .role { font-size: 19px; margin-top: 8px; }
  .prose { font-size: 14px; }
  .profile-links { margin-top: 20px; }
  .portrait { justify-self: start; padding-top: 0; margin-left: 0; }
  .portrait img { width: 140px; aspect-ratio: 1; }
  .section-heading { flex-direction: column; gap: 8px; margin-bottom: 24px; }
  h2 { font-size: 31px; }
  .news-section { padding-top: 28px; }
  .timeline li { grid-template-columns: 1fr; gap: 5px; padding-left: 19px; padding-bottom: 25px; }
  .timeline time { font-size: 11px; padding-top: 0; }
  .timeline p { font-size: 13px; }
  .page-intro { padding: 42px 0 38px; }
  .page-intro h1 { font-size: 58px; }
  .paper { grid-template-columns: 1fr; gap: 22px; padding: 25px 0 29px; }
  .paper h3 { font-size: 20px; }
  .paper-figure { margin-top: 0; justify-self: start; width: 210px; min-height: 0; padding: 10px; }
  .paper-meta { gap: 9px; }
  .writing-empty { padding: 31px 0 65px; }
}

@media (max-width: 360px) {
  nav { gap: 13px; font-size: 11px; }
  h1 { font-size: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  body { background: white; }
  .site-shell { width: 100%; }
  nav, .skip-link { display: none; }
  .home-intro, .page-intro { padding: 20px 0; }
  .paper, .timeline li { break-inside: avoid; }
}
