@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f7f7;
  --card: #ffffff;
  --rule: #d9dee0;
  --title: #111417;
  --body: #2b3136;
  --secondary: #4b5459;
  --muted: #677077;
  --faint: #8a9399;
  --signal: #c2410c;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111417;
    --card: #181c20;
    --rule: #2b3136;
    --title: #f6f7f7;
    --body: #d9dee0;
    --secondary: #b4bcc1;
    --muted: #8a9399;
    --faint: #677077;
    --signal: #f97316;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 4.5rem 1rem 3rem;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 120ms ease, color 120ms ease;
}

a:hover,
a:focus-visible {
  color: var(--signal);
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Header */

header h1 {
  margin: 0;
  color: var(--title);
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.022em;
  line-height: 1.15;
}

.role {
  margin: 0.5rem 0 0;
  color: var(--secondary);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.intro {
  margin: 2.25rem 0 0;
  color: var(--body);
  font-size: 1.0625rem;
}

/* Sections */

section {
  margin-top: 3.5rem;
}

h2 {
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

ol,
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Research questions */

.questions li {
  color: var(--title);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.45;
}

.questions li + li {
  margin-top: 1rem;
}

/* Entries: work, positions */

.entries li + li {
  margin-top: 1.125rem;
}

.entry-title {
  margin: 0;
  color: var(--title);
  font-weight: 600;
}

.entry-meta {
  color: var(--muted);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.entry-text {
  margin: 0.125rem 0 0;
  color: var(--secondary);
}

/* Publications */

.pubs li + li {
  margin-top: 1.125rem;
}

.pubs .cite {
  margin: 0;
  color: var(--secondary);
  font-size: 0.9375rem;
}

.pubs .cite strong {
  color: var(--title);
  font-weight: 600;
}

.pubs .me {
  color: var(--title);
  font-weight: 600;
}

h3 {
  margin: 2rem 0 1rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Footer */

footer {
  margin-top: 4.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--faint);
  font-size: 0.8125rem;
}

@media (min-width: 40rem) {
  main {
    padding-top: 6.5rem;
  }

  header h1 {
    font-size: 2.375rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }
}
