@import url("https://fonts.googleapis.com/css2?family=IM+Fell+Double+Pica&family=IM+Fell+Great+Primer&display=swap");

:root {
  --ink: #000;
  --paper: #fff;
  --accent: #cc0000;
  --site-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: "IM Fell Double Pica", Georgia, serif;
  font-size: 17px;
  line-height: 1.2;
}

a {
  color: inherit;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

.site-frame {
  width: min(var(--site-width), calc(100% - 62px));
  margin: 32px 0 48px 31px;
}

.site-header {
  position: relative;
  min-height: 0;
  padding: 10px 15px 0;
  background: var(--paper);
}

.header-inner {
  display: block;
  width: max-content;
  max-width: 100%;
}

.group-title {
  margin: 0;
  font-family: "IM Fell Great Primer", Georgia, serif;
  font-size: clamp(42px, 4.3vw, 58px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.06;
}

.group-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 9px 0 0;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
}

.group-meta a {
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  margin-top: 22px;
  padding-bottom: 22px;
  font-family: "IM Fell Great Primer", Georgia, serif;
  font-size: 31px;
  font-weight: 700;
  line-height: 1;
}

.site-nav a {
  text-decoration: none;
}

.newspaper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 8px;
  background: var(--paper);
}

.newspaper-column {
  min-width: 0;
  padding: 9px 10px 22px;
  background: var(--paper);
}

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

h2,
.person-name,
.page-heading {
  margin: 4px 0 12px;
  font-family: "IM Fell Great Primer", Georgia, serif;
  font-size: 31px;
  font-weight: 700;
  line-height: 1.05;
}

p {
  margin: 0 0 14px;
}

.read-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.research-image,
.research-video {
  display: block;
  width: 100%;
  height: auto;
}

.research-video {
  background: #000;
  cursor: pointer;
}

.video-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 4px 0 14px;
  overflow: hidden;
  background: #000;
}

.video-shell .research-video {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}

.video-poster {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  transform: translateZ(0);
}

.video-poster.is-hidden {
  visibility: hidden;
}

.research-video:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.invaders {
  aspect-ratio: 292 / 266;
  object-fit: cover;
}

.model-awareness {
  width: 88%;
  margin-inline: auto;
}

.video-pair,
.image-pair {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 12px;
}

.video-pair > *,
.image-pair > * {
  flex: 1 1 0;
  min-width: 0;
  margin-bottom: 0;
}

.cooperation-videos .video-shell {
  object-fit: contain;
}

.cooperation-videos .video-shell:first-child {
  flex-grow: 284;
  aspect-ratio: 284 / 240;
}

.cooperation-videos .video-shell:last-child {
  flex-grow: 328;
  aspect-ratio: 328 / 240;
}

.image-pair img {
  width: calc(50% - 2px);
  height: auto;
}

.content-panel {
  margin-top: 8px;
  padding: 38px 31px 60px;
  background: var(--paper);
}

.people-list {
  max-width: 800px;
}

.person {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 14px;
}

.person img {
  width: 188px;
  height: auto;
}

.person-copy {
  padding-top: 2px;
}

.person-name {
  margin-bottom: 28px;
}

.publications {
  margin: 0;
  padding-left: 34px;
}

.publications li {
  margin-bottom: 34px;
  padding-left: 2px;
}

.publications a {
  font-weight: 700;
}

@media (max-width: 900px) {
  .site-frame {
    width: calc(100% - 24px);
    margin: 12px;
  }

  .site-header {
    min-height: 0;
    padding-bottom: 15px;
  }

  .group-title {
    font-size: clamp(36px, 9vw, 52px);
  }

  .header-inner {
    width: 100%;
    min-height: 0;
  }

  .group-meta {
    display: block;
    margin-bottom: 13px;
    white-space: normal;
  }

  .group-meta span {
    display: block;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px 34px;
    margin-block: 0;
    padding-bottom: 0;
    font-size: 26px;
  }

  .newspaper {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 8px;
  }

  .content-panel {
    margin-top: 8px;
    padding: 24px 18px 40px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .group-meta {
    font-size: 13px;
    line-height: 1.35;
  }

  .person {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
  }

  .person img {
    width: 112px;
  }

  .person-name {
    margin-bottom: 12px;
    font-size: 25px;
  }
}
