/* About page: the owner's words, the long workbench, the order in four scenes. Everything else is site.css. */

/* The owner's words, set large in the slip face. */
.vis-owner {
  max-width: 42ch;
  margin: 1.5rem 0 0;
  font-size: 1.25rem;
  line-height: 1.5;
}
.vis-owner em { color: var(--sunflower); font-style: normal; }
@media (min-width: 48em) {
  .vis-owner { font-size: clamp(1.375rem, 2vw, 1.625rem); }
}

/* The hint above the bench: both lines share one cell, the one not wanted is hidden. */
.vis-hint {
  display: grid;
  margin-top: 1rem;
  font-size: var(--small-size);
  line-height: 1.5;
}
.vis-hint > span { grid-area: 1 / 1; max-width: var(--read-wide); }
.vis-hint-far { visibility: hidden; }
.vis-hint[data-state="far"] .vis-hint-near { visibility: hidden; }
.vis-hint[data-state="far"] .vis-hint-far { visibility: visible; }

/* The long workbench: one height, edge to edge, scrolling sideways in its own box. */
.vis-workbench {
  --bench-tall: 15rem;
  --card-stand-wide: 13rem;
  margin-top: 1.5rem;
  cursor: grab;
}
.vis-workbench[data-state="holding"] { cursor: grabbing; user-select: none; }
@media (min-width: 48em) {
  .vis-workbench { --bench-tall: 20rem; --card-stand-wide: 15rem; }
}
.vis-bench-run {
  display: flex;
  align-items: flex-start;
  width: max-content;
  padding: 0 var(--right-keep) 0 calc(var(--first-inset) + var(--tread-deep));
}
.vis-station { flex: none; }
.vis-station img {
  width: auto;
  max-width: none;
  height: var(--bench-tall);
  -webkit-user-drag: none;
}
.vis-station .vis-trace {
  width: 0;
  min-width: 100%;
  margin-top: 0.6rem;
  padding-right: 0.75rem;
}
.vis-stand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--card-stand-wide);
  height: var(--bench-tall);
}
.vis-stand .vis-enclosure { width: 10rem; margin: 0; }

/* How an order goes: four scenes, each stepped a little deeper than the last. */
.vis-order { display: grid; gap: 1.75rem; margin-top: 1.5rem; }
.vis-order li:nth-child(2) { margin-left: var(--tread-deep); }
.vis-order li:nth-child(3) { margin-left: calc(var(--tread-deep) * 2); }
.vis-order li:nth-child(4) { margin-left: calc(var(--tread-deep) * 3); }
.vis-order + .vis-owner { margin-top: 2.25rem; }
@media (min-width: 56em) {
  .vis-order {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem 4vw;
    align-items: start;
  }
  .vis-order li:nth-child(n) { margin-left: 0; }
  .vis-order li:nth-child(even) { padding-left: var(--photo-shift); }
}

/* Two things side by side, the second one step to the right. */
.vis-pair { display: grid; gap: 1.5rem; margin-top: 1.25rem; }
.vis-pair .vis-owner { margin: 0; }
@media (min-width: 56em) {
  .vis-pair {
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
    column-gap: var(--photo-shift);
    align-items: start;
  }
  .vis-pair > :last-child { margin-top: 1.5rem; }
}

/* The way onward: three links set as signage. */
.vis-onward { gap: 0.5rem 2.25rem; margin-top: 1.25rem; }
.vis-onward a {
  font-family: var(--sign-face);
  font-size: 1.5rem;
  line-height: 1.2;
}
@media (min-width: 48em) {
  .vis-onward a { font-size: 1.75rem; }
}
