/* What stands on the stages of the landing page's two-sided parts (docs/site.md): the buttons that pick an outline,
   a colour and a look. Each set runs from one edge of its column to the other: the outlines and colours in even
   columns, the looks each row stretched to the full width. */

.chips,
.shapes,
.colours {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chips button {
  min-height: 2.125rem;
  padding: 0 0.875rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.9375rem;
}
.chips button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--page);
}
.shapes,
.colours {
  display: grid;
  grid-template-columns: repeat(var(--across), minmax(0, 1fr));
}
.shapes {
  --across: 9;
}
.colours {
  --across: 13;
}
.chips button {
  flex: 1 0 auto;
}
.shapes button {
  width: 100%;
  aspect-ratio: 1;
  padding: 22%;
  border-radius: 16px;
  background: var(--soft);
  color: var(--mute);
}
.shapes svg {
  display: block;
  overflow: visible;
}
.shapes path {
  stroke: currentColor;
}
.shapes button[aria-pressed="true"] {
  background: var(--softer);
  color: var(--picked, var(--ink));
}
.colours {
  gap: 0.625rem;
  margin-top: -0.5rem;
}
.colours button {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--swatch);
}
.colours button[aria-pressed="true"] {
  box-shadow:
    0 0 0 3px var(--page),
    0 0 0 5px var(--swatch);
}
@media (hover: hover) {
  :is(.chips, .shapes) button:not([aria-pressed="true"]):hover {
    background: var(--softer);
  }
}
@media (pointer: coarse) {
  .chips button {
    min-height: 2.75rem;
    padding: 0 1.125rem;
  }
}
/* On a phone a row of every outline or every colour would make each too small to tap. */
@media (max-width: 35.9375rem) {
  .shapes {
    --across: 5;
  }
  .colours {
    --across: 7;
  }
}

/* A face of your own: the face on one side, and what you pick for it on the other, each under its name. */
.make {
  margin-top: var(--after-head);
  align-items: start;
}
.make .split-words {
  align-items: stretch;
  gap: 0.875rem;
}
.make h3 {
  font-size: 0.9375rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--mute);
}
.make h3:not(:first-child) {
  margin-top: 0.875rem;
}
.make .colours {
  margin-top: 0;
}
@media (min-width: 56rem) {
  .make .stage {
    position: sticky;
    top: 6rem;
  }
}
