:root {
  color-scheme: light;
  --ink: #20252d;
  --muted: #555e6b;
  --link: #244b87;
  --rule: #dce1e8;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 1rem/1.6 var(--sans);
}

h1, h2, h3, p { margin: 0; }

a {
  color: var(--link);
  text-decoration-color: #aabbd4;
  text-underline-offset: 0.19em;
}

a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
sup { line-height: 0; }

.page {
  width: min(100% - 3rem, 46rem);
  margin-inline: auto;
  padding-block: clamp(2.5rem, 6vw, 4rem) 4rem;
}

.intro h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
}

.intro h1 {
  font-size: clamp(2.6rem, 5vw, 3.3rem);
  letter-spacing: -0.045em;
}

.intro > p {
  max-width: 62ch;
  margin-top: 0.85rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

section { margin-top: 2.2rem; }

h2 {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.55rem;
  font-size: clamp(1.5rem, 3vw, 1.7rem);
  letter-spacing: -0.025em;
}

.paper-list {
  display: grid;
  gap: 1.25rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.entry h3 {
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.4;
}

.authors, .paper-details, .role, .date, .note {
  color: var(--muted);
  font-size: 0.9rem;
}

.authors, .paper-details, .role { margin-top: 0.2rem; }
.authors strong { color: var(--ink); }

.paper-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
}

.summary { margin-top: 0.3rem; }
.note { margin-top: 0.8rem; }

.experience-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.2rem 1rem;
  margin-top: 1rem;
}

.date { white-space: nowrap; }

@media (max-width: 35rem) {
  .page { width: calc(100% - 2.5rem); }
}
