{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"machined-footer","type":"registry:block","title":"Machined Footer","description":"Block. A footer made as the bottom panel of a device. Printed columns of links, a status window with a real lamp, a changelog key, an Aluminium / Graphite switch for the whole page, the build number stamped in.","registryDependencies":[],"files":[{"path":"tactile/machined-footer/machined-footer.mjs","type":"registry:file","target":"tactile/machined-footer/machined-footer.mjs","content":"/**\n * Machined Footer — TACTILE UI block, cut 3 (00.3).\n *\n * A site footer made as the bottom panel of a device: a screwed face plate\n * with a row of machined vents, the brand and a changelog field with its one\n * contrast key, four columns of links printed on the plate, a recessed status\n * window with a real lamp (green, amber or red), a two-position finish\n * selector that switches the whole page between aluminium and graphite, and\n * along the base the legal line and a stamped build number.\n *\n * Mechanism: CSS and a little DOM. The finish selector is a native radio\n * group dressed as a slide switch; it writes `data-finish` on <html> and\n * remembers it in localStorage['tui-finish'] exactly as the kit's own key does,\n * and follows a finish changed elsewhere. The changelog form validates with\n * the platform (type=email, required), says how to fix a mistake, and either\n * posts to `action` or fires `mf-subscribe` with the address.\n *\n * Cost at rest: nothing runs. The thumb slides 180ms; reduced motion snaps.\n *\n * Accessibility: a <footer> (contentinfo when it is the page's), a nav named\n * \"Footer\" with an h2 per column, a status line whose words say what the lamp\n * means, a fieldset with a legend for the selector, a labelled field whose\n * hint is live and tied to it.\n */\n\nexport const COLUMNS = Object.freeze([\n  Object.freeze({ id: 'product', title: 'Product', links: Object.freeze(['Runtime', 'Deploys', 'Traces', 'Pricing', 'Changelog']) }),\n  Object.freeze({ id: 'docs', title: 'Docs', links: Object.freeze(['Quickstart', 'API reference', 'CLI', 'SDKs', 'Self-hosting']) }),\n  Object.freeze({ id: 'company', title: 'Company', links: Object.freeze(['About', 'Customers', 'Careers', 'Security', 'Contact']) }),\n  Object.freeze({ id: 'legal', title: 'Legal', links: Object.freeze(['Terms', 'Privacy', 'DPA', 'Sub-processors', 'Cookies']) }),\n]);\n\n/** What the lamp in the status window says, in words beside it. */\nexport const STATUSES = Object.freeze({\n  normal: Object.freeze({ lamp: 'green', words: 'All systems normal', detail: '99.99% uptime over 90 days' }),\n  degraded: Object.freeze({ lamp: 'amber', words: 'Degraded: slower cold starts in eu-west', detail: 'Investigating since 14:02 UTC' }),\n  outage: Object.freeze({ lamp: 'red', words: 'Partial outage: run scheduling', detail: 'Next update in 15 minutes' }),\n});\n\nexport const FINISHES = Object.freeze(['auto', 'aluminium', 'graphite']);\nexport const STORAGE_KEY = 'tui-finish';\n\nexport const DEFAULTS = Object.freeze({\n  brand: 'Lode',\n  tagline: 'The runtime for agents that touch production.',\n  status: 'normal',\n  newsletter: true,\n  action: '',\n  finishSwitch: true,\n  rev: '2026.09',\n  build: '4f2a91c',\n  legal: '© 2026 Lode Systems Ltd. Registered in England and Wales.',\n  finish: 'auto',\n});\n\n/** A kebab slug for a link's href: \"API reference\" → \"api-reference\". */\nexport const slug = (s) => String(s).toLowerCase().normalize('NFKD').replace(/[^\\p{L}\\p{N}]+/gu, '-').replace(/^-+|-+$/g, '');\n\n/** The stamp on the base, as a fitter would read it. */\nexport const stamp = (rev, build) => `Rev. ${rev} · Build ${build}`;\n\n/** Only a plausible address passes; the platform's own check runs in the browser. */\nexport const looksLikeEmail = (s) => /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(String(s).trim());\n\n/** What the hint under the field says for an address. */\nexport function hintFor(value) {\n  const v = String(value).trim();\n  if (!v) return { error: true, text: 'Add your email address, e.g. you@company.example.' };\n  if (!v.includes('@')) return { error: true, text: 'Add the @ and the part after it, e.g. you@company.example.' };\n  if (!looksLikeEmail(v)) return { error: true, text: 'Add the part after the @, e.g. you@company.example.' };\n  return { error: false, text: `Added. The next changelog reaches ${v} on Thursday.` };\n}\n\nexport function normalise(opts = {}, prev = DEFAULTS) {\n  const o = { ...prev, ...opts };\n  for (const k of ['brand', 'tagline', 'action', 'rev', 'build', 'legal']) o[k] = String(o[k] ?? '');\n  if (!STATUSES[o.status]) o.status = DEFAULTS.status;\n  o.newsletter = o.newsletter !== false && o.newsletter !== 'false';\n  o.finishSwitch = o.finishSwitch !== false && o.finishSwitch !== 'false';\n  if (!FINISHES.includes(o.finish)) o.finish = 'auto';\n  // A form may post only to http(s) or a relative path: never javascript: or data:.\n  if (o.action && !/^(https?:\\/\\/|\\/|\\.\\/|\\.\\.\\/)/i.test(o.action.trim())) o.action = '';\n  return o;\n}\n\nexport function resolveFinish(own, around, prefersDark, tone) {\n  if (own === 'aluminium' || own === 'graphite') return own;\n  if (around === 'aluminium' || around === 'graphite') return around;\n  // Any other finish around it (another family's: porcelain, black) by its tone.\n  if (tone === 'light' || tone === 'dark') return tone === 'dark' ? 'graphite' : 'aluminium';\n  return prefersDark ? 'graphite' : 'aluminium';\n}\n\nconst esc = (s) => String(s).replace(/[&<>\"']/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '\"': '&quot;', \"'\": '&#39;' })[c]);\n\nlet seq = 0;\n\n/**\n * @param {HTMLElement} host\n * @param {object} opts see DEFAULTS\n * @returns {{ root: HTMLElement, update(opts: object): void, destroy(): void, setStatus(s: string): void }}\n */\nexport function mount(host, opts = {}) {\n  let o = normalise(opts);\n  const uid = `mf${(seq += 1)}`;\n  const root = document.createElement('footer');\n  root.className = 'mf';\n  root.dataset.block = 'machined-footer';\n  host.append(root);\n  const page = document.documentElement;\n  const dark = typeof matchMedia === 'function' ? matchMedia('(prefers-color-scheme: dark)') : null;\n\n  const render = () => {\n    const st = STATUSES[o.status];\n    const cols = COLUMNS.map((c) => `<div class=\"mf-col\">\n        <h2 class=\"mf-h\" id=\"${uid}-${c.id}\">${c.title}</h2>\n        <ul role=\"list\" aria-labelledby=\"${uid}-${c.id}\">${c.links.map((l) => `<li><a href=\"#${slug(l)}\">${esc(l)}</a></li>`).join('')}</ul>\n      </div>`).join('');\n    root.dataset.status = o.status;\n    root.innerHTML = `<div class=\"mf-wrap\">\n  <div class=\"mf-panel\">\n    <span class=\"mf-screw mf-screw--tl\" aria-hidden=\"true\"></span><span class=\"mf-screw mf-screw--tr\" aria-hidden=\"true\"></span>\n    <span class=\"mf-screw mf-screw--bl\" aria-hidden=\"true\"></span><span class=\"mf-screw mf-screw--br\" aria-hidden=\"true\"></span>\n    <div class=\"mf-top\">\n      <div class=\"mf-brandcol\">\n        <a class=\"mf-brand\" href=\"#top\"><span class=\"mf-lamp\" data-lamp=\"green\" data-on aria-hidden=\"true\"></span><span data-f=\"brand\"></span></a>\n        <p class=\"mf-tag\" data-f=\"tagline\"></p>\n        ${o.newsletter ? `<form class=\"mf-form\" novalidate${o.action ? ` action=\"${esc(o.action)}\" method=\"post\"` : ''}>\n          <label class=\"mf-label\" for=\"${uid}-email\">Changelog, every other Thursday</label>\n          <div class=\"mf-combo\">\n            <input class=\"mf-input\" id=\"${uid}-email\" name=\"email\" type=\"email\" required autocomplete=\"email\" placeholder=\"you@company.example\" aria-describedby=\"${uid}-hint\">\n            <button class=\"mf-key\" type=\"submit\">Subscribe</button>\n          </div>\n          <p class=\"mf-hint\" id=\"${uid}-hint\" aria-live=\"polite\">One email, no tracking pixels. Leave any time.</p>\n        </form>` : ''}\n      </div>\n      <nav class=\"mf-nav\" aria-label=\"Footer\">${cols}</nav>\n      <div class=\"mf-vents\" aria-hidden=\"true\"></div>\n    </div>\n    <div class=\"mf-strip\">\n      <p class=\"mf-status\" role=\"status\"><span class=\"mf-lamp\" data-lamp=\"${st.lamp}\" data-on aria-hidden=\"true\"></span><span class=\"mf-status-words\" data-f=\"words\">${esc(st.words)}</span><span class=\"mf-status-detail\" data-f=\"detail\">${esc(st.detail)}</span><a class=\"mf-status-link\" href=\"#status\">Status page<span aria-hidden=\"true\"> →</span></a></p>\n      ${o.finishSwitch ? `<fieldset class=\"mf-finish\">\n        <legend class=\"mf-label\">Finish</legend>\n        <div class=\"mf-slide\">\n          <label class=\"mf-pos\"><input type=\"radio\" name=\"${uid}-finish\" value=\"aluminium\"><span>Aluminium</span></label>\n          <span class=\"mf-track\" aria-hidden=\"true\"><span class=\"mf-thumb\"></span></span>\n          <label class=\"mf-pos\"><input type=\"radio\" name=\"${uid}-finish\" value=\"graphite\"><span>Graphite</span></label>\n        </div>\n      </fieldset>` : ''}\n    </div>\n    <div class=\"mf-base\">\n      <p class=\"mf-legal\" data-f=\"legal\"></p>\n      <p class=\"mf-stamp\" data-f=\"stamp\"></p>\n    </div>\n  </div>\n</div>`;\n    const $ = (f) => root.querySelector(`[data-f=\"${f}\"]`);\n    $('brand').textContent = o.brand;\n    $('tagline').textContent = o.tagline;\n    $('legal').textContent = o.legal;\n    $('stamp').textContent = stamp(o.rev, o.build);\n    syncSwitch();\n  };\n\n  // ---------------------------------------------------------------- the finish: its own, and the page's selector\n  const pageFinish = () => {\n    const f = page.dataset.finish;\n    const t = page.dataset.tone;\n    return f === 'aluminium' || f === 'graphite' ? f : ((t === 'light' || t === 'dark' ? t === 'dark' : dark?.matches) ? 'graphite' : 'aluminium');\n  };\n  const applyFinish = () => {\n    const f = resolveFinish(o.finish, host.closest('[data-finish]')?.dataset.finish, dark?.matches, host.closest('[data-tone=\"light\"], [data-tone=\"dark\"]')?.dataset.tone);\n    if (root.dataset.finish !== f) root.dataset.finish = f;\n  };\n  function syncSwitch() {\n    const f = pageFinish();\n    for (const r of root.querySelectorAll('.mf-finish input')) r.checked = r.value === f;\n  }\n  const onFinishObs = () => { applyFinish(); syncSwitch(); };\n  const finishObs = new MutationObserver(onFinishObs);\n  finishObs.observe(page, { attributes: true, attributeFilter: ['data-finish'], subtree: true });\n  dark?.addEventListener('change', onFinishObs);\n\n  const onChange = (e) => {\n    const r = e.target;\n    if (!r.matches?.('.mf-finish input') || !r.checked) return;\n    page.dataset.finish = r.value;\n    try { localStorage.setItem(STORAGE_KEY, r.value); } catch { /* the choice lasts the page */ }\n  };\n\n  // ---------------------------------------------------------------- the changelog field\n  const onSubmit = (e) => {\n    const form = e.target.closest('.mf-form');\n    if (!form) return;\n    const input = form.querySelector('input');\n    const hint = form.querySelector('.mf-hint');\n    const h = hintFor(input.value);\n    const bad = h.error || !input.checkValidity();\n    form.toggleAttribute('data-error', bad);\n    input.setAttribute('aria-invalid', String(bad));\n    if (bad) {\n      e.preventDefault();\n      hint.textContent = h.error ? h.text : hintFor('x@').text;\n      input.focus();\n      return;\n    }\n    root.dispatchEvent(new CustomEvent('mf-subscribe', { bubbles: true, detail: { email: input.value.trim() } }));\n    if (o.action) return; // the platform posts it\n    e.preventDefault();\n    hint.textContent = h.text;\n    form.setAttribute('data-done', '');\n    input.value = '';\n  };\n  const onInput = (e) => {\n    const form = e.target.closest?.('.mf-form');\n    if (!form || !form.hasAttribute('data-error')) return;\n    if (!hintFor(e.target.value).error) {\n      form.removeAttribute('data-error');\n      e.target.setAttribute('aria-invalid', 'false');\n    }\n  };\n  root.addEventListener('change', onChange);\n  root.addEventListener('submit', onSubmit);\n  root.addEventListener('input', onInput);\n\n  render();\n  applyFinish();\n\n  return {\n    root,\n    /** Set the lamp and its words from outside: 'normal' | 'degraded' | 'outage'. */\n    setStatus(s) {\n      o = normalise({ status: s }, o);\n      const st = STATUSES[o.status];\n      root.dataset.status = o.status;\n      root.querySelector('.mf-status .mf-lamp').dataset.lamp = st.lamp;\n      root.querySelector('[data-f=\"words\"]').textContent = st.words;\n      root.querySelector('[data-f=\"detail\"]').textContent = st.detail;\n    },\n    update(next = {}) {\n      o = normalise(next, o);\n      render();\n      applyFinish();\n    },\n    destroy() {\n      root.removeEventListener('change', onChange);\n      root.removeEventListener('submit', onSubmit);\n      root.removeEventListener('input', onInput);\n      finishObs.disconnect();\n      dark?.removeEventListener('change', onFinishObs);\n      root.remove();\n    },\n  };\n}\n\nexport default { mount };\n"},{"path":"tactile/machined-footer/machined-footer.css","type":"registry:file","target":"tactile/machined-footer/machined-footer.css","content":"/* Machined Footer — TACTILE UI block, cut 3 (00.3). Everything under .mf.\n   Face: Instrument Sans (SIL OFL 1.1), shipped beside this file with its\n   licence. The tokens are the Tactile UI Kit's own names and values, defined\n   here so the block needs nothing else; machined-footer.mjs writes the\n   resolved finish on the root. */\n\n@font-face { font-family: 'MF Instrument Sans'; src: url('./InstrumentSans-Regular.woff2') format('woff2'), url('https://tactileui.dev/originals/blocks/machined-footer/InstrumentSans-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }\n@font-face { font-family: 'MF Instrument Sans'; src: url('./InstrumentSans-Bold.woff2') format('woff2'), url('https://tactileui.dev/originals/blocks/machined-footer/InstrumentSans-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }\n\n/* ------------------------------------------------------------------ tokens */\n.mf {\n  color-scheme: light;\n  --tui-desk: #d8d7d2;\n  --tui-face: #e6e6e2;\n  --tui-face-hi: #f2f2ef;\n  --tui-face-lo: #cbccc8;\n  --tui-well: #d3d4d0;\n  --tui-skirt: #a4a5a1;\n  --tui-ink: #1b1c1e;\n  --tui-ink-2: #4b4d51;\n  --tui-ink-3: #6c6e72;\n  --tui-rule: rgb(27 28 30 / 0.16);\n  --tui-cap: #1e1f21;\n  --tui-cap-hi: #2d2e31;\n  --tui-cap-skirt: #070708;\n  --tui-cap-ink: #efede8;\n  --tui-cap-hl: rgb(255 255 255 / 0.14);\n  --tui-hl: rgb(255 255 255 / 0.9);\n  --tui-sh: 24 25 28;\n  --tui-sh-a: 0.24;\n  --tui-grain: 0.5;\n  --tui-focus: #1b1c1e;\n  --tui-green: #3fa34d;\n  --tui-amber: #f29f05;\n  --tui-red: #d93a2b;\n  --tui-ease: cubic-bezier(0.2, 0.7, 0.2, 1);\n  --tui-well-fill: linear-gradient(to bottom, color-mix(in oklab, var(--tui-well) 86%, rgb(var(--tui-sh))), var(--tui-well) 55%);\n  --tui-raised:\n    inset 0 1px 0 var(--tui-hl),\n    0 0 0 1px rgb(var(--tui-sh) / calc(var(--tui-sh-a) * 0.35)),\n    0 1px 1.5px rgb(var(--tui-sh) / calc(var(--tui-sh-a) * 1.2)),\n    0 5px 12px -5px rgb(var(--tui-sh) / var(--tui-sh-a));\n  --tui-inset:\n    inset 0 3px 3px -2px rgb(var(--tui-sh) / calc(var(--tui-sh-a) * 2.6)),\n    inset 0 9px 12px -9px rgb(var(--tui-sh) / calc(var(--tui-sh-a) * 1.8)),\n    inset 0 0 0 1px rgb(var(--tui-sh) / calc(var(--tui-sh-a) * 0.45)),\n    inset 0 -1px 0 color-mix(in oklab, var(--tui-hl) 60%, transparent),\n    0 1px 0 var(--tui-hl),\n    0 -1px 0 rgb(var(--tui-sh) / calc(var(--tui-sh-a) * 0.35));\n  --tui-pressed:\n    inset 0 5px 5px -4px rgb(var(--tui-sh) / calc(var(--tui-sh-a) * 3)),\n    inset 4px 0 4px -4px rgb(var(--tui-sh) / calc(var(--tui-sh-a) * 1.4)),\n    inset -4px 0 4px -4px rgb(var(--tui-sh) / calc(var(--tui-sh-a) * 1.4)),\n    0 -1px 0 rgb(var(--tui-sh) / calc(var(--tui-sh-a) * 1.3)),\n    0 1px 0 var(--tui-hl);\n  --tui-screw: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3CradialGradient id='g' cx='.38' cy='.32' r='.75'%3E%3Cstop offset='0' stop-color='%23fbfbf9'/%3E%3Cstop offset='1' stop-color='%239d9e9a'/%3E%3C/radialGradient%3E%3Ccircle cx='5' cy='5' r='4.3' fill='url(%23g)' stroke='%23000' stroke-opacity='.35' stroke-width='.5'/%3E%3Cpath d='M2.4 6.3 7.6 3.7' stroke='%23000' stroke-opacity='.55' stroke-width='.9' stroke-linecap='round'/%3E%3C/svg%3E\");\n  --tui-noise: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.28 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E\");\n  /* A machined vent slot: dark, its right wall catching the lamp. */\n  --mf-slot: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='28' viewBox='0 0 12 28'%3E%3Crect x='4' y='1' width='4.4' height='26' rx='2.2' fill='black' fill-opacity='.62'/%3E%3Crect x='4.4' y='1.5' width='1.6' height='24' rx='.8' fill='black' fill-opacity='.4'/%3E%3Crect x='7.3' y='4' width='1.1' height='21' rx='.55' fill='white' fill-opacity='.6'/%3E%3Crect x='4.6' y='25.2' width='3.4' height='1.2' rx='.6' fill='white' fill-opacity='.45'/%3E%3C/svg%3E\");\n  --mf-slot-dark: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='28' viewBox='0 0 12 28'%3E%3Crect x='4' y='1' width='4.4' height='26' rx='2.2' fill='black' fill-opacity='.85'/%3E%3Crect x='4.4' y='1.5' width='1.6' height='24' rx='.8' fill='black' fill-opacity='.4'/%3E%3Crect x='7.3' y='4' width='1.1' height='21' rx='.55' fill='white' fill-opacity='.16'/%3E%3Crect x='4.6' y='25.2' width='3.4' height='1.2' rx='.6' fill='white' fill-opacity='.12'/%3E%3C/svg%3E\");\n  --mf-sans: 'MF Instrument Sans', 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;\n\n  position: relative;\n  display: block;\n  container: mf / inline-size;\n  background: var(--tui-desk);\n  color: var(--tui-ink);\n  font: 400 14px/1.5 var(--mf-sans);\n  font-feature-settings: 'tnum' 1;\n  -webkit-font-smoothing: antialiased;\n}\n.mf[data-finish='graphite'] {\n  color-scheme: dark;\n  --tui-desk: #0e0f10;\n  --tui-face: #1b1c1e;\n  --tui-face-hi: #28292c;\n  --tui-face-lo: #141516;\n  --tui-well: #121315;\n  --tui-skirt: #09090a;\n  --tui-ink: #e8e6e1;\n  --tui-ink-2: #a6a7a9;\n  --tui-ink-3: #7a7c7f;\n  --tui-rule: rgb(232 230 225 / 0.11);\n  --tui-cap: #e9e7e2;\n  --tui-cap-hi: #f6f4ef;\n  --tui-cap-skirt: #a8a7a3;\n  --tui-cap-ink: #17181a;\n  --tui-cap-hl: rgb(255 255 255 / 0.8);\n  --tui-hl: rgb(255 255 255 / 0.11);\n  --tui-well-fill: linear-gradient(to bottom, #070808, var(--tui-well) 45%, #17181a);\n  --tui-sh: 0 0 0;\n  --tui-sh-a: 0.55;\n  --tui-grain: 0.35;\n  --tui-focus: #e8e6e1;\n  --mf-slot: var(--mf-slot-dark);\n}\n.mf *, .mf *::before, .mf *::after { box-sizing: border-box; }\n.mf p, .mf ul, .mf h2, .mf fieldset { margin: 0; }\n\n/* ------------------------------------------------------------------ the panel */\n.mf-wrap {\n  width: min(100% - 2 * clamp(12px, 3cqi, 40px), 1320px);\n  margin-inline: auto;\n  padding-block: clamp(32px, 5cqi, 72px) clamp(16px, 2.4cqi, 32px);\n}\n.mf-panel {\n  position: relative;\n  isolation: isolate;\n  padding: clamp(40px, 4.4cqi, 56px) clamp(22px, 3.6cqi, 52px) 0;\n  border-radius: 14px;\n  background: var(--tui-face);\n  box-shadow: var(--tui-raised);\n}\n.mf-panel::before {\n  content: '';\n  position: absolute;\n  inset: 0;\n  z-index: -1;\n  border-radius: inherit;\n  background: var(--tui-noise), linear-gradient(170deg, rgb(255 255 255 / 0.06), transparent 40%);\n  opacity: var(--tui-grain);\n  pointer-events: none;\n}\n.mf-screw {\n  position: absolute;\n  width: 9px;\n  height: 9px;\n  background: var(--tui-screw) center / contain no-repeat;\n  filter: drop-shadow(0 0.5px 0 var(--tui-hl));\n}\n.mf-screw--tl { left: 12px; top: 12px; }\n.mf-screw--tr { right: 12px; top: 12px; }\n.mf-screw--bl { left: 12px; bottom: 12px; }\n.mf-screw--br { right: 12px; bottom: 12px; }\n/* Vents cut along the top edge of the plate, between the upper screws. */\n.mf-vents {\n  position: absolute;\n  top: 16px;\n  right: clamp(40px, 5cqi, 64px);\n  width: min(30%, 288px);\n  height: 28px;\n  background: var(--mf-slot) 0 0 / 12px 28px repeat-x;\n}\n\n.mf-top {\n  display: grid;\n  grid-template-columns: minmax(250px, 1fr) minmax(0, 2fr);\n  gap: 40px clamp(32px, 5cqi, 80px);\n  padding-bottom: clamp(28px, 3.4cqi, 44px);\n}\n.mf-brand {\n  display: inline-flex;\n  align-items: center;\n  gap: 10px;\n  font: 700 22px/1 var(--mf-sans);\n  letter-spacing: -0.03em;\n  color: var(--tui-ink);\n  text-decoration: none;\n  border-radius: 4px;\n}\n.mf-tag { margin-top: 10px; max-width: 30ch; color: var(--tui-ink-2); font-size: 14px; text-wrap: pretty; }\n.mf-label {\n  display: block;\n  padding: 0;\n  font: 700 10.5px/1.2 var(--mf-sans);\n  letter-spacing: 0.09em;\n  text-transform: uppercase;\n  color: var(--tui-ink-2);\n}\n\n/* The changelog field: a cut in the plate with the one contrast key in it. */\n.mf-form { display: grid; gap: 8px; margin-top: 28px; max-width: 380px; }\n.mf-combo {\n  display: flex;\n  gap: 4px;\n  padding: 4px;\n  border-radius: 11px;\n  background: var(--tui-well-fill) var(--tui-well);\n  box-shadow: var(--tui-inset);\n}\n.mf-combo:has(.mf-input:focus-visible) { outline: 2px solid var(--tui-focus); outline-offset: 2px; }\n.mf-form[data-error] .mf-combo { box-shadow: 0 0 0 1.5px color-mix(in oklab, var(--tui-red) 85%, transparent), 0 0 8px -2px color-mix(in oklab, var(--tui-red) 45%, transparent), var(--tui-inset); }\n.mf-input {\n  flex: 1;\n  min-width: 0;\n  height: 36px;\n  padding: 0 10px;\n  border: 0;\n  background: transparent;\n  font: 400 14px/1 var(--mf-sans);\n  color: var(--tui-ink);\n  outline: none;\n}\n.mf-input::placeholder { color: var(--tui-ink-3); }\n.mf-key {\n  appearance: none;\n  flex: none;\n  height: 36px;\n  padding: 0 16px;\n  border: 0;\n  border-radius: 7px;\n  font: 700 12.5px/1 var(--mf-sans);\n  letter-spacing: 0.01em;\n  color: var(--tui-cap-ink);\n  cursor: pointer;\n  background:\n    radial-gradient(120% 90% at 50% 0%, rgb(255 255 255 / 0.1), transparent 60%),\n    linear-gradient(var(--tui-cap-hi), var(--tui-cap));\n  box-shadow:\n    inset 0 1px 0 var(--tui-cap-hl),\n    0 2px 0 var(--tui-cap-skirt),\n    0 3px 2px rgb(var(--tui-sh) / calc(var(--tui-sh-a) * 1.4)),\n    0 8px 12px -6px rgb(var(--tui-sh) / var(--tui-sh-a));\n  transition: transform 70ms var(--tui-ease), box-shadow 70ms var(--tui-ease);\n}\n.mf-key:active { transform: translateY(2px); box-shadow: var(--tui-pressed); }\n.mf-hint { font-size: 12.5px; color: var(--tui-ink-2); padding-left: 2px; }\n/* The words of an error are the lamp's red, darkened on aluminium and lightened\n   on graphite until they read at 4.5:1; the well's red lip is the lamp's own. */\n.mf-form[data-error] .mf-hint { color: #b3261a; }\n.mf[data-finish='graphite'] .mf-form[data-error] .mf-hint { color: #ff8a7e; }\n\n/* Printed columns. */\n.mf-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }\n.mf-h {\n  margin-bottom: 16px;\n  font: 700 10.5px/1.2 var(--mf-sans);\n  letter-spacing: 0.09em;\n  text-transform: uppercase;\n  color: var(--tui-ink-2);\n}\n.mf-col ul { display: grid; gap: 11px; padding: 0; list-style: none; }\n.mf-col a, .mf-status-link {\n  color: var(--tui-ink);\n  font-size: 14px;\n  text-decoration: none;\n  border-radius: 3px;\n}\n.mf-col a:hover, .mf-status-link:hover { text-decoration: underline; text-underline-offset: 3px; }\n.mf :focus-visible { outline: 2px solid var(--tui-focus); outline-offset: 3px; }\n\n/* ------------------------------------------------------------------ the status window and the selector */\n.mf-strip {\n  display: flex;\n  flex-wrap: wrap;\n  align-items: center;\n  justify-content: space-between;\n  gap: 14px 32px;\n  padding: 12px 12px 12px 18px;\n  border-radius: 11px;\n  background: var(--tui-well-fill) var(--tui-well);\n  box-shadow: var(--tui-inset);\n}\n.mf-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; font-size: 13.5px; }\n.mf-status-words { font-weight: 700; }\n.mf-status-detail { color: var(--tui-ink-2); }\n.mf-status-link { font-size: 13.5px; font-weight: 700; }\n\n/* A lamp: always visible; lit, it glows its colour. */\n.mf-lamp {\n  --c: var(--tui-green);\n  flex: none;\n  width: 8px;\n  height: 8px;\n  border-radius: 50%;\n  background: radial-gradient(circle at 35% 30%, rgb(255 255 255 / 0.25), transparent 55%), color-mix(in oklab, var(--c) 22%, var(--tui-face-lo));\n  box-shadow: inset 0 1px 1.5px rgb(0 0 0 / 0.45), 0 1px 0 var(--tui-hl);\n}\n.mf-lamp[data-lamp='amber'] { --c: var(--tui-amber); }\n.mf-lamp[data-lamp='red'] { --c: var(--tui-red); }\n.mf-lamp[data-on] {\n  background: radial-gradient(circle at 35% 30%, rgb(255 255 255 / 0.85), transparent 45%), var(--c);\n  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.2), 0 0 6px 1px color-mix(in oklab, var(--c) 70%, transparent), 0 0 14px 2px color-mix(in oklab, var(--c) 30%, transparent);\n}\n.mf-brand .mf-lamp { width: 7px; height: 7px; }\n\n/* The finish selector: a two-position slide, its legends printed either side. */\n.mf-finish { display: flex; align-items: center; gap: 14px; padding: 0; border: 0; min-inline-size: 0; }\n.mf-finish legend { float: left; margin-right: 4px; }\n.mf-slide { display: flex; align-items: center; gap: 10px; }\n.mf-pos { position: relative; cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--tui-ink-2); user-select: none; }\n.mf-pos input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }\n.mf-pos:has(input:checked) { color: var(--tui-ink); }\n.mf-track {\n  position: relative;\n  width: 48px;\n  height: 24px;\n  border-radius: 7px;\n  background: var(--tui-well-fill) var(--tui-well);\n  box-shadow: var(--tui-inset);\n}\n/* Cut again inside the window, so it reads a step deeper. */\n.mf-strip .mf-track { background: linear-gradient(to bottom, rgb(0 0 0 / 0.22), rgb(0 0 0 / 0.06)), var(--tui-well); }\n.mf-thumb {\n  position: absolute;\n  top: 2px;\n  left: 2px;\n  width: 24px;\n  height: 20px;\n  border-radius: 5px;\n  background:\n    repeating-linear-gradient(90deg, transparent 0 2px, rgb(var(--tui-sh) / 0.22) 2px 3px, var(--tui-hl) 3px 4px) center / 11px 9px no-repeat,\n    linear-gradient(var(--tui-face-hi), color-mix(in oklab, var(--tui-face-hi) 90%, rgb(var(--tui-sh))));\n  box-shadow: var(--tui-raised);\n  transition: transform 180ms var(--tui-ease);\n}\n.mf-slide:has(input[value='graphite']:checked) .mf-thumb { transform: translateX(20px); }\n.mf-slide:has(input:focus-visible) .mf-track { outline: 2px solid var(--tui-focus); outline-offset: 3px; }\n\n/* ------------------------------------------------------------------ the base */\n.mf-base {\n  display: flex;\n  flex-wrap: wrap;\n  align-items: center;\n  justify-content: space-between;\n  gap: 10px 24px;\n  padding: 18px 0 24px;\n}\n.mf-legal { font-size: 12.5px; color: var(--tui-ink-2); }\n/* The build number, stamped into the plate: the letters sit below the\n   surface, so their lower edge catches the lamp. */\n.mf-stamp {\n  font: 700 10.5px/1 var(--mf-sans);\n  letter-spacing: 0.14em;\n  text-transform: uppercase;\n  color: var(--tui-ink-2);\n  text-shadow: 0 1px 0 var(--tui-hl), 0 -0.5px 0 rgb(var(--tui-sh) / calc(var(--tui-sh-a) * 1.2));\n  font-variant-numeric: tabular-nums;\n  /* A stamped box round it, pressed in like the letters. */\n  padding: 6px 9px 5px;\n  border-radius: 4px;\n  box-shadow: inset 0 1px 0 rgb(var(--tui-sh) / calc(var(--tui-sh-a) * 1.1)), inset 0 -1px 0 var(--tui-hl), inset 1px 0 0 rgb(var(--tui-sh) / calc(var(--tui-sh-a) * 0.6)), inset -1px 0 0 var(--tui-hl);\n  margin-right: 10px;\n}\n\n/* ------------------------------------------------------------------ re-composed by the width it is given */\n@container mf (max-width: 959px) {\n  .mf-top { grid-template-columns: minmax(0, 1fr); }\n  .mf-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n  .mf-panel { padding-top: 60px; }\n  /* A tablet: the brand on the left, the field beside it, then the links. */\n  .mf-brandcol { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 40px; align-items: start; }\n  .mf-brandcol > .mf-brand { justify-self: start; }\n  .mf-form { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; max-width: none; }\n}\n@container mf (max-width: 559px) {\n  .mf-brandcol { display: block; }\n  .mf-form { margin-top: 28px; }\n  .mf-nav { grid-template-columns: minmax(0, 1fr); gap: 22px; }\n  /* One column of groups; inside each, the links flow in a line, each a 32px target. */\n  .mf-h { margin-bottom: 6px; }\n  .mf-col ul { display: flex; flex-wrap: wrap; gap: 0 20px; }\n  .mf-col a { display: inline-block; padding: 6px 0; }\n  .mf-vents { top: 14px; right: 36px; width: 38%; height: 22px; background-size: 10px 22px; }\n  .mf-strip { flex-direction: column; align-items: flex-start; padding: 14px 14px 16px; }\n  .mf-status { gap: 6px 10px; }\n  .mf-status-detail { flex-basis: 100%; padding-left: 20px; }\n  .mf-status-link { padding-left: 20px; }\n  .mf-base { flex-direction: column; align-items: flex-start; padding-bottom: 30px; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .mf-thumb, .mf-key { transition: none; }\n}\n"},{"path":"tactile/machined-footer/InstrumentSans-OFL.txt","type":"registry:file","target":"tactile/machined-footer/InstrumentSans-OFL.txt","content":"Copyright 2022 The Instrument Sans Project Authors (https://github.com/Instrument/instrument-sans)\n\nThis Font Software is licensed under the SIL Open Font License, Version 1.1.\nThis license is copied below, and is also available with a FAQ at:\nhttps://openfontlicense.org\n\n\n-----------------------------------------------------------\nSIL OPEN FONT LICENSE Version 1.1 - 26 February 2007\n-----------------------------------------------------------\n\nPREAMBLE\nThe goals of the Open Font License (OFL) are to stimulate worldwide\ndevelopment of collaborative font projects, to support the font creation\nefforts of academic and linguistic communities, and to provide a free and\nopen framework in which fonts may be shared and improved in partnership\nwith others.\n\nThe OFL allows the licensed fonts to be used, studied, modified and\nredistributed freely as long as they are not sold by themselves. The\nfonts, including any derivative works, can be bundled, embedded, \nredistributed and/or sold with any software provided that any reserved\nnames are not used by derivative works. The fonts and derivatives,\nhowever, cannot be released under any other type of license. The\nrequirement for fonts to remain under this license does not apply\nto any document created using the fonts or their derivatives.\n\nDEFINITIONS\n\"Font Software\" refers to the set of files released by the Copyright\nHolder(s) under this license and clearly marked as such. This may\ninclude source files, build scripts and documentation.\n\n\"Reserved Font Name\" refers to any names specified as such after the\ncopyright statement(s).\n\n\"Original Version\" refers to the collection of Font Software components as\ndistributed by the Copyright Holder(s).\n\n\"Modified Version\" refers to any derivative made by adding to, deleting,\nor substituting -- in part or in whole -- any of the components of the\nOriginal Version, by changing formats or by porting the Font Software to a\nnew environment.\n\n\"Author\" refers to any designer, engineer, programmer, technical\nwriter or other person who contributed to the Font Software.\n\nPERMISSION & CONDITIONS\nPermission is hereby granted, free of charge, to any person obtaining\na copy of the Font Software, to use, study, copy, merge, embed, modify,\nredistribute, and sell modified and unmodified copies of the Font\nSoftware, subject to the following conditions:\n\n1) Neither the Font Software nor any of its individual components,\nin Original or Modified Versions, may be sold by itself.\n\n2) Original or Modified Versions of the Font Software may be bundled,\nredistributed and/or sold with any software, provided that each copy\ncontains the above copyright notice and this license. These can be\nincluded either as stand-alone text files, human-readable headers or\nin the appropriate machine-readable metadata fields within text or\nbinary files as long as those fields can be easily viewed by the user.\n\n3) No Modified Version of the Font Software may use the Reserved Font\nName(s) unless explicit written permission is granted by the corresponding\nCopyright Holder. This restriction only applies to the primary font name as\npresented to the users.\n\n4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font\nSoftware shall not be used to promote, endorse or advertise any\nModified Version, except to acknowledge the contribution(s) of the\nCopyright Holder(s) and the Author(s) or with their explicit written\npermission.\n\n5) The Font Software, modified or unmodified, in part or in whole,\nmust be distributed entirely under this license, and must not be\ndistributed under any other license. The requirement for fonts to\nremain under this license does not apply to any document created\nusing the Font Software.\n\nTERMINATION\nThis license becomes null and void if any of the above conditions are\nnot met.\n\nDISCLAIMER\nTHE FONT SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT\nOF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE\nCOPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nINCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL\nDAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM\nOTHER DEALINGS IN THE FONT SOFTWARE.\n"},{"path":"tactile/machined-footer-example.html","type":"registry:file","target":"tactile/machined-footer-example.html","content":"<!doctype html>\n<html lang=\"en\">\n<!-- Machined Footer v0.1.0: Tactile UI\n     Put this file beside the folder and serve them over HTTP (any static\n     server that knows .woff2):\n       ./machined-footer/   machined-footer.mjs, machined-footer.css, InstrumentSans-Regular.woff2, InstrumentSans-Bold.woff2, InstrumentSans-OFL.txt\n     No framework, no build step, no image. The finish selector writes\n     data-finish on <html> and remembers it in localStorage['tui-finish'];\n     the script in <head> restores it before first paint. -->\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">\n<script>(function(){var f;try{f=localStorage.getItem('tui-finish')}catch(e){}if(f==='aluminium'||f==='graphite')document.documentElement.dataset.finish=f})()</script>\n<title>Footer</title>\n<link rel=\"stylesheet\" href=\"./machined-footer/machined-footer.css\">\n<style>\n  body { margin: 0; }\n</style>\n</head>\n<body>\n<main style=\"min-height: 40vh\"></main>\n<div id=\"footer\"></div>\n<script type=\"module\">\nimport { mount } from './machined-footer/machined-footer.mjs';\n\nconst footer = mount(document.getElementById('footer'), {\n  brand: \"Lode\",\n  tagline: \"The runtime for agents that touch production.\",\n  status: \"normal\",\n  newsletter: true,\n  action: \"\",\n  finishSwitch: true,\n  rev: \"2026.09\",\n  build: \"4f2a91c\",\n  legal: \"© 2026 Lode Systems Ltd. Registered in England and Wales.\",\n  finish: \"auto\",\n});\n\n// footer.setStatus('outage')      the lamp turns red and the words say why\n// footer.root.addEventListener('mf-subscribe', (e) => fetch('/subscribe', { method: 'POST', body: e.detail.email }))\n// footer.destroy()                removes the footer and its listeners\n</script>\n</body>\n</html>"},{"path":"tactile/machined-footer/LICENSE","type":"registry:file","target":"tactile/machined-footer/LICENSE","content":"MIT License\n\nCopyright (c) 2026 Ciprian Titire\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"}],"docs":"Machined Footer is in tactile/machined-footer/. Open tactile/machined-footer-example.html to see it run; machined-footer.mjs is the class, machined-footer.css its look.\nLoad both or it renders unstyled: in a bundler such as Vite, import './tactile/machined-footer/machined-footer.css' next to the .mjs import (or link it in plain HTML), then construct it on an element as the example does.\nIts fonts (InstrumentSans-Regular.woff2, InstrumentSans-Bold.woff2) load from https://tactileui.dev until you put them next to the CSS; the piece's download has them: https://tactileui.dev/api/download/blk.machined-footer.\nDocs: https://tactileui.dev/blocks/machined-footer","meta":{"id":"blk.machined-footer","version":"0.1.0","access":"free","licence":"MIT"}}