/* Compact academic layout with native Apple-style type and controls. */
:root {
  color-scheme: light;
  --page: #ffffff;
  --surface: #f3f3f5;
  --surface-hover: #e5e5ea;
  --ink: #1d1d1f;
  --secondary: #515154;
  --muted: #6b6b73;
  --rule: #e1e1e6;
  --accent: #0066cc;
  --accent-hover: #004f9e;
  --figure-bg: #fff;
  --sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #111113;
  --surface: #242427;
  --surface-hover: #303034;
  --ink: #f5f5f7;
  --secondary: #b5b5bd;
  --muted: #9999a3;
  --rule: #303034;
  --accent: #8ebfff;
  --accent-hover: #bad7ff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent-hover); }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
img { display: block; max-width: 100%; }
svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
button[hidden], [hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-weight: 600; }
h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.025em; }
strong, b { font-weight: 600; }
.wrap { width: min(1040px, calc(100% - 64px)); margin-inline: auto; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 20; padding: 12px 20px; background: var(--page); }
.skip-link:focus { top: 16px; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--page); border-bottom: 1px solid var(--rule); }
.site-nav { min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.wordmark { color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 600; letter-spacing: -.03em; white-space: nowrap; }
.wordmark-period { color: var(--accent); }
.nav-actions, .nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--secondary); text-decoration: none; font-size: 13px; padding-block: 12px; }
.nav-links a:hover { color: var(--ink); }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: var(--secondary); border: 0; border-radius: 50%; background: var(--surface); transition: background-color 160ms ease; }
.icon-button:hover { background: var(--surface-hover); }
.sun-icon, [data-theme="dark"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; }
.menu-toggle { display: none; color: var(--ink); background: var(--surface); border: 0; border-radius: 20px; padding: 8px 16px; font-size: 13px; }
.no-script-nav { display: flex; flex-wrap: wrap; gap: 24px; padding-block: 12px; font-size: 13px; }
.about-section { display: grid; grid-template-columns: 240px minmax(0,1fr); align-items: center; column-gap: 24px; padding-block: 32px; }
.hero-copy { grid-column: 2; grid-row: 1; min-width: 0; }
.position { color: var(--secondary); font-size: 13px; margin-bottom: 12px; }
.position span { color: var(--muted); margin-inline: 8px; }
.position a { color: var(--ink); text-decoration: none; font-weight: 500; }
h1 { font-size: clamp(40px, 4vw, 48px); font-weight: 500; line-height: 1.1; letter-spacing: -.035em; }
.intro { font-size: 17px; line-height: 1.55; margin-top: 16px; max-width: 760px; text-wrap: pretty; }
.intro-aside { color: var(--secondary); font-style: italic; }
.intro strong, .paper-summary strong { color: var(--ink); font-weight: 500; }
.about-text { color: var(--secondary); font-size: 14px; margin-top: 12px; max-width: 760px; }
.hero-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.action { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 1px solid transparent; border-radius: 24px; font-size: 13px; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background-color 160ms ease, color 160ms ease, transform 160ms ease; }
.action:hover { text-decoration: none; }
.action:active { transform: scale(.98); }
.action-primary { background: var(--ink); color: var(--page); }
.action-primary:hover { background: var(--secondary); color: var(--page); }
.action-primary .action-label { min-width: 44px; text-align: center; }
.action-secondary { background: var(--surface); color: var(--ink); }
.action-secondary:hover { background: var(--surface-hover); color: var(--ink); }
.email-status:not(:empty):not(.sr-only) { margin-top: 8px; font-size: 13px; user-select: all; color: var(--secondary); }
.profile { grid-column: 1; grid-row: 1; align-self: start; }
.portrait { width: 240px; height: 256px; object-fit: cover; object-position: center bottom; filter: grayscale(1); -webkit-mask-image: linear-gradient(to bottom, #000 76%, transparent 100%); mask-image: linear-gradient(to bottom, #000 76%, transparent 100%); }
.profile-links { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 20px; row-gap: 4px; margin-top: 12px; }
.profile-links a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; color: var(--secondary); font-size: 12px; text-decoration: none; padding-block: 4px; }
.profile-links a:hover { color: var(--accent); }
.profile-links .bio-shortcut svg { width: 12px; height: 12px; }
.background-details { margin: 0; color: var(--secondary); font-size: 12px; }
.background-details[open] { flex-basis: 100%; }
.background-details summary { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding-block: 4px; list-style: none; }
.background-details summary::-webkit-details-marker { display: none; }
.background-details summary svg { width: 12px; height: 12px; }
.background-details[open] summary svg { transform: rotate(180deg); }
summary { cursor: pointer; width: fit-content; padding-block: 8px; color: var(--secondary); }
summary:hover { color: var(--accent); }
.background-copy { max-width: 760px; padding-block: 4px 12px; font-size: 14px; }
.background-copy p + p { margin-top: 12px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-note, .section-link { color: var(--muted); font-size: 12px; }
.section-link { color: var(--accent); text-decoration: none; white-space: nowrap; }
.section-description { color: var(--secondary); font-size: 13px; margin-top: 4px; }
.news-section { padding-block: 24px; border-top: 1px solid var(--rule); }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 20px; padding-block: 8px; }
.news-date { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.news-item p { font-size: 13px; color: var(--secondary); }
.news-item a { text-decoration: none; }
.news-item a:hover { text-decoration: underline; }
.news-archive { margin-top: 8px; font-size: 12px; }
.news-archive .news-list { margin-top: 8px; }
.research-section { border-top: 1px solid var(--rule); padding-block: 28px; }
.year-index { display: flex; flex-wrap: wrap; gap: 20px; }
.year-index a { color: var(--secondary); font-size: 12px; text-decoration: none; padding-block: 8px; font-variant-numeric: tabular-nums; }
.year-index a:hover { color: var(--accent); }
.contribution-note { color: var(--muted); font-size: 11px; margin-top: -4px; }
.research-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.topic-filter { border: 0; border-radius: 20px; min-height: 36px; padding: 6px 14px; background: var(--surface); color: var(--secondary); font-size: 12px; transition: background-color 160ms ease, color 160ms ease; }
.topic-filter:hover { background: var(--surface-hover); color: var(--ink); }
.topic-filter[aria-pressed="true"] { background: var(--ink); color: var(--page); }
.research-year { margin-top: 16px; scroll-margin-top: 0; }
.year-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 0; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.year-heading::after { content: ''; height: 1px; background: var(--rule); flex: 1; }
.paper { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 24px; padding-block: 20px; scroll-margin-top: 0; }
.paper + .paper { border-top: 1px solid var(--rule); }
.paper-visual { align-self: start; margin-top: 4px; }
.figure-link { display: flex; align-items: center; justify-content: center; width: 100%; height: 144px; padding: 0; background: var(--figure-bg); border: 0; border-radius: 4px; transition: opacity 160ms ease; }
.figure-link:hover { opacity: .85; }
.figure-link img { width: 100%; height: 100%; object-fit: contain; }
.paper-visual figcaption { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 11px; color: var(--muted); }
.paper-visual figcaption a { color: var(--muted); text-decoration: none; padding-block: 4px; }
.figure-type { padding-block: 4px; }
.paper h4 { margin: 0; font-size: 18px; line-height: 1.35; font-weight: 500; letter-spacing: -.01em; text-wrap: pretty; }
.paper-title { color: var(--ink); text-decoration: none; }
.paper-title:hover { color: var(--accent); }
.venue { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 4px; }
.award { color: var(--ink); font-weight: 600; }
.authors { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 4px; }
.authors strong { color: var(--ink); font-weight: 500; }
.paper-summary { color: var(--secondary); font-size: 14px; line-height: 1.55; margin-top: 8px; }
.paper-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.paper-links a { font-size: 12px; text-decoration: none; padding-block: 4px; }
.figure-link { cursor: zoom-in; }
body.preview-open { overflow: hidden; }
.figure-preview:not([open]) { display: none; }
.figure-preview { width: min(1100px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 20px; border: 1px solid var(--rule); border-radius: 16px; background: var(--page); color: var(--ink); overflow: auto; }
.figure-preview::backdrop { background: rgb(0 0 0 / .65); }
.preview-backdrop { position: fixed; inset: 0; z-index: 20; background: rgb(0 0 0 / .65); }
.figure-preview.preview-fallback { display: block; position: fixed; z-index: 21; top: 50%; left: 50%; margin: 0; transform: translate(-50%, -50%); }
.preview-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.preview-header h2 { font-size: 16px; font-weight: 500; line-height: 1.4; letter-spacing: 0; align-self: center; }
.preview-close { width: 40px; height: 40px; flex-shrink: 0; }
.preview-image { width: 100%; height: auto; max-height: calc(100dvh - 210px); object-fit: contain; background: var(--figure-bg); border-radius: 4px; }
.preview-source { display: inline-block; margin-top: 12px; font-size: 12px; text-decoration: none; }
.speaker-section { border-top: 1px solid var(--rule); padding-block: 20px; }
.speaker-details > summary { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0; list-style: none; }
.speaker-details > summary::-webkit-details-marker { display: none; }
.speaker-details h2 { font-size: 15px; letter-spacing: 0; font-weight: 500; }
.speaker-details > summary > span { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.speaker-details[open] > summary svg { transform: rotate(90deg); }
.speaker-content { padding-top: 16px; }
.copy-button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 0; border-radius: 24px; background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 500; min-height: 40px; white-space: nowrap; }
.copy-button:hover { background: var(--surface-hover); }
.speaker-bio { color: var(--secondary); font-size: 14px; line-height: 1.7; max-width: 920px; }
.bio-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 12px; font-size: 12px; }
.bio-footer a { text-decoration: none; }
#copy-status { color: var(--secondary); }
.elsewhere-section { border-top: 1px solid var(--rule); padding-block: 24px; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.elsewhere-section h2 { font-size: 13px; font-weight: 500; letter-spacing: 0; }
.elsewhere-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 12px; }
.elsewhere-links a { text-decoration: none; }
.site-footer { border-top: 1px solid var(--rule); padding-block: 20px 28px; color: var(--muted); font-size: 11px; display: flex; justify-content: space-between; gap: 20px; }
.site-footer div { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
@media (max-width: 900px) {
  .about-section { column-gap: 28px; grid-template-columns: 184px minmax(0,1fr); }
  .portrait { width: 184px; height: 196px; }
  .intro { font-size: 16px; }
  .about-text { font-size: 14px; }
  .paper { grid-template-columns: 184px minmax(0,1fr); gap: 20px; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 76px; }
  .wrap { width: calc(100% - 40px); }
  .site-nav { min-height: 60px; }
  .wordmark { font-size: 17px; }
  .nav-actions { gap: 8px; }
  .menu-toggle { display: block; min-height: 40px; }
  .nav-links { position: absolute; z-index: 5; top: 60px; left: 0; width: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px; background: var(--page); border-bottom: 1px solid var(--rule); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px; font-size: 15px; }
  .about-section { grid-template-columns: minmax(0,1fr) 104px; column-gap: 16px; padding-block: 24px; }
  .hero-copy, .profile { display: contents; }
  .position { grid-column: 1; grid-row: 1; font-size: 12px; margin-bottom: 12px; }
  h1 { grid-column: 1; grid-row: 2; font-size: clamp(30px, 8.5vw, 40px); align-self: end; }
  .portrait { grid-column: 2; grid-row: 1/3; width: 104px; height: 112px; align-self: center; }
  h1 { align-self: center; }
  .intro { grid-column: 1/-1; grid-row: 3; font-size: 16px; margin-top: 16px; }
  .about-text { grid-column: 1/-1; grid-row: 4; font-size: 14px; margin-top: 12px; }
  .hero-contact { grid-column: 1/-1; grid-row: 5; margin-top: 16px; gap: 8px; }
  .action { min-height: 44px; padding-inline: 14px; font-size: 12px; }
  .action svg { width: 15px; height: 15px; }
  .email-status { grid-column: 1/-1; grid-row: 6; }
  .profile-links { grid-column: 1/-1; grid-row: 7; margin-top: 8px; column-gap: 16px; row-gap: 0; }
  .profile-links a, .background-details summary { min-height: 36px; display: inline-flex; align-items: center; }
  h2 { font-size: 22px; }
  .section-heading { gap: 12px; margin-bottom: 12px; }
  .section-note { display: none; }
  .news-section, .research-section, .speaker-section { padding-block: 24px; }
  .news-item { grid-template-columns: 56px minmax(0,1fr); gap: 12px; padding-block: 8px; }
  .news-date { font-size: 11px; }
  .research-heading { flex-wrap: wrap; gap: 8px; }
  .section-description { font-size: 12px; }
  .year-index { gap: 20px; }
  .year-index a { min-height: 40px; display: flex; align-items: center; }
  .research-year { margin-top: 16px; }
  .paper { grid-template-columns: 104px minmax(0,1fr); column-gap: 16px; row-gap: 8px; padding-block: 20px; }
  .paper-copy { display: contents; }
  .paper-visual { grid-column: 1; grid-row: 1/3; margin-top: 0; }
  .figure-link { height: 100px; padding: 0; border-radius: 4px; }
  .paper-visual figcaption { justify-content: flex-end; margin-top: 0; }
  .paper-visual figcaption a { padding-block: 4px; }
  .figure-type { display: none; }
  .venue { grid-column: 2; grid-row: 1; margin: 0; font-size: 11px; line-height: 1.4; }
  .paper h4 { grid-column: 2; grid-row: 2; font-size: 16px; line-height: 1.35; }
  .authors { grid-column: 1/-1; grid-row: 3; margin-top: 0; }
  .paper-summary { grid-column: 1/-1; grid-row: 4; margin-top: 0; }
  .paper-links { grid-column: 1/-1; grid-row: 5; margin-top: 0; }
  .paper-links a { min-height: 32px; display: flex; align-items: center; }
  .speaker-section .section-heading { flex-wrap: wrap; }
  .elsewhere-section { flex-direction: column; gap: 12px; padding-block: 20px; }
  .elsewhere-links { gap: 20px; }
  .elsewhere-links a { padding-block: 8px; }
  .site-footer { flex-direction: column; gap: 8px; }
  .site-footer div { column-gap: 20px; row-gap: 0; }
  .site-footer a { padding-block: 8px; }
}
@media (max-width: 360px) {
  .about-section { grid-template-columns: minmax(0,1fr) 88px; column-gap: 12px; }
  h1 { font-size: 30px; }
  .portrait { width: 88px; height: 88px; }
  .action { padding-inline: 12px; }
  .paper { grid-template-columns: 88px minmax(0,1fr); gap: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .action, .icon-button, .figure-link, .topic-filter { transition: none; }
}
@media print {
  :root, :root[data-theme="dark"] { --page: white; --ink: black; --secondary: #333; --muted: #444; --rule: #ccc; --accent: #222; }
  .wrap { width: 100%; }
  .nav-actions, .background-details, .hero-contact, .copy-button, .elsewhere-section, .year-index, .research-topics { display: none; }
  .about-section { padding-top: 24px; }
  .paper { break-inside: avoid; grid-template-columns: 160px 1fr; gap: 20px; }
  .figure-link { height: 120px; }
  .news-archive { display: none; }
}
