:root {
  color-scheme: light;
  --ink: #18283d;
  --body: #4e5c6e;
  --muted: #687588;
  --blue: #285b87;
  --line: #e2e7ed;
  --surface: #f5f7fa;
  --font: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  --header-offset: 104px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-offset); }
body { margin: 0; background: #fff; color: var(--body); font: 15px/1.8 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; text-underline-offset: 4px; overflow-wrap: anywhere; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; border-radius: 2px; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
main:focus, section[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon { display: inline-block; width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
::selection { background: #dce8f3; color: var(--ink); }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); }
h1 { font-size: clamp(40px,4.2vw,58px); font-weight: 600; letter-spacing: -2.3px; line-height: 1.12; }
h2 { font-size: 23px; font-weight: 600; line-height: 1.35; letter-spacing: -.6px; }
h3, h4 { font-size: 17px; font-weight: 600; line-height: 1.5; letter-spacing: -.2px; }
p { margin-bottom: 15px; }
p:last-child { margin-bottom: 0; }
strong { color: #34475f; font-weight: 600; }
img { max-width: 100%; display: block; }
.skip-link { position: fixed; left: 15px; top: -100px; background: white; padding: 12px 18px; z-index: 100; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner, main, .site-footer { width: min(1080px,calc(100% - 96px)); margin-inline: auto; }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 30px; }
.wordmark { color: var(--ink); font-size: 19px; font-weight: 650; letter-spacing: -.5px; white-space: nowrap; }
.wordmark:hover { text-decoration: none; }
.wordmark span { color: #7692ac; }
.site-header nav { display: flex; gap: 25px; margin-left: auto; font-size: 12px; }
.site-header nav a { color: #516076; padding: 8px 0; position: relative; }
.site-header nav a[aria-current] { color: var(--ink); }
.site-header nav a[aria-current]::after { content: ""; position: absolute; bottom: 2px; height: 2px; left: 0; right: 0; background: var(--blue); }
.header-resume { padding: 8px 14px; border: 1px solid #c7d1de; border-radius: 4px; font-size: 11px; font-weight: 600; color: var(--ink); }
.header-resume span { margin-left: 13px; }
.profile-section { display: grid; grid-template-columns: minmax(0,1fr) 230px; gap: 76px; align-items: center; padding: 74px 0 65px; }
.eyebrow { color: var(--blue); font-size: 10px; letter-spacing: 1.8px; font-weight: 600; margin-bottom: 21px; }
.profile-role { font-size: 19px; color: #334b65; margin: 21px 0 16px; line-height: 1.5; }
.profile-summary { max-width: 590px; font-size: 15px; }
.profile-affiliation { color: var(--muted); font-size: 12px; line-height: 1.9; margin-top: 19px; }
.profile-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 23px; margin-top: 27px; }
.button { background: #243d5b; border: 1px solid #243d5b; border-radius: 4px; color: white; font-size: 12px; font-weight: 500; padding: 11px 17px; display: inline-flex; align-items: center; gap: 22px; }
.button:hover { color: white; background: #355777; text-decoration: none; }
.profile-text-link { font-size: 12px; }
.profile-photo { align-self: center; }
.profile-photo img { width: 230px; height: 270px; object-fit: cover; object-position: 50% 35%; border-radius: 6px; border: 1px solid #e1e5e9; }
.profile-photo figcaption { font-size: 10px; color: var(--muted); text-align: center; margin-top: 13px; }
.cv-section { display: grid; grid-template-columns: 205px minmax(0,1fr); gap: 54px; padding: 43px 0 46px; border-top: 1px solid var(--line); scroll-margin-top: 0; }
.section-heading { align-self: start; position: sticky; top: var(--header-offset); }
.section-heading>p { color: var(--muted); font-size: 12px; line-height: 1.8; max-width: 175px; margin-top: 13px; }
.section-body { min-width: 0; }
.about-desc { font-size: 14px; }
.work-entry { padding: 25px 0; border-bottom: 1px solid var(--line); }
.work-entry:first-child { padding-top: 0; }
.work-entry:last-child { border-bottom: 0; padding-bottom: 0; }
.project-category { color: var(--muted); font-size: 10px; margin-bottom: 7px; }
.project-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 12px; }
.project-heading h3, .project-heading h4 { font-size: 18px; }
.project-link { font-size: 11px; font-weight: 500; white-space: nowrap; flex-shrink: 0; }
.project-link span { margin-left: 4px; }
.work-entry>p:not(.project-category) { font-size: 13px; }
.work-entry .project-tools { font-size: 11px !important; color: #62768c; line-height: 1.8; margin-top: 16px; margin-bottom: 12px; }
.work-entry .project-note { font-size: 12px !important; color: #42627e; }
details summary { cursor: pointer; color: var(--blue); font-size: 11px; width: fit-content; }
details>p { font-size: 12px; padding-top: 12px; margin-bottom: 0; }
.section-end-link { margin-top: 26px; }
.inline-link { font-size: 12px; display: inline-block; margin-right: 20px; }
.publication-entry { padding: 23px 25px; background: var(--surface); border: 1px solid #e1e7ef; border-radius: 5px; margin-bottom: 31px; }
.publication-label { display: block; color: var(--blue); font-size: 10px; font-weight: 600; margin-bottom: 12px; }
.entry-date { color: var(--muted); font-size: 11px; margin-bottom: 11px; }
.publication-entry h3 { font-size: 19px; margin-bottom: 14px; line-height: 1.55; }
.publication-entry h3 a { color: var(--ink); }
.publication-entry p:not(.entry-date) { font-size: 12px; }
.publication-entry .inline-link { font-size: 11px; margin-top: 4px; }
.subsection-title { font-size: 15px; margin: 30px 0 20px; }
.evaluation-note { font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 25px; padding-top: 15px; }
.entry-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 25px; }
.entry-heading h3 { font-size: 17px; }
.entry-heading .entry-date { margin: 0; }
.entry-organisation { color: #516b85; font-size: 12px; margin-top: 9px; margin-bottom: 15px; }
.experience-points { padding-left: 17px; font-size: 13px; margin-top: 18px; margin-bottom: 0; }
.experience-points li { padding-left: 3px; margin-bottom: 11px; }
.additional-experience { margin-top: 27px; border-top: 1px solid var(--line); padding-top: 18px; }
.additional-experience summary, .professional-development summary { font-size: 12px; }
.details-body { padding-top: 20px; }
.details-body h3 { font-size: 15px; }
.details-body p { font-size: 12px; }
.education-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.education-item:first-child { padding-top: 0; }
.education-item h3 { font-size: 17px; }
.education-item .entry-organisation { margin-bottom: 8px; }
.education-item .entry-date { margin-bottom: 0; }
.scholarship { font-size: 11px; color: #40658a; margin-top: 12px; }
.skills-list { margin: 0; }
.skills-list>div { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.skills-list dt { color: #425a75; font-size: 12px; font-weight: 600; }
.skills-list dd { font-size: 12px; margin: 0; }
.professional-development { margin-top: 25px; }
.professional-development h4 { font-size: 13px; margin-bottom: 10px; }
.professional-development ul { padding-left: 17px; font-size: 12px; margin: 0 0 23px; }
.professional-development li { margin-bottom: 8px; }
#contact .section-body>p:first-child { font-size: 14px; }
.contact-email { margin-top: 22px; margin-bottom: 9px; font-size: 21px; letter-spacing: -.4px; }
.contact-location { font-size: 12px; color: var(--muted); }
.contact-profiles { display: flex; flex-wrap: wrap; gap: 12px 25px; font-size: 12px; margin-top: 24px; }
.contact-resume { margin-top: 22px; }
.site-footer { border-top: 1px solid var(--line); padding: 26px 0 28px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 11px; }
.footer-top>div { display: flex; gap: 25px; }
.template-credit { color: #637184; font-size: 10px; margin-top: 15px; }
.template-credit a { color: #637184; }
/* Consistent action icons, interaction feedback, and comfortable targets. */
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; transition: color .18s ease; }
.site-header nav a:hover { color: var(--ink); text-decoration: none; }
.header-resume { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; transition: background .18s ease, border-color .18s ease; }
.header-resume:hover { background: var(--surface); border-color: #a4b5c8; text-decoration: none; }
.header-resume .icon { width: 15px; height: 15px; }
.profile-actions .button { gap: 10px; min-height: 44px; transition: background .18s ease; }
.profile-text-link { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; }
.profile-affiliation { display: grid; gap: 8px; }
.profile-affiliation>span { display: flex; align-items: flex-start; gap: 9px; }
.profile-affiliation .icon { color: #71849a; width: 15px; height: 15px; margin-top: 4px; }
.section-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: #edf2f7; border: 1px solid #e2e9f1; color: #426582; border-radius: 6px; margin-bottom: 15px; }
.section-icon .icon { width: 17px; height: 17px; }
.project-link { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; gap: 6px; border: 1px solid var(--line); border-radius: 4px; padding: 3px 9px; color: #48637e; background: white; transition: background .18s ease, border-color .18s ease; }
.project-link:hover { background: var(--surface); border-color: #afc0d1; text-decoration: none; }
.project-link .icon { width: 13px; height: 13px; }
.inline-link { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; }
.inline-link .icon { width: 14px; height: 14px; }
.publication-entry h3 .icon { width: 13px; height: 13px; margin-left: 5px; color: #6b8198; vertical-align: -1px; }
details summary { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; padding: 5px 0; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary .icon { width: 14px; height: 14px; transition: transform .18s ease; }
details[open]>summary .icon { transform: rotate(180deg); }
details summary:hover { color: #153e63; text-decoration: underline; text-underline-offset: 4px; }
.email-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin: 22px 0 2px; }
.email-row .contact-email { margin: 0; }
.contact-email a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.contact-email .icon { width: 19px; height: 19px; }
.copy-email { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; background: white; color: #5a6e85; font-size: 11px; }
.copy-email:hover { background: var(--surface); border-color: #b4c4d5; }
.copy-email:disabled { cursor: wait; opacity: .65; }
.copy-email .icon { width: 14px; height: 14px; }
.copy-status { min-height: 18px; margin: 0 0 7px; font-size: 11px; color: #38674c; }
.copy-status[data-state="error"] { color: #805547; }
.contact-location { display: flex; align-items: center; gap: 8px; }
.contact-location .icon { width: 14px; height: 14px; }
.contact-profiles a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; }
.footer-top>div a { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; }
.footer-top .icon { width: 13px; height: 13px; }
.template-credit .icon { width: 10px; height: 10px; margin-left: 3px; vertical-align: -1px; }
@media (max-width: 1000px) {
  .header-inner, main, .site-footer { width: calc(100% - 64px); }
  .site-header nav { gap: 19px; font-size: 11px; }
  .header-inner { gap: 22px; }
  .profile-section { gap: 45px; grid-template-columns: minmax(0,1fr) 205px; }
  .profile-photo img { width: 205px; height: 245px; }
  .profile-photo figcaption { font-size: 9px; }
  .profile-role { font-size: 17px; }
  .cv-section { grid-template-columns: 170px minmax(0,1fr); gap: 35px; }
  .section-heading h2 { font-size: 22px; }
  .project-heading h3, .project-heading h4 { font-size: 17px; }
  .skills-list>div { grid-template-columns: 125px minmax(0,1fr); gap: 15px; }
}
@media (max-width: 760px) {
  html { --header-offset: 150px; scroll-padding-top: var(--header-offset); }
  .header-inner, main, .site-footer { width: calc(100% - 44px); }
  .header-inner { min-height: 0; padding: 18px 0 10px; flex-wrap: wrap; row-gap: 12px; }
  .wordmark { font-size: 18px; }
  .header-resume { margin-left: auto; padding: 6px 11px; font-size: 10px; }
  .site-header nav { order: 3; width: 100%; margin: 0; justify-content: space-between; gap: 12px; font-size: 11px; }
  .site-header nav a { padding: 5px 0; }
  .site-header nav a[aria-current]::after { bottom: 0; }
  .profile-section { padding: 44px 0 35px; grid-template-columns: minmax(0,1fr) 150px; gap: 28px; align-items: start; }
  h1 { font-size: clamp(35px,5vw,43px); letter-spacing: -1.5px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.2px; margin-bottom: 18px; }
  .profile-role { font-size: 16px; margin-top: 17px; }
  .profile-summary { font-size: 13px; }
  .profile-affiliation { font-size: 11px; }
  .profile-photo { padding-top: 29px; }
  .profile-photo img { width: 150px; height: 180px; }
  .profile-photo figcaption { font-size: 8px; line-height: 1.7; }
  .profile-actions { gap: 14px 18px; margin-top: 22px; }
  .button { padding: 10px 13px; font-size: 11px; gap: 14px; }
  .profile-text-link { font-size: 11px; }
  .cv-section { grid-template-columns: 1fr; gap: 23px; padding: 31px 0 35px; scroll-margin-top: 0; }
  .section-heading { position: static; }
  .section-heading h2 { font-size: 25px; }
  .section-heading>p { max-width: none; font-size: 11px; margin-top: 8px; }
  .about-desc { font-size: 13px; }
  .project-heading { gap: 15px; margin-bottom: 11px; }
  .project-heading h3, .project-heading h4 { font-size: 17px; }
  .project-link { font-size: 10px; }
  .work-entry>p:not(.project-category) { font-size: 13px; }
  .work-entry .project-tools { font-size: 10px !important; }
  .work-entry .project-note { font-size: 11px !important; }
  .publication-entry { padding: 21px; }
  .publication-entry h3 { font-size: 18px; }
  .entry-heading h3 { font-size: 17px; }
  .experience-points { font-size: 12px; }
  .contact-email { font-size: 20px; }
  .footer-top { font-size: 10px; }
  .section-icon { width: 30px; height: 30px; margin-bottom: 13px; }
  .project-link, details summary, .inline-link, .copy-email, .contact-profiles a { min-height: 44px; }
  .project-link { padding-inline: 11px; }
  .profile-affiliation { gap: 7px; }
}
@media (max-width: 480px) {
  .header-inner, main, .site-footer { width: calc(100% - 40px); }
  .profile-section { display: flex; flex-direction: column-reverse; gap: 24px; padding-top: 31px; }
  .profile-photo { display: flex; align-items: center; gap: 16px; padding: 0; width: 100%; }
  .profile-photo img { width: 92px; height: 108px; border-radius: 4px; }
  .profile-photo figcaption { max-width: 140px; font-size: 10px; text-align: left; margin: 0; }
  .profile-copy { width: 100%; }
  h1 { font-size: 40px; letter-spacing: -1.7px; }
  .profile-role { font-size: 16px; }
  .profile-summary { font-size: 14px; }
  .profile-actions { gap: 15px 20px; }
  .project-heading { display: block; }
  .project-link { display: inline-flex; margin-top: 7px; font-size: 11px; }
  .project-category { font-size: 9px; }
  .skills-list>div { grid-template-columns: 1fr; gap: 5px; }
  .entry-heading { gap: 6px; }
  .entry-heading h3 { width: 100%; }
  .publication-entry { padding: 20px 17px; }
  .publication-entry .inline-link { font-size: 10px; margin-right: 15px; }
  .contact-email { font-size: clamp(17px,5vw,21px); }
  .contact-profiles { gap: 12px 20px; font-size: 11px; }
  .footer-top { display: block; }
  .footer-top>div { margin-top: 15px; }
}
@media (max-width: 350px) {
  h1 { font-size: 35px; }
  .site-header nav { font-size: 10px; gap: 8px; }
  .eyebrow { font-size: 7px; }
  .profile-actions { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  body { color: #222; font-size: 11px; }
  .site-header, .profile-actions, .skip-link { display: none; }
  main, .site-footer { width: 100%; }
  .profile-section { padding: 0 0 20px; gap: 30px; grid-template-columns: 1fr 120px; }
  h1 { font-size: 31px; }
  .profile-photo img { width: 120px; height: 145px; }
  .profile-role { font-size: 15px; }
  .profile-photo figcaption { display: none; }
  .cv-section { grid-template-columns: 145px minmax(0,1fr); gap: 25px; padding: 22px 0; }
  .section-heading { position: static; }
  h2, .section-heading h2 { font-size: 19px; }
  .work-entry, .education-item, .experience-entry, .publication-entry { break-inside: avoid; }
  .publication-entry { background: white; }
  .project-heading h3, .project-heading h4 { font-size: 15px; }
  .template-credit { display: none; }
  .section-icon, .copy-email, .copy-status { display: none; }
  .icon { width: 12px; height: 12px; }
  .project-link { min-height: 0; border: 0; padding: 0; }
}
