@font-face {
  font-family: Manrope;
  src: url("fonts/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #f8f9fa;
  --surface: #fff;
  --text: #161616;
  --muted: #60656b;
  --green: #3f5c32;
  --green-dark: #283e20;
  --rule: #dfe3e6;
  --font: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--background); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
a { color: var(--green); text-decoration: none; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--green-dark); text-decoration: underline; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; border-radius: 3px; }
::selection { background: #dce6d7; color: var(--text); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.3; text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
.site-shell { width: min(100% - 56px, 852px); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding-top: 48px; padding-bottom: 60px; }
.main-nav { display: flex; gap: 29px; align-items: center; }
.main-nav a, .cv-link { display: inline-flex; align-items: center; min-height: 32px; font-size: 14px; color: #53585b; }
.main-nav .is-current { color: var(--text); font-weight: 750; }
.cv-link { gap: 7px; }
.file-type { font-size: 10px; color: var(--muted); }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 20; padding: 8px 14px; transform: translateY(-200%); background: var(--surface); border: 1px solid var(--green); }
.skip-link:focus { transform: translateY(0); }

.intro { display: grid; grid-template-columns: minmax(0, 1fr) 222px; gap: 54px; align-items: start; }
.intro h1 { font-size: 43px; font-weight: 800; letter-spacing: -1.7px; }
.affiliation { margin-top: 9px; font-size: 13.5px; color: var(--muted); }
.bio { margin-top: 25px; font-size: 16px; line-height: 1.8; }
.bio p + p { margin-top: 13px; }
.bio a { font-weight: 650; }
.portrait { width: 222px; height: 266px; border-radius: 22px; object-fit: cover; object-position: 50% 65%; margin-top: 3px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px 23px; margin-top: 21px; font-size: 13px; }
.contact-links a { overflow-wrap: anywhere; }
.home-section { margin-top: 67px; scroll-margin-top: 30px; }
.home-section > h2 { font-size: 19px; font-weight: 800; letter-spacing: -.35px; margin-bottom: 25px; }
.project-list { display: flex; flex-direction: column; }
.project-row { display: grid; grid-template-columns: 186px minmax(0, 1fr); align-items: center; gap: 28px; padding: 23px 0; border-bottom: 1px solid var(--rule); }
.project-row:first-child { padding-top: 0; }
.project-row:last-child { border-bottom: 0; padding-bottom: 0; }
.project-image { display: block; height: 128px; overflow: hidden; border-radius: 9px; background: #edf0ed; }
.project-image img { width: 100%; height: 100%; object-fit: cover; }
.assistant-thumbnail { background: #f4efe5; }
.research-thumbnail img { object-fit: cover; object-position: 50% 70%; transform: scale(1.11); }
.game-thumbnail img { object-position: 50% 65%; }
.project-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 16px; margin-bottom: 7px; }
.project-heading h3 { font-size: 16px; font-weight: 750; letter-spacing: -.22px; }
.project-heading h3 a { color: inherit; }
.project-row:first-child .project-heading h3 a { color: var(--green); }
.project-copy > p { color: #444b50; font-size: 14px; line-height: 1.75; }
.project-bottom { display: flex; flex-wrap: wrap; gap: 7px 18px; align-items: center; margin-top: 10px; font-size: 11px; }
.technology { color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.status-dot { display: inline-block; flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: #5c7751; }
.text-link { font-weight: 700; }
.writing-section { margin-top: 59px; }
.featured-essay { display: grid; grid-template-columns: 55px minmax(0,1fr); gap: 15px; }
.essay-date { padding-top: 2px; font-size: 12px; color: var(--muted); }
.featured-essay h3 { font-size: 16px; font-weight: 750; letter-spacing: -.2px; }
.featured-essay p { margin-top: 8px; font-size: 13.5px; line-height: 1.75; color: #444b50; }
.featured-essay .essay-note { margin-top: 12px; font-size: 11.5px; line-height: 1.8; color: var(--muted); }
.earlier-writing { display: grid; gap: 14px; margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--rule); }
.earlier-writing > a { display: flex; justify-content: space-between; gap: 20px; font-size: 13px; }
.writing-meta { display: inline-flex; gap: 8px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 70px; padding: 22px 0 29px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 11px; }

.case-study { padding-top: 0; }
.back-link { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.case-header { padding: 24px 0 33px; }
.case-header h1 { font-size: 41px; font-weight: 800; letter-spacing: -1.5px; }
.case-lead { margin-top: 16px; max-width: 650px; color: #4e555b; font-size: 17px; line-height: 1.7; }
.project-facts { display: flex; gap: 48px; margin-top: 27px; font-size: 12px; }
.project-facts dt { color: var(--muted); font-size: 10px; margin-bottom: 3px; }
.project-facts dd { display: flex; align-items: center; gap: 7px; font-weight: 650; }
.app-showcase { margin-top: 1px; }
.showcase-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 18px; background: #ebeeea; border-radius: 12px 12px 0 0; font-size: 12px; color: #535d50; }
.platform-tabs { display: flex; gap: 3px; padding: 3px; border: 1px solid #d4dcd1; border-radius: 7px; }
.platform-tabs button { border: 0; padding: 4px 14px; min-height: 30px; border-radius: 4px; background: transparent; color: #4f5b4c; cursor: pointer; font-size: 11px; }
.platform-tabs button[aria-selected="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 3px #1a2f1610; }
.platform-tabs button:hover { background: #ffffff80; }
.showcase-stage { display: flex; justify-content: center; align-items: center; height: 470px; padding: 22px; background: #e8ece6; overflow: hidden; border-radius: 0 0 12px 12px; }
.showcase-stage img { height: 100%; width: auto; max-width: 100%; object-fit: contain; border: 1px solid #d5cbb7; border-radius: 7px; box-shadow: 0 8px 25px #3a432319; }
.showcase-stage.is-phone img { border-radius: 17px; }
.app-showcase figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-top: 12px; color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.app-showcase figcaption a { flex-shrink: 0; }
.noscript-note { font-size: 12px; margin-top: 8px; }
.case-prose { max-width: 680px; margin-inline: auto; padding-top: 7px; }
.case-prose section { margin-top: 49px; }
.case-prose h2 { margin-bottom: 18px; font-size: 23px; font-weight: 750; letter-spacing: -.65px; line-height: 1.4; }
.case-prose p { color: #444b50; font-size: 15px; line-height: 1.85; }
.case-prose p + p { margin-top: 15px; }
.capture-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 0; margin: 23px 0 25px; list-style: none; counter-reset: capture; }
.capture-flow li { counter-increment: capture; padding-top: 12px; border-top: 2px solid #b9c8b2; }
.capture-flow strong { display: block; font-size: 12px; margin-bottom: 8px; }
.capture-flow strong::before { content: counter(capture) ". "; color: var(--green); }
.capture-flow li > span { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.65; }
.decision-list { display: grid; gap: 24px; }
.decision-list h3 { font-size: 14px; font-weight: 750; margin-bottom: 7px; }
.project-status-note { padding-top: 27px; border-top: 1px solid var(--rule); }
.case-prose .project-status-note h2 { font-size: 18px; }
.case-end { display: flex; justify-content: space-between; gap: 20px; margin-top: 34px; font-size: 12px; }

@media (min-width: 1280px) {
  .site-header { padding-top: 58px; padding-bottom: 64px; }
}
@media (max-width: 700px) {
  .site-shell { width: min(100% - 40px, 560px); }
  .site-header { padding-top: 27px; padding-bottom: 39px; }
  .main-nav { gap: 23px; }
  .intro { grid-template-columns: minmax(0,1fr) 126px; gap: 24px; }
  .intro h1 { font-size: 35px; letter-spacing: -1.25px; }
  .affiliation { font-size: 11px; max-width: 220px; }
  .intro-copy { display: contents; }
  .intro-copy h1, .affiliation { grid-column: 1; }
  .intro h1 { align-self: end; }
  .affiliation { margin-top: -17px; align-self: start; }
  .portrait { grid-column: 2; grid-row: 1 / 3; height: 144px; width: 126px; border-radius: 15px; margin-top: 0; }
  .bio, .contact-links { grid-column: 1 / -1; }
  .bio { margin-top: 0; font-size: 14px; }
  .contact-links { margin-top: -5px; font-size: 12px; gap: 12px 23px; }
  .home-section { margin-top: 46px; }
  .project-row { grid-template-columns: 140px minmax(0,1fr); gap: 21px; align-items: start; }
  .project-image { height: 112px; }
  .project-heading h3 { font-size: 14px; }
  .project-copy > p { font-size: 13.5px; }
  .project-bottom { font-size: 10px; }
  .status { font-size: 10px; }
  .earlier-writing > a { font-size: 12px; }
  .writing-meta { font-size: 10px; }
  .site-footer { margin-top: 49px; }
  .case-header h1 { font-size: 34px; }
  .case-lead { font-size: 15px; }
  .project-facts { gap: 29px; font-size: 11px; }
  .showcase-stage { height: 410px; padding: 18px; }
  .case-prose h2 { font-size: 21px; }
  .case-prose p { font-size: 14px; }
}
@media (max-width: 440px) {
  .main-nav { gap: 21px; }
  .main-nav a, .cv-link { font-size: 12px; }
  .intro { grid-template-columns: minmax(0,1fr) 102px; column-gap: 18px; row-gap: 22px; }
  .intro h1 { font-size: 31px; }
  .portrait { width: 102px; height: 125px; }
  .affiliation { font-size: 10.5px; line-height: 1.65; }
  .project-row { grid-template-columns: minmax(0,1fr); gap: 17px; padding-block: 25px; }
  .project-image { height: 176px; border-radius: 9px; margin-top: 0; }
  .project-copy > p { font-size: 14px; }
  .project-heading h3 { font-size: 16px; }
  .assistant-thumbnail img { object-fit: contain; }
  .project-heading { gap: 5px; }
  .project-bottom { gap: 5px 14px; }
  .featured-essay { grid-template-columns: 35px minmax(0,1fr); gap: 13px; }
  .featured-essay p { font-size: 12.5px; }
  .featured-essay h3 { font-size: 14px; }
  .earlier-writing > a { align-items: start; flex-direction: column; gap: 3px; }
  .case-header h1 { font-size: 30px; }
  .project-facts { flex-wrap: wrap; gap: 16px 25px; }
  .showcase-toolbar { padding: 10px 12px; font-size: 10px; }
  .platform-tabs button { padding-inline: 10px; }
  .showcase-stage { height: 365px; padding: 16px; }
  .app-showcase figcaption { flex-direction: column; gap: 7px; }
  .capture-flow { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
  .case-prose h2 { font-size: 20px; }
  .case-prose section { margin-top: 37px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Shared indexes and long-form pages. */
a, button { touch-action: manipulation; -webkit-tap-highlight-color: #dce6d780; }
h2, h3 { scroll-margin-top: 24px; }
.project-facts { flex-wrap: wrap; gap: 18px 40px; }
.contribution { max-width: 680px; margin-top: 20px; color: var(--muted); font-size: 12px; }
.project-hero { margin-bottom: 12px; }
.project-hero > img { width: 100%; height: auto; border-radius: 12px; background: #edf0ed; }
.project-hero figcaption, .inline-figure figcaption { margin-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.case-prose > h2 { margin-top: 45px; }
.case-prose > h2:first-child { margin-top: 37px; }
.case-prose > p + p { margin-top: 15px; }
.case-prose ul, .case-prose ol:not(.capture-flow) { padding-left: 23px; font-size: 15px; color: #444b50; }
.case-prose li + li { margin-top: 8px; }
.inline-figure { margin: 30px 0; }
.inline-figure img { width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 7px; }
.case-prose table { width: 100%; margin: 24px 0; border-collapse: collapse; font-size: 12px; line-height: 1.7; font-variant-numeric: tabular-nums; }
.case-prose th, .case-prose td { border-bottom: 1px solid var(--rule); padding: 12px 10px; vertical-align: top; }
.case-prose th { text-align: left; color: var(--text); font-weight: 750; }
.case-prose td { color: #444b50; }
.case-prose th:first-child, .case-prose td:first-child { padding-left: 0; }
.index-header { margin-bottom: 44px; max-width: 680px; }
.index-header h1, .simple-page h1 { font-size: 41px; font-weight: 800; letter-spacing: -1.5px; }
.index-header > p { margin-top: 15px; color: #4e555b; font-size: 16px; }
.index-section-title { margin-bottom: 25px; font-size: 19px; font-weight: 800; letter-spacing: -.35px; }
.secondary-projects, .writing-archive { margin-top: 55px; }
.secondary-project { padding-top: 22px; border-top: 1px solid var(--rule); }
.secondary-project h3 { font-size: 16px; }
.secondary-project > p { max-width: 680px; margin-top: 10px; color: #444b50; font-size: 14px; }
.writing-row { display: grid; grid-template-columns: 55px minmax(0, 1fr); gap: 15px; border-top: 1px solid var(--rule); padding: 24px 0; }
.writing-row > time { font-size: 12px; color: var(--muted); }
.writing-row h3 { font-size: 16px; font-weight: 750; }
.writing-row p { margin: 8px 0; color: #444b50; font-size: 14px; }
.writing-article { max-width: 680px; margin-inline: auto; }
.article-header { margin: 25px 0 38px; }
.article-header h1 { font-size: 34px; font-weight: 800; letter-spacing: -1px; line-height: 1.4; overflow-wrap: break-word; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; color: var(--muted); font-size: 12px; }
.article-context { margin-top: 18px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.article-prose { font-size: 16px; line-height: 1.95; color: #353b40; overflow-wrap: break-word; }
.article-prose h2 { margin: 37px 0 18px; font-size: 23px; font-weight: 750; letter-spacing: -.4px; color: var(--text); }
.article-prose h3 { margin: 30px 0 16px; font-size: 20px; color: var(--text); }
.article-prose p + p { margin-top: 20px; }
.article-prose li + li { margin-top: 14px; }
.article-prose ul, .article-prose ol { padding-left: 24px; }
.article-prose blockquote { margin: 25px 0; padding-left: 20px; border-left: 2px solid #b9c8b2; color: var(--muted); }
.article-prose img { border-radius: 7px; }
.article-prose pre { overflow-x: auto; padding: 18px; border: 1px solid var(--rule); font-size: 13px; }
.article-prose math { font-size: 1em; }
.article-end { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 13px; }
.simple-page { max-width: 600px; min-height: 260px; }
.simple-page p { margin-top: 22px; color: #444b50; }
.download-link { display: inline-flex; gap: 10px; align-items: baseline; font-weight: 700; }
.simple-page .small-note { margin-top: 32px; font-size: 13px; color: var(--muted); }
@media (max-width: 700px) {
  .index-header h1, .simple-page h1 { font-size: 34px; }
  .index-header { margin-bottom: 34px; }
  .index-header > p { font-size: 14px; }
  .case-prose > h2 { margin-top: 35px; }
  .article-header h1 { font-size: 28px; }
  .article-prose { font-size: 15px; }
  .article-prose h2 { font-size: 21px; }
  .secondary-projects, .writing-archive { margin-top: 43px; }
}
@media (max-width: 440px) {
  .writing-row { grid-template-columns: 35px minmax(0, 1fr); gap: 13px; }
  .writing-row h3 { font-size: 15px; }
  .writing-row p { font-size: 13px; }
  .article-header h1 { font-size: 25px; }
  .case-prose table { font-size: 11px; }
  .case-prose th, .case-prose td { padding: 10px 6px; }
  .project-facts { gap: 16px 25px; }
  .main-nav a, .cv-link { min-height: 44px; }
  .platform-tabs button { min-height: 40px; }
}
