/* Fonts: Source Serif 4 and IBM Plex Mono, both SIL Open Font License (see fonts/). */
@font-face{font-family:"Source Serif";font-style:normal;font-weight:200 900;font-display:swap;src:url("fonts/SourceSerif4-Variable.woff2") format("woff2");}
@font-face{font-family:"Source Serif";font-style:italic;font-weight:200 900;font-display:swap;src:url("fonts/SourceSerif4-Variable-Italic.woff2") format("woff2");}
@font-face{font-family:"Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/IBMPlexMono-Regular.woff2") format("woff2");}
@font-face{font-family:"Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url("fonts/IBMPlexMono-Medium.woff2") format("woff2");}

:root{
  --paper:#fffefa;
  --ink:#1c1b19;
  --soft:#55524c;
  --faint:#8a867e;
  --rule:#e6e2d9;
  --wash:#f4f1ea;
  --link:#2f3a8f;
  --serif:"Source Serif",Charter,"Iowan Old Style",Georgia,serif;
  --mono:"Plex Mono",ui-monospace,"SF Mono",Menlo,Consolas,monospace;
}
*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{margin:0;background:var(--paper);color:var(--ink);font:400 18px/1.6 var(--serif);font-optical-sizing:auto;-webkit-font-smoothing:antialiased;}
img,video{max-width:100%;height:auto;display:block;}
::selection{background:#d9def5;}

a{color:var(--link);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:rgba(47,58,143,.35);}
a:hover{text-decoration-color:currentColor;}

.wrap{max-width:860px;margin:0 auto;padding:0 28px;}

/* header */
.top{display:flex;align-items:baseline;justify-content:space-between;gap:20px;flex-wrap:wrap;padding-top:30px;padding-bottom:30px;}
.name{display:inline-flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-weight:600;font-size:18px;}
.name img{width:20px;height:auto;position:relative;top:1px;}
.top nav{display:flex;gap:22px;flex-wrap:wrap;font-size:16px;}
.top nav a{color:var(--soft);text-decoration:none;}
.top nav a:hover,.top nav a[aria-current]{color:var(--ink);text-decoration:underline;text-decoration-color:var(--rule);text-decoration-thickness:2px;text-underline-offset:6px;}

/* type */
h1{font-size:40px;line-height:1.15;font-weight:600;letter-spacing:-.01em;margin:0 0 14px;}
h2{font-size:24px;line-height:1.3;font-weight:600;margin:0 0 16px;}
h3{font-size:19px;line-height:1.35;font-weight:600;margin:0 0 4px;}
p{margin:0 0 16px;}
.mono,.meta,figcaption,.date,.note{font-family:var(--mono);font-size:13px;line-height:1.55;letter-spacing:0;}
.meta{color:var(--faint);margin:0 0 10px;}
.meta a{color:var(--soft);}
.soft{color:var(--soft);}
code{font-family:var(--mono);font-size:.82em;background:var(--wash);padding:1px 5px;border-radius:3px;}
em{font-style:italic;}
strong{font-weight:600;}
hr{border:0;border-top:1px solid var(--rule);margin:56px 0;}

section{margin:0 0 64px;}
.section-head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;border-bottom:1px solid var(--rule);padding-bottom:8px;margin-bottom:22px;}
.section-head h2{margin:0;}
.section-head a{font-family:var(--mono);font-size:13px;}

figure{margin:28px 0;}
figcaption{color:var(--faint);margin-top:8px;}
figure img,figure video{border-radius:4px;}
.framed img,.framed video{border:1px solid var(--rule);}

/* home intro */
.intro{display:grid;grid-template-columns:1fr 210px;gap:48px;align-items:start;margin:28px 0 72px;}
.intro .about{font-size:19px;}
.intro .where{color:var(--soft);margin-bottom:22px;}
.tagline{font-size:46px;line-height:1.1;letter-spacing:-.015em;margin-bottom:18px;}
.tagline em{color:var(--link);font-weight:600;}
.sketch{margin:0;text-align:center;}
.sketch .stage{position:relative;width:210px;}
.sketch canvas.star{width:150px;height:150px;margin:0 0 -14px 47px;}
.sketch canvas.hand{width:210px;aspect-ratio:400/441;}
.sketch figcaption{text-align:center;margin-top:10px;}

/* research highlight + wing */
.now-grid{display:grid;grid-template-columns:1fr 300px;gap:40px;align-items:center;}
.now-grid p{margin:0;}
.wing{width:100%;height:auto;display:block;}
.wing .foil{stroke:var(--ink);stroke-width:2.5;}
.wing .chord{stroke:var(--faint);stroke-width:1;stroke-dasharray:5 7;}
.wing .fl{stroke:var(--faint);stroke-width:1.6;stroke-linecap:round;stroke-dasharray:12 16;opacity:.75;animation:flow 2.6s linear infinite;}
.wing .f2,.wing .f5{animation-duration:3.1s;opacity:.55;}
.wing .f1,.wing .f6{animation-duration:3.8s;opacity:.4;}
@keyframes flow{to{stroke-dashoffset:-112;}}
@media (prefers-reduced-motion:reduce){.wing .fl{animation:none;}}

/* project list */
.projects{list-style:none;margin:0;padding:0;}
.projects li{display:grid;grid-template-columns:96px 1fr;gap:24px;align-items:start;padding:22px 0;border-bottom:1px solid var(--rule);}
.projects li:first-child{padding-top:4px;}
.projects .date{color:var(--faint);padding-top:3px;}
.projects h3 a{color:var(--ink);text-decoration:none;}
.projects h3 a:hover{text-decoration:underline;}
.projects p{margin:0 0 6px;color:var(--soft);font-size:17px;}
.projects .links{font-family:var(--mono);font-size:13px;display:flex;gap:16px;}

/* lists of talks / papers */
.entries{list-style:none;margin:0;padding:0;}
.entries li{display:grid;grid-template-columns:96px 1fr;gap:24px;padding:10px 0;}
.entries .date{color:var(--faint);padding-top:3px;}
.entries .what{margin:0;}
.entries .where{color:var(--soft);font-size:16px;margin:0;}
.entries .desc{color:var(--soft);font-size:16px;margin:6px 0 0;}

/* interests */
.interests{margin:0;}
.interests div{display:grid;grid-template-columns:200px 1fr;gap:24px;padding:9px 0;border-bottom:1px solid var(--rule);}
.interests div:last-child{border-bottom:0;}
.interests dt{font-weight:600;}
.interests dd{margin:0;color:var(--soft);}

/* footer */
.foot{border-top:1px solid var(--rule);margin-top:40px;padding-top:26px;padding-bottom:48px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-family:var(--mono);font-size:13px;color:var(--faint);}
.foot a{color:var(--soft);}
.foot .contact{display:flex;gap:18px;flex-wrap:wrap;}

/* article pages */
.article{max-width:700px;}
.article header.page{margin:24px 0 8px;}
.article .lead{font-size:21px;line-height:1.5;color:var(--soft);margin-bottom:8px;}
.article figure.wide{margin-left:-60px;margin-right:-60px;}
.article h2{margin-top:44px;}
.article ul{padding-left:1.2em;margin:0 0 16px;}
.article li{margin:0 0 8px;}
.article table{width:100%;border-collapse:collapse;margin:22px 0;font-family:var(--mono);font-size:13px;}
.article th,.article td{text-align:right;padding:7px 8px;border-bottom:1px solid var(--rule);white-space:nowrap;}
.article th:first-child,.article td:first-child{text-align:left;white-space:normal;}
.article table.text th,.article table.text td{text-align:left;white-space:normal;}
.article thead th{color:var(--faint);font-weight:500;}
.article caption{caption-side:bottom;text-align:left;color:var(--faint);margin-top:8px;line-height:1.5;}
.back{font-family:var(--mono);font-size:13px;}
.placeholder{color:var(--faint);font-style:italic;}

@media (max-width:900px){
  .article figure.wide{margin-left:0;margin-right:0;}
}
@media (max-width:760px){
  body{font-size:17px;}
  .wrap{padding:0 20px;}
  h1{font-size:32px;}
  .tagline{font-size:36px;}
  .now-grid{grid-template-columns:1fr;gap:20px;}
  .wing{max-width:320px;}
  .intro{grid-template-columns:1fr;gap:28px;margin-bottom:56px;}
  .intro .about{font-size:18px;}
  .sketch{justify-self:center;}
  .sketch .stage{width:150px;}
  .sketch canvas.star{width:110px;height:110px;margin:0 0 -10px 32px;}
  .sketch canvas.hand{width:150px;}
  .projects li{grid-template-columns:1fr;gap:4px;}
  .projects p{font-size:16px;}
  .entries li{grid-template-columns:1fr;gap:2px;}
  .interests div{grid-template-columns:130px 1fr;gap:12px;}
  .article table{display:block;overflow-x:auto;}
}
