:root {
  --ink: #ecebe6;
  --text2: #c9c7c0;
  --muted: #9a9890;
  --rule: #3a3b3f;
  --link: #e0a0a0;
  --bg: #17181b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 40px 28px 80px; }
a { color: var(--link); text-decoration: none; border-bottom: 1px solid rgba(224,160,160,0.35); }
a:hover { border-bottom-color: var(--link); }

/* top nav */
.site-nav {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 10px 24px;
  padding-bottom: 14px; margin-bottom: 40px;
  border-bottom: 1px solid var(--rule);
}
.site-nav .brand { font-size: 19px; color: var(--ink); border-bottom: none; letter-spacing: 0.01em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav ul a {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); border-bottom: 2px solid transparent; padding-bottom: 3px;
}
.site-nav ul a:hover { color: var(--link); }
.site-nav ul a.active { color: var(--ink); border-bottom-color: var(--link); }

h1 { font-size: 31px; font-weight: normal; letter-spacing: 0.01em; margin: 0 0 8px; }
h2.page { font-size: 28px; font-weight: normal; margin: 0 0 8px; }
h2 {
  font-size: 13px; font-weight: normal; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted); margin: 44px 0 18px; padding-bottom: 7px; border-bottom: 1px solid var(--rule);
}
h2:first-of-type { margin-top: 8px; }

/* home */
.hero { display: flex; gap: 32px; align-items: flex-start; margin-bottom: 30px; }
.hero img { width: 240px; height: 240px; object-fit: cover; border-radius: 3px; flex-shrink: 0; display: block; }
.role { color: var(--muted); margin: 0 0 2px; }
.contact { color: var(--muted); font-size: 15px; margin-top: 16px; }
.contact a { margin-right: 16px; }
.refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 28px; font-size: 15.5px; }
.refs .n { font-weight: bold; display: block; }
.refs .a { color: var(--muted); display: block; font-size: 14.5px; }

/* research */
.paper { margin-bottom: 30px; }
.title { font-weight: bold; display: block; margin-bottom: 3px; }
.title a { border-bottom: none; }
.title a:hover { border-bottom: 1px solid var(--link); }
.meta { color: var(--muted); font-size: 15px; font-style: italic; margin: 2px 0 0; }
.abstract {
  font-size: 15.5px; color: var(--text2); margin-top: 10px;
  padding-left: 18px; border-left: 2px solid var(--rule);
}
details > summary { cursor: pointer; color: var(--link); font-size: 15px; list-style: none; margin-top: 8px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "\25B8  "; }
details[open] > summary::before { content: "\25BE  "; }

/* teaching */
.teaching { margin: 0; }
.teaching dt { font-weight: bold; margin-top: 18px; }
.teaching dt:first-child { margin-top: 0; }
.teaching dd { margin: 1px 0 0; color: var(--muted); font-size: 15.5px; }

footer {
  margin-top: 64px; padding-top: 18px; border-top: 1px solid var(--rule);
  color: var(--muted); font-size: 14px;
}
@media (max-width: 600px) {
  .wrap { padding: 28px 20px 64px; }
  .hero { flex-direction: column; gap: 20px; }
  .hero img { width: 190px; height: 190px; }
  h1 { font-size: 26px; }
}

/* research descriptions + coauthors */
.desc { font-size: 15.5px; color: var(--text2); margin: 6px 0 0; }
.coauth { font-weight: normal; font-size: 0.82em; color: var(--muted); white-space: nowrap; }

/* project pages */
.lede { font-size: 18.5px; color: #2a2a2a; margin: 0 0 6px; }
.tags { color: var(--muted); font-size: 14.5px; font-style: italic; margin: 0 0 26px; }
table.res { border-collapse: collapse; width: 100%; font-size: 15.5px; margin: 14px 0 6px; }
table.res th { text-align: left; font-weight: normal; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--rule); padding: 6px 8px 6px 0; }
table.res td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--rule); }
table.res td.n, table.res th.n { text-align: right; }
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin: 18px 0; }
figure { margin: 18px 0; }
figure img { width: 100%; height: auto; display: block; }
figcaption { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.links a { margin-right: 20px; }
