:root {
  --text: #202124;
  --muted: #60646c;
  --border: #dedede;
  --link: #2458a6;
  --page-width: 900px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #173d79;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  top: 8px;
  left: 8px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid var(--border);
}

.site-header,
main,
footer {
  width: min(var(--page-width), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.name {
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

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

.intro {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding: 64px 0 70px;
}

.profile-photo {
  width: 180px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0;
  object-fit: cover;
}

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

h1 {
  margin-bottom: 2px;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.role {
  margin-bottom: 24px;
  color: var(--muted);
}

.lead {
  max-width: 620px;
  margin-bottom: 14px;
  font-size: 1.15rem;
  line-height: 1.55;
}

.intro-copy > p:not(.role):not(.lead):not(.links) {
  max-width: 620px;
}

.links {
  display: flex;
  gap: 20px;
  margin: 24px 0 0;
}

section:not(.intro) {
  padding: 52px 0;
  border-top: 1px solid var(--border);
}

h2 {
  margin-bottom: 32px;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}

h3 {
  margin-bottom: 3px;
  font-size: 1.03rem;
  line-height: 1.45;
}

.publication {
  max-width: 760px;
  margin-bottom: 34px;
}

.publication:last-child {
  margin-bottom: 0;
}

.publication p {
  margin-bottom: 7px;
}

.publication .meta,
.job .meta,
.date {
  color: var(--muted);
  font-size: 0.9rem;
}

.publication > p:last-child {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 30px;
  max-width: 760px;
  margin-bottom: 30px;
}

.job:last-child {
  margin-bottom: 0;
}

.job p {
  margin-bottom: 0;
}

.date {
  white-space: nowrap;
}

.description {
  grid-column: 1 / -1;
  margin-top: 8px;
}

#about > p {
  max-width: 760px;
  margin-bottom: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.86rem;
}

footer p {
  margin: 0;
}

@media (max-width: 640px) {
  .site-header,
  main,
  footer {
    width: min(100% - 30px, var(--page-width));
  }

  .site-header {
    align-items: flex-start;
  }

  nav {
    gap: 14px;
  }

  nav a {
    font-size: 0.82rem;
  }

  nav a:last-child {
    display: none;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 42px 0 50px;
  }

  .profile-photo {
    width: 132px;
  }

  section:not(.intro) {
    padding: 42px 0;
  }

  h2 {
    margin-bottom: 26px;
  }

  .job {
    grid-template-columns: 1fr;
  }

  .date {
    grid-row: 2;
  }

  .description {
    grid-column: 1;
    margin-top: 8px;
  }

  footer {
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
