:root {
  color-scheme: light;
  --paper: #fafaf7;
  --ink: #242923;
  --body: #4f564e;
  --muted: #636b61;
  --line: #dddfd7;
  --accent: #365e48;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 15px; line-height: 1.75; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.25; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
::selection { background: #dce6da; }
.container { width: min(1080px, calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 10px 18px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); color: white; }
#main-content { outline: 0; }
[id] { scroll-margin-top: 108px; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 15px; letter-spacing: -.035em; font-weight: 650; text-decoration: none; white-space: nowrap; }
.wordmark > span { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 27px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--body); font-size: 12px; text-decoration: none; position: relative; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav a[aria-current]::after { content: ""; position: absolute; height: 1px; background: var(--ink); bottom: 5px; left: 0; right: 0; }
.site-nav .nav-cv { gap: 9px; border-left: 1px solid var(--line); padding-left: 25px; color: var(--ink); }
.menu-toggle { display: none; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 248px; gap: 72px; align-items: center; padding: 74px 0 70px; }
.hero-role { color: var(--accent); font-size: 13px; font-weight: 550; }
.hero h1 { font-size: clamp(46px, 5.4vw, 74px); line-height: 1.15; font-weight: 500; letter-spacing: -.065em; margin-top: 15px; }
.hero-description { font-size: 17px; line-height: 1.9; max-width: 650px; color: var(--body); margin-top: 23px; }
.hero-links { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 25px; background: var(--ink); border: 1px solid var(--ink); color: white; text-decoration: none; padding: 10px 16px; min-height: 44px; font-size: 12px; border-radius: 3px; }
.button:hover { color: white; background: var(--accent); border-color: var(--accent); }
.inline-link { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 500; text-decoration: none; }
.inline-link:hover { text-decoration: underline; }
.inline-link > span { color: var(--muted); font-weight: 400; }
.hero-portrait { margin: 0; width: 100%; }
.hero-portrait img { display: block; width: 100%; height: auto; border-radius: 4px; }

.section { border-top: 1px solid var(--line); padding: 45px 0 53px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 35px; }
h2 { font-size: 28px; font-weight: 500; letter-spacing: -.045em; }
.section-note { color: var(--muted); font-size: 11px; }
.experience-entry { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: 48px; }
.experience-entry + .experience-entry { margin-top: 37px; padding-top: 32px; border-top: 1px solid var(--line); }
.entry-meta { padding-top: 2px; }
.organization { font-size: 17px; font-weight: 550; letter-spacing: -.025em; text-decoration: none; }
.organization > span { color: var(--muted); font-size: 13px; padding-left: 4px; }
.entry-meta p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.entry-body h3 { font-size: 20px; font-weight: 550; letter-spacing: -.03em; }
.entry-context { color: var(--muted); font-size: 12px; margin-top: 6px; margin-bottom: 17px; }
.entry-body > p:not(.entry-context) { color: var(--body); font-size: 14px; }
.entry-body > p + p:not(.recognition) { margin-top: 12px; }
.experience-points { padding-left: 17px; margin: 17px 0 19px; color: var(--body); font-size: 14px; }
.experience-points li { padding-left: 3px; margin-bottom: 9px; }
.experience-points li::marker { color: var(--muted); font-size: 9px; }
.experience-points a { color: var(--ink); }
.entry-body .recognition { border-left: 2px solid #a2b3a0; padding-left: 14px; font-size: 12px !important; line-height: 1.8; }
.recognition strong { color: var(--ink); font-size: 11px; font-weight: 600; display: block; margin-bottom: 3px; }

.featured-work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px; }
.work-entry { display: flex; flex-direction: column; min-width: 0; }
.work-entry + .work-entry { border-left: 1px solid var(--line); padding-left: 38px; }
.work-context { color: var(--muted); font-size: 11px; margin-bottom: 12px; }
.work-entry h3 { font-size: 27px; font-weight: 500; letter-spacing: -.045em; margin-bottom: 16px; }
.work-entry > p:not(.work-context, .technology-line) { font-size: 14px; color: var(--body); }
.work-entry > p + p:not(.technology-line) { margin-top: 14px; }
.work-result { display: flex; align-items: center; gap: 19px; margin: 20px 0 7px; }
.work-result > strong { font-size: 36px; font-weight: 500; letter-spacing: -.06em; line-height: 1.2; }
.work-result > span { color: var(--muted); font-size: 11px; line-height: 1.8; }
details { margin-top: 20px; color: var(--body); font-size: 13px; }
summary { cursor: pointer; color: var(--ink); font-size: 12px; width: fit-content; padding-block: 4px; }
summary::marker { font-size: 9px; }
details ul { margin: 12px 0 0; padding-left: 17px; font-size: 13px; }
details li { padding-left: 2px; margin-bottom: 9px; }
.work-links { display: flex; flex-wrap: wrap; align-items: center; gap: 21px; padding-top: 21px; }
.technology-line { color: var(--muted); font-size: 10px; padding-top: 23px; margin-top: auto; }
.subsection-heading { font-size: 14px; font-weight: 550; letter-spacing: -.02em; margin: 39px 0 20px; }
.earlier-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.earlier-projects article { border-top: 1px solid var(--line); padding-top: 19px; }
.earlier-projects h4 { font-size: 15px; font-weight: 550; letter-spacing: -.02em; }
.earlier-projects p { font-size: 12px; color: var(--body); line-height: 1.9; margin-top: 10px; }
.earlier-projects article > span { color: var(--muted); display: block; font-size: 10px; margin-top: 12px; }

.writing-entry { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: 48px; }
.writing-publisher { display: flex; flex-direction: column; gap: 6px; }
.publisher-name { font-size: 17px; font-weight: 550; letter-spacing: -.025em; }
.writing-publisher > span:last-child { font-size: 11px; color: var(--muted); }
.writing-body h3 { font-size: 23px; font-weight: 500; line-height: 1.5; letter-spacing: -.035em; }
.writing-body h3 a { text-decoration: none; }
.writing-body h3 a:hover { text-decoration: underline; }
.writing-body h3 span { color: var(--muted); font-size: 18px; white-space: nowrap; }
.writing-body p { color: var(--body); font-size: 14px; margin: 15px 0 19px; }

.publication-entry { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: 48px; }
.publication-entry + .publication-entry { margin-top: 28px; padding-top: 29px; border-top: 1px solid var(--line); }
.publication-meta { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.publication-venue { font-size: 12px; line-height: 1.7; font-weight: 550; }
.publication-meta > span:last-child { color: var(--muted); font-size: 11px; }
.publication-body h3 { font-size: 17px; line-height: 1.6; font-weight: 550; letter-spacing: -.025em; }
.publication-body p { color: var(--body); font-size: 13px; margin-top: 12px; line-height: 1.9; }
.publication-body .publication-authors { color: var(--muted); font-size: 11px; }
.publication-authors strong { color: var(--ink); font-weight: 550; }
.publication-links { display: flex; flex-wrap: wrap; gap: 23px; align-items: center; margin-top: 15px; }
.citation-button { padding: 0; border: 0; background: transparent; font-size: 12px; font-weight: 500; line-height: 1.75; }
.citation-button:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.citation { background: #efefea; border: 1px solid var(--line); padding: 17px; margin-top: 16px; }
.citation pre { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }

.about-layout { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: 48px; }
.education h3 { font-size: 18px; line-height: 1.5; font-weight: 550; letter-spacing: -.025em; }
.education p { font-size: 11px; color: var(--muted); margin-top: 11px; line-height: 1.9; }
.about-body p { color: var(--body); font-size: 14px; }
.about-body p + p { margin-top: 15px; }
.skills { margin: 25px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; }
.skills > div { display: grid; grid-template-columns: 95px minmax(0, 1fr); gap: 15px; }
.skills > div + div { margin-top: 8px; }
.skills dt { color: var(--ink); font-weight: 500; }
.skills dd { color: var(--body); margin: 0; }
.contact-section { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: 48px; padding-bottom: 58px; }
.contact-section p { font-size: 12px; color: var(--muted); margin-top: 12px; }
.email-link { font-size: clamp(16px, 2vw, 24px); line-height: 1.6; letter-spacing: -.025em; text-decoration: none; overflow-wrap: anywhere; }
.email-link:hover { text-decoration: underline; }
.email-link > span { color: var(--muted); font-size: 19px; }
.contact-details > div { display: flex; gap: 28px; margin-top: 15px; }
.site-footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 30px; color: var(--muted); font-size: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a > span { margin-left: 7px; }

@media (min-width: 1600px) {
  .hero { padding-block: 91px; }
}
@media (max-width: 1000px) {
  .container { width: calc(100% - 72px); }
  .site-nav { gap: 20px; }
  .site-nav .nav-cv { padding-left: 19px; }
  .hero { grid-template-columns: minmax(0, 1fr) 190px; gap: 40px; padding-block: 63px; }
  .hero h1 { font-size: 57px; }
  .hero-description { font-size: 15px; }
  .experience-entry, .writing-entry, .publication-entry, .about-layout, .contact-section { grid-template-columns: 165px minmax(0, 1fr); gap: 33px; }
  .featured-work { gap: 27px; }
  .work-entry + .work-entry { padding-left: 27px; }
  .wordmark { font-size: 13px; }
  .site-nav a { font-size: 11px; }
}
@media (max-width: 700px) {
  html:not(.js) .site-header { position: static; }
  [id] { scroll-margin-top: 85px; }
  .container { width: calc(100% - 44px); }
  .header-inner { min-height: 74px; flex-wrap: wrap; column-gap: 15px; row-gap: 0; }
  .wordmark { font-size: 14px; }
  .js .menu-toggle { display: flex; align-items: center; gap: 12px; min-height: 44px; border: 0; padding: 8px 0 8px 12px; background: transparent; font-size: 12px; }
  .menu-toggle > span { font-size: 21px; line-height: 1; font-weight: 300; }
  .site-nav { width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 6px 24px; padding: 5px 0 17px; }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav a { font-size: 12px; min-height: 34px; }
  .site-nav .nav-cv { border-left: 0; padding-left: 0; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 35px 0 38px; }
  .hero-role { font-size: 12px; }
  .hero h1 { font-size: clamp(38px, 9.2vw, 60px); margin-top: 15px; letter-spacing: -.055em; }
  .hero-description { font-size: 15px; line-height: 1.9; margin-top: 18px; }
  .hero-links { gap: 21px; margin-top: 23px; }
  .button { font-size: 11px; gap: 18px; padding-inline: 14px; }
  .hero-links .inline-link { font-size: 11px; }
  .hero-portrait { grid-row: 1; width: 126px; }
  .section { padding: 30px 0 34px; }
  .section-heading { align-items: flex-start; gap: 10px; margin-bottom: 26px; }
  h2 { font-size: 25px; }
  .section-note { font-size: 9px; padding-top: 7px; text-align: right; max-width: 145px; }
  .experience-entry, .writing-entry, .publication-entry, .about-layout, .contact-section { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .entry-meta { display: flex; align-items: baseline; gap: 15px; justify-content: space-between; padding: 0; }
  .organization { font-size: 15px; }
  .entry-meta p { font-size: 10px; margin: 0; }
  .entry-body h3 { font-size: 18px; }
  .entry-context { font-size: 11px; margin-bottom: 14px; }
  .entry-body > p:not(.entry-context), .experience-points { font-size: 13px; }
  .experience-points li { margin-bottom: 11px; }
  .entry-body .recognition { font-size: 11px !important; }
  .experience-entry + .experience-entry { margin-top: 27px; padding-top: 24px; }
  .featured-work { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .work-entry + .work-entry { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 27px; }
  .work-entry h3 { font-size: 25px; }
  .work-entry > p:not(.work-context, .technology-line) { font-size: 13px; }
  .work-context { font-size: 10px; }
  .technology-line { padding-top: 18px; }
  .earlier-projects { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .earlier-projects h4 { font-size: 15px; }
  .earlier-projects p { font-size: 13px; }
  .earlier-projects article > span { margin-top: 9px; }
  .subsection-heading { margin-top: 30px; }
  .writing-publisher { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 10px; }
  .publisher-name { font-size: 15px; }
  .writing-publisher > span:last-child { font-size: 10px; }
  .writing-body h3 { font-size: 21px; }
  .writing-body p { font-size: 13px; }
  .publication-meta { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 14px; }
  .publication-venue { font-size: 11px; }
  .publication-meta > span:last-child { font-size: 10px; white-space: nowrap; }
  .publication-body h3 { font-size: 16px; }
  .publication-body p { font-size: 12px; }
  .publication-body .publication-authors { font-size: 10px; }
  .publication-entry + .publication-entry { margin-top: 25px; padding-top: 25px; }
  .education h3 { font-size: 18px; }
  .education p { font-size: 11px; }
  .about-body p { font-size: 13px; }
  .skills { font-size: 11px; }
  .skills > div { grid-template-columns: 79px minmax(0, 1fr); gap: 12px; }
  .contact-section { gap: 22px; padding-bottom: 36px; }
  .contact-section p { font-size: 11px; margin-top: 8px; }
  .email-link { font-size: clamp(14px, 4.05vw, 21px); }
  .email-link > span { font-size: 15px; }
  .site-footer { font-size: 9px; padding-top: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .site-header, .site-footer, .hero-links, .contact-section { display: none; }
  .container { width: 100%; }
  body { background: white; font-size: 10pt; }
  .hero { padding-top: 0; padding-bottom: 25px; }
  .section { padding-block: 25px; }
  .experience-entry, .publication-entry, .work-entry, .writing-entry { break-inside: avoid; }
}
