:root {
  color-scheme: light;
  --background: #fafbfc;
  --ink: #26333f;
  --muted: #586673;
  --accent: #285775;
  --accent-hover: #143a53;
  --line: #dde3e8;
  --surface: #eef2f5;
  --focus: #397ea5;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #171c22;
  --ink: #e7edf3;
  --muted: #b6c1cc;
  --accent: #9fc9e7;
  --accent-hover: #c9e5fa;
  --line: #35414d;
  --surface: #222b35;
  --focus: #a6d6f4;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --background: #171c22;
    --ink: #e7edf3;
    --muted: #b6c1cc;
    --accent: #9fc9e7;
    --accent-hover: #c9e5fa;
    --line: #35414d;
    --surface: #222b35;
    --focus: #a6d6f4;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--background); color: var(--ink); font: 18px/1.65 var(--serif); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a[href]:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: .19em; text-decoration-thickness: .065em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; border-radius: 2px; }
strong { font-weight: 700; }
h1, h2, h3, nav, .wordmark, .affiliation, .profile-links, .venue, .paper-links, .contribution-note, time, .site-footer { font-family: var(--sans); }
h1, h2, h3, p { margin-top: 0; }
.skip-link { position: absolute; left: 1rem; top: -6rem; z-index: 10; background: var(--surface); padding: .5rem 1rem; font-family: var(--sans); }
.skip-link:focus { top: .5rem; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1000px; padding: 18px 30px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-actions { display: flex; align-items: center; gap: 23px; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 7px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; flex-shrink: 0; }
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { color: var(--ink); background: var(--surface); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun, :root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.wordmark { font-size: 14px; font-weight: 650; color: var(--ink); text-decoration: none; letter-spacing: .01em; }
nav { display: flex; gap: 28px; font-size: 14px; font-weight: 550; }
nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
nav a:hover { color: var(--accent); }
.page { max-width: 1000px; margin: 0 auto; padding: 54px 30px 64px; }
.about { display: grid; grid-template-columns: minmax(0, 1fr) 242px; gap: 54px; align-items: start; }
h1 { margin: 0 0 23px; font-size: 37px; line-height: 1.2; font-weight: 750; letter-spacing: -.035em; }
h1 span { font-weight: 450; }
.bio p { margin: 0 0 19px; }
.bio p:last-child { margin-bottom: 0; }
.bio a { text-decoration: none; }
.profile { padding-top: 1px; text-align: center; }
.portrait { display: block; width: 226px; height: 226px; margin: 0 auto; border-radius: 12px; object-fit: cover; background: #e6edf2; }
.affiliation { font-size: 14px; line-height: 1.65; margin: 19px 0 11px; }
.affiliation span { color: var(--muted); }
.affiliation a, .affiliation a:hover { color: inherit; text-decoration: none; }
.profile-links { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 18px; row-gap: 5px; font-size: 13.5px; font-weight: 550; }
.profile-links a { text-decoration: none; }
.profile-email { margin: 9px 0 0; font-family: var(--sans); font-size: 13px; line-height: 1.6; color: var(--muted); }
.section { margin-top: 49px; }
h2 { margin: 0 0 20px; font-size: 25px; font-weight: 730; line-height: 1.25; letter-spacing: -.025em; }
.news-list, .paper-list { list-style: none; margin: 0; padding: 0; }
.news-list { display: grid; gap: 11px; }
.news-list li { display: grid; grid-template-columns: 100px minmax(0, 1fr); column-gap: 24px; align-items: baseline; }
.news-list time { font-size: 13px; font-weight: 650; color: var(--muted); white-space: nowrap; }
.news-list p { margin: 0; font-size: 17px; line-height: 1.6; }
.research { margin-top: 43px; }
.research h2 { margin-bottom: 9px; }
.contribution-note { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 0 0 25px; }
.paper { padding: 0 0 26px; }
.paper-list > li + li { border-top: 1px solid var(--line); padding-top: 25px; }
.paper-list > li:last-child .paper { padding-bottom: 0; }
h3 { font-size: 18.5px; line-height: 1.4; font-weight: 680; margin: 0 0 8px; letter-spacing: -.01em; }
h3 a { text-decoration: none; }
.authors { font-size: 15.5px; line-height: 1.55; margin: 0 0 6px; color: var(--muted); }
.authors strong { color: var(--ink); }
.author-star { font-size: .8em; line-height: 0; vertical-align: super; }
.venue { margin: 0 0 9px; font-size: 13px; line-height: 1.55; color: var(--accent); font-weight: 650; }
.venue-separator { margin: 0 3px; color: var(--muted); }
.venue-detail { color: var(--muted); font-weight: 450; }
.paper-summary { margin: 0 0 9px; font-size: 16px; line-height: 1.6; }
.paper-links { display: inline-flex; flex-wrap: wrap; gap: 17px; margin: 0 16px 0 0; font-size: 13px; font-weight: 550; vertical-align: top; line-height: 1.8; }
.paper-links a { text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-inner { max-width: 1000px; padding: 22px 30px; margin: auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.footer-copy p { margin: 0; }
.footer-copy .footer-credit { margin-top: 5px; font-size: 11.5px; line-height: 1.75; }
.back-to-top { white-space: nowrap; flex-shrink: 0; }
.site-footer a { text-decoration: none; }
.error-page { padding-top: 110px; }
.error-code { font: 600 15px/1.5 var(--sans); color: var(--muted); }

@media (max-width: 760px) {
  .header-inner { padding: 15px 24px; }
  nav { gap: 20px; }
  .header-actions { gap: 17px; }
  .page { padding: 37px 24px 46px; }
  .about { grid-template-columns: minmax(0, 1fr) 178px; gap: 27px; }
  h1 { font-size: 31px; }
  .portrait { width: 170px; height: 170px; }
  .affiliation { font-size: 12.5px; }
  .profile-links { font-size: 12.5px; column-gap: 12px; }
  body { font-size: 17px; }
  .section { margin-top: 36px; }
  .footer-inner { padding-right: 24px; padding-left: 24px; }
}

@media (max-width: 580px) {
  .header-inner { padding: 14px 21px; gap: 10px; }
  .wordmark { font-size: 13px; }
  nav { font-size: 13px; gap: 16px; }
  .header-actions { gap: 11px; }
  .theme-toggle { width: 32px; height: 32px; padding: 6px; }
  .page { padding: 32px 22px 40px; }
  .about { display: flex; flex-direction: column; gap: 26px; }
  h1 { font-size: 34px; margin-bottom: 21px; }
  .profile { width: 100%; padding: 0; }
  .portrait { width: 182px; height: 182px; }
  .affiliation { font-size: 13px; margin-top: 14px; margin-bottom: 9px; }
  .profile-links { font-size: 13px; gap: 20px; }
  h2 { font-size: 23px; margin-bottom: 18px; }
  .news-list { gap: 17px; }
  .news-list li { grid-template-columns: 1fr; gap: 3px; }
  .news-list time { font-size: 12px; }
  .news-list p { font-size: 16px; }
  .research { margin-top: 36px; }
  h3 { font-size: 18px; }
  .authors { font-size: 14.5px; }
  .venue { font-size: 12px; }
  .paper-summary { font-size: 15.5px; }
  .footer-inner { font-size: 11px; padding: 20px 22px; flex-direction: column; gap: 13px; }
  .footer-copy .footer-credit { font-size: 11px; }
}

@media (max-width: 359px) {
  .header-inner { padding-right: 15px; padding-left: 15px; }
  nav { gap: 11px; font-size: 12px; }
  .header-actions { gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  :root { --background: #fff !important; --ink: #111 !important; --muted: #444 !important; --accent: #111 !important; --line: #ddd !important; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .site-header, .skip-link, .back-to-top { display: none; }
  .page { padding: 0; }
  .about { grid-template-columns: minmax(0, 1fr) 140px; gap: 24px; }
  .portrait { width: 130px; height: 130px; }
  .paper { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
