
@font-face {
  font-family: 'Redacted';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/assets/fonts/Redacted/Redacted-Regular.woff2') format('woff2');
}

/**
 * Shared skeleton tokens for the market content blocks.
 *
 * Every block concatenates this with its own `style.css` into
 * `makeElement({ style })` — via `./skeleton.ts`, which also prepends the
 * Redacted @font-face — so a block carries everything `[skeleton]` needs and
 * nothing has to be linked globally for the mode to work.
 *
 * The values are the wireframe's grey ramp expressed against `--text` /
 * `--background` rather than the flat hexes it was drawn with, so a skeleton
 * follows the site into dark mode instead of staying a light-mode artifact.
 */
:root {
  /* Redacted has no italic or bold cut — the fallback keeps metrics sane if the
     woff2 is missing, in which case a skeleton degrades to plain grey text. */
  --market-skeleton-font: 'Redacted', var(--font-primary, sans-serif);

  --market-skeleton-heading: color-mix(in srgb, var(--background), var(--text) 70%);
  --market-skeleton-copy: color-mix(in srgb, var(--background), var(--text) 30%);
  --market-skeleton-kicker: color-mix(in srgb, var(--background), var(--text) 24%);
  --market-skeleton-media: color-mix(in srgb, var(--background), var(--text) 38%);
  --market-skeleton-rule: color-mix(in srgb, var(--background), var(--text) 12%);
  --market-skeleton-surface: color-mix(in srgb, var(--background), var(--text) 2%);
}

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;;
  }
}

/* ---------------- SKELETON ---------------- */

market-editorial-quotes[skeleton],
market-editorial-quotes[skeleton] * {
  font-family: var(--market-skeleton-font);
  font-weight: 400;
  letter-spacing: normal;
}

market-editorial-quotes[skeleton] {
  background: var(--market-skeleton-surface);
  pointer-events: none;
  user-select: none;
}

market-editorial-quotes[skeleton] [headline] {
  color: var(--market-skeleton-heading);
}

market-editorial-quotes[skeleton] [headline]:empty::before {
  content: 'Word on the street';
}

/* The card keeps its inverted fill — it is a pinned note, and a wireframe of a
   dark card that came out light would be a wireframe of a different block. */
market-editorial-quotes[skeleton] [wrap] > blockquote {
  border-color: var(--market-skeleton-rule);
  background: var(--market-skeleton-heading);
  color: var(--background);
}

market-editorial-quotes[skeleton] [wrap] > blockquote:nth-of-type(2n + 1):empty::before {
  content: 'A line and a half of what somebody said, ending part-way across the second.';
}

market-editorial-quotes[skeleton] [wrap] > blockquote:nth-of-type(2n + 2):empty::before {
  content: 'A shorter one.';
}
