:root {
  color-scheme: light;
  --text: #222;
  --muted: #555;
  --link: #1764ae;
  --accent: #a83725;
  --page-width: 1040px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: #ad4c00; text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 5px; }
.page { max-width: var(--page-width); margin: 76px auto 72px; padding: 0 24px; overflow-wrap: break-word; }
section { margin-top: 34px; scroll-margin-top: 5rem; }
h1 { font-size: 34px; font-weight: 400; line-height: 1.25; margin: 0 0 10px; text-align: center; }
h2 { font-size: 24px; font-weight: 400; line-height: 1.3; margin: 0 0 16px; }
h4 { font-size: 16px; font-weight: 600; margin: 18px 0 8px !important; }
p { margin: 0 0 14px; }
ul, ol { margin: 0; padding-left: 22px; }
li { padding-left: 2px; margin-bottom: 7px; }
.profile { display: grid; grid-template-columns: minmax(0, 1fr) 200px; column-gap: 34px; align-items: start; margin-top: 0; }
.profile-copy { display: contents; }
.profile-heading { grid-column: 1; grid-row: 1; padding-bottom: 26px; text-align: center; }
.profile-copy > p { grid-column: 1; }
.profile-role { text-align: center; color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }
.portrait { width: 200px; height: auto; object-fit: contain; border-radius: 0; grid-column: 2; grid-row: 2 / span 3; margin-top: 0; }
.profile-links { grid-column: 1; display: flex; justify-content: center; gap: 0; flex-wrap: wrap; margin-top: 20px; }
.profile-links a + a::before { content: '/'; color: #777; padding: 0 9px; display: inline-block; }
.email-address { text-align: center; font-size: 14px; color: var(--muted); margin-top: 6px; margin-bottom: 0; }
.site-header { position: fixed; top: 18px; right: max(20px, calc((100vw - var(--page-width)) / 2 + 24px)); z-index: 10; }
.section-menu { position: relative; font-size: 15px; }
.section-menu summary { display: flex; align-items: center; gap: 9px; padding: 9px 13px; border: 1px solid #ddd; border-radius: 5px; background: #fff; cursor: pointer; list-style: none; }
.section-menu summary::-webkit-details-marker { display: none; }
.section-menu[open] summary { border-color: #aaa; }
.section-menu nav { position: absolute; right: 0; top: calc(100% + 8px); width: 226px; max-height: calc(100dvh - 95px); overflow-y: auto; padding: 8px 0; border: 1px solid #ddd; border-radius: 5px; box-shadow: 0 5px 18px #0000000d; background: #fff; }
.section-menu nav a { display: block; padding: 7px 16px; color: var(--text); }
.section-menu nav a:hover { background: #f6f8fa; color: var(--link); text-decoration: none; }
.news-list { padding-left: 20px; }
.news-list strong { font-weight: 400; color: var(--muted); }
.news-history { margin-top: 12px; }
.news-history summary { color: var(--link); cursor: pointer; width: fit-content; padding: 5px 0; }
.news-archive { margin-top: 12px; }
.publication-list { list-style: none; padding: 0; }
.publication-list > li { margin: 0 0 24px; padding: 0; }
.paper-title { font-weight: 600; line-height: 1.5; margin-bottom: 2px; }
.paper-authors, .paper-venue { line-height: 1.6; }
.paper-links { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-top: 3px; font-size: 15px; }
.paper-note { color: var(--accent); font-weight: 500; }
#awards strong { color: var(--accent); }
.skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-200%); background: #fff; padding: 8px 12px; z-index: 20; }
.skip-link:focus { transform: translateY(0); }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .page { margin-top: 74px; padding: 0 22px; }
  .site-header { top: 14px; right: 18px; }
  .profile { display: flex; flex-direction: column; gap: 0; }
  .profile-heading { width: 100%; padding-bottom: 0; }
  .portrait { order: 0; align-self: center; width: 150px; height: auto; margin: 22px 0; }
  .profile-copy > p { order: 1; }
  .profile-links { order: 2; align-self: center; }
  .profile-copy > .email-address { order: 3; align-self: center; }
  h1 { font-size: 32px; }
  h2 { font-size: 23px; }
  .profile-role { margin-top: 0; }
  section { margin-top: 30px; }
  .section-menu nav a { padding-top: 9px; padding-bottom: 9px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-header, .skip-link { display: none; }
  .page { max-width: none; margin: 0; padding: 0; }
  .news-history:not([open]) > * { display: block; }
  a { color: inherit; }
}
