{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "features-stacked-cards",
  "type": "registry:block",
  "title": "Features, stacked cards",
  "description": "An intro column (eyebrow, heading, lead, two actions) pinned beside a tall column of picture cards, each with a badge, name and line. On a phone the intro sits above the stacked cards.",
  "categories": [
    "features"
  ],
  "dependencies": [
    "zod@^4.6.5"
  ],
  "registryDependencies": [
    "https://ui.klarhimmel.com/r/block-kit.json",
    "https://ui.klarhimmel.com/r/editing.json",
    "https://ui.klarhimmel.com/r/kit-c-proof.json"
  ],
  "files": [
    {
      "path": "src/blocks/features-stacked-cards/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/features-stacked-cards/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, link, media, t } from '../_shared/schema';\n\n// Skeleton from scripts/harvest/pairs.ts: replace the fields with what the captured section holds, keep the rules (ui/CLAUDE.md).\n// Every default is an instruction about as long as real content, in general words; a picture's default src is empty.\nconst item = z.object({\n  badge: t(24),\n  title: t(60),\n  description: t(160),\n  media,\n});\n\nconst schema = z.object({\n  eyebrow: t(40),\n  title: t(100),\n  description: t(240),\n  primary: link,\n  /** An optional nested object needs a default, or the editor's round trip fails. */\n  secondary: link.optional(),\n  /** A list is an array field, never a slot. */\n  items: z.array(item).min(2).max(6),\n});\n\nexport const spec = defineSpec({\n  type: 'features-stacked-cards',\n  aliases: ['features/stacked-cards'],\n  sourceRuns: ['rmwj00glfa5a748', 'rmwj0r19jbec658'],\n  name: 'Features, stacked cards',\n  category: 'features',\n  role: 'body',\n  description: 'An intro column (eyebrow, heading, lead, two actions) pinned beside a tall column of picture cards, each with a badge, name and line. On a phone the intro sits above the stacked cards.',\n  schema,\n  defaults: {\n    eyebrow: 'Name the group in two or three words',\n    title: 'Say what this group of items is about',\n    description: 'Open with one or two short lines that tell the reader why these items belong together.',\n    primary: { label: 'Main action', href: '#primary' },\n    secondary: { label: 'Other action', href: '#secondary' },\n    items: [\n      { badge: 'Label', title: 'Name the first item', description: 'Describe the first item in a line or two: its purpose and its main benefit.', media: { src: '', alt: 'Show the first item' } },\n      { badge: 'Label', title: 'Name the second item', description: 'Describe the second item in a line or two: its purpose and its main benefit.', media: { src: '', alt: 'Show the second item' } },\n      { badge: 'Label', title: 'Name the third item', description: 'Describe the third item in a line or two: its purpose and its main benefit.', media: { src: '', alt: 'Show the third item' } },\n      { badge: 'Label', title: 'Name the fourth item', description: 'Describe the fourth item in a line or two: its purpose and its main benefit.', media: { src: '', alt: 'Show the fourth item' } },\n    ],\n  },\n});\n"
    },
    {
      "path": "src/blocks/features-stacked-cards/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/features-stacked-cards/index.tsx",
      "content": "import { Media, Text, withHeadingLevel } from '../../editing';\nimport { ActionLink, Container, Opt, Section } from '../_shared/kit';\nimport { useHeadingId } from '../_shared/c-proof-kit';\nimport { spec } from './spec';\nimport type { BlockProps } from '../types';\nimport type { z } from 'zod';\n\nexport { spec };\ntype Props = z.infer<typeof spec.schema>;\n\n// Skeleton from scripts/harvest/pairs.ts: rebuild the captured arrangement here; what is already written passes the repo's checks.\n// Container queries only (@md:, @4xl:), kh- tokens only, var(--kh-*) in arbitrary values, no state or effects, icons from lucide-react.\nfunction FeaturesStackedCards({ props }: BlockProps<Props>) {\n  const id = useHeadingId(props.title);\n  return (\n    <Section labelledBy={id}>\n      <Container>\n        <div className=\"grid grid-cols-1 gap-12 @4xl:grid-cols-[minmax(0,22rem)_minmax(0,1fr)] @4xl:gap-20\">\n          <div className=\"flex flex-col gap-6 @4xl:sticky @4xl:top-12 @4xl:self-start\">\n            <Opt path={['eyebrow']} value={props.eyebrow} as=\"p\" className=\"font-kh-mono text-kh-caption uppercase tracking-widest text-kh-accent-ink\" placeholder=\"Eyebrow\" />\n            <div id={id}>\n              <Text path={['title']} value={props.title} as=\"h2\" className=\"font-kh-display text-kh-title\" />\n            </div>\n            <Text path={['description']} value={props.description} as=\"p\" multiline className=\"text-kh-lead text-kh-muted\" />\n            <div className=\"flex flex-wrap items-center gap-3\">\n              <ActionLink path={['primary']} value={props.primary} size=\"md\" className=\"rounded-kh-pill\" />\n              {props.secondary && <ActionLink path={['secondary']} value={props.secondary} variant=\"secondary\" size=\"md\" className=\"rounded-kh-pill\" />}\n            </div>\n          </div>\n          <ul className=\"flex flex-col gap-8\">\n            {props.items.map((it, i) => (\n              <li key={i} className=\"flex flex-col gap-5 rounded-kh-xl border border-kh-line bg-kh-surface p-4 shadow-kh-1 @md:p-5\">\n                <Media path={['items', i, 'media']} value={it.media} ratio=\"4 / 3\" className=\"w-full rounded-kh-lg\" />\n                <div className=\"flex flex-col gap-2 px-1 pb-1\">\n                  <Opt path={['items', i, 'badge']} value={it.badge} as=\"span\" className=\"w-fit rounded-kh-pill bg-kh-accent-soft px-3 py-1 font-kh-mono text-kh-caption text-kh-accent-ink\" placeholder=\"Badge\" />\n                  <Text path={['items', i, 'title']} value={it.title} as=\"h3\" className=\"font-kh-display text-kh-heading\" />\n                  <Text path={['items', i, 'description']} value={it.description} as=\"p\" multiline className=\"text-kh-body text-kh-muted\" />\n                </div>\n              </li>\n            ))}\n          </ul>\n        </div>\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(FeaturesStackedCards);\n"
    }
  ]
}
