:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #282c31;
  --muted: #626970;
  --line: #e3e5e8;
  --accent: #376992;
  --highlight: #27766a;
  --soft: #f3f4f6;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 36px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button, a, summary { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
svg { display: block; }
.muted { color: var(--muted); }
.site-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 54px; max-width: 1160px; margin: 0 auto; padding: 0 44px; }
.sidebar { position: sticky; top: 0; align-self: start; height: 100dvh; min-height: 580px; padding: 64px 28px 32px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.portrait { width: 146px; height: 146px; background: var(--soft); display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; border-radius: 18px; }
.portrait > span:first-child { font-size: 32px; font-weight: 400; letter-spacing: 1px; color: var(--muted); }
.portrait-caption { position: absolute; bottom: 12px; font-size: 10px; color: var(--muted); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.profile h2 { font-size: 24px; font-weight: 600; line-height: 1.3; margin-top: 22px; }
.profile-family-name { display: block; white-space: nowrap; }
.profile-role { font-size: 14px; line-height: 1.6; margin-top: 7px; }
.profile > .muted { font-size: 14px; margin-top: 4px; }
.profile-office { font-size: 12px; line-height: 1.6; margin-top: 12px; }
.profile-office a { display: inline-flex; align-items: flex-start; gap: 6px; }
.profile-office .link-icon { margin-top: 2px; width: 14px; height: 14px; flex-basis: 14px; }
.main-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 34px; }
.main-nav a { font-size: 14px; color: var(--muted); }
.main-nav a.active { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.social-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 30px; font-size: 13px; }
.social-links a { display: inline-flex; align-items: center; gap: 9px; }
.link-icon { width: 17px; height: 17px; flex: 0 0 17px; }
main { min-width: 0; padding-top: 63px; }
.intro { margin-bottom: 43px; }
h1 { font-size: 27px; line-height: 1.3; font-weight: 600; margin-bottom: 18px; }
.intro-copy { font-size: 16px; line-height: 1.8; }
.intro-copy p + p { margin-top: 13px; }
.intro-copy .research-emphasis { color: var(--accent); font-weight: 650; }
.intro-copy a { text-decoration: underline; text-decoration-color: #37699255; text-underline-offset: 3px; }
.intro-copy a:hover { text-decoration-color: currentColor; }
.interests { color: var(--muted); font-size: 14px; line-height: 1.75; margin-top: 17px; }
.interests-label { color: var(--text); }
.interests strong { color: var(--accent); font-weight: 650; }
.trajectory { margin-top: 28px; }
.trajectory > h2 { font-size: 14px; font-weight: 600; margin-bottom: 17px; }
.education-timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.timeline-entry { position: relative; padding: 18px 13px 0 0; border-top: 1px solid var(--line); }
.timeline-entry::before { content: ''; position: absolute; width: 7px; height: 7px; left: 0; top: -4px; border: 1px solid var(--highlight); background: var(--bg); border-radius: 50%; }
.timeline-entry.is-current::before { background: var(--highlight); }
.timeline-entry h3 { font-size: 13px; font-weight: 600; line-height: 1.5; }
.timeline-degree { color: var(--highlight); font-weight: 700; }
.timeline-institution, .timeline-period { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 4px; }
.timeline-period { font-variant-numeric: tabular-nums; }
section:not(.intro) { margin-bottom: 42px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.section-heading h2 { font-size: 24px; font-weight: 500; line-height: 1.35; }
#publication-count { color: var(--muted); font-size: 12px; }
.project { padding: 22px 0; border-bottom: 1px solid var(--line); }
.project:last-child { border-bottom: 0; padding-bottom: 0; }
.project.has-image { display: grid; grid-template-columns: minmax(0, 1fr) 165px; gap: 25px; align-items: center; }
.project-logo { width: 165px; height: 72px; display: flex; align-items: center; justify-content: center; }
.project-image { width: 165px; height: auto; max-height: 72px; object-fit: contain; }
.project-logo--virtues .project-image { width: 106px; }
.project-logo-crop { position: relative; width: 80px; height: 26px; overflow: hidden; }
.project-logo--spora .project-image { position: absolute; width: 140px; max-width: none; height: auto; left: -2px; top: -10px; }
.project h3 { font-size: 17px; line-height: 1.4; font-weight: 600; margin-bottom: 7px; }
.project-description { font-size: 15px; line-height: 1.75; }
.project-label { font-size: 11px; color: var(--muted); margin-top: 7px; }
.project details { margin-top: 9px; }
.project summary { color: var(--accent); font-size: 12px; cursor: pointer; width: fit-content; }
.project details > p { font-size: 13px; color: var(--muted); line-height: 1.75; margin-top: 10px; }
.publication-controls { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 17px 0 23px; }
.filters { display: flex; gap: 17px; }
.filter { border: 0; padding: 3px 0; border-bottom: 1px solid transparent; background: transparent; color: var(--muted); font-size: 13px; }
.filter[aria-pressed='true'] { color: var(--accent); border-bottom-color: var(--accent); }
.filter:hover { color: var(--accent); }
.search { display: flex; align-items: center; gap: 7px; max-width: 175px; color: var(--muted); }
.search svg { flex-shrink: 0; }
.search input { min-width: 0; width: 100%; padding: 5px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); font-size: 13px; }
.search input::placeholder { color: var(--muted); }
.pub-year-group { display: grid; grid-template-columns: 43px minmax(0, 1fr); gap: 16px; margin-top: 6px; }
.pub-year { color: var(--muted); font-size: 13px; font-weight: 400; padding-top: 3px; font-variant-numeric: tabular-nums; }
.publication { padding-bottom: 21px; margin-bottom: 21px; border-bottom: 1px solid var(--line); }
.publication-main { min-width: 0; }
.publication-main.has-image { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; align-items: start; }
.publication-info { min-width: 0; }
.publication-thumbnail { width: auto; height: auto; max-width: 200px; max-height: 144px; justify-self: center; object-fit: contain; border-radius: 4px; background: #fff; }
.publication-figure { display: block; width: fit-content; max-width: 100%; padding: 0; border: 0; border-radius: 4px; background: transparent; justify-self: center; cursor: zoom-in; }
.publication-figure:hover { outline: 1px solid var(--accent); outline-offset: 3px; }
.figure-is-open { overflow: hidden; }
.figure-viewer { width: 1100px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); box-shadow: 0 16px 64px #0003; }
.figure-viewer::backdrop { background: rgb(22 28 36 / 66%); }
.figure-viewer-content { display: flex; flex-direction: column; gap: 14px; }
.figure-viewer-heading { display: flex; align-items: flex-start; gap: 16px; }
.figure-viewer-heading h2 { flex: 1; align-self: center; font-size: 16px; font-weight: 600; line-height: 1.5; }
.figure-close { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); }
.figure-close:hover { color: var(--accent); background: var(--soft); }
.figure-stage { display: flex; align-items: center; justify-content: center; min-height: 0; background: #fff; }
.figure-full { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 230px); object-fit: contain; border-radius: 4px; }
.figure-viewer-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px 24px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.figure-viewer-meta a { flex-shrink: 0; }
.pub-year-group:last-child .publication:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.publication h3 { font-size: 16px; line-height: 1.45; font-weight: 700; margin-bottom: 6px; }
.pub-authors strong { color: var(--text); font-weight: 700; }
.pub-authors { font-size: 13px; color: var(--muted); line-height: 1.7; }
.pub-venue { font-size: 13px; color: var(--muted); margin-top: 2px; }
.pub-venue em { font-style: italic; }
.author-star { font-size: .85em; line-height: 0; margin-left: 1px; color: var(--text); }
.pub-actions { display: flex; flex-wrap: wrap; align-items: start; gap: 6px 14px; margin-top: 8px; font-size: 13px; color: var(--accent); }
.pub-actions a, .pub-actions .link-placeholder { display: inline-flex; align-items: center; gap: 5px; }
.pub-actions .link-placeholder { color: var(--muted); cursor: default; }
summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.publication-resources { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.pub-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 31px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); color: var(--accent); font: 13px/1.6 var(--font); text-decoration: none; }
.pub-button:not(:disabled):hover { border-color: var(--accent); background: var(--soft); text-decoration: none; }
.pub-button:disabled { color: var(--muted); background: var(--soft); cursor: not-allowed; }
.empty-state { padding: 20px 0; color: var(--muted); font-size: 13px; }
footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 20px 0 16px; color: var(--muted); font-size: 12px; }
.footer-separator { padding: 0 8px; }
.template-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px 14px; padding-bottom: 28px; color: var(--muted); font-size: 10px; }
.template-note a { white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 15px; background: var(--bg); padding: 10px; z-index: 20; }
.skip-link:focus { top: 10px; }
@media (max-width: 1000px) {
  .site-shell { grid-template-columns: 185px minmax(0, 1fr); gap: 38px; padding: 0 30px; }
  .sidebar { padding-right: 24px; }
  .publication-main.has-image { grid-template-columns: minmax(0, 1fr) 180px; gap: 18px; }
  .publication-thumbnail { max-width: 180px; max-height: 130px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 26px; }
  .site-shell { display: block; max-width: 660px; padding: 0 28px; }
  .sidebar { position: relative; display: block; min-height: 0; height: auto; padding: 30px 0 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .profile { min-height: 102px; padding-left: 126px; padding-right: 22px; position: relative; }
  .portrait { position: absolute; left: 0; top: 0; width: 100px; height: 100px; }
  .portrait > span:first-child { font-size: 28px; }
  .portrait-caption { font-size: 8px; bottom: 9px; }
  .profile h2 { padding-top: 5px; margin: 0; font-size: 23px; }
  .profile-family-name { display: inline; white-space: normal; }
  .profile-role, .profile > .muted { font-size: 13px; }
  .main-nav { flex-direction: row; gap: 24px; margin-top: 24px; padding-bottom: 15px; }
  .main-nav a { font-size: 13px; }
  .social-links { flex-direction: row; flex-wrap: wrap; gap: 10px 18px; margin: 18px 0; }
  .social-links:empty { display: none; }
  main { padding-top: 28px; }
  h1 { font-size: 26px; margin-bottom: 15px; }
  .intro { margin-bottom: 33px; }
  .intro-copy { font-size: 16px; }
  .interests { font-size: 14px; }
  section:not(.intro) { margin-bottom: 34px; }
  .section-heading h2 { font-size: 23px; }
  .project-description { font-size: 15px; }
}
@media (max-width: 600px) {
  .publication-main.has-image { display: flex; flex-direction: column; gap: 16px; }
  .publication-thumbnail { max-width: min(240px, 100%); max-height: 170px; }
  .publication-figure { align-self: flex-start; }
}
@media (max-width: 550px) {
  .education-timeline { grid-template-columns: 1fr; }
  .timeline-entry { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 18px 20px; }
  .timeline-entry:last-child { padding-bottom: 0; }
  .timeline-entry::before { left: -4px; top: 5px; }
  .timeline-entry h3 { font-size: 14px; }
  .timeline-institution { display: inline; }
  .timeline-period { display: inline; margin-left: 8px; }
}
@media (max-width: 450px) {
  .site-shell { padding: 0 22px; }
  .profile { min-height: 90px; padding-left: 108px; }
  .portrait { width: 86px; height: 90px; }
  .portrait-caption { font-size: 7px; }
  .profile h2 { font-size: 23px; }
  .profile-role, .profile > .muted { font-size: 13px; }
  .main-nav { gap: 22px; }
  .social-links { font-size: 12px; }
  .project.has-image { grid-template-columns: 1fr; gap: 15px; }
  .project-logo { height: 60px; justify-content: flex-start; }
  .publication-controls { flex-direction: column; align-items: stretch; gap: 12px; }
  .search { max-width: none; }
  .pub-year-group { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .publication h3 { font-size: 15px; }
  .figure-viewer { max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 12px; }
  .figure-viewer-heading { gap: 10px; }
  .figure-viewer-heading h2 { font-size: 15px; }
  .figure-viewer-meta { flex-direction: column; gap: 8px; font-size: 12px; }
  #publication-count { font-size: 12px; }
  .template-note { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
