:root { color-scheme: light; --bg: #fff; --text: #292929; --muted: #656565; --line: #e8e8e8; --accent: #a3138d; --surface: #f8f7f9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; --bg: #1c1c1d; --text: #e9e9ec; --muted: #b1b1b8; --line: #363638; --accent: #ed8cd9; --surface: #262629; } }
:root[data-theme="dark"] { color-scheme: dark; --bg: #1c1c1d; --text: #e9e9ec; --muted: #b1b1b8; --line: #363638; --accent: #ed8cd9; --surface: #262629; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.7; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
button, summary { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
.container { width: min(100% - 48px, 930px); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--text); font-size: 21px; font-weight: 300; white-space: nowrap; }
.brand strong { font-weight: 650; }
.nav-links { display: flex; align-items: center; gap: 27px; }
.nav-links > a { color: var(--text); font-size: 15px; }
.nav-links > a:hover { color: var(--accent); }
.theme-toggle { border: 0; background: none; color: var(--text); padding: 10px; line-height: 0; border-radius: 50%; }
.theme-toggle:hover { background: var(--surface); }
.skip-link { position: fixed; top: -80px; left: 12px; z-index: 20; background: var(--bg); padding: 12px; }
.skip-link:focus { top: 8px; }
main { padding-block: 65px 70px; }
section { margin-bottom: 46px; }
section:last-child { margin-bottom: 0; }
.about { display: grid; grid-template-columns: minmax(0, 1fr) 225px; gap: 54px; align-items: start; margin-bottom: 40px; }
h1 { font-size: clamp(38px, 5vw, 48px); line-height: 1.15; font-weight: 300; letter-spacing: -1.8px; margin: 0 0 12px; }
h1 strong { font-weight: 650; }
.affiliation { margin: 0 0 27px; color: var(--muted); font-size: 16px; line-height: 1.6; }
p { margin: 0 0 16px; }
.bio strong { font-weight: 600; }
.profile { margin: 6px 0 0; }
.profile img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 3px; box-shadow: 0 3px 12px #00000012; }
.profile figcaption { margin-top: 11px; font-size: 12px; color: var(--muted); text-align: center; }
.social-links { display: flex; gap: 22px; font-size: 15px; }
h2 { font-size: 27px; font-weight: 400; letter-spacing: -.5px; line-height: 1.3; margin: 0 0 20px; }
.interests { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px 26px; flex-wrap: wrap; font-size: 15px; }
.interests li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 9px; vertical-align: middle; background: var(--accent); border-radius: 50%; }
.news-item { display: grid; grid-template-columns: 112px 1fr; gap: 20px; font-size: 15px; }
.news-item time { color: var(--muted); font-variant-numeric: tabular-nums; }
.news-item p { margin: 0; }
.year-heading { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 24px; font-weight: 300; margin: -3px 0 24px; }
.year-heading::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.publication { display: grid; grid-template-columns: 265px minmax(0, 1fr); gap: 28px; }
.figure-link { display: block; position: relative; padding-top: 25px; }
.figure-link img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 3px; }
.venue-badge { position: absolute; top: 0; left: 0; color: #fff; background: #8e177e; font-size: 11px; line-height: 23px; padding: 0 12px; letter-spacing: .4px; border-radius: 2px 2px 0 0; }
.figure-hint { display: block; margin-top: 7px; font-size: 11px; color: var(--muted); }
h3 { font-size: 18px; font-weight: 650; line-height: 1.45; margin: 0 0 8px; }
h3 a { color: var(--text); }
h3 a:hover { color: var(--accent); }
.authors { font-size: 14px; line-height: 1.65; margin: 0 0 7px; }
.authors strong { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.venue { font-size: 14px; font-style: italic; margin: 0 0 8px; color: var(--muted); }
.paper-summary { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.paper-links { display: flex; gap: 8px; margin-bottom: 13px; }
.paper-links a { border: 1px solid var(--text); border-radius: 3px; padding: 1px 12px; color: var(--text); font-size: 12px; line-height: 24px; }
.paper-links a:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); text-decoration: none; }
details { margin-top: 7px; font-size: 13px; }
summary { color: var(--accent); width: fit-content; padding: 2px 0; }
.detail-content { background: var(--surface); border-left: 2px solid var(--accent); margin-top: 10px; padding: 16px; overflow-wrap: anywhere; }
.detail-content p { margin-bottom: 10px; }
pre { font-size: 11px; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#contact { padding-top: 28px; border-top: 1px solid var(--line); }
.contact-intro { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.contact-links { display: flex; gap: 10px 30px; flex-wrap: wrap; font-size: 14px; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; padding: 22px 0; }
.site-footer .container { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .container { width: calc(100% - 36px); }
  .nav { min-height: 64px; gap: 12px; flex-wrap: wrap; padding-block: 10px; }
  .nav-links { gap: 15px; }
  .nav-links > a { font-size: 13px; }
  .brand { font-size: 18px; }
  .theme-toggle { padding: 7px; }
  main { padding-top: 36px; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .profile { grid-row: 1; width: 145px; margin: 0; }
  .profile figcaption { display: none; }
  .affiliation { margin-bottom: 22px; }
  .publication { grid-template-columns: 1fr; gap: 20px; }
  .publication-visual { max-width: 400px; }
  section { margin-bottom: 36px; }
  .news-item { grid-template-columns: 1fr; gap: 3px; }
  html { scroll-padding-top: 120px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
