
@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 landing page 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. */
  --landing-skeleton-font: 'Redacted', var(--font-primary, sans-serif);

  --landing-skeleton-heading: color-mix(in srgb, var(--background), var(--text) 70%);
  --landing-skeleton-copy: color-mix(in srgb, var(--background), var(--text) 30%);
  --landing-skeleton-kicker: color-mix(in srgb, var(--background), var(--text) 24%);
  --landing-skeleton-media: color-mix(in srgb, var(--background), var(--text) 38%);
  --landing-skeleton-rule: color-mix(in srgb, var(--background), var(--text) 12%);
  --landing-skeleton-surface: color-mix(in srgb, var(--background), var(--text) 2%);
}

/**
 * The close: a centred kicker-less section head and the same two buttons the
 * hero opened with, so the page ends where it began.
 *
 * The wipe is the hero's — see the long note in `HeroCentered/style.css` for why
 * it is a pseudo-element with a flipped transform origin rather than script.
 */
landing-cta-banner {
  --cta-banner-muted: color-mix(in srgb, var(--background), var(--text) 65%);
  --cta-banner-wipe: 340ms cubic-bezier(0.45, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3vh, 30px);
  width: 100%;
  padding: clamp(56px, 8vh, 104px) 28px clamp(72px, 10vh, 128px);
  box-sizing: border-box;
}

@media (max-width: 640px) {
  landing-cta-banner {
    padding: 48px 20px 64px;
  }
}

landing-cta-banner [content] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  max-width: 60ch;
}

landing-cta-banner [headline] {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.625rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.038em;
  text-wrap: balance;
  color: var(--text);
}

landing-cta-banner [copy] {
  margin: 0;
  max-width: 58ch;
  font-size: 0.96875rem;
  line-height: 1.5;
  text-wrap: pretty;
  color: var(--cta-banner-muted);
}

landing-cta-banner [actions] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

landing-cta-banner :is([cta], [cta-alt]) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 23px;
  border: 1px solid var(--text);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms linear, border-color 180ms linear;
}

landing-cta-banner :is([cta], [cta-alt])::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--cta-banner-wipe);
}

landing-cta-banner :is([cta], [cta-alt]):hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

landing-cta-banner [cta] {
  background: var(--text);
  color: var(--background);
}

landing-cta-banner [cta]::after {
  background: var(--background);
}

landing-cta-banner [cta]:hover {
  color: var(--text);
}

landing-cta-banner [cta-alt] {
  border-color: var(--light2);
  color: var(--text);
}

landing-cta-banner [cta-alt]::after {
  background: var(--text);
}

landing-cta-banner [cta-alt]:hover {
  border-color: var(--text);
  color: var(--background);
}

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

landing-cta-banner [actions]:empty {
  display: none;
}

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

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

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

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

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

landing-cta-banner[skeleton] :is([cta], [cta-alt])::after {
  display: none;
}

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

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

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

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

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

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