:root {
  --paper: #f3efe4;
  --red: #b6343e;
  --blue: #242b58;
  --purple: #694471;
  --ink: #202125;
  --muted: #65636a;
  --line: #dedad2;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.65; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--purple); outline-offset: 5px; }
[data-text] { white-space: pre-line; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 10px 16px; background: var(--ink); color: var(--paper); z-index: 10; }
.skip-link:focus { top: 10px; }
.masthead { border-bottom: 1px solid transparent; }
.masthead-inner { max-width: 1280px; min-height: 78px; padding: 16px 32px; margin: 0 auto; display: flex; align-items: center; gap: 60px; }
.site-title { font-size: 20px; font-weight: 700; color: var(--blue); white-space: nowrap; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 30px; }
nav a { color: var(--muted); font-size: 17px; font-weight: 600; padding: 5px 0; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current="location"] { color: var(--red); border-bottom-color: var(--red); text-decoration: none; }
.page-layout { max-width: 1280px; margin: 0 auto; padding: 40px 32px 72px; display: grid; grid-template-columns: 220px minmax(0, 860px); gap: 48px; min-height: calc(100vh - 220px); }
.author-profile { align-self: start; position: sticky; top: 28px; font-size: 14px; }
.author-avatar { display: block; width: 175px; height: 175px; padding: 5px; object-fit: cover; border-radius: 50%; border: 1px solid var(--line); }
.author-info h2 { font-size: 20px; line-height: 1.3; margin: 18px 0 9px; color: var(--ink); }
.author-bio { margin: 0 0 17px; font-size: 14px; line-height: 1.5; }
.author-links { padding: 0; margin: 0; list-style: none; }
.author-links li { display: flex; align-items: baseline; gap: 9px; padding: 4px 0; font-size: 13px; overflow-wrap: anywhere; }
.author-links a { color: var(--ink); }
.author-links a:hover { color: var(--red); }
.link-icon { flex: 0 0 18px; width: 18px; height: 18px; object-fit: contain; align-self: center; text-align: center; color: var(--purple); }
svg.link-icon { align-self: center; fill: none; stroke: currentColor; stroke-width: 1.7; }
main { min-width: 0; }
main:focus { outline: none; }
main section + section { margin-top: 36px; }
main h1, main h2 { font-size: 30px; line-height: 1.35; color: var(--blue); margin: 0 0 22px; padding-bottom: 10px; border-bottom: 1px solid transparent; }
main h3 { font-size: 20px; line-height: 1.4; margin: 0 0 6px; color: var(--blue); }
main p { margin: 10px 0; }
.education-entry { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 24px; padding: 8px 0 25px; }
.education-entry + .education-entry { border-top: 1px solid transparent; padding-top: 26px; }
.school-logo { width: 110px; height: 95px; object-fit: contain; align-self: start; }
.education-body { min-width: 0; }
.education-body h3 { font-size: 20px; }
.education-body h3 a { color: var(--blue); }
.education-degree { font-size: 15px; font-weight: 500; }
.education-grade { font-size: 14px; color: var(--muted); }
.education-awards-heading { margin: 18px 0 6px; font-size: 14px; color: var(--purple); }
.education-awards { padding-left: 18px; margin: 0; font-size: 14px; }
.education-awards li { margin: 5px 0; }
.research-entry h3 { overflow-wrap: anywhere; }
.research-entry.has-media { display: grid; grid-template-columns: minmax(180px, 34%) minmax(0, 1fr); gap: 24px; align-items: start; }
.research-body { min-width: 0; }
.research-entry + .research-entry { margin-top: 32px; padding-top: 28px; border-top: 1px solid transparent; }
.project-media { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #e8e3d8; border-radius: 3px; }
.project-media > img, .project-media > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.project-media-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 12px; background: linear-gradient(135deg, #242b5809, #6944710c); }
.preview-symbol { font-size: 32px; line-height: 1; color: var(--purple); }
.research-entry h3 a { color: var(--red); }
.entry-meta { font-size: 13px; color: var(--muted); margin: 5px 0 9px; }
.project-description { font-size: 15px; }
details { margin-top: 9px; font-size: 14px; }
summary { cursor: pointer; color: var(--red); width: fit-content; }
details[open] { border-left: 2px solid transparent; padding-left: 14px; }
details p { color: var(--muted); line-height: 1.75; }
.experience-entry + .experience-entry { margin-top: 28px; }
.experience-entry ul { padding-left: 22px; }
.experience-entry li { margin: 5px 0; }
.entry-role { font-weight: 600; }
.award-list { padding-left: 22px; }
.award-list li { margin-bottom: 15px; }
.award-date { color: var(--purple); font-size: 14px; }
.award-organization { display: block; font-size: 14px; color: var(--muted); }
.page-footer { border-top: 1px solid transparent; background: #e8e3d8; color: var(--muted); }
.footer-inner { max-width: 1280px; padding: 25px 32px; margin: auto; font-size: 12px; }
.footer-inner p { margin: 5px 0; }
.footer-inner a { color: var(--muted); }
.sketch-top, .sketch-bottom, .sketch-left { position: relative; }
.sketch-top { border-top-color: transparent !important; }
.sketch-bottom { border-bottom-color: transparent !important; }
.sketch-top::before, .sketch-bottom::after, .sketch-left[open]::before {
  content: ""; position: absolute; pointer-events: none; background-image: var(--sketch-line); background-repeat: no-repeat; background-size: 100% 100%;
}
.sketch-top::before, .sketch-bottom::after { left: 0; width: 100%; height: 12px; }
.sketch-top::before { top: -6px; }
.sketch-bottom::after { bottom: -6px; }
.sketch-left[open] { border-left-color: transparent; }
.sketch-left[open]::before { left: -7px; top: 0; width: 12px; height: 100%; }
@media (max-width: 1000px) {
  .page-layout { grid-template-columns: 190px minmax(0,1fr); gap: 32px; padding-left: 24px; padding-right: 24px; }
  .masthead-inner { padding-left: 24px; padding-right: 24px; gap: 38px; }
  nav { gap: 22px; }
  .author-avatar { width: 155px; height: 155px; }
}
@media (max-width: 700px) {
  body { font-size: 15px; }
  .masthead-inner { align-items: flex-start; flex-direction: column; gap: 10px; padding: 16px 20px; }
  nav { gap: 20px; width: 100%; }
  nav a { font-size: 14px; }
  .page-layout { grid-template-columns: 1fr; padding: 25px 20px 45px; gap: 32px; }
  .author-profile { position: static; display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 20px; padding-bottom: 24px; border-bottom: 1px solid transparent; }
  .author-avatar { width: 100px; height: 100px; padding: 3px; }
  .author-info h2 { margin-top: 0; }
  .author-bio { font-size: 13px; margin-bottom: 10px; }
  .author-links li { font-size: 12px; padding: 3px 0; }
  main h3 { font-size: 18px; }
  .research-entry.has-media { grid-template-columns: 1fr; gap: 16px; }
  .footer-inner { padding: 22px 20px; }
  .education-entry { grid-template-columns: 72px minmax(0,1fr); gap: 15px; }
  .school-logo { width: 72px; height: 72px; }
  .education-body h3 { font-size: 18px; }
  .sketch-mobile-bottom { position: relative; border-bottom-color: transparent; }
  .sketch-mobile-bottom::after { content: ""; position: absolute; pointer-events: none; left: 0; bottom: -6px; width: 100%; height: 12px; background: var(--sketch-line) no-repeat; background-size: 100% 100%; }
}
