.catalog {
  width: min(100% - 1.25rem, 68rem);
  margin-inline: auto;
}

.catalog h1 {
  max-width: none;
  font-size: clamp(1.45rem, 5vw, 2.55rem);
  margin-bottom: 0.6rem;
}

.catalog .texture-stage {
  height: clamp(17rem, 57vw, 34rem);
}

body[data-embed] .catalog .texture-stage {
  height: clamp(16rem, 57vw, 26rem);
}

.catalog .texture-labels span {
  overflow-wrap: anywhere;
  max-height: 4.1em;
  overflow: hidden;
}

.catalog .catalog-note {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.catalog .catalog-note a {
  color: var(--accent);
}

.catalog:not([data-webgl]) .block-view-jump {
  display: none;
}

.swatch-gallery ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(8rem, 100%), 1fr));
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.swatch-gallery li {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.45rem;
  padding: 0.55rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--surface);
  text-align: center;
}

.catalog-swatch {
  width: 64px;
  height: 64px;
  background: repeating-conic-gradient(#4e6256 0% 25%, #62776a 0% 50%) 0 0 / 16px 16px;
}

.catalog-swatch span {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  background-repeat: no-repeat;
}

.swatch-gallery code {
  color: var(--muted);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}
