:root {
  --background: #f7f6f2;
  --text: #222421;
  --muted: #6d706a;
  --line: #d8d7d1;
  --link: #254f78;
  --serif: "Newsreader", Georgia, serif;
  --mono: "DM Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #dce5ed;
}

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

a:hover {
  color: #17344f;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
}

.wordmark {
  color: var(--text);
  font-weight: 400;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

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

main {
  padding: 76px 0 90px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 62px;
  align-items: start;
}

.kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

h1 {
  margin-bottom: 30px;
  font-size: clamp(42px, 7vw, 62px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
}

.intro-copy > p:not(.kicker) {
  margin-bottom: 17px;
}

.portrait {
  width: 220px;
  margin: 26px 0 0;
}

.portrait img {
  display: block;
  width: 220px;
  height: 220px;
  border-radius: 4px;
  object-fit: cover;
  object-position: center 48%;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 11px;
}

section + section {
  margin-top: 82px;
}

h2 {
  margin-bottom: 25px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.research-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.research-list h3 {
  margin-bottom: 7px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}

.research-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.updates {
  margin: 0;
  padding: 0;
  list-style: none;
}

.updates li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  margin-bottom: 13px;
}

.updates time {
  padding-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.publications article {
  margin-bottom: 34px;
}

.publications h3 {
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}

.authors,
.venue,
.paper-links {
  margin-bottom: 2px;
  font-size: 15px;
  line-height: 1.4;
}

.venue {
  color: var(--muted);
  font-style: italic;
}

.paper-links {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.paper-links a::before {
  content: "[";
}

.paper-links a::after {
  content: "]";
}

.all-publications {
  margin-top: 46px;
  font-size: 16px;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

@media (max-width: 680px) {
  body {
    font-size: 17px;
  }

  .site-header,
  main,
  footer {
    width: min(100% - 34px, 880px);
  }

  .site-header {
    padding: 21px 0;
  }

  nav {
    gap: 14px;
  }

  nav a:nth-child(2) {
    display: none;
  }

  main {
    padding-top: 48px;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .portrait {
    grid-row: 1;
    width: 130px;
    margin: 0;
  }

  .portrait img {
    width: 130px;
    height: 130px;
  }

  .intro-copy {
    grid-row: 2;
  }

  section + section {
    margin-top: 68px;
  }

  .research-list {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .updates li {
    grid-template-columns: 52px 1fr;
  }

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

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