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

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #575757;
  --faint: #8a8a8a;
  --rule: #e6e6e6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --text: #e8e8e8;
    --muted: #a8a8a8;
    --faint: #7d7d7d;
    --rule: #2a2a2a;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  max-width: 42rem;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--faint);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--text);
}

/* Header */

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

header .name {
  font-weight: 600;
  text-decoration: none;
}

header nav {
  display: flex;
  gap: 1.25rem;
}

header nav a {
  color: var(--muted);
  text-decoration: none;
}

header nav a:hover {
  color: var(--text);
}

header nav a[aria-current="page"] {
  color: var(--text);
}

/* Intro */

.intro {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.intro .headshot {
  flex-shrink: 0;
  width: 118px;
  height: 118px;
  border-radius: 8px;
  object-fit: cover;
  filter: grayscale(100%);
}

h1 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1.3;
}

h2 {
  margin: 3rem 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

h3 {
  margin: 0 0 0.1rem;
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

.when {
  font-weight: 400;
  color: var(--faint);
  white-space: nowrap;
}

.role {
  color: var(--muted);
  margin-bottom: 0.35rem;
}

article {
  margin-bottom: 2rem;
}

article:last-child {
  margin-bottom: 0;
}

/* Lists */

ul {
  margin: 0;
  padding-left: 1.1rem;
}

li {
  margin-bottom: 0.4rem;
}

/* Links row */

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding-left: 0;
  list-style: none;
}

.links li {
  margin: 0;
}

/* Publication */

.pub p {
  margin-bottom: 0.2rem;
}

.pub .pub-title {
  font-weight: 600;
}

.pub .pub-venue,
.pub .pub-authors {
  color: var(--muted);
}

.pub .pub-abstract {
  margin-top: 0.75rem;
  color: var(--muted);
}

/* Footer */

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

footer p {
  margin: 0;
}

@media (max-width: 480px) {
  body {
    padding-top: 2rem;
  }

  header {
    margin-bottom: 2.5rem;
  }

  .intro {
    flex-direction: column;
    gap: 1.25rem;
  }
}
