@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  --paper: #fff;
  --ink: #252a30;
  --muted: #565e68;
  --accent: #185a9d;
  --heading: #103f71;
  --line: #e0e4e8;
  --sans: 'DM Sans', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2 { color: var(--heading); font-weight: 500; line-height: 1.25; letter-spacing: -.5px; }
h1 { font-size: 38px; }
h2 { font-size: 30px; }
h3 { font-size: 21px; line-height: 1.4; font-weight: 600; }
::selection { background: #dceafa; }
.wrapper { width: min(1040px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; top: -70px; left: 20px; padding: 12px 20px; background: var(--accent); color: white; z-index: 20; }
.skip-link:focus { top: 12px; }
.site-header { display: flex; justify-content: flex-end; align-items: center; min-height: 78px; border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; align-items: center; gap: 30px; font-size: 16px; }
.site-header nav a { color: var(--muted); }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--accent); }
.nav-cv span { margin-left: 4px; }
.intro { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; padding: 42px 0 46px; }
.portrait { width: 220px; aspect-ratio: 418/499; object-fit: cover; border-radius: 5px; }
.intro h1 { margin: 0 0 18px; }
.bio { font-size: 18px; }
.research-statement { margin-top: 14px; color: var(--muted); }
.profile-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 22px; font-size: 16px; }
.button { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.eyebrow { font-size: 15px; color: var(--muted); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.quiet-link { font-size: 15px; white-space: nowrap; }
.quiet-link span { margin-left: 4px; }
.ongoing-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; padding: 7px 0 36px; }
.ongoing-project h3 { font-size: 21px; line-height: 1.4; font-weight: 500; margin-bottom: 10px; }
.ongoing-project p { font-size: 17px; line-height: 1.65; color: var(--muted); }
.publication { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding: 24px 0; align-items: start; }
.publication:first-child { padding-top: 7px; }
.publication-visual { display: block; margin-top: 4px; }
.publication-visual img { width: 100%; height: 165px; object-fit: contain; background: white; border-radius: 3px; }
.publication h3 { font-size: 21px; line-height: 1.4; margin-bottom: 8px; font-weight: 500; }
.authors { font-size: 16px; line-height: 1.6; color: var(--muted); }
.authors a { color: inherit; }
.authors strong { font-weight: 600; color: var(--ink); }
.venue { margin-top: 3px; font-size: 16px; color: var(--ink); }
.publication-description { margin-top: 9px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.paper-links { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 9px; font-size: 16px; }
.paper-links span { font-size: 13px; margin-left: 2px; }
.earlier-work { margin-top: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.earlier-work summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; list-style: none; padding: 19px 0; }
.earlier-work summary::-webkit-details-marker { display: none; }
.earlier-work summary > span:first-child { font-weight: 500; font-size: 18px; color: var(--heading); }
.summary-detail { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 20px; }
.expand-symbol { font-size: 25px; line-height: 1; }
.earlier-work[open] .expand-symbol { transform: rotate(45deg); }
.publication--earlier { display: block; padding: 20px 0; }
.publication--earlier:first-child { padding-top: 16px; }
.publication--earlier h3 { font-size: 20px; }
.background-section { padding-top: 42px; padding-bottom: 42px; }
.teaching-section { padding-top: 42px; }
.teaching-entry h3 { font-size: 20px; font-weight: 500; }
.teaching-entry p, .reviewing-note { font-size: 17px; color: var(--muted); }
.teaching-entry p { margin-top: 5px; }
.reviewing-note { margin-top: 18px; }
.education-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding: 14px 0; }
.date { font-size: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.education-row h3 { font-size: 18px; font-weight: 500; }
.education-row div p { font-size: 17px; color: var(--muted); margin-top: 2px; }
.background-note { margin-top: 20px; color: var(--muted); font-size: 16px; max-width: 850px; }
.site-footer { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 25px 0 30px; color: var(--muted); font-size: 14px; }
.site-updated { display: block; margin-top: 4px; }
.site-footer div { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { color: var(--muted); }
.cv-page { --accent: #252525; --heading: #252525; --muted: #565656; max-width: 900px; margin: 0 auto; padding: 46px 0 60px; }
.cv-header h1 { font-size: 38px; margin: 10px 0 12px; }
.cv-header > p:not(.eyebrow) { color: var(--muted); }
.cv-updated { font-size: 14px; margin-top: 15px; }
.cv-section { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 24px; }
.cv-section h2 { font-size: 28px; margin-bottom: 20px; }
.cv-entry + .cv-entry { margin-top: 20px; }
.cv-project-points { margin: 6px 0 0; padding-left: 20px; font-size: 15px; color: var(--muted); }
.cv-project-points li + li { margin-top: 5px; }
.entry-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.entry-heading h3 { font-size: 18px; }
.entry-heading > span { font-size: 15px; color: var(--muted); white-space: nowrap; }
.cv-entry > p { font-size: 17px; }
.cv-detail { font-size: 15px !important; color: var(--muted); }
.cv-subheading { font-size: 18px; margin: 20px 0 14px; }
.cv-publications { padding-left: 22px; margin: 0; }
.cv-publications li { margin-bottom: 22px; padding-left: 8px; }
.cv-publications li::marker { font-size: 15px; color: var(--muted); }
.citation-title { font-size: 18px; font-weight: 500; line-height: 1.5; }
.citation-title a { color: var(--ink); }
.cv-section > p { font-size: 17px; }
.cv-resource-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 4px; font-size: 15px; }
.cv-resource-links a { text-decoration: underline; text-underline-offset: 2px; }
.credits-page { max-width: 720px; padding: 50px 0 90px; }
.credits-page h1 { margin: 12px 0 26px; }
.credits-page > p + p { margin-top: 20px; }
@media (max-width: 800px) {
  .ongoing-projects { grid-template-columns: 1fr; gap: 28px; }
  .wrapper { width: calc(100% - 48px); }
  .intro { grid-template-columns: 190px minmax(0, 1fr); gap: 32px; padding: 35px 0 40px; }
  .portrait { width: 190px; }
  .intro h1 { font-size: 34px; }
  .publication { grid-template-columns: 190px minmax(0, 1fr); gap: 25px; }
  .publication-visual img { height: 140px; }
  .education-row { grid-template-columns: 190px minmax(0, 1fr); gap: 25px; }
  .profile-links { gap: 10px 20px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .entry-heading { flex-wrap: wrap; gap: 2px 16px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrapper { width: calc(100% - 40px); }
  .site-header { min-height: 68px; }
  .site-header nav { gap: 18px; font-size: 14px; }
  .intro { grid-template-columns: 1fr; gap: 24px; padding: 30px 0 35px; }
  .portrait { width: 144px; height: 172px; object-position: center 32%; }
  .intro h1 { font-size: 33px; margin-bottom: 16px; }
  .bio { font-size: 17px; }
  .profile-links { font-size: 16px; gap: 10px 19px; margin-top: 20px; }
  .section-heading { padding: 23px 0; gap: 12px; }
  h2 { font-size: 28px; }
  .quiet-link { font-size: 14px; }
  .publication { grid-template-columns: 1fr; gap: 18px; padding: 25px 0; }
  .publication-visual { max-width: 100%; width: 100%; }
  .publication-visual img { height: auto; aspect-ratio: 16/9; max-height: 220px; object-fit: contain; }
  .publication h3 { font-size: 21px; }
  .authors, .venue { font-size: 16px; }
  .earlier-work summary { align-items: flex-start; }
  .summary-detail { max-width: 140px; font-size: 13px; gap: 14px; line-height: 1.5; }
  .background-section { padding-top: 30px; padding-bottom: 32px; }
  .education-row { grid-template-columns: 1fr; gap: 4px; padding: 13px 0; }
  .site-footer div { gap: 20px; }
  .cv-page { padding: 32px 0 40px; }
  .cv-header h1 { font-size: 33px; }
  .cv-header .profile-links { font-size: 15px; gap: 12px; }
  .cv-section h2 { font-size: 26px; }
  .entry-heading { display: block; }
  .entry-heading > span { display: block; margin-top: 2px; }
  .cv-publications { padding-left: 17px; }
  .cv-publications li { padding-left: 4px; }
  .credits-page { padding: 32px 0 50px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: white; font-size: 11pt; }
  .site-header, .site-footer, .profile-links, .skip-link { display: none; }
  .wrapper { width: 100%; max-width: none; }
  .cv-page { max-width: none; padding: 0; }
  .cv-header h1 { font-size: 28pt; }
  .cv-section { margin-top: 16pt; padding-top: 12pt; }
  .cv-section h2 { font-size: 17pt; }
  .cv-entry, .cv-publications li { break-inside: avoid; }
  .cv-section h2, .cv-subheading { break-after: avoid; }
  a { color: inherit; text-decoration: none; }
}
