:root {
  --ink: #111111;
  --muted: #707070;
  --line: #e7e7e7;
  --bg: #ffffff;
  --gutter: 32px;
  --max: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: #111;
  color: #fff;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #c8c8c8;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}

a:hover {
  text-decoration-color: currentColor;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Small uppercase labels */

.label,
.topbar,
.footer,
.more,
.pub__venue {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.label {
  margin: 0;
  color: var(--muted);
}

/* Top bar */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter);
}

.topbar a {
  text-decoration: none;
}

.topbar__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.topbar__nav a {
  color: var(--muted);
  transition: color 0.15s ease;
}

.topbar__nav a:hover,
.topbar__nav a[aria-current="page"] {
  color: var(--ink);
}

/* Page frame */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Intro statement */

.intro {
  padding: 16vh 0 10vh;
}

.intro__statement {
  max-width: 15ch;
  margin: 0 0 28px;
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.intro--compact {
  padding: 10vh 0 6vh;
}

.intro--compact .intro__statement {
  font-size: clamp(32px, 4.5vw, 52px);
}

/* Portrait, set into the content column */

.portrait {
  width: min(480px, 100%);
  margin: 0 0 14vh calc(25% + 8px);
}

/* Index rows: label on the left, content on the right */

.row {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.row:last-of-type {
  border-bottom: 1px solid var(--line);
}

.row .label {
  padding-top: 4px;
}

.row__body {
  max-width: 680px;
}

.prose p {
  margin: 0 0 1em;
}

.prose p:last-child {
  margin-bottom: 0;
}

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

.plain li + li {
  margin-top: 6px;
}

/* News */

.news li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
}

.news li + li {
  margin-top: 10px;
}

.news__date {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Publications */

.pubs .pub {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pubs .pub + .pub {
  margin-top: 22px;
}

.pub__title {
  font-weight: 500;
  line-height: 1.4;
}

.pub__authors {
  color: var(--muted);
  font-size: 14px;
}

.pub__authors b {
  color: var(--ink);
  font-weight: 600;
}

.pub__venue {
  color: var(--muted);
  font-size: 11px;
}

.more {
  display: inline-block;
  margin-top: 28px;
  text-decoration: none;
}

.more:hover {
  text-decoration: underline;
}

/* Footer */

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px var(--gutter) 40px;
  color: var(--muted);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--ink);
}

/* Small screens */

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 22px;
  }

  .topbar__nav {
    gap: 18px;
  }

  .intro {
    padding: 10vh 0 7vh;
  }

  .portrait {
    margin: 0 0 9vh;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 32px 0;
  }

  .news li {
    grid-template-columns: 72px 1fr;
    gap: 12px;
  }
}

.nowrap {
  white-space: nowrap;
}
