:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--background);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  --link: #246678;
  --link-hover: #174553;
  --background: #fff;
  --surface: #f3f6f7;
  --text: #303638;
  --heading: #242d30;
  --summary: #4b5559;
  --bio: #36484e;
  --divider: #858d90;
  --muted: #646d70;
  --rule: #e7ebec;
  --heading-font: Georgia, "Times New Roman", serif;
}
/* Follow the system even when JavaScript is disabled. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --background: #1b2025;
    --surface: #242c33;
    --text: #d2d7da;
    --heading: #e3e7e9;
    --link: #a0c8d5;
    --link-hover: #bfe0ec;
    --muted: #a0acb4;
    --rule: #343e46;
    --summary: #bac4ca;
    --bio: #c1d6de;
    --divider: #89979f;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #1b2025;
  --surface: #242c33;
  --text: #d2d7da;
  --heading: #e3e7e9;
  --link: #a0c8d5;
  --link-hover: #bfe0ec;
  --muted: #a0acb4;
  --rule: #343e46;
  --summary: #bac4ca;
  --bio: #c1d6de;
  --divider: #89979f;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--link); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
p { margin: 0 0 1.1rem; }
.site-content { max-width: 816px; padding: 24px 28px 0; margin: 0 auto; }
.page-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; margin-bottom: 28px; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 13px; margin-left: auto; border: 1px solid var(--rule); border-radius: 22px; font: inherit; font-size: .875rem; color: var(--muted); background: var(--background); cursor: pointer; }
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover, .theme-toggle[aria-pressed="true"] { background: var(--surface); color: var(--link); }
.profile { display: grid; grid-template-columns: minmax(0, 1fr) 192px; align-items: center; gap: 42px; margin-bottom: 54px; }
h1, h2 { font-family: var(--heading-font); font-weight: 400; color: var(--heading); }
h1 { font-size: 2.6rem; line-height: 1.2; letter-spacing: -.035em; margin: 0 0 24px; }
.portrait { display: block; width: 192px; height: 192px; object-fit: cover; border-radius: 50%; }
.profile-links { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 24px; }
.profile-links span { color: var(--divider); }
.personal-quote { max-width: 70ch; margin: -12px 0 44px; padding-left: 18px; border-left: 2px solid var(--rule); font-family: var(--heading-font); font-size: .875rem; line-height: 1.75; color: var(--muted); }
.personal-quote p { margin: 0 0 8px; font-style: italic; }
.personal-quote cite { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .875rem; font-style: normal; }
h2 { font-size: 1.8rem; line-height: 1.3; letter-spacing: -.02em; margin: 0 0 16px; }
.research-intro { margin-bottom: 10px; }
.contribution-note { color: var(--muted); font-size: .875rem; margin-bottom: 0; }
.research-list { margin-top: 28px; }
.research-group + .research-group { margin-top: 32px; }
.research-group-title { margin: 0 0 16px; font-family: var(--heading-font); font-size: 1.4rem; line-height: 1.35; font-weight: 400; color: var(--heading); }
.paper { padding: 24px 0; border-top: 1px solid var(--rule); }
.paper h3, .paper h4 { font-size: 1.0625rem; line-height: 1.5; margin: 0 0 7px; font-weight: 600; }
.paper p { margin: 0; }
.paper-authors { line-height: 1.55; }
.paper-authors strong { font-weight: 600; }
.paper-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 10px; margin-top: 7px; color: var(--muted); font-size: .9375rem; }
.meta-divider { color: var(--divider); }
.paper-summary { margin-top: 10px !important; color: var(--summary); }
.site-footer { max-width: 816px; margin: 36px auto 0; padding: 0 28px 32px; color: var(--muted); font-size: .875rem; }
.home-link { display: inline-block; }
.prose { min-height: 50vh; }
.prose p { max-width: 68ch; margin-bottom: 1.4rem; }
.bio-intro { font-family: var(--heading-font); font-size: 1.3rem; line-height: 1.6; color: var(--bio); }
.prose .profile-links { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule); }
.skip-link { position: absolute; left: 16px; top: -80px; padding: 8px 12px; background: var(--background); z-index: 10; }
.skip-link:focus { top: 8px; }
@media (max-width: 640px) {
  .site-content { padding: 16px 24px 0; }
  .page-tools { margin-bottom: 24px; }
  .profile { grid-template-columns: 1fr; gap: 28px; margin-bottom: 42px; }
  .profile-photo { grid-row: 1; }
  .portrait { width: 144px; height: 144px; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.65rem; }
  .paper { padding: 22px 0; }
  .site-footer { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 360px) {
  .site-content { padding-left: 20px; padding-right: 20px; }
  .profile-links { gap: 10px; }
}
@media print {
  :root, :root[data-theme] {
    color-scheme: light;
    --background: #fff;
    --text: #303638;
    --heading: #242d30;
    --link: #246678;
    --muted: #646d70;
    --rule: #e7ebec;
    --summary: #4b5559;
    --bio: #36484e;
    --divider: #858d90;
  }
  .site-content { max-width: none; padding: 0; }
  .paper { break-inside: avoid; }
  .skip-link, .site-footer, .page-tools { display: none; }
}
