:root {
  --ink: #1b2d3c;
  --muted: #52616c;
  --accent: #006b7d;
  --line: #dce3e7;
  --pale: #f4f7f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; line-height: 1.6; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration: underline; }
a:focus-visible, video:focus-visible { outline: 3px solid #b46e14; outline-offset: 4px; }
img, video { max-width: 100%; height: auto; }
p { margin: 0 0 .8rem; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .7rem; font-weight: 650; }
h1 { font-size: 2rem; letter-spacing: -.025em; }
h2 { font-size: 1.45rem; letter-spacing: -.015em; }
h3 { font-size: 1.1rem; }
.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: absolute; left: 1rem; top: -5rem; background: white; padding: .75rem; z-index: 5; }
.skip-link:focus { top: 0; }
.site-header, .site-footer, main { width: min(1000px, calc(100% - 48px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); font-size: 1rem; font-weight: 650; text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 40px; font-size: .9rem; color: var(--ink); text-decoration: none; }
.site-header nav a:hover { color: var(--accent); text-decoration: underline; }
.profile { display: grid; grid-template-columns: minmax(0, 1fr) 160px; column-gap: 2rem; padding: 2rem 0 1.8rem; }
.profile-heading { align-self: end; }
.profile h1 { margin-bottom: .35rem; }
.degree { display: inline-block; font-size: 1rem; font-weight: 450; color: var(--muted); letter-spacing: 0; }
.role { color: var(--accent); font-size: 1rem; margin-bottom: .8rem; }
.profile-photo { grid-column: 2; grid-row: 1 / 3; width: 160px; height: 160px; border-radius: 8px; object-fit: cover; align-self: center; }
.profile-summary { grid-column: 1; max-width: 750px; }
.social-links { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: .35rem .65rem; border-radius: 4px; background: var(--ink); color: #fff; text-decoration: none; font-size: .875rem; line-height: 1.4; }
.social-links a:hover { text-decoration: underline; filter: brightness(1.1); }
.social-links .scholar { background: #275ca5; }
.social-links .orcid { background: #527714; }
.social-links .researchgate { background: #007c75; }
.social-links .linkedin { background: #09649a; }
.section { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.section-head h2 { margin: 0; }
.section-head a { font-size: .875rem; }
.section-intro { color: var(--muted); }
.focus-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; margin: 1rem 0 0; }
.focus-list div { min-width: 0; }
.focus-list dt { font-weight: 650; font-size: 1rem; margin-bottom: .2rem; }
.focus-list dd { margin: 0; color: var(--muted); font-size: .95rem; }
.research-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-top: 1rem; }
.research-item { min-width: 0; border-top: 2px solid #bdcdd5; padding-top: .85rem; }
.research-item h3 { line-height: 1.45; }
.research-item h3 a { color: var(--ink); text-decoration: none; }
.research-item h3 a:hover { color: var(--accent); text-decoration: underline; }
.research-item p { font-size: .95rem; color: var(--muted); }
.project-link { font-size: .875rem; font-weight: 600; }
.methods { margin-top: .6rem; color: var(--muted); font-size: .8rem; }
.site-footer { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 1rem 0; margin-top: .5rem; font-size: .875rem; }
.site-footer strong { font-weight: 500; color: var(--muted); }
.collaboration-note { flex-basis: 100%; margin: 0; }
.footer-links { display: flex; gap: 1.1rem; }
.footer-links a { min-height: 40px; display: inline-flex; align-items: center; }
.page-heading { padding: 1.8rem 0 1.1rem; max-width: 850px; }
.page-heading h1 { margin-bottom: .5rem; }
.page-heading p { color: var(--muted); margin: 0; }
.reading { max-width: 900px; margin: 0 auto 2rem; }
.reading h2 { margin-top: 1.6rem; }
.reading h3 { margin-top: 1.3rem; }
.reading li { margin: .75rem 0; padding-left: .25rem; }
.reading ol { padding-left: 1.35rem; }
.reading a { overflow-wrap: anywhere; }
.reading pre { overflow: auto; padding: 1rem; background: var(--pale); font-size: .875rem; }
.reading code { font-family: ui-monospace, SFMono-Regular, monospace; }
.reading table { display: block; overflow: auto; border-collapse: collapse; }
.reading td, .reading th { border: 1px solid var(--line); padding: .5rem; }
.reading > div { margin-left: 0 !important; margin-right: 0 !important; text-align: left !important; }
.publications { max-width: none; padding-top: 1.5rem; }
.publications > h2:first-child { margin-top: 0; }
.publications h3 { color: var(--muted); font-size: 1rem; padding-bottom: .45rem; border-bottom: 1px solid var(--line); }
.publications li { padding-left: .35rem; margin: .85rem 0; }
.simulation { max-width: 640px; margin: 1.3rem 0; }
.simulation video { display: block; width: 100%; }
.simulation figcaption { font-size: .8rem; color: var(--muted); margin-top: .4rem; }
.writing-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-bottom: 2rem; }
.writing-card { border-top: 1px solid var(--line); padding-top: 1rem; }
.writing-card h2 { font-size: 1.15rem; margin-top: .35rem; line-height: 1.4; }
.writing-card h2 a { color: var(--ink); }
.writing-card time, .post-date { font-size: .875rem; color: var(--muted); }
@media (max-width: 700px) {
  .site-header, .site-footer, main { width: calc(100% - 32px); }
  .site-header { display: block; padding: .8rem 0 .35rem; }
  .brand { font-size: .95rem; }
  .site-header nav { gap: 1.4rem; margin-top: .15rem; }
  .profile { grid-template-columns: minmax(0, 1fr) 88px; column-gap: 1rem; row-gap: .8rem; padding: 1.35rem 0; }
  .profile-heading { align-self: center; }
  .profile h1 { font-size: 1.65rem; line-height: 1.25; }
  .degree { font-size: .9rem; }
  .role { font-size: .9rem; line-height: 1.45; margin-bottom: 0; }
  .profile-photo { grid-column: 2; grid-row: 1; width: 88px; height: 88px; border-radius: 6px; }
  .profile-summary { grid-column: 1 / -1; }
  .profile-summary p { margin-bottom: .65rem; }
  .social-links { gap: .4rem; margin-top: .75rem; }
  .social-links a { min-height: 40px; padding-inline: .65rem; }
  .section { padding: 1.25rem 0; }
  .section-head { flex-wrap: wrap; gap: .25rem 1rem; }
  h2 { font-size: 1.3rem; }
  .focus-list { grid-template-columns: 1fr; gap: .8rem; margin-top: .8rem; }
  .research-grid, .writing-list { grid-template-columns: 1fr; gap: 1rem; }
  .research-item { padding-top: .85rem; }
  .research-item p { margin-bottom: .5rem; }
  .page-heading { padding: 1.3rem 0 1rem; }
  .page-heading h1 { font-size: 1.75rem; }
  .publications { padding-top: 1.25rem; }
  .site-footer { padding: .7rem 0; }
}
@media (max-width: 360px) {
  .profile { grid-template-columns: minmax(0, 1fr) 72px; column-gap: .7rem; }
  .profile-photo { width: 72px; height: 72px; }
  .profile h1 { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
