:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #252525;
  --muted: #626262;
  --link: #235b8e;
  --line: #dedede;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #191b1d;
  --ink: #e6e6e6;
  --muted: #b2b5b8;
  --link: #92bfe8;
  --line: #3c4044;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 Georgia, "Times New Roman", serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--link); text-decoration: none; text-underline-offset: .18em; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
p { margin: 0 0 .85rem; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(100% - 3rem, 900px); margin-inline: auto; }
main.container .container { width: 100%; }
.site-header { padding-top: 1.75rem; font-family: Arial, Helvetica, sans-serif; font-size: .875rem; }
.nav-wrap { display: flex; align-items: baseline; gap: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
nav { display: flex; flex-wrap: wrap; gap: .5rem 1.35rem; flex: 1; }
nav a { color: var(--muted); }
.theme-toggle { color: var(--muted); font: inherit; padding: 0; border: 0; background: none; cursor: pointer; }
.theme-toggle:hover { color: var(--link); }
.profile { padding-top: 2.4rem; }
h1 { font-size: 2.5rem; font-weight: 500; line-height: 1.2; margin: 0 0 .65rem; }
.affiliation { color: var(--muted); line-height: 1.55; }
.profile-links { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; margin: 1rem 0 1.5rem; font-family: Arial, Helvetica, sans-serif; font-size: .875rem; }
.profile-links a { overflow-wrap: anywhere; }
.section { margin-top: 2.1rem; }
h2 { margin: 0 0 1rem; padding-bottom: .35rem; border-bottom: 1px solid var(--line); font-size: 1.45rem; font-weight: 500; line-height: 1.4; }
h3 { font-size: 1rem; line-height: 1.45; margin: 0 0 .25rem; font-weight: 600; }
.research-list { padding-left: 1.3rem; margin: .65rem 0 0; }
.research-list li { padding-left: .15rem; margin-bottom: .4rem; }
.news-list, .publication-list, .experience-list, .education-list { list-style: none; padding: 0; margin: 0; }
.news-list li { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: .75rem; margin: .45rem 0; }
.news-list p { margin: 0; }
time, .experience-period, .education-period { color: var(--muted); font-variant-numeric: tabular-nums; }
.publication { padding: .5rem 0 1.35rem; }
.publication + .publication { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.publication-content { display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.publication-figure { display: block; background: #fff; padding: .35rem; }
.publication-figure img { width: 100%; height: auto; }
.publication-details { min-width: 0; }
.publication-details h3 { font-family: Arial, Helvetica, sans-serif; font-size: 1rem; line-height: 1.5; }
.authors { margin: .4rem 0 .2rem; font-size: .9375rem; }
.venue { margin: 0 0 .25rem; color: var(--muted); font-style: italic; font-size: .9375rem; }
.publication-link, .all-publications { font-size: .875rem; font-family: Arial, Helvetica, sans-serif; }
.all-publications { margin-top: .25rem; }
.experience-list li, .education-list li { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1rem; margin-bottom: 1.15rem; align-items: center; }
.experience-period, .education-period { margin: 0; font-size: .9375rem; }
.experience-entry, .education-entry { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 1rem; align-items: center; }
.organization-mark, .school-mark { width: 40px; height: 40px; object-fit: contain; }
.experience-entry p, .education-entry p { margin: 0; color: var(--muted); }
.site-footer { margin-top: 3rem; padding-block: 1rem 2rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font: .875rem/1.5 Arial, Helvetica, sans-serif; }
.skip-link { position: absolute; left: 1rem; top: -5rem; padding: .5rem 1rem; background: var(--paper); z-index: 1; }
.skip-link:focus { top: .5rem; }
@media (max-width: 640px) {
  .container { width: calc(100% - 2rem); }
  .site-header { padding-top: 1rem; }
  .nav-wrap { gap: 1rem; }
  nav { gap: .5rem 1rem; }
  .profile { padding-top: 1.75rem; }
  h1 { font-size: 2.1rem; }
  .publication-content { grid-template-columns: 1fr; gap: .9rem; }
  .publication-figure { width: min(100%, 300px); }
  .experience-list li, .education-list li { grid-template-columns: 1fr; gap: .35rem; }
}
@media print {
  :root, html[data-theme="dark"] { --paper: #fff; --ink: #000; --muted: #444; --link: #000; --line: #ccc; color-scheme: light; }
  body { font-size: 10pt; }
  .container { width: 100%; }
  .site-header, .site-footer, .skip-link { display: none; }
  .profile { padding-top: 0; }
  .section { margin-top: 1.25rem; }
  .publication, .experience-list li, .education-list li { break-inside: avoid; }
  h2 { break-after: avoid; }
}

@keyframes scroll-enter {
  from { opacity: .25; transform: perspective(1000px) translateY(16px) rotateX(-5deg); }
  to { opacity: 1; transform: perspective(1000px) translateY(0) rotateX(0); }
}
@media screen and (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .scroll-enter {
    transform-origin: center top;
    animation: scroll-enter 620ms cubic-bezier(.22, 1, .36, 1) both;
  }
  .scroll-enter:focus-within { animation: none; }
}
