
@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-app-features {
  --app-features-muted: color-mix(in srgb, var(--background), var(--text) 55%);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
  width: 100%;
  padding: 56px;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  market-app-features {
    gap: 32px;
    padding: 40px 20px;
  }
}

market-app-features [headline] {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
  color: var(--text);
}

market-app-features [grid] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 72px;
  width: 100%;
}

@media (max-width: 900px) {
  market-app-features [grid] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 32px;
  }
}

@media (max-width: 560px) {
  market-app-features [grid] {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

market-app-features [feature] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

market-app-features [icon] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2.5px solid var(--text);
  border-radius: 10px;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text);
  box-sizing: border-box;
}

market-app-features [icon] img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

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

market-app-features [copy] {
  margin: 0;
  max-width: 26rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--app-features-muted);
}

market-app-features :is([headline], [title-text], [copy]):empty {
  display: none;
}

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

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

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

market-app-features[skeleton] :is([headline], [title-text], [copy]):empty {
  display: revert;
}

market-app-features[skeleton] [icon] {
  border-color: var(--market-skeleton-heading);
}

market-app-features[skeleton] [headline] {
  color: var(--market-skeleton-heading);
}

market-app-features[skeleton] [headline]:empty::before {
  content: 'Six things it does that the site cannot';
}

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

market-app-features[skeleton] [feature]:nth-child(3n + 1) [title-text]:empty::before {
  content: 'A feature';
}

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

market-app-features[skeleton] [feature]:nth-child(3n + 3) [title-text]:empty::before {
  content: 'Another one';
}

market-app-features[skeleton] [copy] {
  color: var(--market-skeleton-copy);
}

market-app-features[skeleton] [feature]:nth-child(2n + 1) [copy]:empty::before {
  content: 'Two lines saying what the feature is, without saying how it works.';
}

market-app-features[skeleton] [feature]:nth-child(2n + 2) [copy]:empty::before {
  content: 'One shorter line about this one.';
}
