:root {
  color-scheme: light;
  --ink: #212529;
  --blue: #0066cc;
  --muted: #606975;
  --line: #e2e7ed;
  --paper: #fff;
  --tint: #f3f7fc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; line-height: 1.65; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
a:hover { color: var(--blue); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; border-radius: 2px; }
::selection { background: #d6e9ff; color: var(--ink); }
h1, h2, h3, p, dl, dd { margin: 0; }
.page-width { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 10; padding: 10px 20px; background: var(--blue); color: white; }
.skip-link:focus { top: 12px; color: white; }
.topbar { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.identity { display: flex; align-items: center; gap: 22px; }
.identity:hover { text-decoration: none; }
.monogram { font-size: 23px; line-height: 1; font-weight: 750; letter-spacing: -1px; }
.monogram span { color: var(--blue); }
.identity-label { font-size: 12px; font-weight: 650; letter-spacing: 1.7px; color: var(--muted); }
.pdf-link { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 5px; font-size: 14px; font-weight: 600; }
.pdf-link:hover { border-color: var(--blue); text-decoration: none; background: var(--tint); }
.pdf-link svg { width: 17px; height: 17px; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 36px; padding: 54px 0 48px; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; margin-bottom: 10px; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 5.5vw, 4.75rem); line-height: 1.15; font-weight: 400; letter-spacing: -2.5px; }
.name-period { color: var(--blue); }
.disciplines { margin-top: 15px; font-size: 17px; color: var(--muted); line-height: 1.65; }
.intro-contact { padding-bottom: 4px; display: grid; gap: 13px; min-width: 294px; font-size: 14px; }
.contact-row { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 15px; align-items: baseline; }
.contact-label { color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: 1px; }
.intro-contact a { overflow-wrap: anywhere; }
.cv-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 52px; padding-top: 45px; }
.sidebar { position: sticky; align-self: start; top: 34px; }
.rail-label { color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: 1.4px; margin-bottom: 16px; }
.section-nav { display: grid; gap: 4px; }
.section-nav a { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; color: var(--muted); font-size: 14px; line-height: 1.5; transition: color 120ms; }
.section-nav a:hover { color: var(--blue); text-decoration: none; }
.section-nav a[aria-current="location"] { color: var(--blue); font-weight: 650; }
.nav-number { font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; opacity: .7; }
.interests { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 25px; }
.interests p:last-child { font-family: Georgia, "Times New Roman", serif; font-size: 20px; line-height: 1.65; }
.interests p:last-child span { display: block; }
.cv-section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); scroll-margin-top: 4px; }
.cv-section:last-child { border-bottom: 0; margin-bottom: 0; }
.section-heading { display: flex; align-items: baseline; gap: 13px; margin-bottom: 28px; }
.section-number { color: var(--blue); font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 600; }
h2 { font-size: 22px; font-weight: 650; line-height: 1.4; letter-spacing: -.45px; }
h3 { font-size: 16px; font-weight: 650; line-height: 1.55; }
.entry + .entry { margin-top: 30px; }
.entry-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 22px; flex-wrap: wrap; margin-bottom: 5px; }
.entry-heading h3 { flex: 1 1 230px; }
.date { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; line-height: 1.6; }
.secondary { color: var(--muted); }
.detail-label { font-size: 13px; font-weight: 600; margin-right: 8px; }
.coursework { border-left: 2px solid #b4d3f3; padding-left: 17px; margin-top: 28px; }
.small-heading { font-size: 14px; margin-bottom: 5px; }
.coursework p { font-size: 15px; color: var(--muted); line-height: 1.7; }
.skills-list > div { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: 15px; padding: 10px 0; }
.skills-list > div:first-child { padding-top: 0; }
.skills-list dt { color: var(--muted); font-size: 14px; line-height: 1.8; }
.skills-list dd { overflow-wrap: anywhere; }
.language-test { padding: 21px 24px; background: var(--tint); border-left: 2px solid var(--blue); margin-top: 24px; }
.test-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.test-total { margin-top: 5px; color: var(--muted); font-size: 14px; }
.test-total strong { color: var(--ink); font-size: 20px; font-weight: 650; margin-left: 6px; }
.test-total strong span { font-size: 14px; font-weight: 400; color: var(--muted); }
.test-scores { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; border-top: 1px solid #dbe5f0; padding-top: 13px; margin-top: 15px; }
.test-scores dt { color: var(--muted); font-size: 12px; }
.test-scores dd { font-size: 17px; font-weight: 550; margin-top: 1px; }
.test-scores dd span { font-size: 12px; font-weight: 400; color: var(--muted); }
.affiliation { font-size: 15px; }
.advisor { font-size: 14px; margin-top: 2px; }
.entry-description { margin-top: 12px; }
.math { font-family: Georgia, "Times New Roman", serif; white-space: nowrap; }
.math sub { font-size: .75em; }
.experience-details, .school-details { margin: 13px 0 0; padding-left: 19px; }
.experience-details li, .school-details li { padding-left: 4px; margin-top: 9px; }
.experience-details li::marker, .school-details li::marker { color: var(--blue); font-size: .7em; }
.publication-meta { color: var(--muted); font-size: 13px; margin-bottom: 11px; }
.publication-meta span { margin-inline: 7px; }
.publication h3 { font-family: Georgia, "Times New Roman", serif; font-size: 25px; line-height: 1.4; font-weight: 400; letter-spacing: -.3px; }
.authors { color: var(--muted); margin-top: 13px; font-size: 15px; }
.authors strong { color: var(--ink); font-weight: 650; }
.text-link { display: inline-block; margin-top: 15px; color: var(--blue); font-size: 14px; font-weight: 600; text-decoration: underline; }
.award-entry + .award-entry { margin-top: 24px; }
.award-entry .secondary { font-size: 15px; }
.school-details { color: var(--muted); font-size: 15px; }
.footer { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-block: 25px 35px; color: var(--muted); font-size: 13px; }
.footer-divider { color: #a1aab5; margin-inline: 10px; }
@media (min-width: 1100px) {
  #education .entry-heading, #research .entry-heading, #experience .entry-heading { flex-wrap: nowrap; }
  #research .entry-heading h3, #experience .entry-heading h3 { flex-basis: auto; }
  .entry-heading .date { flex-shrink: 0; }
}
@media (max-width: 960px) {
  .page-width { width: calc(100% - 64px); }
  .cv-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 30px; }
  .intro { gap: 24px; }
  .intro-contact { min-width: 0; }
  .skills-list > div { grid-template-columns: 1fr; gap: 2px; }
  .entry-heading { gap: 1px 12px; }
  .entry-heading h3 { flex-basis: 100%; }
  .section-nav a { font-size: 14px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 20px; }
  .page-width { width: calc(100% - 40px); }
  .topbar { min-height: 76px; gap: 12px; }
  .identity { gap: 11px; }
  .identity-label { font-size: 12px; letter-spacing: .7px; max-width: 100px; line-height: 1.4; }
  .pdf-link { padding: 8px 10px; font-size: 14px; gap: 6px; }
  .pdf-link svg { width: 15px; height: 15px; }
  .intro { grid-template-columns: 1fr; gap: 26px; padding: 35px 0 31px; }
  h1 { font-size: 3.5rem; letter-spacing: -2px; }
  .eyebrow { font-size: 12px; letter-spacing: 1px; }
  .disciplines { font-size: 15px; margin-top: 12px; }
  .intro-contact { gap: 9px; }
  .contact-row { grid-template-columns: 49px minmax(0, 1fr); gap: 10px; }
  .cv-layout { display: block; padding-top: 27px; }
  .sidebar { position: static; margin-bottom: 31px; }
  .section-nav { display: flex; flex-wrap: wrap; gap: 6px 17px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .section-nav .rail-label, .nav-number { display: none; }
  .section-nav a { padding: 3px 0; font-size: 14px; }
  .interests { margin-top: 19px; border-top: 0; padding-top: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 14px; }
  .interests .rail-label { margin-bottom: 0; font-size: 12px; }
  .interests p:last-child { font-family: inherit; color: var(--muted); font-size: 13px; }
  .interests p:last-child span { display: inline; }
  .interests p:last-child span + span::before { content: " · "; }
  .section-heading { gap: 10px; margin-bottom: 23px; }
  h2 { font-size: 20px; }
  .cv-section { padding-bottom: 31px; margin-bottom: 31px; }
  .entry + .entry { margin-top: 25px; }
  .entry-heading h3 { flex-basis: 100%; }
  .date { font-size: 13px; }
  .language-test { padding: 18px; }
  .test-scores { gap: 8px; }
  .test-scores dt { font-size: 12px; }
  .test-scores dd { font-size: 16px; }
  .publication h3 { font-size: 23px; }
  .publication-meta { font-size: 12px; }
  .footer { font-size: 12px; padding-block: 20px 28px; }
  .footer-divider { margin-inline: 5px; }
}
@media (max-width: 360px) {
  .identity-label { display: none; }
  .test-scores { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .section-nav a { transition: none; }
}
@page { size: A4; margin: 14mm 15mm; }
@media print {
  :root { font-size: 10pt; }
  html { scroll-behavior: auto; }
  body { line-height: 1.48; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .page-width { width: 100%; }
  .topbar, .section-nav, .skip-link, .footer { display: none; }
  .intro { padding: 0 0 16px; margin-bottom: 16px; gap: 16px; grid-template-columns: 1fr auto; }
  .eyebrow { font-size: 8pt; margin-bottom: 4px; }
  h1 { font-size: 34pt; letter-spacing: -1px; }
  .disciplines { font-size: 9pt; margin-top: 5px; }
  .intro-contact { min-width: 235px; font-size: 9pt; gap: 5px; padding-bottom: 0; }
  .contact-label { font-size: 7pt; }
  .contact-row { grid-template-columns: 39px 1fr; gap: 8px; }
  .cv-layout { display: block; padding-top: 0; }
  .sidebar { position: static; margin-bottom: 18px; }
  .interests { border: 0; padding: 0; margin: 0; display: flex; align-items: baseline; gap: 12px; }
  .interests .rail-label { font-size: 8pt; margin: 0; }
  .interests p:last-child { font-family: inherit; font-size: 10pt; }
  .interests p:last-child span { display: inline; }
  .interests p:last-child span + span::before { content: " · "; }
  .cv-section { padding-bottom: 16px; margin-bottom: 16px; }
  .section-heading { gap: 8px; margin-bottom: 13px; break-after: avoid; }
  .section-number { font-size: 8pt; }
  h2 { font-size: 13pt; }
  h3 { font-size: 10pt; }
  .entry, .award-entry, .coursework, .language-test { break-inside: avoid; }
  .entry-heading { flex-wrap: nowrap; gap: 12px; margin-bottom: 2px; }
  .entry-heading h3 { flex-basis: auto; }
  .date { font-size: 8pt; flex-shrink: 0; }
  .entry + .entry, .award-entry + .award-entry { margin-top: 13px; }
  .affiliation, .advisor, .coursework p, .authors, .award-entry .secondary, .school-details { font-size: 9pt; }
  .entry-description { margin-top: 6px; }
  .coursework { margin-top: 13px; padding-left: 10px; }
  .small-heading, .detail-label { font-size: 9pt; }
  .skills-list > div { grid-template-columns: 165px 1fr; gap: 10px; padding: 4px 0; }
  .skills-list dt { font-size: 9pt; }
  .language-test { padding: 10px 14px; margin-top: 10px; }
  .test-total { font-size: 9pt; margin-top: 2px; }
  .test-total strong { font-size: 12pt; }
  .test-total strong span { font-size: 9pt; }
  .test-scores { padding-top: 7px; margin-top: 7px; }
  .test-scores dt, .test-scores dd span { font-size: 8pt; }
  .test-scores dd { font-size: 10pt; }
  .experience-details, .school-details { margin-top: 6px; }
  .experience-details li, .school-details li { margin-top: 4px; }
  .publication-meta { font-size: 8pt; margin-bottom: 5px; }
  .publication h3 { font-size: 14pt; }
  .authors { margin-top: 6px; }
  .text-link { font-size: 9pt; margin-top: 7px; }
  a { text-decoration: none; }
}
