
@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 design's section head: a mono kicker in small tracked caps, a tight
 * display headline, one line of standfirst.
 *
 * The colours are the app's tokens rather than the hexes the design was drawn
 * with — `--text2` lands within a shade of its `#6a6965`, and `--light` /
 * `--light0` are the rule and panel it uses throughout — so the page follows the
 * site into dark mode instead of carrying a second palette that has to be kept
 * in step with the first.
 */
landing-section-intro {
  --section-intro-muted: color-mix(in srgb, var(--background), var(--text) 65%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: clamp(56px, 8vh, 104px) 28px 0;
  box-sizing: border-box;
}

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

landing-section-intro [kicker] {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text2);
}

landing-section-intro [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-section-intro [copy] {
  margin: 0;
  max-width: 58ch;
  font-size: 0.96875rem;
  line-height: 1.5;
  text-wrap: pretty;
  color: var(--section-intro-muted);
}

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

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

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

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

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

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

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

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

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

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

landing-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.';
}
