:root {
  color-scheme: light;
  --ink: #14202e;
  --body: #465363;
  --muted: #778391;
  --line: #dfe5eb;
  --soft: #f4f7fa;
  --blue: #2457d6;
  --blue-dark: #1944b2;
  --blue-pale: #e9efff;
  --white: #ffffff;
  --max-width: 1080px;
  --page-gutter: clamp(1.25rem, 5vw, 4.25rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--white); color: var(--ink); font-size: 16px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #87a6ff; outline-offset: 4px; border-radius: 3px; }
::selection { color: #0e2258; background: #cfdbff; }

.skip-link { position: absolute; top: -4rem; left: var(--page-gutter); z-index: 10; padding: .6rem .9rem; background: var(--ink); color: var(--white); }
.skip-link:focus { top: .75rem; }
.site-header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid rgb(223 229 235 / 82%); background: rgb(255 255 255 / 94%); backdrop-filter: blur(14px); }
.header-inner, main, .site-footer { width: min(var(--max-width), calc(100% - var(--page-gutter) * 2)); margin-inline: auto; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.wordmark { display: inline-flex; align-items: center; gap: .75rem; font-size: .95rem; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.wordmark-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #dce5fb; border-radius: 50%; color: var(--blue); font-size: .72rem; font-weight: 750; letter-spacing: .02em; }
nav { display: flex; align-items: center; gap: clamp(.9rem, 2.2vw, 1.8rem); }
nav a { color: #596674; font-size: .82rem; font-weight: 550; transition: color .18s ease; }
nav a:hover, .site-footer a:hover, .text-link:hover { color: var(--blue); }
.language-switch { padding: .28rem .62rem; border: 1px solid #d7dfe8; border-radius: 4px; color: var(--blue); font-weight: 700; }
.language-switch:hover { border-color: #9eb4e9; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(250px, .78fr); align-items: center; gap: clamp(3rem, 8vw, 7.5rem); padding: clamp(4.75rem, 9vw, 8.5rem) 0 4.5rem; }
.hero-copy { max-width: 670px; }
.eyebrow { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.3rem; color: #627080; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-line { width: 26px; height: 1px; background: var(--blue); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .18rem; color: var(--ink); font-size: clamp(3.6rem, 8vw, 6.3rem); font-weight: 690; letter-spacing: -.075em; line-height: 1.05; }
.name-period { color: var(--blue); }
.hero-role { margin: .7rem 0 1.5rem; color: #3a4858; font-size: clamp(1rem, 2vw, 1.18rem); font-weight: 570; }
.hero-intro { max-width: 650px; margin-bottom: 1.85rem; color: var(--body); font-size: clamp(1.05rem, 1.6vw, 1.18rem); line-height: 1.85; }
.hero-links { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: .55rem 1rem; border: 1px solid transparent; border-radius: 5px; font-size: .84rem; font-weight: 650; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.button-primary { background: var(--blue); color: var(--white); }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { border-color: #d7dfe8; color: #334254; }
.button-secondary:hover { border-color: #9eb4e9; color: var(--blue); }
.profile-card { padding: 1.45rem; border: 1px solid #e1e7ee; border-radius: 8px; background: linear-gradient(148deg, #fbfcfe 0%, #f5f8fc 100%); box-shadow: 0 18px 54px rgb(26 44 69 / 5%); }
.profile-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.monogram { width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid #cad8fa; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #fff 0, #f0f4ff 74%); color: var(--blue); font-size: 1.15rem; font-weight: 650; letter-spacing: .02em; }
.profile-caption { color: #7b8795; font-size: .69rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.profile-divider { height: 1px; margin: 1.35rem 0 1.1rem; background: var(--line); }
.profile-details { display: grid; gap: 1rem; margin: 0; }
.profile-details dt { margin-bottom: .15rem; color: #7b8795; font-size: .69rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.profile-details dd { margin: 0; color: #283748; font-size: .88rem; font-weight: 590; line-height: 1.5; }
.hero-bottomline { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: center; gap: 9px; }
.hero-bottomline span:first-child { width: 44px; height: 2px; background: var(--blue); }
.hero-bottomline span:last-child { height: 1px; flex: 1; background: var(--line); }

.content-section { display: grid; grid-template-columns: 175px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); padding: 4.2rem 0; border-bottom: 1px solid var(--line); }
.section-label { display: flex; align-items: flex-start; gap: .75rem; padding-top: .36rem; color: #7a8794; font-size: .7rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.section-label span:first-child { color: var(--blue); font-variant-numeric: tabular-nums; }
.section-content { min-width: 0; }
h2 { margin-bottom: 1rem; color: var(--ink); font-size: clamp(1.75rem, 3.8vw, 2.55rem); font-weight: 640; letter-spacing: -.055em; line-height: 1.2; }
.section-content > p { max-width: 760px; margin-bottom: 1rem; color: var(--body); }
.interest-list { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.7rem; }
.interest-list span { padding: .4rem .7rem; border: 1px solid #e1e7ef; border-radius: 4px; color: #475565; font-size: .77rem; font-weight: 570; }
.section-heading-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.section-heading-row h2 { margin-bottom: 0; }
.section-note { margin: 0; color: var(--muted); font-size: .82rem; }
.research-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.research-item { min-height: 220px; padding: 1.15rem 1rem 1.1rem; border: 1px solid #e2e8ef; border-radius: 5px; background: #fff; }
.research-index { display: inline-block; margin-bottom: 1rem; color: var(--blue); font-size: .69rem; font-weight: 750; letter-spacing: .12em; }
.research-item h3 { margin-bottom: .55rem; color: #233245; font-size: 1rem; font-weight: 680; letter-spacing: -.02em; line-height: 1.35; }
.research-item p { margin-bottom: 1.1rem; color: var(--body); font-size: .86rem; line-height: 1.65; }
.research-tags { color: #788594; font-size: .7rem; line-height: 1.5; }
.work-entry { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 1.4rem; padding: 1.45rem 0; border-top: 1px solid var(--line); }
.work-entry:last-child { border-bottom: 1px solid var(--line); }
.work-meta { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.work-type { color: #667483; font-size: .75rem; font-weight: 650; }
.work-status { padding: .2rem .52rem; border-radius: 3px; background: var(--blue-pale); color: #264cbb; font-size: .67rem; font-weight: 700; line-height: 1.4; }
.work-status-neutral { background: #eef1f4; color: #586574; }
.work-main h3 { margin-bottom: .35rem; color: #243246; font-size: 1.04rem; font-weight: 660; letter-spacing: -.025em; line-height: 1.45; }
.work-authors { margin-bottom: .45rem; color: #73808e; font-size: .79rem; }
.work-description { max-width: 680px; margin-bottom: .65rem; color: var(--body); font-size: .88rem; }
.work-note { color: #73808e; font-size: .8rem; font-style: italic; }
.text-link { display: inline-block; color: var(--blue); font-size: .82rem; font-weight: 650; transition: color .18s ease; }
.text-link::after { content: " ↗"; font-size: .78em; }
.timeline { border-top: 1px solid var(--line); }
.timeline-entry { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 1.4rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.timeline-date { margin: .14rem 0 0; color: #768391; font-size: .8rem; font-variant-numeric: tabular-nums; }
.timeline-entry h3 { margin-bottom: .15rem; color: #243246; font-size: 1rem; font-weight: 660; line-height: 1.45; }
.timeline-place { margin-bottom: .35rem; color: #536171; font-size: .85rem; font-weight: 560; }
.timeline-description { margin-bottom: 0; color: var(--body); font-size: .85rem; }

.contact-section { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding: 4.8rem 0; }
.contact-section .eyebrow { margin-bottom: .9rem; }
.contact-section h2 { margin-bottom: .6rem; font-size: clamp(2rem, 4.4vw, 3.1rem); }
.contact-section p:not(.eyebrow) { max-width: 510px; margin-bottom: 0; color: var(--body); font-size: .92rem; }
.contact-email { padding-bottom: .25rem; border-bottom: 1px solid #9bb0e8; color: var(--blue); font-size: .88rem; font-weight: 640; white-space: nowrap; }
.contact-email:hover { border-color: var(--blue); }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.4rem 0 2.2rem; border-top: 1px solid var(--line); color: #7b8793; font-size: .73rem; }
.site-footer a { transition: color .18s ease; }

@media (max-width: 780px) {
  .header-inner { min-height: 68px; flex-wrap: wrap; gap: .3rem 1rem; padding-block: .65rem; }
  nav { width: 100%; justify-content: space-between; gap: .4rem; overflow-x: auto; padding-bottom: .15rem; }
  nav a { font-size: .75rem; white-space: nowrap; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-top: 4.5rem; }
  .profile-card { max-width: 520px; }
  .profile-details { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
  .content-section { grid-template-columns: 1fr; gap: 1.2rem; padding: 3.2rem 0; }
  .section-label { padding-top: 0; }
  .research-grid { grid-template-columns: 1fr; }
  .research-item { min-height: 0; }
}

@media (max-width: 540px) {
  body { font-size: 15.5px; }
  .header-inner, main, .site-footer { width: calc(100% - 2.5rem); }
  nav { padding-top: .25rem; }
  .hero { padding-top: 3.5rem; padding-bottom: 3.3rem; }
  h1 { font-size: clamp(3.35rem, 16vw, 5rem); }
  .profile-details { grid-template-columns: 1fr; gap: .85rem; }
  .section-heading-row { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .work-entry, .timeline-entry { grid-template-columns: 1fr; gap: .65rem; }
  .work-meta { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .contact-section { align-items: flex-start; flex-direction: column; padding: 3.5rem 0; }
  .contact-email { white-space: normal; overflow-wrap: anywhere; }
  .site-footer { flex-wrap: wrap; font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
