/* Local typography and a compact academic layout. */
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}
:root {
  --color-background: #fff;
  --color-text: #191b20;
  --color-heading: #111318;
  --color-muted: #454a52;
  --color-accent: #2C4663;
  --color-link: #2C4663;
  --color-link-underline: #d0d4d9;
  --color-border: #e7e7ea;
  --color-soft: #F1F4F7;
  --color-soft-border: #D8E1E8;
  --color-selection: #E2EAF1;
  --color-rule: #D5E0EA;
  --color-highlight: #F7F9FB;
  --content-width: 1100px;
  --reading-width: 830px;
  --sidebar-width: 200px;
  --column-gap: 70px;
  --gutter: 32px;
  --font-body: "Nunito Sans", Arial, sans-serif;
  --text-small: 14px;
  --text-base: 17px;
  --text-title: 30px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--color-background); color: var(--color-text); font: 450 var(--text-base)/1.8 var(--font-body); overflow-wrap: anywhere; -webkit-text-size-adjust: 100%; }
a, a:visited, a:hover { color: inherit; text-decoration: underline; text-decoration-color: var(--color-link-underline); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--color-link); outline-offset: 4px; border-radius: 3px; }
::selection { background: var(--color-selection); color: var(--color-heading); }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 var(--space-3); }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--color-heading); font-weight: 600; line-height: 1.3; }
strong { font-weight: 700; }
.container { width: min(var(--content-width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 100; top: 12px; left: 20px; padding: 10px 18px; background: white; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #dedee2; background: rgba(255,255,255,.98); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-brand { display: inline-block; color: var(--color-heading); font-size: 19px; font-weight: 650; white-space: nowrap; text-decoration: none; }
.site-brand:hover { text-decoration: none; }
.site-nav ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding-block: 10px; color: var(--color-text); font-size: 15px; white-space: nowrap; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--color-text); text-decoration: none; }
.site-nav a[aria-current] { font-weight: 700; }
.site-nav a[href="#about"] { color: var(--color-text); font-weight: 700; }
body:has(main section:target) .site-nav a[href="#about"] { font-weight: 450; color: var(--color-text); }
body:has(#about:target) .site-nav a[href="#about"], body:has(#publications:target) .site-nav a[href="#publications"], body:has(#awards:target) .site-nav a[href="#awards"], body:has(#teaching:target) .site-nav a[href="#teaching"] { color: var(--color-text); font-weight: 700; }

.page-grid { flex: 1; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); gap: var(--column-gap); align-items: start; margin-top: 58px; margin-bottom: 76px; }
.profile { min-width: 0; }
.profile-photo { width: 100%; height: 210px; object-fit: cover; object-position: 50% 30%; border: 1px solid var(--color-border); border-radius: 11px; }
.profile-monogram { display: grid; place-items: center; background: var(--color-soft); color: var(--color-link); font-size: 68px; font-weight: 600; }
.profile-name { margin-top: 18px; margin-bottom: 7px; color: var(--color-heading); font-size: 28px; font-weight: 650; line-height: 1.25; letter-spacing: -.02em; }
.profile-role { margin-bottom: 13px; color: var(--color-muted); font-size: 15px; font-weight: 500; line-height: 1.6; }
.profile-affiliation { font-size: 14px; line-height: 1.75; }
.profile-affiliation span { display: block; }
.profile-email { display: flex; align-items: baseline; gap: 6px; margin-top: 16px; font-size: 12px; line-height: 1.6; }
.profile-email svg { flex: 0 0 14px; align-self: center; fill: none; stroke: currentColor; stroke-width: 1.2; }
.profile-email span { min-width: 0; }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 13px 0 0; font-size: 14px; }
.profile-interests { border-top: 1px solid var(--color-border); margin-top: 24px; padding-top: 19px; }
.profile-interests h2, .interests-label { margin: 0 0 11px; font-size: 14px; font-weight: 600; line-height: 1.8; }
.profile-interests ul { list-style: none; padding: 0; margin: 0; }
.profile-interests li { margin-block: 5px; padding-left: 10px; border-left: 2px solid var(--color-rule); font-size: 13px; line-height: 1.65; }

main { min-width: 0; }
.section + .section { margin-top: var(--space-5); }
.section-heading { display: flex; align-items: center; gap: 25px; margin-bottom: 24px; }
.section-heading h2 { font-size: var(--text-title); font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.heading-rule { flex: 1; height: 1px; min-width: 25px; background: #dedee2; position: relative; }
.heading-rule::before { content: ""; display: block; width: 38px; height: 2px; background: #a7adb5; transform: translateY(-.5px); }
.about-copy p { margin-bottom: 20px; line-height: 1.8; }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy strong { font-weight: 650; }
.upcoming-talk { margin-top: 28px; padding: 16px 20px; border-left: 2px solid var(--color-accent); border-radius: 0 6px 6px 0; background: var(--color-highlight); }
.upcoming-talk h2 { margin: 0 0 7px; color: var(--color-accent); font-size: 13px; font-weight: 700; letter-spacing: .07em; line-height: 1.6; text-transform: uppercase; }
.upcoming-talk-name { margin: 0 0 7px; font-size: 16px; font-weight: 650; line-height: 1.6; }
.upcoming-talk-details { margin: 0; color: var(--color-muted); font-size: 14px; line-height: 1.8; }
.upcoming-talk-details + .upcoming-talk-details { margin-top: 3px; }
.research-overview { display: grid; gap: 24px; }
.research-theme h2, .research-theme h3 { margin: 0 0 8px; font-size: 18px; font-weight: 650; line-height: 1.5; }
.research-theme p { margin: 0; font-size: 16px; line-height: 1.8; }
.group-label { margin: 26px 0 8px; color: var(--color-muted); font-size: 13px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; line-height: 1.8; }
.paper-group + .group-label { margin-top: 37px; }
.paper { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 19px; padding-block: 24px 28px; }
.paper + .paper { border-top: 1px solid var(--color-border); }
.paper-number { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--color-soft-border); border-radius: 8px; color: var(--color-link); background: var(--color-soft); font-size: 13px; line-height: 1; font-variant-numeric: tabular-nums; }
.paper h3, .paper h4 { margin: 0 0 9px; font-size: 18px; font-weight: 700; line-height: 1.55; letter-spacing: -.01em; }
.paper-authors { margin: 0 0 5px; font-size: 16px; line-height: 1.8; }
.paper-meta { margin: 0; color: #373b42; font-size: 15px; line-height: 1.8; }
.paper-description { margin-top: 14px; font-size: 15px; }
.paper-highlight { display: flex; gap: 25px; padding: 12px 15px; margin-top: 16px; background: var(--color-highlight); border: 1px solid var(--color-soft-border); border-left: 2px solid var(--color-accent); border-radius: 8px; font-size: 14px; }
.paper-highlight span { color: var(--color-link); font-weight: 650; }
.text-links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 10px 0 0; padding: 0; font-size: 14px; }

.award-list { list-style: none; padding: 0; margin: 0; }
.award-list li { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 22px; padding: 15px 0; border-bottom: 1px solid #eeeef0; font-size: 15.5px; }
.award-list li:last-child { border-bottom: 0; }
.award-year { color: var(--color-muted); font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.award-list strong { display: block; font-weight: 650; }
.award-institution { display: block; color: var(--color-muted); font-size: 14.5px; }
.service-list { margin: 0; }
.service-list > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 25px; font-size: 15.5px; }
.service-list dt { font-weight: 650; }
.service-list dd { margin: 0; }
.service-list dd > p { margin-bottom: 17px; }
.course-list { list-style: none; margin: 0; padding: 0; }
.course-list li { padding-block: 10px; border-top: 1px solid #eeeef0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 15px; }
.course-term { color: var(--color-muted); font-size: 14px; }

.page-heading { margin: 0 0 28px; padding-bottom: 22px; border-bottom: 1px solid var(--color-border); }
.page-heading h1 { font-size: 32px; letter-spacing: -.02em; }
.page-heading .group-label { margin-top: 0; }
.page-intro { margin-top: 18px; color: var(--color-muted); }
.page-content { min-height: 45vh; }
.prose h2 { margin: 35px 0 18px; font-size: 26px; }
.prose h3 { margin: 28px 0 14px; font-size: 21px; }
.prose h4 { margin: 22px 0 12px; font-size: 18px; }
.prose > :first-child { margin-top: 0; }
.prose li + li { margin-top: 8px; }
.prose .text-links li + li { margin-top: 0; }
.prose img { margin-block: 24px; border-radius: 9px; }
.prose blockquote { margin: 26px 0; border-left: 2px solid var(--color-rule); padding-left: 20px; color: var(--color-muted); }
.prose pre { padding: 18px; background: #f8f8fa; overflow-x: auto; max-width: 100%; font-size: 14px; line-height: 1.6; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { padding: 10px 15px; border-bottom: 1px solid var(--color-border); text-align: left; }
.back-link { display: inline-block; margin-bottom: 22px; font-size: 14px; }
.note-meta { color: var(--color-muted); font-size: 14px; margin-top: 12px; }
.empty-state { color: var(--color-muted); font-size: 16px; }
.research-list, .note-list { list-style: none; padding: 0; margin: 0; }
.research-item, .note-item { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--color-border); }
.item-title { margin-bottom: 10px; font-size: 20px; font-weight: 650; }
.item-number { color: var(--color-link); font-size: 14px; }
.item-meta { color: var(--color-muted); font-size: 13px; margin-top: 12px; }
.note-item { grid-template-columns: 112px minmax(0, 1fr); }
.note-item .note-meta { display: flex; flex-direction: column; margin-top: 0; }
.site-footer { border-top: 1px solid var(--color-border); }
.footer-inner { min-height: 87px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 27px; color: #626670; font-size: 13px; }
.footer-inner > a:first-of-type { margin-left: auto; }
.footer-inner a { color: inherit; }

@media (max-width: 1050px) {
  :root { --sidebar-width: 190px; --column-gap: 42px; --gutter: 28px; }
  .profile-photo { height: 200px; }
  .site-nav ul { gap: 24px; }
}
@media (max-width: 800px) {
  :root { --gutter: 24px; }
  .page-grid { grid-template-columns: 1fr; gap: 44px; margin-top: 36px; }
  .profile { display: grid; grid-template-columns: 160px minmax(0,1fr); column-gap: 27px; }
  .profile-photo { height: 195px; }
  .profile-name { margin-top: 0; font-size: 28px; }
  .profile-interests { grid-column: 1 / -1; margin-top: 23px; padding-top: 18px; }
  .profile-interests ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 20px; }
  .header-inner { flex-wrap: wrap; gap: 0; padding-top: 12px; }
  .site-brand { font-size: 18px; }
  .site-nav { width: 100%; }
  .site-nav ul { justify-content: space-between; gap: 10px; }
  .site-nav a { padding-block: 11px; min-height: 44px; font-size: 14px; }
  .section + .section { margin-top: 48px; }
  html { scroll-padding-top: 122px; }
}
@media (max-width: 520px) {
  :root { --gutter: 22px; --text-base: 16px; --text-title: 26px; }
  .page-grid { margin-top: 31px; margin-bottom: 50px; }
  .profile { grid-template-columns: 112px minmax(0, 1fr); column-gap: 19px; }
  .profile-photo { height: 142px; object-position: 50% 25%; border-radius: 9px; }
  .profile-name { font-size: 28px; margin-bottom: 6px; line-height: 1.2; }
  .profile-role { font-size: 15px; margin-bottom: 10px; line-height: 1.55; }
  .profile-affiliation { font-size: 13.5px; line-height: 1.65; }
  .profile-email { font-size: 12px; gap: 5px; margin-top: 13px; }
  .profile-email svg { flex-basis: 13px; width: 13px; }
  .profile-links { font-size: 13px; gap: 14px; margin-top: 9px; }
  .profile-interests li { font-size: 13px; }
  .profile-interests ul { column-gap: 12px; }
  .section-heading { gap: 18px; margin-bottom: 21px; }
  .heading-rule::before { width: 28px; }
  .about-copy p { line-height: 1.87; margin-bottom: 21px; }
  .paper { grid-template-columns: 27px minmax(0,1fr); gap: 12px; padding-block: 21px 25px; }
  .paper-number { width: 27px; height: 27px; font-size: 12px; border-radius: 7px; }
  .paper h3, .paper h4 { font-size: 17px; line-height: 1.55; }
  .paper-authors, .paper-meta { font-size: 14.5px; }
  .award-list li { grid-template-columns: 74px minmax(0,1fr); gap: 15px; font-size: 14.5px; }
  .award-year { font-size: 12.5px; }
  .award-institution { font-size: 13.5px; }
  .service-list > div { grid-template-columns: 1fr; gap: 12px; font-size: 14.5px; }
  .course-list li { flex-direction: column; }
  .footer-inner { align-items: flex-start; gap: 7px 18px; padding-block: 23px; font-size: 12px; }
  .footer-inner > span { width: 100%; }
  .footer-inner > a:first-of-type { margin-left: 0; }
  .page-heading h1 { font-size: 28px; }
  .note-item { grid-template-columns: 1fr; gap: 8px; }
  .note-item .note-meta { flex-direction: row; gap: 14px; }
}
@media (max-width: 350px) {
  :root { --gutter: 17px; }
  .site-nav a { font-size: 12.5px; }
  .site-nav ul { gap: 7px; }
  .profile { grid-template-columns: 92px minmax(0,1fr); gap: 15px; }
  .profile-photo { height: 123px; }
  .profile-name { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-header, .site-footer, .skip-link { display: none; }
  .container { width: 100%; }
  .page-grid { grid-template-columns: 180px minmax(0,1fr); gap: 32px; margin-top: 0; }
  .profile-photo { height: 190px; }
  body { font-size: 11pt; }
  .paper { break-inside: avoid; }
}
