market-editorial-quotes {
  /* --editorial-bg: color-mix(in srgb, var(--background), var(--orange) 12%); */
  --editorial-card: var(--text);
  --editorial-border: color-mix(in srgb, var(--text), var(--background) 14%);
  --editorial-shadow: 0 1px 2px color-mix(in srgb, var(--background), transparent 92%);
  --editorial-cite: color-mix(in srgb, var(--text), var(--background) 55%);

  position: relative;
  display: block;
  background: var(--editorial-bg);
  padding: 80px 30px;
}

market-editorial-quotes [wrap] {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  row-gap: 32px;
  align-items: start;
  width: 100%;
  max-width: var(--max-page-width);
  margin: 0 auto;
}

/* Headline occupies the top-left cell; the first quote sits top-right. */
market-editorial-quotes [headline] {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  align-self: center;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
  max-width: 400px;
  margin: auto;
}

/* Alternate the quote cards between the two columns. Children are the headline
   (1st) followed by the hoisted blockquotes, so the 2nd/4th/... land right and
   the 3rd/5th/... land left. */
market-editorial-quotes [wrap] > blockquote:nth-child(2n) {
  grid-column: 2;
}

market-editorial-quotes [wrap] > blockquote:nth-child(2n + 1) {
  grid-column: 1;
}

market-editorial-quotes [wrap] > blockquote {
  margin: 0;
  max-width: 520px;
  padding: 22px 26px;
  border: 1px solid var(--editorial-border);
  border-radius: 16px;
  background: var(--editorial-card);
  box-shadow: var(--editorial-shadow);
  font-size: 17px;
  line-height: 1.5;
  color: var(--background);
}

market-editorial-quotes [wrap] > blockquote strong {
  font-weight: 700;
}

/* Scatter the cards vertically for the editorial, pinned-note feel. */
market-editorial-quotes [wrap] > blockquote:nth-of-type(2) {
  margin-top: 40px;
}

market-editorial-quotes [wrap] > blockquote:nth-of-type(3) {
  margin-top: 96px;
}

market-editorial-quotes [wrap] > blockquote:nth-of-type(n + 4) {
  margin-top: 32px;
}

@media (max-width: 768px) {
  market-editorial-quotes {
    padding: 30px;
  }

  market-editorial-quotes [wrap] {
    grid-template-columns: 1fr;
    row-gap: 24px;
    justify-items: center;

    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  market-editorial-quotes [headline] {
    grid-column: 1;
    grid-row: auto;
    text-align: center;
    align-self: auto;
    margin-bottom: 8px;
  }

  market-editorial-quotes [wrap] > blockquote {
    grid-column: 1;
    width: 100%;
    max-width: 480px;
    margin-top: 0;
    margin: 0 !important;
  }

  market-editorial-quotes [wrap] > blockquote:nth-child(2n) {
    align-self: flex-start;
  }

  market-editorial-quotes [wrap] > blockquote:nth-child(2n + 1) {
    align-self: flex-end;;
  }
}
