/*
 * cubesite-only rules, on top of the shared theme.
 *
 * Kept deliberately short: this site is the reference rendering of
 * theme/cubesite.css, so anything it needs that is not in the theme is a
 * question about the theme.
 */

/* The adoption steps: a numbered list where the number carries weight. */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  max-width: 42rem;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.5rem 2.75rem;
  border-left: 1px solid color-mix(in oklab, var(--foreground) 10%, transparent);
  margin-left: 0.85rem;
}
.steps > li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: -0.85rem;
  top: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--foreground) 10%, transparent);
  background: var(--secondary);
  color: color-mix(in oklab, var(--foreground) 60%, transparent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}
.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.steps p {
  margin: 0 0 0.75rem;
  color: color-mix(in oklab, var(--foreground) 60%, transparent);
}

/* A swatch row for the brand page. */
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.swatch {
  border: 1px solid color-mix(in oklab, var(--foreground) 10%, transparent);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.8rem;
}
.swatch .chip {
  height: 3.5rem;
}
.swatch .label {
  padding: 0.5rem 0.65rem;
  font-family: var(--font-mono);
  color: color-mix(in oklab, var(--foreground) 60%, transparent);
  background: var(--secondary);
}
