/* dust — the concurrency section: parallel calls and background work. */

.async-rows {
  display: grid;
  gap: 58px;
  margin-top: 52px;
}

.async-row {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 48px;
  align-items: center;
}

.async-row.flip {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
}

.async-row.flip .async-copy {
  order: 2;
}

.async-row.flip .code-shell {
  order: 1;
}

.async-copy h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  letter-spacing: -0.025em;
}

.async-copy p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.async-copy code {
  color: var(--sand);
  font: 0.88em/1.5 var(--mono);
}

.async-row .code-shell pre {
  font-size: 0.77rem;
}

.async-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.async-chips .chips-label {
  margin-right: 4px;
  color: var(--faint);
  font: 0.68rem/1.6 var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.chip {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: 0.72rem/1.3 var(--mono);
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--line-strong);
  color: var(--sand);
}

@media (max-width: 980px) {
  .async-row,
  .async-row.flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .async-row.flip .async-copy {
    order: 0;
  }

  .async-row.flip .code-shell {
    order: 0;
  }
}

@media (max-width: 620px) {
  .async-rows {
    gap: 44px;
  }

  .async-row .code-shell pre {
    font-size: 0.74rem;
  }

  .async-chips {
    margin-top: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chip {
    transition: none;
  }
}
