*{margin:0;padding:0;box-sizing:border-box}
html{overflow-y:scroll}
body{
  font-family:'JetBrains Mono',monospace;
  background:#f4f3ee;color:#111;
  font-size:14px;line-height:1.9;
  padding:4rem 2rem 6rem;
  max-width:640px;margin:0 auto;
}
a{color:#111;text-decoration:none;border-bottom:1px solid #999;transition:border-color .15s}
a:hover{border-color:#111}
a:focus-visible{outline:2px solid #111;outline-offset:2px;border-radius:1px}

/* nav */
.nav{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:3rem}
.nav-name{font-size:1.8rem;font-weight:700;letter-spacing:-0.03em}
.nav-name a{border-bottom:none}
.nav-name a:hover{border-bottom:none}
.nav-links{display:flex;gap:1.5rem;font-size:0.85rem}
.nav-links a{border-bottom:1px solid transparent}
.nav-links a:hover{border-bottom:1px solid #999}
.nav-links .current{color:#111;border-bottom:none;cursor:default}

/* index */
.name{font-size:1.8rem;font-weight:700;letter-spacing:-0.03em;margin-bottom:0.15rem}
.loc{font-size:0.7rem;color:#666;letter-spacing:0.1em;text-transform:uppercase;margin-bottom:3rem}
.photo{float:right;margin:0 0 1.5rem 2rem;width:280px}
.photo img{width:100%;display:block;border-radius:2px}
p{margin-bottom:1.5rem}
.spacer{margin:3rem 0;border:none;border-top:1px solid #ddd}
.work-item{display:flex;justify-content:space-between;align-items:baseline;padding:0.4rem 0;border-bottom:1px solid #eee}
.work-item:first-child{border-top:1px solid #eee}
.work-name{font-weight:500}
.work-what{color:#666;font-size:0.75rem;text-align:right}
.press-inline{margin-bottom:1.5rem;font-size:0.85rem;line-height:2}
.press-link{position:relative}
.press-link::after{
  content:attr(data-preview);
  position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);
  background:#111;color:#ddd;
  font-size:0.65rem;line-height:1.5;font-style:normal;font-weight:400;
  padding:0.5rem 0.7rem;border-radius:3px;
  width:max-content;max-width:280px;
  opacity:0;pointer-events:none;
  transition:opacity .2s;
  white-space:normal;
  z-index:10;
}
.press-link:hover::after{opacity:1}
.quote{
  font-style:italic;font-weight:300;font-size:1.1rem;
  margin:2.5rem 0;padding-left:1rem;
  border-left:2px solid #bbb;line-height:1.7;
}
.press-photo{margin:2rem 0}
.press-photo img{width:100%;display:block}
.press-photo .cap{font-size:0.6rem;color:#777;margin-top:0.4rem}
.section-label{font-size:0.6rem;letter-spacing:0.2em;text-transform:uppercase;color:#777;margin-bottom:1rem}
.contact a{margin-right:1.5rem;font-size:0.85rem}
.gh-card{
  display:flex;align-items:center;gap:0.8rem;
  margin-top:1.2rem;padding:0.8rem;
  border:1px solid #ddd;border-radius:4px;
  text-decoration:none;border-bottom:none;
  transition:border-color .15s;
}
.gh-card:hover{border-color:#999}
.gh-avatar{width:40px;height:40px;border-radius:50%;flex-shrink:0}
.gh-name{font-weight:500;font-size:0.8rem;color:#111}
.gh-bio{font-size:0.72rem;color:#666}
.gh-meta{font-size:0.6rem;color:#777;margin-top:0.1rem}

/* builds */
.builds-list{margin-bottom:1.5rem}
.build-row{padding:1.2rem 0;border-bottom:1px solid #eee}
.build-row:first-child{border-top:1px solid #eee}
.build-name{font-weight:700;font-size:1rem;letter-spacing:-0.01em}
.build-desc{color:#555;font-size:0.8rem;line-height:1.7;margin-top:0.3rem}
.build-meta{font-size:0.65rem;color:#999;margin-top:0.35rem;letter-spacing:0.03em}

/* research */
.equation{font-size:1.3rem;font-weight:500;margin:1.5rem 0;letter-spacing:0.02em}
.eq-sub{font-size:0.85rem;color:#666;margin-top:-0.8rem;margin-bottom:1.5rem}
.component-table{width:100%;border-collapse:collapse;font-size:0.8rem;margin-bottom:1.5rem}
.component-table th{text-align:left;font-weight:500;padding:0.4rem 0.5rem;border-bottom:1px solid #ddd;font-size:0.65rem;letter-spacing:0.1em;text-transform:uppercase;color:#777}
.component-table td{padding:0.4rem 0.5rem;border-bottom:1px solid #eee;vertical-align:top}
.component-table td:first-child{font-weight:500}

.threshold{font-weight:500;margin:1.5rem 0 0.3rem}
.threshold-val{font-size:1.1rem;font-weight:700;margin-bottom:1.5rem}
.sim-item{display:flex;justify-content:space-between;align-items:baseline;padding:0.3rem 0;border-bottom:1px solid #eee;font-size:0.8rem}
.sim-item:first-child{border-top:1px solid #eee}
.sim-status{font-size:0.7rem;color:#666}
.paper-item{padding:0.5rem 0;border-bottom:1px solid #eee}
.paper-item:first-child{border-top:1px solid #eee}
.paper-title{font-weight:500;font-size:0.85rem}
.paper-detail{font-size:0.7rem;color:#666;margin-top:0.15rem}

/* writing */
.placeholder{margin:3rem 0;color:#666;font-size:0.85rem;line-height:1.9}

/* footer */
.page-footer{margin-top:3rem;padding-top:1.5rem;border-top:1px solid #ddd;font-size:0.8rem}
.page-footer a{margin-right:1.5rem}


/* research mini-nav (scrollspy) */
.research-nav{
  display:flex;gap:1.5rem;font-size:0.7rem;
  letter-spacing:0.08em;text-transform:uppercase;
  padding:0.6rem 0;margin-bottom:2rem;
  border-bottom:1px solid #ddd;
  position:sticky;top:0;background:#f4f3ee;z-index:10;
}
.research-nav a{color:#999;border-bottom:1px solid transparent;transition:color .15s,border-color .15s}
.research-nav a:hover{color:#111;border-color:#999}
.research-nav a.active{color:#111;border-bottom:1px solid #111}

@media(max-width:500px){
  body{padding:2.5rem 1.2rem 4rem;font-size:13px}
  .nav{flex-direction:column;gap:0.5rem;margin-bottom:2rem}
  .nav-name{font-size:1.4rem}
  .name{font-size:1.4rem}
  .photo{float:none;margin:0 0 1.5rem;width:220px}
  .work-item{flex-direction:column;gap:0}
  .work-what{text-align:left}
  .equation{font-size:1.1rem}
}

/* research project headers */
.research-project{margin-top:5rem;margin-bottom:2.5rem;scroll-margin-top:3rem}
.research-project:first-of-type{margin-top:0}
.project-title{font-size:1.1rem;font-weight:700;letter-spacing:-0.01em;margin-bottom:0.2rem}
.project-subtitle{font-size:0.8rem;color:#666;line-height:1.7;margin-bottom:0}

/* essay pages */
.essay-title{font-size:1.2rem;font-weight:700;letter-spacing:-0.02em;margin-bottom:0.2rem}
.essay-subtitle{font-size:0.8rem;color:#666;margin-bottom:2.5rem}
.essay-body p{margin-bottom:1.6rem;line-height:2}
.essay-body p:last-child{margin-bottom:0}
.back-link{font-size:0.75rem;color:#777;margin-bottom:2rem;display:inline-block}
.back-link a{color:#777}

/* writing index */
.writing-item{display:block;padding:1.2rem 0;border-bottom:1px solid #eee;text-decoration:none;border-bottom-color:#eee}
.writing-item:first-child{border-top:1px solid #eee}
.writing-item:hover{border-bottom-color:#eee}
.writing-title{font-weight:700;font-size:1rem;color:#111;letter-spacing:-0.01em}
.writing-subtitle{font-size:0.8rem;color:#666;margin-top:0.2rem}
.writing-item:hover .writing-title{border-bottom:1px solid #999;display:inline
  .component-table{font-size:0.72rem}
  .sim-item{font-size:0.72rem}
  .sim-status{font-size:0.6rem;min-width:3.5rem;text-align:right}
  .research-nav{gap:0.8rem;font-size:0.6rem;flex-wrap:wrap}
}
