
@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-section-intro {
  --section-intro-muted: color-mix(in srgb, var(--background), var(--text) 62%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 200px;
  padding: 48px 30px;
  box-sizing: border-box;
}

market-section-intro [content] {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(0.5rem, 1.2vw, 0.75rem);
  width: 100%;
  max-width: 44rem;
}

market-section-intro [kicker] {
  margin: 0;
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--section-intro-muted);
}

market-section-intro [headline] {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}

market-section-intro [copy] {
  margin: 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--background), var(--text) 82%);
}

market-section-intro :is([kicker], [headline], [copy]):empty {
  display: none;
}

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

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

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

market-section-intro[skeleton] :is([kicker], [headline], [copy]):empty {
  display: revert;
}

market-section-intro[skeleton] [kicker] {
  color: var(--market-skeleton-kicker);
}

market-section-intro[skeleton] [kicker]:empty::before {
  content: 'Section';
}

market-section-intro[skeleton] [headline] {
  color: var(--market-skeleton-heading);
}

market-section-intro[skeleton] [headline]:empty::before {
  content: 'What this section covers';
}

market-section-intro[skeleton] [copy] {
  color: var(--market-skeleton-copy);
}

market-section-intro[skeleton] [copy]:empty::before {
  content: 'Two lines of standfirst copy introducing whatever the section below happens to be, stopping short of the second line\'s right edge.';
}
