{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"changelog-template","type":"registry:ui","title":"Changelog template","description":"What shipped, newest first: dates that stay in view, linkable versions, tag filters with a count and a product view per release.","dependencies":["clsx","lucide-react","tailwind-merge"],"registryDependencies":["https://caliperui.site/r/styles.json"],"files":[{"path":"ui/avatar.tsx","type":"registry:ui","target":"components/ui/avatar.tsx","content":"\"use client\";\n\nimport { createContext, useContext, useState, type ComponentProps } from \"react\";\nimport { cn } from \"./lib/cn\";\nimport \"./avatar.css\";\n\nexport type AvatarProps = Omit<ComponentProps<\"span\">, \"children\"> & {\n  name: string;\n  src?: string;\n  alt?: string;\n  /** \"square\" for a company, workspace or integration: a coloured mark instead of a person's orb or photo. */\n  shape?: \"circle\" | \"square\";\n  /** Shown as a shape at the corner: filled, half, dash or ring. */\n  presence?: \"online\" | \"away\" | \"busy\" | \"offline\";\n};\n\n/** Resolves a person's photo from their name when an Avatar has no `src`: your user directory, or sample faces in a demo.\n    Return undefined for anyone without one and they keep their orb. */\nexport const AvatarPhotos = createContext<((name: string) => string | undefined) | null>(null);\n\n/** The same name always gets the same orb (six glass orbs; the first follows the accent). */\nexport function avatarTone(name: string) {\n  let hash = 7;\n  for (const char of name.trim().toLowerCase()) hash = (hash * 31 + char.codePointAt(0)!) >>> 0;\n  return hash % 6;\n}\n\nfunction AvatarContent({ src, initials }: { src?: string; initials: string }) {\n  const [failed, setFailed] = useState(false);\n  return (\n    <>\n      <span aria-hidden=\"true\">{initials}</span>\n      {src && !failed && (\n        <img\n          src={src}\n          alt=\"\"\n          aria-hidden=\"true\"\n          width={32}\n          height={32}\n          decoding=\"async\"\n          className=\"absolute inset-0 size-full object-cover\"\n          ref={(image) => {\n            // A cached or pre-hydration failure may precede the error listener.\n            if (image?.complete && image.naturalWidth === 0) setFailed(true);\n          }}\n          onError={() => setFailed(true)}\n        />\n      )}\n    </>\n  );\n}\n\nexport function Avatar({\n  name,\n  src,\n  alt = name,\n  shape = \"circle\",\n  presence,\n  className,\n  ...props\n}: AvatarProps) {\n  const resolve = useContext(AvatarPhotos);\n  const photo = src ?? (shape === \"circle\" ? resolve?.(name) : undefined);\n  const words = name.trim().normalize(\"NFC\").split(/\\s+/u);\n  const initials =\n    (Array.from(words[0] ?? \"\")[0] ?? \"?\") +\n    (words.length > 1 ? (Array.from(words[words.length - 1]!)[0] ?? \"\") : \"\");\n\n  return (\n    <span\n      data-slot=\"avatar\"\n      data-tone={avatarTone(name)}\n      data-shape={shape === \"square\" ? \"square\" : undefined}\n      className={cn(\n        \"relative inline-flex size-8 shrink-0 items-center justify-center text-xs font-semibold\",\n        shape === \"square\" ? \"rounded-[8px]\" : \"rounded-full\",\n        className,\n      )}\n      {...props}\n      role={alt ? \"img\" : undefined}\n      aria-label={alt || undefined}\n      aria-hidden={!alt || undefined}\n    >\n      <AvatarContent\n        key={photo ?? \"\"}\n        src={photo}\n        initials={initials.toUpperCase()}\n      />\n      {presence && <span data-slot=\"avatar-presence\" data-presence={presence} aria-hidden=\"true\" />}\n    </span>\n  );\n}\n"},{"path":"ui/badge.tsx","type":"registry:ui","target":"components/ui/badge.tsx","content":"import type { ComponentProps, CSSProperties } from \"react\";\nimport { cn } from \"./lib/cn\";\n\nconst variants = {\n  neutral: \"bg-muted text-muted-foreground\",\n  info: \"bg-brand-subtle text-[color-mix(in_srgb,var(--accent-text)_82%,var(--foreground))]\",\n  success: \"bg-success-subtle text-success\",\n  warning: \"bg-warning-subtle text-warning\",\n  error: \"bg-destructive-subtle text-destructive\",\n};\n\n/* Status survives without colour: each variant has its own shape. */\nconst shapes = {\n  neutral: <path d=\"M2 5h6\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" />,\n  info: <circle cx=\"5\" cy=\"5\" r=\"3.6\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.6\" />,\n  success: <circle cx=\"5\" cy=\"5\" r=\"4\" fill=\"currentColor\" />,\n  warning: (\n    <>\n      <path d=\"M5 1a4 4 0 0 1 0 8z\" fill=\"currentColor\" />\n      <circle cx=\"5\" cy=\"5\" r=\"4\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.6\" />\n    </>\n  ),\n  error: <path d=\"M2 2l6 6M8 2 2 8\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" />,\n};\n\n/* Categorical hues for labels that name a kind, not a status (a deal stage, a team, a type): OKLCH hue angles.\n   Lightness and chroma come per theme from tokens.css (--tone-*), so the text holds 4.5:1 on its wash in both. */\nexport const toneHues = { blue: 255, violet: 295, rose: 2, orange: 50, amber: 82, green: 150, teal: 195, slate: 260 } as const;\nexport type BadgeTone = keyof typeof toneHues;\n\nexport type BadgeProps = ComponentProps<\"span\"> & {\n  variant?: keyof typeof variants;\n  /** A categorical hue with a dot, for kinds rather than statuses. Overrides the variant's colour. */\n  tone?: BadgeTone;\n  /** The status shape before the word. On for status variants, off for neutral labels and counts. */\n  shape?: boolean;\n};\n\nexport function Badge({\n  className,\n  variant = \"neutral\",\n  tone,\n  shape = variant !== \"neutral\" && !tone,\n  children,\n  style,\n  ...props\n}: BadgeProps) {\n  return (\n    <span\n      data-slot=\"badge\"\n      data-variant={variant}\n      data-tone={tone}\n      className={cn(\n        \"inline-flex h-[22px] shrink-0 items-center gap-1.5 whitespace-nowrap rounded-full px-2 text-xs leading-4 font-medium [&_svg]:size-3\",\n        (shape || tone) && \"pl-[7px]\",\n        tone\n          ? \"bg-[oklch(var(--tone-bg-l)_var(--tone-bg-c)_var(--tone-h))] text-[oklch(var(--tone-fg-l)_var(--tone-fg-c)_var(--tone-h))]\"\n          : variants[variant],\n        className,\n      )}\n      style={tone ? ({ \"--tone-h\": toneHues[tone], ...style } as CSSProperties) : style}\n      {...props}\n    >\n      {tone && <span data-slot=\"badge-dot\" aria-hidden=\"true\" className=\"size-1.5 shrink-0 rounded-full bg-current\" />}\n      {shape && (\n        <svg data-slot=\"badge-shape\" viewBox=\"0 0 10 10\" aria-hidden=\"true\" className=\"!size-2.5\">\n          {shapes[variant]}\n        </svg>\n      )}\n      {children}\n    </span>\n  );\n}\n"},{"path":"ui/block-concept.tsx","type":"registry:ui","target":"components/ui/block-concept.tsx","content":"import { ArrowRight } from \"lucide-react\";\nimport type { ComponentProps, ElementType, ReactNode } from \"react\";\nimport { cn } from \"./lib/cn\";\nimport { StageScope } from \"./stage-scope\";\nimport \"./block-concept.css\";\n\n/**\n * Marketing blocks share one voice: monochrome from the system tokens, Geist\n * display with two-tone titles, ink actions, ruled sections and ember only for\n * focus. Blocks follow the page theme, and the Caliper UI controls inside them too.\n */\n\nexport type BlockAction = { label: string; href?: string; onClick?: () => void };\n\n/**\n * A full-bleed band. The section is the container, so everything inside lays\n * out by the block's own width; `block-inner` holds the measure and rhythm.\n * `backdrop` paints behind the content edge to edge (grid lines, a tone).\n */\nexport function BlockRoot({\n  as: Tag = \"section\",\n  width = \"default\",\n  backdrop,\n  tone,\n  className,\n  innerClassName,\n  children,\n  ...props\n}: Omit<ComponentProps<\"section\">, \"ref\"> & {\n  /** The band's element; a site footer is a footer. */\n  as?: \"section\" | \"footer\" | \"div\";\n  /** default 1240px · narrow 960px · wide 1440px. */\n  width?: \"default\" | \"narrow\" | \"wide\";\n  backdrop?: ReactNode;\n  /** A band tone: the page colour or the sunken colour. */\n  tone?: \"page\" | \"sunken\" | \"ink\";\n  innerClassName?: string;\n}) {\n  return (\n    <Tag data-slot=\"block\" data-tone={tone} className={cn(\"@container relative isolate overflow-clip\", className)} {...props}>\n      {backdrop}\n      <div data-slot=\"block-inner\" data-width={width} className={innerClassName}>\n        {children}\n      </div>\n    </Tag>\n  );\n}\n\nexport function BlockEyebrow({ className, ...props }: ComponentProps<\"p\">) {\n  return <p data-slot=\"block-eyebrow\" className={className} {...props} />;\n}\n\n/** A display heading in the block face. size 1 is the hero headline. */\nexport function BlockTitle({\n  as: Tag = \"h2\",\n  size = 2,\n  className,\n  ...props\n}: ComponentProps<\"h2\"> & { as?: \"h1\" | \"h2\" | \"h3\"; size?: 1 | 2 | 3 }) {\n  return <Tag data-slot=\"block-title\" data-size={size} className={className} {...props} />;\n}\n\n/** The second tone of a title: these words land in grey. */\nexport function BlockEm({ className, ...props }: ComponentProps<\"em\">) {\n  return <em data-slot=\"block-em\" className={className} {...props} />;\n}\n\nexport function BlockLead({ className, ...props }: ComponentProps<\"p\">) {\n  return <p data-slot=\"block-lead\" className={className} {...props} />;\n}\n\n/**\n * The section opening every block shares: eyebrow, title and lead. `split`\n * sets the lead beside the title on wide blocks; `center` stacks it centred.\n */\nexport function BlockHeader({\n  eyebrow,\n  title,\n  lead,\n  align = \"start\",\n  aside,\n  headingLevel = 2,\n  className,\n}: {\n  eyebrow?: ReactNode;\n  title: ReactNode;\n  lead?: ReactNode;\n  align?: \"start\" | \"center\" | \"split\";\n  /** 1 when the block opens the page, e.g. a pricing page. */\n  headingLevel?: 1 | 2;\n  /** Sits at the end of the header row, e.g. a period toggle. */\n  aside?: ReactNode;\n  className?: string;\n}) {\n  return (\n    <header data-slot=\"block-header\" data-align={align} className={className}>\n      <div data-slot=\"block-header-title\">\n        {eyebrow && <BlockEyebrow>{eyebrow}</BlockEyebrow>}\n        <BlockTitle as={headingLevel === 1 ? \"h1\" : \"h2\"}>{title}</BlockTitle>\n      </div>\n      {(lead || aside) && (\n        <div data-slot=\"block-header-aside\">\n          {lead && <BlockLead>{lead}</BlockLead>}\n          {aside}\n        </div>\n      )}\n    </header>\n  );\n}\n\nexport function BlockActions({\n  primary,\n  secondary,\n  className,\n  block = false,\n}: {\n  primary?: BlockAction;\n  secondary?: BlockAction;\n  className?: string;\n  /** Full-width actions, e.g. on phones. */\n  block?: boolean;\n}) {\n  if (!primary && !secondary) return null;\n  return (\n    <div data-slot=\"block-actions\" className={cn(\"flex flex-wrap gap-3\", block && \"@max-[520px]:grid @max-[520px]:grid-cols-1\", className)}>\n      {primary && <BlockButton action={primary} kind=\"primary\" arrow />}\n      {secondary && <BlockButton action={secondary} kind=\"secondary\" />}\n    </div>\n  );\n}\n\nexport function BlockButton({ action, kind = \"primary\", arrow = false, link: Link = \"a\" }: { action: BlockAction; kind?: \"primary\" | \"secondary\"; arrow?: boolean; /** The element for a link action, e.g. your router's Link. */ link?: ElementType }) {\n  const shared = { \"data-slot\": \"block-button\", \"data-kind\": kind } as const;\n  const content = (\n    <>\n      {action.label}\n      {arrow && <ArrowRight aria-hidden=\"true\" data-slot=\"block-button-arrow\" className=\"size-4\" />}\n    </>\n  );\n  return action.href ? (\n    <Link href={action.href} {...shared}>\n      {content}\n    </Link>\n  ) : (\n    <button type=\"button\" onClick={action.onClick} {...shared}>\n      {content}\n    </button>\n  );\n}\n\nexport function BlockCard({ className, ...props }: ComponentProps<\"div\">) {\n  return <div data-slot=\"block-card\" className={className} {...props} />;\n}\n\nexport function BlockChip({ className, ...props }: ComponentProps<\"span\">) {\n  return <span data-slot=\"block-chip\" className={className} {...props} />;\n}\n\n/**\n * A product artefact on a stage: a dotted tonal panel holding a framed window, with an optional floating note that overlaps the\n * window's corner on wide blocks and sits beneath it on narrow ones.\n */\nexport function BlockStage({\n  title,\n  floating,\n  bare = false,\n  className,\n  children,\n}: {\n  /** Shown in the window bar, e.g. \"halden.app/close\". */\n  title?: string;\n  floating?: ReactNode;\n  /** No window frame: the children bring their own surfaces. */\n  bare?: boolean;\n  className?: string;\n  children: ReactNode;\n}) {\n  return (\n    <div data-slot=\"block-stage\" className={className}>\n      {bare ? (\n        <StageScope>{children}</StageScope>\n      ) : (\n        <div data-slot=\"block-window\">\n          <div data-slot=\"block-window-bar\" aria-hidden={title ? undefined : true}>\n            <span data-slot=\"block-window-dots\" aria-hidden=\"true\"><i /><i /><i /></span>\n            {title && <span data-slot=\"block-window-title\">{title}</span>}\n          </div>\n          <div data-slot=\"block-window-body\"><StageScope>{children}</StageScope></div>\n        </div>\n      )}\n      {floating && <div data-slot=\"block-float\">{floating}</div>}\n    </div>\n  );\n}\n\n/** Company names set as type in a quiet row; swap in SVG marks in production. */\nexport function BlockLogos({ label, logos, className }: { label?: string; logos: readonly string[]; className?: string }) {\n  return (\n    <div data-slot=\"block-logos\" className={className}>\n      {label && <p data-slot=\"block-logos-label\">{label}</p>}\n      <ul aria-label={label ?? \"Customers\"}>\n        {logos.map((logo) => (\n          <li key={logo}>{logo}</li>\n        ))}\n      </ul>\n    </div>\n  );\n}\n\n/** Initials from a name, in the block's highlight tones. */\nexport function BlockInitials({ name, size = 36, tone, className }: { name: string; size?: number; tone?: number; className?: string }) {\n  const words = name.trim().split(/\\s+/u);\n  const initials = ((words[0]?.[0] ?? \"\") + (words.length > 1 ? (words[words.length - 1]?.[0] ?? \"\") : \"\")).toUpperCase();\n  return (\n    <span data-slot=\"block-initials\" data-tone={tone === undefined ? undefined : tone % 4} aria-hidden=\"true\" className={className} style={{ width: size, height: size, fontSize: Math.round(size / 2.8) }}>\n      {initials}\n    </span>\n  );\n}\n\nexport type BlockStat = { value: ReactNode; label: string };\n"},{"path":"ui/block-nav.tsx","type":"registry:ui","target":"components/ui/block-nav.tsx","content":"\"use client\";\n\nimport { Menu, X } from \"lucide-react\";\nimport { useEffect, useId, useRef, useState, type ElementType, type ReactNode } from \"react\";\nimport { BlockButton, type BlockAction } from \"./block-concept\";\nimport { cn } from \"./lib/cn\";\nimport \"./shared/site-header.css\";\nimport \"./block-nav.css\";\n\nexport type BlockNavLink = { label: string; href: string; current?: boolean };\n\n// Whole class names, so Tailwind sees them.\nconst folds = {\n  860: { nav: \"@[860px]:block\", row: \"@[860px]:flex\", menu: \"@[860px]:hidden\" },\n  1180: { nav: \"@[1180px]:block\", row: \"@[1180px]:flex\", menu: \"@[1180px]:hidden\" },\n};\n\n/**\n * The site header page templates share. It sits on the page colour, gains a\n * hairline and frost once the page scrolls, keeps the primary action in\n * reach, and on narrow pages folds the links into a menu disclosure that\n * closes with Escape and returns focus to its button.\n */\nexport function BlockNav({\n  brand,\n  brandHref = \"/\",\n  brandLabel,\n  logo,\n  nav = [],\n  signIn,\n  primary,\n  aside,\n  link: Link = \"a\",\n  foldAt = 860,\n  className,\n}: {\n  brand: string;\n  brandHref?: string;\n  /** The home link's accessible name when the visible brand is short, e.g. \"Halden home\". */\n  brandLabel?: string;\n  /** A mark set before the brand name; the name stays the accessible label. */\n  logo?: ReactNode;\n  nav?: readonly BlockNavLink[];\n  signIn?: BlockAction;\n  primary?: BlockAction;\n  /** Extra controls before the actions, e.g. a theme switch or search. */\n  aside?: ReactNode;\n  /** The element for the brand and nav links, e.g. your router's Link, so moving between pages stays in the app. */\n  link?: ElementType;\n  /** The header width (px) the links and actions need to sit in one row; narrower, they fold into the menu. 1180 suits six or more links beside extra controls. */\n  foldAt?: keyof typeof folds;\n  className?: string;\n}) {\n  const id = useId();\n  const sentinel = useRef<HTMLDivElement>(null);\n  const menuButton = useRef<HTMLButtonElement>(null);\n  const [scrolled, setScrolled] = useState(false);\n  const [menu, setMenu] = useState(false);\n  const fold = folds[foldAt];\n\n  useEffect(() => {\n    const top = sentinel.current;\n    if (!top) return;\n    const observer = new IntersectionObserver(([entry]) => setScrolled(!entry!.isIntersecting));\n    observer.observe(top);\n    return () => observer.disconnect();\n  }, []);\n\n  return (\n    <>\n      <div ref={sentinel} aria-hidden=\"true\" className=\"absolute top-0 h-px w-px\" />\n      <header data-slot=\"site-header\" data-scrolled={scrolled || undefined} className={cn(\"sticky top-0 z-20\", className)}>\n        <div data-slot=\"block-nav-row\">\n          <Link href={brandHref} aria-label={brandLabel} data-slot=\"block-nav-brand\" className={cn(logo && \"inline-flex items-center gap-2.5\")}>{logo}{brand}</Link>\n          {nav.length > 0 && (\n            <nav aria-label=\"Site\" className={cn(\"hidden\", fold.nav)}>\n              <ul data-slot=\"block-nav-list\">\n                {nav.map((item) => (\n                  <li key={item.href}>\n                    <Link href={item.href} aria-current={item.current ? \"page\" : undefined} data-slot=\"block-nav-link\">{item.label}</Link>\n                  </li>\n                ))}\n              </ul>\n            </nav>\n          )}\n          <span className={cn(\"ml-auto hidden items-center gap-2\", fold.row)}>\n            {aside}\n            {signIn && <BlockButton action={signIn} kind=\"secondary\" link={Link} />}\n            {primary && <BlockButton action={primary} link={Link} />}\n          </span>\n          {(nav.length > 0 || signIn) && (\n            <button\n              ref={menuButton}\n              type=\"button\"\n              aria-expanded={menu}\n              aria-controls={`${id}-menu`}\n              onClick={() => setMenu((open) => !open)}\n              // Focus stays on the button after it opens the menu, so Escape has to work here too.\n              onKeyDown={(event) => event.key === \"Escape\" && setMenu(false)}\n              data-slot=\"block-button\"\n              data-kind=\"secondary\"\n              className={cn(\"ml-auto !min-h-11 !px-4\", fold.menu)}\n            >\n              {menu ? <X aria-hidden=\"true\" className=\"size-4\" /> : <Menu aria-hidden=\"true\" className=\"size-4\" />}\n              Menu\n            </button>\n          )}\n        </div>\n        <div\n          id={`${id}-menu`}\n          hidden={!menu}\n          data-slot=\"site-menu\"\n          className={cn(\"absolute inset-x-0 top-full grid gap-1 border-b border-x border-border bg-[var(--elevated-glass)] px-5 pt-2 pb-6 backdrop-blur-[20px] backdrop-saturate-[1.4] [box-shadow:var(--shadow-overlay),inset_0_1px_0_var(--edge-light)]\", fold.menu)}\n          onKeyDown={(event) => {\n            if (event.key === \"Escape\") {\n              setMenu(false);\n              menuButton.current?.focus();\n            }\n          }}\n        >\n          {nav.map((item) => (\n            <Link key={item.href} href={item.href} aria-current={item.current ? \"page\" : undefined} onClick={() => setMenu(false)} className=\"flex h-12 items-center border-b border-[var(--k-line)] text-[17px]\">\n              {item.label}\n            </Link>\n          ))}\n          {menu && aside && <div className=\"mt-4 flex flex-wrap items-center gap-2\">{aside}</div>}\n          <span className=\"mt-4 grid gap-2\">\n            {signIn && <BlockButton action={signIn} kind=\"secondary\" link={Link} />}\n            {primary && <BlockButton action={primary} link={Link} />}\n          </span>\n        </div>\n      </header>\n    </>\n  );\n}\n"},{"path":"ui/changelog-template.tsx","type":"registry:ui","target":"components/ui/changelog-template.tsx","content":"\"use client\";\n\nimport { Link2 } from \"lucide-react\";\nimport { useId, useMemo, useState, type ComponentProps, type ReactNode } from \"react\";\nimport { Avatar } from \"./avatar\";\nimport { Badge, type BadgeTone } from \"./badge\";\nimport { BlockEyebrow, BlockLead, BlockRoot, BlockStage, BlockTitle, type BlockAction } from \"./block-concept\";\nimport { BlockNav, type BlockNavLink } from \"./block-nav\";\nimport { FooterBlock } from \"./footer-block\";\nimport { cn } from \"./lib/cn\";\nimport \"./shared/skip-link.css\";\nimport \"./changelog-template.css\";\n\ntype Without<T> = Omit<T, \"className\">;\n\nexport type ChangelogTemplateEntry = {\n  /** Also the anchor, e.g. \"4.2\". */\n  version: string;\n  /** ISO date, e.g. \"2026-10-07\". */\n  date: string;\n  title: string;\n  /** What changed and why it matters, in a few sentences or a list. */\n  body: ReactNode;\n  /** e.g. [\"New\", \"Improved\", \"Fixed\"]. */\n  tags?: readonly string[];\n  /** Who shipped it, shown with their face under the version. */\n  author?: string;\n  /** A product view of the change. */\n  media?: ReactNode;\n  mediaTitle?: string;\n};\n\nconst formatDate = (iso: string) => new Intl.DateTimeFormat(\"en-GB\", { day: \"numeric\", month: \"short\", year: \"numeric\", timeZone: \"UTC\" }).format(new Date(`${iso}T00:00:00Z`));\n\n/**\n * What shipped, newest first. Each release has a date that stays in view\n * while you read it, a linkable version, tags you can filter by and an\n * optional product view. The filter states how many releases match.\n */\nexport function ChangelogTemplate({\n  brand,\n  nav = [],\n  signIn,\n  primary,\n  eyebrow = \"Changelog\",\n  title,\n  lead,\n  entries,\n  tones,\n  footer,\n  header,\n  footerNode,\n  className,\n}: {\n  brand: string;\n  nav?: readonly BlockNavLink[];\n  signIn?: BlockAction;\n  primary?: BlockAction;\n  eyebrow?: string;\n  title: string;\n  lead?: string;\n  entries: readonly ChangelogTemplateEntry[];\n  /** A hue per tag, e.g. { New: \"green\", Fixed: \"orange\" }; a tag without one stays a plain chip. */\n  tones?: Readonly<Record<string, BadgeTone>>;\n  footer?: Omit<Without<ComponentProps<typeof FooterBlock>>, \"brand\"> & { brand?: string };\n  /** Replaces the built-in header, for a site that already has its own. */\n  header?: ReactNode;\n  /** Replaces the built-in footer. */\n  footerNode?: ReactNode;\n  className?: string;\n}) {\n  const id = useId();\n  const tags = useMemo(() => [...new Set(entries.flatMap((entry) => entry.tags ?? []))], [entries]);\n  const [tag, setTag] = useState<string | null>(null);\n  const shown = tag ? entries.filter((entry) => entry.tags?.includes(tag)) : entries;\n  const anchor = (version: string) => `v${version.replace(/[^a-z0-9]+/giu, \"-\")}`;\n\n  return (\n    <div data-slot=\"block\" className={cn(\"@container relative\", className)}>\n      <a href={`#${id}-main`} data-slot=\"skip-link\">Skip to content</a>\n      {header ?? <BlockNav brand={brand} nav={nav} signIn={signIn} primary={primary} />}\n      <main id={`${id}-main`} tabIndex={-1} className=\"outline-none\">\n        <BlockRoot width=\"narrow\" as=\"div\">\n          <header className=\"grid gap-6 border-b border-[var(--k-line-strong)] pb-10\">\n            <BlockEyebrow>{eyebrow}</BlockEyebrow>\n            <BlockTitle as=\"h1\" size={1}>{title}</BlockTitle>\n            {lead && <BlockLead>{lead}</BlockLead>}\n            {tags.length > 0 && (\n              <div className=\"flex flex-wrap items-center gap-2\" role=\"group\" aria-label=\"Filter releases\">\n                {[null, ...tags].map((item) => (\n                  <button key={item ?? \"all\"} type=\"button\" data-slot=\"changelog-filter\" aria-pressed={tag === item} onClick={() => setTag(item)}>\n                    {item ?? \"All\"}\n                  </button>\n                ))}\n                <span className=\"ml-1 text-[13px] text-[var(--k-muted)]\" role=\"status\">{shown.length} {shown.length === 1 ? \"release\" : \"releases\"}</span>\n              </div>\n            )}\n          </header>\n          <ol className=\"grid\">\n            {shown.map((entry) => (\n              <li key={entry.version} id={anchor(entry.version)} data-slot=\"changelog-entry\">\n                <div data-slot=\"changelog-meta\">\n                  <time dateTime={entry.date} className=\"text-sm text-[var(--k-muted)]\">{formatDate(entry.date)}</time>\n                  <a href={`#${anchor(entry.version)}`} data-slot=\"changelog-version\" aria-label={`Link to version ${entry.version}`}>\n                    v{entry.version}\n                    <Link2 aria-hidden=\"true\" className=\"size-3.5\" />\n                  </a>\n                  {entry.author && <span data-slot=\"changelog-author\"><Avatar name={entry.author} alt=\"\" className=\"size-6 text-[10px]\" />{entry.author}</span>}\n                </div>\n                <article className=\"grid min-w-0 gap-5\">\n                  {entry.tags && entry.tags.length > 0 && (\n                    <ul className=\"flex flex-wrap gap-1.5\" aria-label=\"Tags\">\n                      {entry.tags.map((item) => (tones?.[item] ? <li key={item}><Badge tone={tones[item]}>{item}</Badge></li> : <li key={item} data-slot=\"block-chip\">{item}</li>))}\n                    </ul>\n                  )}\n                  <h2 data-slot=\"block-title\" data-size=\"3\" className=\"!text-[clamp(24px,3cqi,34px)]\">{entry.title}</h2>\n                  <div data-slot=\"changelog-body\">{entry.body}</div>\n                  {entry.media && (\n                    <BlockStage title={entry.mediaTitle} className=\"!pb-[clamp(14px,4.5cqi,40px)] [&_[data-slot=block-window]]:rounded-[var(--k-radius-lg)]\">\n                      {entry.media}\n                    </BlockStage>\n                  )}\n                </article>\n              </li>\n            ))}\n          </ol>\n        </BlockRoot>\n      </main>\n      {footerNode ?? (footer && <FooterBlock {...footer} brand={footer.brand ?? brand} />)}\n    </div>\n  );\n}\n"},{"path":"ui/footer-block.tsx","type":"registry:ui","target":"components/ui/footer-block.tsx","content":"\"use client\";\n\nimport { ArrowRight, Check } from \"lucide-react\";\nimport { useEffect, useId, useRef, useState, type ReactNode } from \"react\";\nimport { BlockRoot } from \"./block-concept\";\nimport { cn } from \"./lib/cn\";\nimport \"./footer-block.css\";\n\nexport type BlockFooterColumn = { title: string; links: readonly { label: string; href: string }[] };\n\n/** Sizes the wordmark so the name spans the band exactly, whatever its length. */\nfunction Wordmark({ children }: { children: string }) {\n  const ref = useRef<HTMLParagraphElement>(null);\n  useEffect(() => {\n    const node = ref.current;\n    const text = node?.firstElementChild as HTMLElement | null;\n    if (!node || !text) return;\n    // Scale from the current size, so a fitted wordmark measures as fitted and stops.\n    const fit = () => {\n      // Layout width, not the drawn box: inside a scaled preview or a transformed parent the drawn box is smaller.\n      const width = text.offsetWidth;\n      const size = parseFloat(getComputedStyle(node).fontSize);\n      if (!width || !size) return;\n      const next = Math.floor((size * node.clientWidth) / width);\n      if (Math.abs(next - size) >= 1) node.style.setProperty(\"--wordmark-size\", `${next}px`);\n    };\n    fit();\n    const observer = new ResizeObserver(() => requestAnimationFrame(fit));\n    observer.observe(node);\n    document.fonts?.ready.then(fit);\n    return () => observer.disconnect();\n  }, [children]);\n  return (\n    <p ref={ref} data-slot=\"footer-wordmark\" aria-hidden=\"true\">\n      <span>{children}</span>\n    </p>\n  );\n}\n\nconst isEmail = (value: string) => /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/u.test(value.trim());\n\n/**\n * The page's last word: what the company is, where everything lives, an\n * optional newsletter that confirms in place, the legal line, and the name\n * set as a wordmark across the full width of the band.\n */\nexport function FooterBlock({\n  brand,\n  tagline,\n  columns,\n  newsletter,\n  legal,\n  status,\n  wordmark = true,\n  className,\n}: {\n  brand: string;\n  tagline?: string;\n  columns: readonly BlockFooterColumn[];\n  /** An email sign-up. `onSubmit` may return a promise; the field confirms when it settles. */\n  newsletter?: { label: string; note?: string; onSubmit?: (email: string) => void | Promise<void> };\n  /** e.g. \"© 2026 Halden Ltd · Privacy · Terms\". */\n  legal?: ReactNode;\n  /** A live system status line, e.g. { label: \"All systems normal\", href: \"https://status…\" }. */\n  status?: { label: string; href: string };\n  /** Set the brand as a full-width wordmark at the foot. */\n  wordmark?: boolean;\n  className?: string;\n}) {\n  const id = useId();\n  const [email, setEmail] = useState(\"\");\n  const [state, setState] = useState<\"idle\" | \"invalid\" | \"busy\" | \"done\">(\"idle\");\n\n  async function submit(event: React.FormEvent) {\n    event.preventDefault();\n    if (!isEmail(email)) {\n      setState(\"invalid\");\n      return;\n    }\n    setState(\"busy\");\n    await newsletter?.onSubmit?.(email.trim());\n    setState(\"done\");\n  }\n\n  return (\n    <BlockRoot as=\"footer\" tone=\"sunken\" className={className} innerClassName=\"!pb-0\">\n      <div data-slot=\"footer-block\" className=\"grid gap-[clamp(40px,6cqi,72px)]\">\n        <div className=\"grid gap-12 @[900px]:grid-cols-[minmax(0,1fr)_minmax(0,1.6fr)]\">\n          <div className=\"grid content-start gap-6\">\n            <p data-slot=\"footer-brand\">{brand}</p>\n            {tagline && <p className=\"max-w-[36ch] text-[15px] leading-6 text-[var(--k-muted)]\">{tagline}</p>}\n            {newsletter &&\n              (state === \"done\" ? (\n                <p role=\"status\" className=\"flex items-center gap-2 text-[15px]\">\n                  <Check aria-hidden=\"true\" className=\"size-4 text-[var(--k-hi)]\" />\n                  Check {email.trim()} to confirm.\n                </p>\n              ) : (\n                <form noValidate onSubmit={submit} className=\"grid max-w-[400px] gap-2\">\n                  <label htmlFor={`${id}-email`} className=\"text-sm font-medium\">{newsletter.label}</label>\n                  <div data-slot=\"footer-field\" data-invalid={state === \"invalid\" || undefined}>\n                    <input\n                      id={`${id}-email`}\n                      type=\"email\"\n                      autoComplete=\"email\"\n                      placeholder=\"you@company.com\"\n                      value={email}\n                      aria-invalid={state === \"invalid\" || undefined}\n                      aria-describedby={`${id}-note`}\n                      onChange={(event) => {\n                        setEmail(event.currentTarget.value);\n                        if (state === \"invalid\") setState(\"idle\");\n                      }}\n                    />\n                    <button type=\"submit\" disabled={state === \"busy\"} aria-label={state === \"busy\" ? \"Subscribing\" : \"Subscribe\"}>\n                      <ArrowRight aria-hidden=\"true\" className=\"size-4\" />\n                    </button>\n                  </div>\n                  <p id={`${id}-note`} role={state === \"invalid\" ? \"alert\" : undefined} className={cn(\"min-h-5 text-[13px]\", state === \"invalid\" ? \"text-[var(--k-danger)]\" : \"text-[var(--k-muted)]\")}>\n                    {state === \"invalid\" ? \"Enter an email address like name@company.com.\" : newsletter.note}\n                  </p>\n                </form>\n              ))}\n          </div>\n          <nav aria-label=\"Footer\" className=\"grid grid-cols-2 gap-x-6 gap-y-10 @[640px]:grid-cols-[repeat(var(--cols),minmax(0,1fr))]\" style={{ [\"--cols\" as string]: Math.min(columns.length, 4) }}>\n            {columns.map((column) => (\n              <div key={column.title} className=\"grid content-start gap-4\">\n                <h2 data-slot=\"footer-heading\">{column.title}</h2>\n                <ul className=\"m-0 grid list-none gap-2.5 p-0\">\n                  {column.links.map((link) => (\n                    <li key={link.label}><a href={link.href} data-slot=\"footer-block-link\">{link.label}</a></li>\n                  ))}\n                </ul>\n              </div>\n            ))}\n          </nav>\n        </div>\n        <div className=\"flex flex-wrap items-center justify-between gap-x-8 gap-y-3 border-t border-[var(--k-line-strong)] pt-6 text-[13px] text-[var(--k-muted)]\">\n          {legal && <div>{legal}</div>}\n          {status && (\n            <a href={status.href} className=\"inline-flex items-center gap-2 hover:text-[var(--k-ink)]\">\n              <i aria-hidden=\"true\" data-slot=\"footer-status-dot\" />\n              {status.label}\n            </a>\n          )}\n        </div>\n        {wordmark && (\n          <Wordmark>{brand}</Wordmark>\n        )}\n      </div>\n    </BlockRoot>\n  );\n}\n"},{"path":"ui/lib/cn.ts","type":"registry:ui","target":"components/ui/lib/cn.ts","content":"import { clsx, type ClassValue } from \"clsx\";\nimport { extendTailwindMerge } from \"tailwind-merge\";\n\nconst twMerge = extendTailwindMerge({\n  extend: { theme: { radius: [\"control\", \"surface\", \"overlay\"], shadow: [\"overlay\"] } },\n});\n\nexport function cn(...inputs: ClassValue[]) {\n  return twMerge(clsx(inputs));\n}\n"},{"path":"ui/stage-scope.tsx","type":"registry:ui","target":"components/ui/stage-scope.tsx","content":"\"use client\";\n\nimport { createContext, useContext, type ReactNode } from \"react\";\n\n/**\n * True inside a block stage: a frame shown there is a demonstration on a page\n * that already has its own main landmark, so it should not add a second one.\n */\nconst InStage = createContext(false);\n\nexport function StageScope({ children }: { children: ReactNode }) {\n  return <InStage.Provider value={true}>{children}</InStage.Provider>;\n}\n\nexport const useInStage = () => useContext(InStage);\n"},{"path":"ui/avatar.css","type":"registry:file","target":"components/ui/avatar.css","content":"/* avatar.tsx's styles; it imports this file. Edit freely. */\n@layer theme, base, components, utilities;\n\n@layer components {\n  /* Avatars: a light glass orb, two soft hues with a specular highlight and a deeper lower edge. Six tones, assigned per\n     person, so a row of people reads as a calm spectrum; dark initials read on every tone at 9:1 or better. */\n  [data-slot=\"avatar\"] {\n    --av-a: #9ec5ff;\n    --av-b: #c4b2ff;\n    color: #161616;\n    background:\n      radial-gradient(circle at 30% 24%, rgb(255 255 255 / 80%), rgb(255 255 255 / 0%) 36%),\n      radial-gradient(circle at 76% 84%, color-mix(in oklab, var(--av-b) 78%, #3b2a6b), transparent 58%),\n      linear-gradient(140deg, var(--av-a) 12%, var(--av-b) 88%);\n    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 34%), inset 0 -4px 8px rgb(0 0 0 / 8%);\n  }\n  [data-slot=\"avatar\"] > span:first-child {\n    position: relative;\n    text-shadow: 0 1px 0 rgb(255 255 255 / 35%);\n  }\n  [data-slot=\"avatar\"] img {\n    border-radius: inherit;\n  }\n  [data-slot=\"avatar\"][data-tone=\"1\"] { --av-a: #a3f0c8; --av-b: #7fd3e6; }\n  [data-slot=\"avatar\"][data-tone=\"2\"] { --av-a: #c9adff; --av-b: #ffb2d8; }\n  [data-slot=\"avatar\"][data-tone=\"3\"] { --av-a: #ffd6a0; --av-b: #ffab86; }\n  [data-slot=\"avatar\"][data-tone=\"4\"] { --av-a: #ffb4a6; --av-b: #ff9ec6; }\n  [data-slot=\"avatar\"][data-tone=\"5\"] { --av-a: #b8c6ff; --av-b: #9fe1f0; }\n  /* Company marks (shape=\"square\"): a solid hue from the name with white initials, 4.7:1 or better on every hue. */\n  [data-slot=\"avatar\"][data-shape=\"square\"] {\n    --mark-h: 255;\n    color: #ffffff;\n    background: oklch(0.52 0.15 var(--mark-h));\n    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 12%);\n  }\n  [data-slot=\"avatar\"][data-shape=\"square\"] > span:first-child { text-shadow: none; }\n  [data-slot=\"avatar\"][data-shape=\"square\"][data-tone=\"1\"] { --mark-h: 295; }\n  [data-slot=\"avatar\"][data-shape=\"square\"][data-tone=\"2\"] { --mark-h: 2; }\n  [data-slot=\"avatar\"][data-shape=\"square\"][data-tone=\"3\"] { --mark-h: 50; }\n  [data-slot=\"avatar\"][data-shape=\"square\"][data-tone=\"4\"] { --mark-h: 150; }\n  [data-slot=\"avatar\"][data-shape=\"square\"][data-tone=\"5\"] { --mark-h: 195; }\n  [data-slot=\"avatar-presence\"] {\n    position: absolute;\n    right: -3px;\n    bottom: -3px;\n    width: 10px;\n    height: 10px;\n    border-radius: 50%;\n    box-shadow: 0 0 0 2px var(--background);\n  }\n  [data-slot=\"avatar-presence\"][data-presence=\"online\"] { background: var(--success); }\n  [data-slot=\"avatar-presence\"][data-presence=\"away\"] { background: linear-gradient(90deg, var(--warning) 50%, var(--background) 50%); box-shadow: 0 0 0 2px var(--background), inset 0 0 0 1.5px var(--warning); }\n  [data-slot=\"avatar-presence\"][data-presence=\"busy\"] { background: radial-gradient(var(--background) 0 0) center / 5px 1.5px no-repeat, var(--danger); }\n  [data-slot=\"avatar-presence\"][data-presence=\"offline\"] { background: var(--background); box-shadow: 0 0 0 2px var(--background), inset 0 0 0 1.5px var(--muted-foreground); }\n}\n"},{"path":"ui/block-concept.css","type":"registry:file","target":"components/ui/block-concept.css","content":"/* block-concept.tsx's styles; it imports this file. Edit freely. */\n@layer theme, base, components, utilities;\n\n@layer components {\n  /* A site header used outside a block still needs the block tokens. */\n  [data-slot=\"block\"] {\n    --k-display-font: var(--font-display-block, var(--font-sans, system-ui, sans-serif));\n    --k-display-weight: 700;\n    --k-display-case: none;\n    --k-display-track: -0.03em;\n    --k-display-stretch: normal;\n    --k-display-lh: 1.04;\n    /* Monochrome, from the system tokens, so blocks follow the page theme. */\n    --k-bg: var(--background, #fff); --k-surface: var(--elevated, #fff); --k-sunken: var(--surface, #f7f7f8); --k-ink: var(--foreground, #18181b); --k-muted: var(--muted-foreground, #5d5d66); --k-line: var(--border, #e4e4e8);\n    --k-line-strong: color-mix(in oklab, var(--border-strong, #8a8a94) 55%, var(--k-line));\n    /* The grey second line of a two-tone title; 3:1 or better as large text in both themes. */\n    --k-faint: color-mix(in oklab, var(--k-muted) 70%, var(--k-bg));\n    --k-accent: var(--k-ink); --k-accent-ink: var(--k-bg); --k-hi: var(--accent-text, var(--k-ink)); --k-hi-soft: var(--accent-soft, var(--k-sunken));\n    --k-focus: var(--brand, #bb4400); --k-danger: var(--danger, #c2272d);\n    --k-stage: var(--surface, #f7f7f8); --k-stage-dot: color-mix(in oklab, var(--k-ink) 14%, var(--k-stage));\n    --k-shadow: none;\n    --k-radius: 12px; --k-radius-lg: 16px; --k-radius-xl: 20px; --k-btn-radius: 999px;\n    --k-tile-1: color-mix(in oklab, var(--k-ink) 5%, var(--k-bg)); --k-tile-2: color-mix(in oklab, var(--k-ink) 8%, var(--k-bg)); --k-tile-3: color-mix(in oklab, var(--k-ink) 11%, var(--k-bg)); --k-tile-4: color-mix(in oklab, var(--k-ink) 14%, var(--k-bg));\n    background: var(--k-bg);\n    color: var(--k-ink);\n    font-family: var(--font-sans, system-ui, sans-serif);\n  }\n  /* Band tones inside a concept: a sunken band, or an inverse ink band. */\n  [data-slot=\"block\"][data-tone=\"sunken\"] { background: var(--k-sunken); }\n\n  [data-slot=\"block-inner\"] {\n    position: relative;\n    z-index: 1;\n    margin-inline: auto;\n    max-inline-size: 1240px;\n    padding-inline: clamp(20px, 5cqi, 64px);\n    padding-block: clamp(64px, 10cqi, 128px);\n  }\n  [data-slot=\"block-inner\"][data-width=\"narrow\"] { max-inline-size: 960px; }\n  [data-slot=\"block-inner\"][data-width=\"wide\"] { max-inline-size: 1440px; }\n\n  /* ── Type ─────────────────────────────────────────── */\n  [data-slot=\"block-eyebrow\"] {\n    display: inline-flex;\n    align-items: center;\n    gap: 8px;\n    margin: 0;\n    font-size: 14px;\n    line-height: 20px;\n    font-weight: 500;\n    color: var(--k-muted);\n  }\n\n  [data-slot=\"block-title\"] {\n    margin: 0;\n    font-family: var(--k-display-font);\n    font-weight: var(--k-display-weight);\n    font-stretch: var(--k-display-stretch);\n    font-variation-settings: \"wdth\" var(--k-display-wdth, 100);\n    text-transform: var(--k-display-case);\n    letter-spacing: var(--k-display-track);\n    font-optical-sizing: auto;\n    text-wrap: balance;\n    color: var(--k-ink);\n  }\n  [data-slot=\"block-title\"][data-size=\"1\"] { font-size: clamp(40px, 5cqi, 64px); line-height: 1.04; font-weight: 700; letter-spacing: -0.048em; }\n  [data-slot=\"block-title\"][data-size=\"2\"] { font-size: clamp(30px, 3.4cqi, 40px); line-height: 1.1; letter-spacing: -0.04em; }\n  [data-slot=\"block-title\"][data-size=\"3\"] { font-size: clamp(19px, 1.7cqi, 22px); line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }\n  /* Two-tone titles: the emphasised words land in grey. */\n  [data-slot=\"block-em\"] { font-style: normal; color: var(--k-faint); }\n\n  [data-slot=\"block-lead\"] {\n    margin: 0;\n    max-width: 50ch;\n    font-size: clamp(16px, 1.3cqi, 18px);\n    line-height: 1.6;\n    color: var(--k-muted);\n    text-wrap: pretty;\n  }\n\n  /* The shared section opening. */\n  [data-slot=\"block-header\"] {\n    display: grid;\n    gap: 20px 48px;\n    margin-bottom: clamp(36px, 5cqi, 64px);\n  }\n  [data-slot=\"block-header-title\"] { display: grid; gap: 18px; justify-items: start; }\n  [data-slot=\"block-header-aside\"] { display: grid; gap: 16px; align-content: end; justify-items: start; }\n  [data-slot=\"block-header\"][data-align=\"center\"] { justify-items: center; text-align: center; }\n  [data-slot=\"block-header\"][data-align=\"center\"] :is([data-slot=\"block-header-title\"], [data-slot=\"block-header-aside\"]) { justify-items: center; }\n  [data-slot=\"block-header\"][data-align=\"center\"] [data-slot=\"block-title\"] { max-width: 18ch; }\n  @container (min-width: 900px) {\n    [data-slot=\"block-header\"][data-align=\"split\"] { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; }\n    [data-slot=\"block-header\"][data-align=\"split\"] [data-slot=\"block-header-aside\"] { justify-items: start; padding-bottom: 6px; }\n  }\n\n  /* ── Buttons ──────────────────────────────────────── */\n  [data-slot=\"block-button\"] {\n    display: inline-flex;\n    align-items: center;\n    justify-content: center;\n    gap: 8px;\n    min-height: 40px;\n    padding: 0 16px;\n    border: 0;\n    border-radius: var(--k-btn-radius);\n    font: 500 14px/1 var(--font-sans, system-ui, sans-serif);\n    letter-spacing: -0.005em;\n    text-decoration: none;\n    white-space: nowrap;\n    cursor: pointer;\n    transition: background-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), translate var(--duration-normal) var(--ease-settle);\n  }\n  [data-slot=\"block-button\"][data-kind=\"primary\"] {\n    background: var(--k-accent);\n    color: var(--k-accent-ink);\n    box-shadow: inset 0 1px 0 rgb(255 255 255 / 14%), 0 1px 2px rgb(0 0 0 / 20%);\n  }\n  [data-slot=\"block-button\"][data-kind=\"secondary\"] {\n    background: color-mix(in srgb, var(--k-surface) 60%, transparent);\n    color: var(--k-ink);\n    box-shadow: inset 0 0 0 1px var(--k-line-strong);\n  }\n  [data-slot=\"block-button-arrow\"] { transition: translate var(--duration-normal) var(--ease-settle); }\n  @media (hover: hover) {\n    [data-slot=\"block-button\"][data-kind=\"primary\"]:hover { background: color-mix(in srgb, var(--k-accent) 86%, var(--k-bg)); }\n    [data-slot=\"block-button\"][data-kind=\"secondary\"]:hover { background: var(--k-sunken); box-shadow: inset 0 0 0 1px var(--k-ink); }\n    [data-slot=\"block-button\"]:hover [data-slot=\"block-button-arrow\"] { translate: 3px 0; }\n  }\n  [data-slot=\"block-button\"]:active { translate: 0 var(--motion-press-travel); }\n  [data-slot=\"block-button\"]:focus-visible { outline: 2px solid var(--k-focus); outline-offset: 3px; }\n\n  [data-slot=\"block-card\"] {\n    border-radius: var(--k-radius-lg);\n    background: var(--k-surface);\n    box-shadow: 0 0 0 1px var(--k-line);\n  }\n  [data-slot=\"block-chip\"] {\n    display: inline-flex;\n    align-items: center;\n    gap: 6px;\n    min-height: 28px;\n    padding: 0 12px;\n    border-radius: 999px;\n    font-size: 13px;\n    font-weight: 500;\n    background: var(--k-hi-soft);\n    color: var(--k-ink);\n    box-shadow: inset 0 0 0 1px var(--k-line);\n    text-decoration: none;\n  }\n  /* People in blocks are the library's light glass orbs (as Avatar), one pastel tone per person. */\n  [data-slot=\"block-initials\"] {\n    --av-a: #9ec5ff;\n    --av-b: #c4b2ff;\n    display: inline-grid;\n    flex: none;\n    place-items: center;\n    border-radius: 999px;\n    font-weight: 600;\n    color: #161616;\n    background:\n      radial-gradient(circle at 30% 24%, rgb(255 255 255 / 80%), rgb(255 255 255 / 0%) 36%),\n      radial-gradient(circle at 76% 84%, color-mix(in oklab, var(--av-b) 78%, #3b2a6b), transparent 58%),\n      linear-gradient(140deg, var(--av-a) 12%, var(--av-b) 88%);\n    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 34%), inset 0 -4px 8px rgb(0 0 0 / 8%);\n  }\n  [data-slot=\"block-initials\"][data-tone=\"1\"] { --av-a: #a3f0c8; --av-b: #7fd3e6; }\n  [data-slot=\"block-initials\"][data-tone=\"2\"] { --av-a: #c9adff; --av-b: #ffb2d8; }\n  [data-slot=\"block-initials\"][data-tone=\"3\"] { --av-a: #ffd6a0; --av-b: #ffab86; }\n\n  /* ── Stage: a product artefact framed on a tonal panel ─ */\n  [data-slot=\"block-stage\"] {\n    position: relative;\n    padding: clamp(14px, 4.5cqi, 64px);\n    padding-bottom: 0;\n    border-radius: var(--k-radius-xl);\n    background-color: var(--k-stage);\n    background-image: radial-gradient(var(--k-stage-dot) 1px, transparent 1.2px);\n    background-size: 16px 16px;\n    box-shadow: inset 0 0 0 1px var(--k-line);\n    overflow: hidden;\n  }\n  [data-slot=\"block-window\"] {\n    position: relative;\n    overflow: hidden;\n    border-radius: var(--k-radius-lg) var(--k-radius-lg) 0 0;\n    background: var(--k-surface);\n    box-shadow: 0 0 0 1px var(--k-line), var(--k-shadow);\n  }\n  [data-slot=\"block-window-bar\"] {\n    display: flex; align-items: center; gap: 12px;\n    height: 40px; padding: 0 16px;\n    border-bottom: 1px solid var(--k-line);\n    background: color-mix(in srgb, var(--k-sunken) 55%, var(--k-surface));\n  }\n  [data-slot=\"block-window-dots\"] { display: none; }\n  [data-slot=\"block-window-dots\"] i { width: 10px; height: 10px; border-radius: 999px; background: var(--k-line-strong); }\n  [data-slot=\"block-window-title\"] {\n    flex: 1 1 0; min-width: 0; width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;\n    text-align: left;\n    font-family: var(--font-mono, monospace); font-size: 12px; color: var(--k-muted);\n  }\n  [data-slot=\"block-window-body\"] { padding: clamp(14px, 2.6cqi, 28px); }\n  [data-slot=\"block-float\"] {\n    position: relative;\n    z-index: 2;\n    margin: 12px 0 14px;\n  }\n  @container (min-width: 760px) {\n    /* Over the window bar's empty right end, so it never hides a row. */\n    [data-slot=\"block-float\"] {\n      position: absolute;\n      top: clamp(12px, 2.4cqi, 36px);\n      right: clamp(12px, 2.4cqi, 36px);\n      margin: 0;\n      max-width: 320px;\n    }\n  }\n  [data-slot=\"block-float\"] > * {\n    border-radius: var(--k-radius);\n    background: var(--k-surface);\n    box-shadow: 0 0 0 1px var(--k-line), var(--k-shadow);\n  }\n\n  /* ── Logos ────────────────────────────────────────── */\n  [data-slot=\"block-logos\"] { display: grid; gap: 18px; }\n  [data-slot=\"block-logos-label\"] { margin: 0; font-size: 13px; color: var(--k-muted); }\n  [data-slot=\"block-logos\"] ul { display: flex; flex-wrap: wrap; align-items: center; gap: 14px clamp(24px, 4.5cqi, 56px); margin: 0; padding: 0; list-style: none; }\n  [data-slot=\"block-logos\"] li {\n    font-family: var(--k-display-font);\n    font-weight: var(--k-display-weight);\n    font-stretch: var(--k-display-stretch);\n    text-transform: var(--k-display-case);\n    font-size: clamp(18px, 2cqi, 24px);\n    letter-spacing: calc(var(--k-display-track) / 2);\n    color: var(--k-muted);\n    white-space: nowrap;\n  }\n\n  @media (prefers-reduced-motion: reduce) {\n    [data-slot=\"block-button\"], [data-slot=\"block-button-arrow\"] { transition: none; }\n    [data-slot=\"block-button\"]:active { translate: none; }\n    [data-slot=\"block-button\"]:hover [data-slot=\"block-button-arrow\"] { translate: none; }\n  }\n  @media print {\n    footer[data-slot=\"block\"] { display: none !important; }\n    [data-slot=\"block\"] { background: #fff; }\n  }\n}\n"},{"path":"ui/shared/site-header.css","type":"registry:file","target":"components/ui/shared/site-header.css","content":"/* Shared by block-nav.tsx, site-header.tsx; each imports it. Edit freely. */\n@layer theme, base, components, utilities;\n\n@layer components {\n  [data-slot=\"site-header\"] {\n    background: color-mix(in srgb, var(--background) 92%, transparent);\n    border-bottom: 1px solid transparent;\n    transition: border-color var(--duration-normal) var(--ease-out);\n  }\n  [data-slot=\"site-header\"][data-sticky=\"true\"] {\n    position: sticky;\n    top: 0;\n    -webkit-backdrop-filter: blur(10px);\n    backdrop-filter: blur(10px);\n  }\n  [data-slot=\"site-header\"][data-scrolled=\"true\"] {\n    border-bottom-color: var(--border);\n  }\n  [data-slot=\"site-menu\"] {\n    margin: 0;\n    padding: 0;\n    list-style: none;\n  }\n  [data-slot=\"site-menu\"] a {\n    display: grid;\n    gap: 0.125rem;\n    padding: 0.5rem 0.75rem;\n    border-radius: var(--radius-control);\n    text-decoration: none;\n    color: inherit;\n    outline: none;\n    transition: background-color var(--duration-fast) var(--ease-out);\n  }\n  [data-slot=\"site-menu\"] a:hover,\n  [data-slot=\"site-menu\"] a:focus-visible {\n    background: var(--muted);\n  }\n  [data-slot=\"site-menu\"] a:focus-visible {\n    outline: 2px solid var(--ring);\n    outline-offset: -2px;\n  }\n  @media (prefers-reduced-motion: reduce) {\n    [data-slot=\"site-header\"] {\n      transition: none;\n    }\n  }\n  /* A site header used outside a block still needs the block tokens. */\n  [data-slot=\"site-header\"] {\n    --k-display-font: var(--font-display-block, var(--font-sans, system-ui, sans-serif));\n    --k-display-weight: 700;\n    --k-display-case: none;\n    --k-display-track: -0.03em;\n    --k-display-stretch: normal;\n    --k-display-lh: 1.04;\n    /* Monochrome, from the system tokens, so blocks follow the page theme. */\n    --k-bg: var(--background, #fff); --k-surface: var(--elevated, #fff); --k-sunken: var(--surface, #f7f7f8); --k-ink: var(--foreground, #18181b); --k-muted: var(--muted-foreground, #5d5d66); --k-line: var(--border, #e4e4e8);\n    --k-line-strong: color-mix(in oklab, var(--border-strong, #8a8a94) 55%, var(--k-line));\n    /* The grey second line of a two-tone title; 3:1 or better as large text in both themes. */\n    --k-faint: color-mix(in oklab, var(--k-muted) 70%, var(--k-bg));\n    --k-accent: var(--k-ink); --k-accent-ink: var(--k-bg); --k-hi: var(--accent-text, var(--k-ink)); --k-hi-soft: var(--accent-soft, var(--k-sunken));\n    --k-focus: var(--brand, #bb4400); --k-danger: var(--danger, #c2272d);\n    --k-stage: var(--surface, #f7f7f8); --k-stage-dot: color-mix(in oklab, var(--k-ink) 14%, var(--k-stage));\n    --k-shadow: none;\n    --k-radius: 12px; --k-radius-lg: 16px; --k-radius-xl: 20px; --k-btn-radius: 999px;\n    --k-tile-1: color-mix(in oklab, var(--k-ink) 5%, var(--k-bg)); --k-tile-2: color-mix(in oklab, var(--k-ink) 8%, var(--k-bg)); --k-tile-3: color-mix(in oklab, var(--k-ink) 11%, var(--k-bg)); --k-tile-4: color-mix(in oklab, var(--k-ink) 14%, var(--k-bg));\n    background: var(--k-bg);\n    color: var(--k-ink);\n    font-family: var(--font-sans, system-ui, sans-serif);\n  }\n\n  /* Landing: header gains a hairline once scrolled; phone action bar. */\n  [data-slot=\"site-header\"] { background: var(--k-bg); transition: box-shadow var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out); }\n  [data-slot=\"site-header\"][data-scrolled] {\n    background: color-mix(in srgb, var(--k-bg) 84%, transparent);\n    -webkit-backdrop-filter: blur(var(--blur-overlay, 20px)) saturate(1.2); backdrop-filter: blur(var(--blur-overlay, 20px)) saturate(1.2);\n    box-shadow: 0 1px 0 var(--k-line);\n  }\n  [data-slot=\"site-menu\"][hidden] { display: none; }\n\n  @media (prefers-reduced-motion: reduce) {\n    [data-slot=\"site-header\"] { transition: none; }\n  }\n  @media print {\n    [data-slot=\"site-header\"] { display: none !important; }\n  }\n}\n"},{"path":"ui/block-nav.css","type":"registry:file","target":"components/ui/block-nav.css","content":"/* block-nav.tsx's styles; it imports this file. Edit freely. */\n@layer theme, base, components, utilities;\n\n@layer components {\n  /* ── Site nav (shared by page templates) ─────────── */\n  [data-slot=\"block-nav-row\"] {\n    display: flex; align-items: center; gap: 28px;\n    max-inline-size: 1240px; height: 68px; margin-inline: auto;\n    padding-inline: clamp(20px, 5cqi, 64px);\n  }\n  [data-slot=\"block-nav-brand\"] {\n    font-family: var(--k-display-font); font-weight: var(--k-display-weight); font-stretch: var(--k-display-stretch);\n    font-variation-settings: \"wdth\" var(--k-display-wdth, 100);\n    text-transform: var(--k-display-case); letter-spacing: calc(var(--k-display-track) / 2);\n    font-size: 22px; line-height: 1; color: var(--k-ink); text-decoration: none; white-space: nowrap;\n  }\n  [data-slot=\"block-nav-brand\"]:focus-visible, [data-slot=\"block-nav-link\"]:focus-visible { outline: 2px solid var(--k-focus); outline-offset: 4px; border-radius: 4px; }\n  [data-slot=\"block-nav-list\"] { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }\n  [data-slot=\"block-nav-link\"] {\n    display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: var(--k-btn-radius);\n    font-size: 14px; color: var(--k-muted); text-decoration: none;\n    transition: color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);\n  }\n  [data-slot=\"block-nav-link\"]:hover, [data-slot=\"block-nav-link\"][aria-current=\"page\"] { color: var(--k-ink); background: color-mix(in srgb, var(--k-ink) 6%, transparent); }\n  [data-slot=\"site-header\"] [data-slot=\"block-button\"] { min-height: 40px; padding-inline: 16px; font-size: 14px; }\n\n  @media (prefers-reduced-motion: reduce) {\n    [data-slot=\"block-nav-link\"] { transition: none; }\n  }\n  [data-slot=\"site-menu\"] [data-slot=\"block-button\"] { justify-content: center; }\n}\n"},{"path":"ui/shared/skip-link.css","type":"registry:file","target":"components/ui/shared/skip-link.css","content":"/* Shared by changelog-template.tsx, docs-template.tsx, landing-template.tsx, pricing-template.tsx, site-header.tsx, template-page.tsx; each imports it. Edit freely. */\n@layer theme, base, components, utilities;\n\n@layer components {\n  [data-slot=\"skip-link\"] {\n    position: absolute;\n    top: 0.5rem;\n    left: 0.5rem;\n    z-index: 50;\n    padding: 0.5rem 0.75rem;\n    border-radius: var(--radius-control);\n    background: var(--foreground);\n    color: var(--background);\n    font-size: 0.875rem;\n    transform: translateY(-200%);\n  }\n  [data-slot=\"skip-link\"]:focus {\n    transform: none;\n    outline: 2px solid var(--ring);\n    outline-offset: 2px;\n  }\n  [data-slot=\"skip-link\"] {\n    position: absolute; left: 12px; top: -48px; z-index: 50; padding: 8px 12px; border-radius: 12px;\n    background: var(--foreground); color: var(--background); font-size: 13px; text-decoration: none;\n  }\n  [data-slot=\"skip-link\"]:focus-visible { top: 12px; outline: 2px solid var(--ring); outline-offset: 2px; }\n  @media print {\n    [data-slot=\"skip-link\"] { display: none !important; }\n  }\n}\n"},{"path":"ui/changelog-template.css","type":"registry:file","target":"components/ui/changelog-template.css","content":"/* changelog-template.tsx's styles; it imports this file. Edit freely. */\n@layer theme, base, components, utilities;\n\n@layer components {\n  /* ── Changelog ────────────────────────────────────── */\n  [data-slot=\"changelog-filter\"] {\n    height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; cursor: pointer;\n    color: var(--k-muted); box-shadow: inset 0 0 0 1px var(--k-line-strong);\n    transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);\n  }\n  [data-slot=\"changelog-filter\"]:hover { color: var(--k-ink); }\n  [data-slot=\"changelog-filter\"][aria-pressed=\"true\"] { background: var(--k-ink); color: var(--k-bg); box-shadow: none; }\n  [data-slot=\"changelog-filter\"]:focus-visible { outline: 2px solid var(--k-focus); outline-offset: 2px; }\n  [data-slot=\"changelog-entry\"] { display: grid; gap: 16px; padding-block: clamp(36px, 5cqi, 56px); border-bottom: 1px solid var(--k-line); scroll-margin-top: 80px; }\n  [data-slot=\"changelog-meta\"] { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }\n  [data-slot=\"changelog-author\"] { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; line-height: 18px; color: var(--k-muted); }\n  @container (min-width: 760px) {\n    [data-slot=\"changelog-entry\"] { grid-template-columns: 160px minmax(0, 1fr); gap: 40px; }\n    [data-slot=\"changelog-meta\"] { position: sticky; top: 88px; align-self: start; display: grid; gap: 6px; }\n  }\n  [data-slot=\"changelog-version\"] {\n    display: inline-flex; align-items: center; gap: 6px; justify-self: start;\n    font-family: var(--font-mono, monospace); font-size: 13px; color: var(--k-hi); text-decoration: none;\n  }\n  [data-slot=\"changelog-version\"] svg { opacity: 0; transition: opacity var(--duration-fast) var(--ease-out); }\n  [data-slot=\"changelog-version\"]:hover svg, [data-slot=\"changelog-version\"]:focus-visible svg { opacity: 1; }\n  [data-slot=\"changelog-version\"]:focus-visible { outline: 2px solid var(--k-focus); outline-offset: 3px; border-radius: 3px; }\n  [data-slot=\"changelog-body\"] { display: grid; gap: 12px; max-width: 64ch; font-size: 16px; line-height: 27px; color: var(--k-muted); }\n  [data-slot=\"changelog-body\"] p { margin: 0; }\n  [data-slot=\"changelog-body\"] ul { display: grid; gap: 6px; margin: 0; padding-left: 20px; list-style: disc; }\n  [data-slot=\"changelog-body\"] strong { color: var(--k-ink); font-weight: 600; }\n  [data-slot=\"changelog-body\"] code { font-family: var(--font-mono, monospace); font-size: 0.88em; padding: 1px 6px; border-radius: 4px; background: var(--k-sunken); color: var(--k-ink); }\n}\n"},{"path":"ui/footer-block.css","type":"registry:file","target":"components/ui/footer-block.css","content":"/* footer-block.tsx's styles; it imports this file. Edit freely. */\n@layer theme, base, components, utilities;\n\n@layer components {\n  /* ── Footer ───────────────────────────────────────── */\n  [data-slot=\"footer-brand\"] {\n    margin: 0; font-family: var(--k-display-font); font-weight: var(--k-display-weight); font-stretch: var(--k-display-stretch);\n    font-variation-settings: \"wdth\" var(--k-display-wdth, 100); text-transform: var(--k-display-case);\n    letter-spacing: calc(var(--k-display-track) / 2); font-size: 28px; line-height: 1;\n  }\n  /* A label, not code: Geist at the label step (DESIGN-SYSTEM.md keeps mono for code, commands and keycaps). */\n  [data-slot=\"footer-heading\"] { margin: 0; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--k-muted); }\n  [data-slot=\"footer-block-link\"] { font-size: 15px; color: var(--k-ink); text-decoration: none; text-underline-offset: 4px; }\n  [data-slot=\"footer-block-link\"]:hover { text-decoration: underline; text-decoration-color: var(--k-hi); }\n  [data-slot=\"footer-block-link\"]:focus-visible { outline: 2px solid var(--k-focus); outline-offset: 3px; border-radius: 3px; }\n  [data-slot=\"footer-field\"] {\n    display: flex; align-items: center; gap: 6px; height: 50px; padding: 5px 5px 5px 16px;\n    border-radius: var(--k-btn-radius); background: var(--k-surface); box-shadow: inset 0 0 0 1px var(--k-line-strong);\n    transition: box-shadow var(--duration-fast) var(--ease-out);\n  }\n  [data-slot=\"footer-field\"]:focus-within { box-shadow: inset 0 0 0 2px var(--k-focus); }\n  [data-slot=\"footer-field\"][data-invalid] { box-shadow: inset 0 0 0 2px var(--k-danger); }\n  [data-slot=\"footer-field\"] input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--k-ink); font-size: 15px; outline: none; }\n  [data-slot=\"footer-field\"] input::placeholder { color: var(--k-muted); }\n  [data-slot=\"footer-field\"] button {\n    display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: calc(var(--k-btn-radius) - 4px);\n    background: var(--k-accent); color: var(--k-accent-ink); cursor: pointer;\n  }\n  [data-slot=\"footer-field\"] button:focus-visible { outline: 2px solid var(--k-focus); outline-offset: 2px; }\n  [data-slot=\"footer-field\"] button:disabled { opacity: 0.6; cursor: progress; }\n  [data-slot=\"footer-status-dot\"] { width: 8px; height: 8px; border-radius: 999px; background: var(--success, #0b7643); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success, #0b7643) 22%, transparent); }\n  [data-slot=\"footer-wordmark\"] {\n    margin: 0 0 -0.16em; overflow: hidden;\n    font-family: var(--k-display-font); font-weight: var(--k-display-weight); font-stretch: var(--k-display-stretch);\n    font-variation-settings: \"wdth\" var(--k-display-wdth, 100); text-transform: var(--k-display-case);\n    font-size: var(--wordmark-size, clamp(72px, 21cqi, 300px)); line-height: 0.82; letter-spacing: -0.06em; white-space: nowrap;\n    color: var(--k-ink); user-select: none;\n  }\n  [data-slot=\"footer-wordmark\"] > span { display: inline-block; padding-right: 0.04em; }\n  [data-slot=\"footer-wordmark\"] { font-weight: 700; }\n\n  @media (prefers-reduced-motion: reduce) {\n    [data-slot=\"footer-field\"] { transition: none; }\n  }\n}\n"}],"categories":["free-pages"],"meta":{"tier":"free","license":"MIT","family":"pages-set","docs":"/docs/components/changelog-template"}}