.random-spread {
  --random-gap: clamp(.85rem, 2.15vw, 2.05rem);
  padding: clamp(1.15rem, 2.8vw, 2.5rem) clamp(.85rem, 3.75vw, 3.25rem) clamp(1.15rem, 2.7vw, 2.4rem);
  color: var(--ink);
  background: var(--paper);
  border-top: 1px solid var(--ink);
}

.random-register {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem 1.65rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--rule, #bcbab2);
  font: 500 .75rem / 1.35 var(--mono);
  color: var(--muted);
}

.random-register > :first-child { color: var(--accent); }

.random-head h2 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .04em .14em;
  margin: clamp(.85rem, 2.15vw, 1.75rem) 0 0;
  font: 850 clamp(2.9rem, 7.3vw, 6.65rem) / .86 var(--display);
  letter-spacing: -.071em;
}

.random-head h2 span + span {
  font: 700 .59em / .93 var(--industrial, 'Arial Narrow', var(--display));
  text-transform: uppercase;
  letter-spacing: -.033em;
}

.random-lead,
.random-samples {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(.95rem, 1.9vw, 1.65rem) var(--random-gap);
}

.random-lead {
  grid-template-rows: auto 1fr auto;
  margin-top: clamp(1.35rem, 3vw, 2.5rem);
}

.random-intro {
  grid-area: 1 / 1 / 2 / 5;
  max-width: 29ch;
  font: 400 clamp(.95rem, 1.15vw, 1.05rem) / 1.54 var(--text);
}

.random-main { grid-area: 1 / 5 / 4 / -1; }

.random-logotype {
  grid-area: 2 / 1 / 3 / 4;
  align-self: center;
  width: min(100%, 12.5rem);
}

.random-palette {
  grid-area: 3 / 1 / 4 / 5;
  align-self: end;
}

.random-spread figure { margin: 0; min-width: 0; }

.random-spread figure img {
  display: block;
  width: 100%;
  height: auto;
}

.random-spread figcaption {
  display: grid;
  grid-template-columns: 3.8ch minmax(0, 1fr);
  gap: .45rem .8rem;
  padding-top: .5rem;
  margin-top: .58rem;
  border-top: 1px solid var(--rule, #bcbab2);
  font: 500 .75rem / 1.4 var(--mono);
  color: var(--muted);
}

.random-spread figcaption span {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.random-swatches {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .43rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font: 500 clamp(.55rem, .76vw, .7rem) / 1.25 var(--mono);
  letter-spacing: -.025em;
}

.random-swatches i {
  display: block;
  width: 100%;
  height: clamp(1.16rem, 2.9vw, 2.55rem);
  margin-bottom: .38rem;
  background: var(--swatch);
  border: 1px solid rgb(17 17 17 / .13);
}

.random-samples {
  align-items: end;
  margin-top: clamp(1.6rem, 3.8vw, 3.4rem);
}

.random-type { grid-column: 1 / 5; }

.random-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: clamp(.65rem, 1.4vw, 1.35rem);
}

.random-type-grid p {
  margin-top: .55rem;
  color: var(--muted);
  font: 500 .7rem / 1.3 var(--mono);
}

.random-sticker { grid-column: 5 / 7; }

.random-boxes { grid-column: 7 / 10; width: min(100%, 13.75rem); justify-self: center; }

.random-bag { grid-column: 10 / -1; width: min(100%, 15.5rem); justify-self: end; }

.random-foot {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: .8rem max(1.2rem, 2.5vw);
  margin-top: clamp(1.15rem, 2.3vw, 1.95rem);
  padding-top: clamp(.8rem, 1.8vw, 1.2rem);
  border-top: 1px solid var(--rule, #bcbab2);
}

.random-foot p {
  max-width: 59ch;
  font: 400 clamp(.94rem, 1.12vw, 1.04rem) / 1.55 var(--text);
}

.random-foot img { width: clamp(2rem, 4vw, 3.65rem); margin-top: .3rem; }

.random-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font: 500 .78rem / 1.3 var(--mono);
  text-decoration: underline;
  text-underline-offset: .27em;
}

.random-foot a:hover { color: var(--accent); }

@media (max-width: 48rem) {
  .random-spread { --random-gap: .77rem; }

  .random-head h2 {
    flex-direction: column;
    font-size: clamp(3.35rem, 14.4vw, 5.2rem);
    gap: .08em;
  }

  .random-lead,
  .random-samples {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: auto;
    row-gap: 1.12rem;
  }

  .random-intro { grid-area: 1 / 1 / 2 / -1; max-width: 35ch; }

  .random-main { grid-area: 2 / 1 / 3 / -1; }

  .random-logotype { grid-area: 3 / 1 / 4 / 3; align-self: end; }

  .random-palette { grid-area: 3 / 3 / 4 / -1; align-self: end; }

  .random-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; font-size: .69rem; }

  .random-swatches li { display: flex; align-items: center; gap: .27rem; }

  .random-swatches i { flex: 0 0 1rem; width: 1rem; height: 1rem; margin-bottom: 0; }

  .random-type { grid-column: 1 / 5; }

  .random-sticker { grid-column: 5 / -1; }

  .random-boxes { grid-column: 1 / 4; width: 100%; }

  .random-bag { grid-column: 4 / -1; width: 100%; }

  .random-spread figcaption { gap: .33rem .45rem; }

  .random-foot { grid-template-columns: auto minmax(0, 1fr); gap: .15rem 1rem; }

  .random-foot p { grid-column: 1 / -1; }

  .random-foot img { align-self: center; }

  .random-foot a { justify-self: end; }
}

@media (max-width: 23rem) {
  .random-swatches { font-size: .62rem; }
  .random-swatches i { flex-basis: .75rem; width: .75rem; height: .75rem; }
}
