/* The research digest figure: a grid of sheets that thins out until one page
   is left. Shared by the research page and the homepage; each places the figure. */
.digest-flow__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px clamp(20px, 2.2vw, 36px);
}

.digest-flow__picture {
  display: flex;
  align-items: flex-end;
  aspect-ratio: 16 / 25;
}

.digest-flow__picture--page {
  justify-content: center;
}

.digest-flow__sheets {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
}

.digest-flow__sheets i {
  aspect-ratio: 3 / 4;
}

.digest-flow__sheets.is-found i { background: #d3cac2; }
.digest-flow__sheets.is-examined i { box-shadow: inset 0 0 0 1px #d9d0c8; }
.digest-flow__sheets.is-examined i.is-kept { background: #8f847b; box-shadow: none; }
.digest-flow__sheets.is-selected i { box-shadow: inset 0 0 0 1px #ddd5cd; }
.digest-flow__sheets.is-selected i.is-chosen { background: var(--bl-ink); box-shadow: none; }

.digest-flow__page {
  display: flex;
  flex-direction: column;
  gap: 7%;
  width: 82%;
  aspect-ratio: 3 / 4;
  padding: 12% 11%;
  background: var(--bl-paper);
  box-shadow: inset 0 0 0 1px var(--bl-rule-light);
}

.digest-flow__bars,
.digest-flow__lines {
  display: flex;
  flex-direction: column;
}

.digest-flow__bars {
  gap: 6px;
}

.digest-flow__bars i {
  height: 6px;
  background: var(--bl-ink);
}

.digest-flow__lines {
  gap: 5px;
}

.digest-flow__bars + .digest-flow__lines {
  margin-top: 6%;
}

.digest-flow__lines i {
  height: 3px;
  background: #cfc6be;
}

.digest-flow__link {
  width: 38%;
  height: 3px;
  margin-top: auto;
  background: var(--bl-accent);
}

.digest-flow__words {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--bl-rule);
}

.digest-flow__number {
  color: var(--bl-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
}

.digest-flow__words h3 {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
}

.digest-flow__words p + p,
.digest-flow__words h3 + p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
  text-wrap: pretty;
}

@media (max-width: 759px) {
  .digest-flow__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
