@media (max-width: 800px) {
  .authors br { display: block; }
  h1 { font-size: 58px; letter-spacing: -.065em; }
}

.authors sup,
.affiliations sup {
  color: #678b14;
  font-family: var(--mono);
  font-size: .65em;
  font-weight: 500;
}

.affiliations {
  margin: 7px auto 28px;
  color: var(--muted);
  font-size: 14px;
}

.affiliations p {
  margin: 2px 0;
}

.abstract-section {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 320px;
  gap: 42px;
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
}

.abstract-tags {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.abstract-tags span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.abstract-copy {
  max-width: 680px;
}

.abstract-copy p {
  margin: 0 0 20px;
  color: #3f423d;
  font-size: 18px;
  line-height: 1.8;
}

.abstract-copy p:first-child {
  color: var(--ink);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -.02em;
}

.abstract-copy p:first-child::first-letter {
  float: left;
  margin: 8px 10px 0 0;
  color: var(--ink);
  font-size: 68px;
  font-weight: 700;
  line-height: .72;
}

.abstract-copy strong {
  color: var(--ink);
  font-weight: 700;
  box-shadow: inset 0 -.4em 0 rgba(200, 255, 53, .55);
}

.abstract-copy sub {
  font-size: .7em;
}

.abstract-system {
  align-self: start;
  position: sticky;
  top: 100px;
  margin: 0;
}

.system-image-wrap {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .07);
}

.abstract-system img {
  display: block;
  width: 100%;
  height: auto;
}

.abstract-system figcaption {
  padding: 14px 4px 0;
}

.abstract-system figcaption b,
.abstract-system figcaption span {
  display: block;
}

.dark .lead.narrow {
  max-width: 960px;
}

.citation-layout {
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 7vw, 90px);
}

.citation-heading h2 {
  font-size: clamp(48px, 6vw, 76px);
}

.citation-heading p {
  max-width: 280px;
  margin: -12px 0 0;
  color: #5c5f59;
  font-size: 13px;
}

.citation .code-wrap {
  min-width: 0;
  padding: 58px 34px 34px;
  overflow: hidden;
}

.citation .code-wrap pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 0 0 4px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.code-label {
  position: absolute;
  top: 18px;
  left: 34px;
  color: #8b8f87;
  font: 10px var(--mono);
  letter-spacing: .12em;
}

.abstract-system figcaption b {
  margin-bottom: 5px;
  font: 500 11px var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.abstract-system figcaption span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

@media (min-width: 801px) and (max-width: 1100px) {
  .abstract-section { grid-template-columns: 150px minmax(0, 1fr); }
  .abstract-system { grid-column: 2; position: static; width: min(100%, 380px); }
}

/* Keep outlined display text readable on both light and dark sections. */
.section h2 em {
  color: inherit;
  -webkit-text-stroke: 0;
  opacity: .62;
}

#results .results-head > p {
  color: #4f524c;
}

#results .gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: none;
}

#results .gallery figure {
  background: #242522;
  min-height: 0;
  aspect-ratio: 3 / 4;
}

#results .gallery .large { grid-row: auto; }

#results .gallery img {
  object-fit: cover;
}

#results .gallery .large img {
  object-position: center center;
}

#results .gallery figure:nth-child(2) img {
  object-position: center 45%;
}

#results .gallery figure:nth-child(3) img {
  object-position: center 30%;
}

#results .gallery figcaption {
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .92));
  text-shadow: 0 1px 3px rgba(0, 0, 0, .75);
}

#results .gallery figcaption span {
  color: #f0f1ed;
}

#results .comparison .win p,
#results .comparison .win span {
  color: #262824;
}

@media (max-width: 800px) {
  .abstract-section { grid-template-columns: 1fr; gap: 28px; padding: 80px 0; }
  .abstract-tags { flex-direction: row; flex-wrap: wrap; }
  .abstract-copy p { font-size: 16px; line-height: 1.7; }
  .abstract-copy p:first-child { font-size: 19px; }
  .abstract-system { position: static; width: min(100%, 360px); margin: 10px auto 0; }
  .citation-layout { grid-template-columns: 1fr; gap: 30px; }
  .citation-heading p { margin-top: -18px; }
  .citation .code-wrap { padding: 54px 18px 24px; }
  .citation .code-wrap pre { font-size: 10px; line-height: 1.7; }
  .code-label { left: 18px; }
  #results .gallery { grid-template-columns: 1fr; grid-template-rows: none; }
  #results .gallery figure { height: auto; min-height: 0; aspect-ratio: 3 / 4; }
  #results .gallery figure:nth-child(3) { aspect-ratio: 3 / 4; }
}
