
@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-cta-banner {
  /* The banner is a dark slab in both colour schemes — it is the page's loudest
     moment, and inverting it in dark mode would make it the quietest. The copy
     on it is therefore always light, like the full-bleed hero's. */
  --cta-banner-slab: color-mix(in srgb, #111111, var(--text) 12%);
  --cta-banner-on-slab: #ffffff;
  --cta-banner-muted: color-mix(in srgb, #ffffff, transparent 34%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
  padding: 52px;
  box-sizing: border-box;
  background: var(--cta-banner-slab);
}

@media (max-width: 900px) {
  market-cta-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 36px 24px;
  }
}

market-cta-banner [content] {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

market-cta-banner [headline] {
  margin: 0;
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--cta-banner-on-slab);
}

market-cta-banner [copy] {
  margin: 0;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--cta-banner-muted);
}

market-cta-banner [actions] {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: none;
}

market-cta-banner :is([cta], [cta-alt]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all ease 300ms;
  cursor: pointer;
}

market-cta-banner [cta] {
  border: 2px solid var(--cta-banner-on-slab);
  background: var(--cta-banner-on-slab);
  color: #111111;
}

market-cta-banner [cta]:hover {
  background: color-mix(in srgb, #ffffff, #000000 12%);
}

market-cta-banner [cta-alt] {
  border: 2px solid var(--cta-banner-muted);
  background: transparent;
  color: var(--cta-banner-on-slab);
}

market-cta-banner [cta-alt]:hover {
  border-color: var(--cta-banner-on-slab);
}

@media (prefers-reduced-motion: reduce) {
  market-cta-banner :is([cta], [cta-alt]) {
    transition: none;
  }
}

market-cta-banner :is([headline], [copy], [cta], [cta-alt], [actions]):empty {
  display: none;
}

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

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

market-cta-banner[skeleton] {
  pointer-events: none;
  user-select: none;
}

market-cta-banner[skeleton] :is([headline], [copy], [cta], [cta-alt]):empty {
  display: revert;
}

market-cta-banner[skeleton] :is([cta], [cta-alt]):empty {
  display: inline-flex;
}

market-cta-banner[skeleton] [actions]:empty {
  display: flex;
}

market-cta-banner[skeleton] [headline]:empty::before {
  content: 'A closing line that asks for the sale';
}

market-cta-banner[skeleton] [copy]:empty::before {
  content: 'Two lines of supporting copy under it, stopping short of the second line’s end.';
}

market-cta-banner[skeleton] [cta]:empty::before {
  content: 'Primary';
}

market-cta-banner[skeleton] [cta-alt]:empty::before {
  content: 'Secondary';
}
