
@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-feature-grid {
  --feature-grid-columns: 3;
  --feature-grid-muted: color-mix(in srgb, var(--background), var(--text) 62%);
  position: relative;
  display: block;
  width: 100%;
  padding: 48px;
  box-sizing: border-box;
}

market-feature-grid [items] {
  display: grid;
  grid-template-columns: repeat(var(--feature-grid-columns), minmax(0, 1fr));
  gap: 40px;
  width: 100%;
  max-width: var(--max-page-width, 1400px);
  margin: 0 auto;
}

@media (max-width: 1024px) {
  market-feature-grid [items] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  market-feature-grid {
    padding: 32px 20px;
  }

  market-feature-grid [items] {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

market-feature-grid [item] {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

market-feature-grid a[item]:hover [title-text] {
  text-decoration: underline;
}

market-feature-grid [icon] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.125rem;
  line-height: 1;
  background: color-mix(in srgb, var(--background), var(--text) 10%);
  color: var(--text);
}

market-feature-grid [icon] img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

market-feature-grid [title-text] {
  margin: 6px 0 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

market-feature-grid [copy] {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--feature-grid-muted);
}

market-feature-grid :is([title-text], [copy]):empty {
  display: none;
}

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

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

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

market-feature-grid[skeleton] :is([title-text], [copy]):empty {
  display: revert;
}

market-feature-grid[skeleton] [icon] {
  background: var(--market-skeleton-heading);
}

market-feature-grid[skeleton] [icon] img {
  display: none;
}

market-feature-grid[skeleton] [title-text] {
  color: var(--market-skeleton-heading);
}

market-feature-grid[skeleton] [copy] {
  color: var(--market-skeleton-copy);
}

/* Uniform filler would draw a grid of identical bars, which reads as a loading
   state rather than a layout. Rotating three lengths across the cells restores
   the ragged right edge real copy has. */
market-feature-grid[skeleton] [item]:nth-child(3n + 1) [title-text]:empty::before {
  content: 'Feature name';
}

market-feature-grid[skeleton] [item]:nth-child(3n + 2) [title-text]:empty::before {
  content: 'A longer feature name';
}

market-feature-grid[skeleton] [item]:nth-child(3n + 3) [title-text]:empty::before {
  content: 'Feature';
}

market-feature-grid[skeleton] [item]:nth-child(3n + 1) [copy]:empty::before {
  content: 'Two and a bit lines of body copy describing what this one does.';
}

market-feature-grid[skeleton] [item]:nth-child(3n + 2) [copy]:empty::before {
  content: 'Two and a bit lines of body copy, running slightly shorter than the first.';
}

market-feature-grid[skeleton] [item]:nth-child(3n + 3) [copy]:empty::before {
  content: 'Two lines of body copy for the third cell in the row.';
}
