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

market-hero-centered [content] {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(0.75rem, 1.5vw, 1.125rem);
  width: 100%;
  max-width: var(--max-page-width, 1400px);
}

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

market-hero-centered [headline] {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

market-hero-centered [actions] {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

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

market-hero-centered [cta] {
  border: 2px solid var(--text);
  background: var(--text);
  color: var(--background);
}

market-hero-centered [cta]:hover {
  background: color-mix(in srgb, var(--text), var(--background) 18%);
  border-color: color-mix(in srgb, var(--text), var(--background) 18%);
}

market-hero-centered [cta-alt] {
  border: 2px solid color-mix(in srgb, var(--background), var(--text) 30%);
  background: transparent;
  color: var(--text);
}

market-hero-centered [cta-alt]:hover {
  border-color: var(--text);
}

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

/* A prop that was not passed leaves an empty node behind; collapse it so the
   flex gaps do not open around nothing. */
market-hero-centered :is([kicker], [headline], [copy], [cta], [cta-alt], [actions]):empty {
  display: none;
}

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

/* The `*` is not decoration: `app.css` sets `font-family` on
   `*:not(svg path)`, so inheriting from the host would never reach the copy. */
market-hero-centered[skeleton],
market-hero-centered[skeleton] * {
  font-family: var(--market-skeleton-font);
  font-weight: 400;
  letter-spacing: normal;
}

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

/* Re-show what the `:empty` collapse above hid: with no props the whole point
   of the skeleton is the bars, and `::before` is what draws them. */
market-hero-centered[skeleton] :is([kicker], [headline], [copy], [cta], [cta-alt]):empty {
  display: revert;
}

market-hero-centered[skeleton] [actions]:empty {
  display: flex;
}

market-hero-centered[skeleton] [kicker] {
  color: var(--market-skeleton-kicker);
}

market-hero-centered[skeleton] [kicker]:empty::before {
  content: 'New release';
}

market-hero-centered[skeleton] [headline] {
  color: var(--market-skeleton-heading);
}

/* The filler is sized to wrap the way the kit's wireframe does — two lines of
   headline over two lines of copy — rather than to read as a sentence. */
market-hero-centered[skeleton] [headline]:empty::before {
  content: 'A headline that runs to two lines';
}

market-hero-centered[skeleton] [copy] {
  color: var(--market-skeleton-copy);
}

market-hero-centered[skeleton] [copy]:empty::before {
  content: 'A supporting sentence that runs to about two lines of body copy at this width, then stops well short of the right edge.';
}

market-hero-centered[skeleton] [cta] {
  color: var(--background);
}

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

market-hero-centered[skeleton] [cta-alt] {
  color: var(--market-skeleton-copy);
  border-color: var(--market-skeleton-copy);
}

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