:root {
  color-scheme: light;
  --ink: #202b26;
  --muted: #5d6861;
  --accent: #226147;
  --paper: #fafbf8;
  --line: #d8e0d8;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 28px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.2; }
.page-shell { width: min(1100px, calc(100% - 80px)); margin-inline: auto; }
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 2;
  padding: 10px 16px;
  background: white;
}
.skip-link:focus { top: 12px; }
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.wordmark { color: var(--ink); font-size: 18px; font-weight: 650; text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 12px 25px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--accent); text-decoration: underline; }
.intro { padding: 72px 0 76px; max-width: 900px; }
.intro h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(42px, 6vw, 66px); letter-spacing: -2px; margin-bottom: 24px; }
.pitch { font-size: 21px; line-height: 1.75; margin-bottom: 30px; }
.intro-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; font-size: 15px; font-weight: 550; }
.intro-links > a:not(.button) { text-decoration: none; }
.intro-links > a:not(.button):hover { text-decoration: underline; }
.button { display: inline-flex; align-items: center; gap: 24px; padding: 11px 20px; background: var(--accent); color: white; text-decoration: none; border-radius: 4px; }
.button:hover { background: #174c36; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 28px; }
.section-heading h2, .contact-section h2 { font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 400; margin-bottom: 0; letter-spacing: -.6px; }
.work-section { padding-bottom: 76px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.project { display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.project-kind { color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 14px; }
.project h3 { font-size: 25px; font-weight: 600; margin-bottom: 16px; letter-spacing: -.5px; }
.project h3 a { color: var(--ink); text-decoration: none; }
.project h3 a:hover { color: var(--accent); text-decoration: underline; }
.project > p:not(.project-kind):not(.project-result) { color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 26px; }
.project-result { margin-top: auto; margin-bottom: 24px; }
.project-result span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 3px; }
.project-result strong { font-size: 29px; line-height: 1.3; font-weight: 600; letter-spacing: -.7px; color: var(--accent); }
.project-result .workflow { font-size: 20px; letter-spacing: -.3px; }
.project-links { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 550; }
.project-links a { text-decoration: none; }
.project-links a:hover { text-decoration: underline; }
.resume-section { border-top: 1px solid var(--line); padding: 48px 0 64px; }
.pdf-link { font-size: 14px; }
.resume { font-size: 16px; line-height: 1.75; }
.resume-header { padding-bottom: 20px; border-bottom: 2px solid var(--accent); margin-bottom: 26px; }
.resume-name { font-size: 30px; font-weight: 600; margin-bottom: 10px; letter-spacing: -.7px; }
.resume-name .phd { font-size: 20px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.resume .tag { color: var(--accent); font-size: 17px; margin-bottom: 14px; line-height: 1.6; }
.resume .contact { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); font-size: 13px; }
.resume .contact a { color: inherit; }
.resume .summary { max-width: 86ch; margin-bottom: 28px; }
.resume .proof { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin-bottom: 44px; }
.resume .proof > div { border-left: 2px solid var(--accent); padding-left: 13px; }
.resume .proof b { display: block; font-size: 24px; line-height: 1.3; font-weight: 600; margin-bottom: 6px; letter-spacing: -.5px; }
.resume .proof small { display: block; color: var(--muted); font-size: 12px; line-height: 1.6; }
.resume > h3 { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin: 38px 0 24px; }
.resume .role { margin-bottom: 30px; }
.resume .role-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 6px; }
.resume .role-head .t { font-size: 18px; line-height: 1.5; font-weight: 650; flex: 1 1 360px; margin-bottom: 0; }
.resume .role-head .d { font-size: 14px; color: var(--muted); white-space: nowrap; }
.resume .org { color: var(--muted); margin-bottom: 12px; }
.resume ul { padding-left: 21px; margin: 12px 0 0; max-width: 98ch; }
.resume li { margin-bottom: 10px; padding-left: 3px; }
.resume li::marker { color: var(--accent); }
.resume .phase { font-weight: 600; }
.resume .kw { color: var(--muted); }
.contact-section { border-top: 1px solid var(--line); padding: 44px 0 48px; }
.contact-section h2 { margin-bottom: 16px; }
.contact-email { display: inline-block; font-size: clamp(19px, 3vw, 28px); letter-spacing: -.4px; margin-bottom: 20px; text-decoration: none; overflow-wrap: anywhere; }
.contact-email:hover { text-decoration: underline; }
.contact-links { display: flex; flex-wrap: wrap; gap: 14px 26px; font-size: 14px; }
.site-footer { color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); padding: 22px 0 28px; }

@media (max-width: 900px) {
  .resume .proof { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .page-shell { width: calc(100% - 40px); }
  .site-header { padding: 22px 0; gap: 16px; }
  .site-header nav { gap: 12px 20px; }
  .intro { padding: 42px 0 52px; }
  .intro h1 { letter-spacing: -1.3px; }
  .pitch { font-size: 18px; line-height: 1.75; }
  .intro-links { gap: 18px 24px; font-size: 14px; }
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .project { padding: 24px; }
  .project h3 { font-size: 24px; }
  .work-section { padding-bottom: 48px; }
  .section-heading h2, .contact-section h2 { font-size: 29px; }
  .resume-section { padding-top: 34px; }
  .resume-name { font-size: 27px; }
  .resume .tag { font-size: 16px; }
  .resume .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 34px; }
  .resume .proof b { font-size: 23px; }
}

@media print {
  body { background: white; font-size: 11pt; }
  .page-shell { width: 100%; }
  .skip-link, .site-header, .intro-links, .pdf-link, .contact-section, .site-footer { display: none; }
  .intro { padding: 0 0 20px; }
  .intro h1 { font-size: 28pt; }
  .pitch { font-size: 11pt; line-height: 1.5; }
  .project { break-inside: avoid; padding: 15px; }
  .project h3 { font-size: 14pt; }
  .project > p:not(.project-kind):not(.project-result) { font-size: 10pt; }
  .resume { font-size: 10pt; line-height: 1.5; }
  .resume .role { break-inside: avoid; }
  .resume .proof { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .work-section { padding-bottom: 20px; }
  .resume-section { padding: 25px 0 0; }
  a { color: inherit; }
}
