space-data-module-sdk 0.8.26 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/README.md +5 -4
  2. package/docs/assembly.js +0 -18
  3. package/docs/assets/ai-credits/ai-credits.js +116 -0
  4. package/docs/assets/sdn-chrome/sdn-chrome.css +434 -0
  5. package/docs/assets/sdn-chrome/sdn-chrome.js +236 -0
  6. package/docs/browser-wasmedge-isomorphic.html +29 -41
  7. package/docs/byo-wasm-quickstart.html +29 -41
  8. package/docs/conformance.html +29 -41
  9. package/docs/events-abi.html +29 -41
  10. package/docs/families/analytics.html +29 -41
  11. package/docs/families/attitude.html +29 -41
  12. package/docs/families/behavior.html +29 -41
  13. package/docs/families/breakup.html +29 -41
  14. package/docs/families/conjunction.html +29 -41
  15. package/docs/families/data-source.html +29 -41
  16. package/docs/families/effects.html +29 -41
  17. package/docs/families/environment.html +29 -41
  18. package/docs/families/estimation.html +29 -41
  19. package/docs/families/gnc.html +29 -41
  20. package/docs/families/maneuver.html +29 -41
  21. package/docs/families/obstruction.html +29 -41
  22. package/docs/families/propagator.html +29 -41
  23. package/docs/families/propulsion.html +29 -41
  24. package/docs/families/reentry.html +29 -41
  25. package/docs/families/rf.html +29 -41
  26. package/docs/families/scheduler.html +29 -41
  27. package/docs/families/sensor.html +29 -41
  28. package/docs/families/signature.html +29 -41
  29. package/docs/flatsql-host-contract.html +29 -41
  30. package/docs/flatsql-streaming-standard.html +29 -41
  31. package/docs/gpu-module-abi.html +29 -41
  32. package/docs/index.html +43 -47
  33. package/docs/isomorphic-pthreads.html +29 -41
  34. package/docs/isomorphic-sdn-runtime-plan.html +29 -41
  35. package/docs/language-runtime-matrix.html +29 -41
  36. package/docs/media/module-sdk-reel-poster.webp +0 -0
  37. package/docs/media/module-sdk-reel.mp4 +0 -0
  38. package/docs/media/module-sdk-reel.webm +0 -0
  39. package/docs/media/reel/reel.css +53 -0
  40. package/docs/media/reel/reel.js +272 -0
  41. package/docs/module-bundle-runtime-plan.html +29 -41
  42. package/docs/module-publication-standard.html +29 -41
  43. package/docs/node-red-default-node-parity.html +29 -41
  44. package/docs/protect-and-sign.html +29 -41
  45. package/docs/protocol-installation.html +29 -41
  46. package/docs/publication-submission.html +29 -41
  47. package/docs/secrets-capability.html +29 -41
  48. package/docs/styles.css +89 -157
  49. package/docs/testing-harness.html +29 -41
  50. package/docs/tri-runtime-parity-gate.html +29 -41
  51. package/docs/tri-runtime-parity.html +29 -41
  52. package/package.json +5 -3
  53. package/schemas/runtime/FlowNotice.fbs +39 -0
  54. package/schemas/runtime/HostOps.fbs +453 -0
  55. package/schemas/runtime/HttpRequest.fbs +25 -0
  56. package/schemas/runtime/HttpResponse.fbs +24 -0
  57. package/schemas/runtime/IngestRequest.fbs +58 -0
  58. package/schemas/runtime/IngestResult.fbs +23 -0
  59. package/schemas/runtime/ModuleConfig.fbs +41 -0
  60. package/schemas/runtime/RuntimeCommon.fbs +33 -0
  61. package/schemas/runtime/TimerTick.fbs +18 -0
  62. package/src/compiler/compileModule.js +20 -2
  63. package/src/generated/runtime/aligned/HostOps_aligned.js +3924 -0
  64. package/src/generated/runtime/aligned/HostOps_aligned.ts +4620 -0
  65. package/src/generated/runtime/aligned/HostOps_enums.js +14 -0
  66. package/src/generated/runtime/aligned/HostOps_enums.ts +7 -0
  67. package/src/generated/runtime/cpp/FlowNotice_generated.h +367 -0
  68. package/src/generated/runtime/cpp/HostOps_aligned.h +3547 -0
  69. package/src/generated/runtime/cpp/HttpRequest_generated.h +317 -0
  70. package/src/generated/runtime/cpp/HttpResponse_generated.h +315 -0
  71. package/src/generated/runtime/cpp/IngestRequest_generated.h +764 -0
  72. package/src/generated/runtime/cpp/IngestResult_generated.h +319 -0
  73. package/src/generated/runtime/cpp/ModuleConfig_generated.h +604 -0
  74. package/src/generated/runtime/cpp/RuntimeCommon_generated.h +410 -0
  75. package/src/generated/runtime/cpp/TimerTick_generated.h +229 -0
  76. package/src/generated/runtime/sdn/runtime/ArchiveTarget.js +78 -0
  77. package/src/generated/runtime/sdn/runtime/ArchiveTarget.ts +104 -0
  78. package/src/generated/runtime/sdn/runtime/ConfigEntry.js +202 -0
  79. package/src/generated/runtime/sdn/runtime/ConfigEntry.ts +251 -0
  80. package/src/generated/runtime/sdn/runtime/ConfigTable.js +80 -0
  81. package/src/generated/runtime/sdn/runtime/ConfigTable.ts +97 -0
  82. package/src/generated/runtime/sdn/runtime/FlowNotice.js +196 -0
  83. package/src/generated/runtime/sdn/runtime/FlowNotice.ts +254 -0
  84. package/src/generated/runtime/sdn/runtime/Header.js +79 -0
  85. package/src/generated/runtime/sdn/runtime/Header.ts +100 -0
  86. package/src/generated/runtime/sdn/runtime/HttpRequest.js +216 -0
  87. package/src/generated/runtime/sdn/runtime/HttpRequest.ts +265 -0
  88. package/src/generated/runtime/sdn/runtime/HttpResponse.js +216 -0
  89. package/src/generated/runtime/sdn/runtime/HttpResponse.ts +267 -0
  90. package/src/generated/runtime/sdn/runtime/IngestRequest.js +121 -0
  91. package/src/generated/runtime/sdn/runtime/IngestRequest.ts +155 -0
  92. package/src/generated/runtime/sdn/runtime/IngestResult.js +184 -0
  93. package/src/generated/runtime/sdn/runtime/IngestResult.ts +235 -0
  94. package/src/generated/runtime/sdn/runtime/ModuleConfig.js +92 -0
  95. package/src/generated/runtime/sdn/runtime/ModuleConfig.ts +114 -0
  96. package/src/generated/runtime/sdn/runtime/Provenance.js +288 -0
  97. package/src/generated/runtime/sdn/runtime/Provenance.ts +368 -0
  98. package/src/generated/runtime/sdn/runtime/SourceTags.js +181 -0
  99. package/src/generated/runtime/sdn/runtime/SourceTags.ts +253 -0
  100. package/src/generated/runtime/sdn/runtime/TimerTick.js +119 -0
  101. package/src/generated/runtime/sdn/runtime/TimerTick.ts +148 -0
  102. package/src/generated/runtime/sdn/runtime/configValueKind.js +12 -0
  103. package/src/generated/runtime/sdn/runtime/configValueKind.ts +19 -0
  104. package/src/generated/runtime/sdn/runtime/flowNoticeKind.js +11 -0
  105. package/src/generated/runtime/sdn/runtime/flowNoticeKind.ts +34 -0
  106. package/src/generated/runtime/sdn/runtime/reconcileMode.js +9 -0
  107. package/src/generated/runtime/sdn/runtime/reconcileMode.ts +23 -0
  108. package/src/generated/runtime/sdn/runtime.js +16 -0
  109. package/src/generated/runtime/sdn/runtime.ts +17 -0
  110. package/src/host/abi.js +20 -3
  111. package/src/host/browserHost.js +2 -0
  112. package/src/host/cpp/typedHostcall.hpp +201 -0
  113. package/src/host/hostWorkerBundleSources.js +3 -3
  114. package/src/host/nodeHost.js +1 -0
  115. package/src/host/typedDispatch.js +230 -0
  116. package/src/index.d.ts +2 -0
  117. package/src/invoke/codec.js +3 -2
  118. package/src/licensing/records.js +10 -1
  119. package/src/standards/runtimeContracts.js +536 -0
  120. package/src/standards/sharedCatalog.js +27 -0
package/README.md CHANGED
@@ -163,10 +163,11 @@ generated readers run, refuses the record.
163
163
 
164
164
  - Build size-prefixed frames with the generated builder's size-prefixed finish,
165
165
  or with `flatc --binary --size-prefixed` from JSON.
166
- - flatc-wasm's `generateBinary(schema, json, { sizePrefix: true })`, the
167
- default, writes the length in front in JS and does not produce such a record.
168
- For a size-prefixed record, run flatc with `--size-prefixed` through
169
- `runCommand`. Otherwise pass `sizePrefix: false` for an unprefixed record.
166
+ - flatc-wasm 26.1.38 and later: `generateBinary(schema, json)` with
167
+ `sizePrefix: true`, the default, runs `flatc --binary --size-prefixed` and
168
+ produces such a record. Pass `sizePrefix: false` for an unprefixed record.
169
+ Earlier versions write the length in front in JS; `VerifySizePrefixedBuffer`
170
+ refuses their record when it has an 8-byte field.
170
171
  - Forward a module's size-prefixed output frames unchanged. Do not strip the
171
172
  prefix or add one.
172
173
 
package/docs/assembly.js CHANGED
@@ -163,7 +163,6 @@
163
163
  clearTimeout(timer);
164
164
  timer = setTimeout(function () { layout(); if (still) draw(performance.now()); }, 150);
165
165
  });
166
- matchMedia('(prefers-color-scheme: dark)').addEventListener('change', function () { readTheme(); if (still) draw(performance.now()); });
167
166
  window.addEventListener('sdn-theme', function () { readTheme(); if (still) draw(performance.now()); });
168
167
  document.addEventListener('visibilitychange', function () {
169
168
  visible = !document.hidden;
@@ -171,20 +170,3 @@
171
170
  });
172
171
  requestAnimationFrame(draw);
173
172
  })();
174
-
175
- // Light / dark switcher. Follows the system until the reader picks.
176
- (function () {
177
- function current() {
178
- var t = document.documentElement.getAttribute('data-theme');
179
- if (t === 'light' || t === 'dark') return t;
180
- return matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
181
- }
182
- document.querySelectorAll('.theme-toggle').forEach(function (btn) {
183
- btn.addEventListener('click', function () {
184
- var next = current() === 'dark' ? 'light' : 'dark';
185
- document.documentElement.setAttribute('data-theme', next);
186
- try { localStorage.setItem('sdn-theme', next); } catch (e) {}
187
- window.dispatchEvent(new Event('sdn-theme'));
188
- });
189
- });
190
- })();
@@ -0,0 +1,116 @@
1
+ // The AI behind this project, listed in the lower right of every page of the
2
+ // Space Data Network family of sites. The canonical copy lives in
3
+ // spacedatanetwork.org docs/assets/ai-credits/; the other stack sites carry
4
+ // verbatim copies. The panel sits in the lower right above any fixed footer
5
+ // bar, and rides above the page footer once that scrolls into view (in the
6
+ // page flow above the footer on phones), at 45% opacity, and no
7
+ // part of it is selectable. Only the header takes a click: it starts
8
+ // collapsed, and the header grows the panel to show the list, then collapses
9
+ // it again.
10
+ (function () {
11
+ if (document.querySelector('.ai-credits')) return;
12
+
13
+ // Four lines of exactly 30 characters: in a monospace face they set as a
14
+ // perfect rectangle.
15
+ var HEADER = [
16
+ 'THIS PROJECT WAS BUILT WITH AI',
17
+ 'MODELS, LOCAL AND IN THE CLOUD',
18
+ 'OVER NINE MONTHS, WORKING WITH',
19
+ 'THE AGENTS AND THE TOOLS BELOW'
20
+ ];
21
+ var GROUPS = [
22
+ ['CLAUDE CODE / ANTHROPIC', 'Claude Opus 5.5 · Claude Opus 5 · Claude Fable 5.1 · Claude Sonnet 5 · Claude Opus 4.8 · Claude Haiku 4.5'],
23
+ ['CODEX / OPENAI', 'GPT-6.1 Sol · GPT-6 Astra · GPT-5.6 Sol · GPT-5.6 Terra · GPT-5.6 Luna · GPT-5.4 · GPT-5.3 Codex Spark · GPT Reserve · Codex Auto Review'],
24
+ ['LOCAL / LLAMA.CPP', 'Qwen3.8 Flash Next · GLM-5.3 Flash · GLM-4.7 Flash'],
25
+ ['MUSIC', 'Suno'],
26
+ ['TOOLS THE AGENTS DROVE / MCP', 'Blender 5.0 · Google Chrome (DevTools, Claude in Chrome) · Playwright · Claude Docs · Codex Computer Use · Node REPL · Xcode iOS Simulator · Sketchfab, Poly Haven and Poly Pizza through Blender']
27
+ ];
28
+
29
+ var CSS =
30
+ '.ai-credits{position:fixed;right:14px;bottom:calc(max(var(--sdn-stack-footer-height,0px),var(--ai-credits-lift,0px)) + 14px);z-index:9000;' +
31
+ 'width:max-content;max-width:calc(100vw - 28px);box-sizing:border-box;padding:11px 13px 12px;' +
32
+ 'font:500 9.5px/1.5 ui-monospace,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;letter-spacing:.05em;' +
33
+ 'color:#fff;background:rgba(0,0,0,.6);border:1px solid rgba(255,255,255,.28);border-radius:3px;' +
34
+ '-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);opacity:.45;pointer-events:none;' +
35
+ '-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;text-align:left;text-shadow:none}' +
36
+ '.ai-credits *{-webkit-user-select:none;user-select:none;pointer-events:none}' +
37
+ '.ai-credits::before,.ai-credits::after{content:"";position:absolute;width:8px;height:8px;border:1px solid #fff}' +
38
+ '.ai-credits::before{left:-1px;top:-1px;border-right:0;border-bottom:0}' +
39
+ '.ai-credits::after{right:-1px;bottom:-1px;border-left:0;border-top:0}' +
40
+ // The header is the toggle: the one part that takes a click.
41
+ '.ai-credits .ai-credits-toggle{display:block;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;' +
42
+ 'letter-spacing:inherit;text-align:left;cursor:pointer;pointer-events:auto;-webkit-tap-highlight-color:transparent}' +
43
+ '.ai-credits .ai-credits-toggle:focus-visible{outline:1px solid #fff;outline-offset:4px}' +
44
+ '.ai-credits pre{margin:0;font-family:inherit;font-size:1em;font-weight:700;line-height:1.35;letter-spacing:inherit;white-space:pre;color:#fff}' +
45
+ // The list grows open from nothing and folds away again.
46
+ '.ai-credits .ai-credits-body{display:grid;grid-template-rows:0fr;transition:grid-template-rows .35s cubic-bezier(.2,.7,.2,1)}' +
47
+ '.ai-credits.is-open .ai-credits-body{grid-template-rows:1fr}' +
48
+ '.ai-credits .ai-credits-body>div{overflow:hidden;min-height:0}' +
49
+ '.ai-credits hr{height:0;margin:8px 0 2px;border:0;border-top:1px dashed rgba(255,255,255,.55)}' +
50
+ '.ai-credits dl{width:0;min-width:100%;margin:0}' +
51
+ '.ai-credits dt{margin-top:6px;font-weight:700;color:#fff}' +
52
+ '.ai-credits dt::before{content:"> "}' +
53
+ '.ai-credits dd{margin:1px 0 0 2ch;color:rgba(255,255,255,.92)}' +
54
+ '@media (prefers-reduced-motion:reduce){.ai-credits .ai-credits-body{transition:none}}' +
55
+ // Phones: no room for a fixed corner panel, so it sits in the page flow,
56
+ // right-aligned, just above the footer.
57
+ '@media (max-width:620px){.ai-credits{position:relative;right:auto;bottom:auto;display:block;font-size:8.5px;' +
58
+ 'margin:28px 14px 14px auto}}' +
59
+ '@media print{.ai-credits{display:none}}';
60
+
61
+ function mount() {
62
+ var style = document.createElement('style');
63
+ style.textContent = CSS;
64
+ document.head.appendChild(style);
65
+ var box = document.createElement('aside');
66
+ box.className = 'ai-credits';
67
+ box.setAttribute('aria-label', 'AI used to build this project');
68
+ var toggle = document.createElement('button');
69
+ toggle.type = 'button';
70
+ toggle.className = 'ai-credits-toggle';
71
+ toggle.setAttribute('aria-expanded', 'false');
72
+ var pre = document.createElement('pre');
73
+ pre.textContent = HEADER.join('\n');
74
+ toggle.appendChild(pre);
75
+ box.appendChild(toggle);
76
+ var body = document.createElement('div');
77
+ body.className = 'ai-credits-body';
78
+ body.id = 'ai-credits-list';
79
+ toggle.setAttribute('aria-controls', body.id);
80
+ var inner = document.createElement('div');
81
+ inner.appendChild(document.createElement('hr'));
82
+ var dl = document.createElement('dl');
83
+ GROUPS.forEach(function (g) {
84
+ var dt = document.createElement('dt');
85
+ dt.textContent = g[0];
86
+ var dd = document.createElement('dd');
87
+ dd.textContent = g[1];
88
+ dl.appendChild(dt);
89
+ dl.appendChild(dd);
90
+ });
91
+ inner.appendChild(dl);
92
+ body.appendChild(inner);
93
+ box.appendChild(body);
94
+ toggle.addEventListener('click', function () {
95
+ var open = !box.classList.contains('is-open');
96
+ box.classList.toggle('is-open', open);
97
+ toggle.setAttribute('aria-expanded', String(open));
98
+ });
99
+ var footers = document.querySelectorAll('.sdn-footer, body > footer, body > .site-footer');
100
+ var footer = footers[footers.length - 1];
101
+ if (footer) footer.parentNode.insertBefore(box, footer); else document.body.appendChild(box);
102
+ // Lift the fixed panel by however much of the page footer is on screen.
103
+ var frame = 0;
104
+ function place() {
105
+ frame = 0;
106
+ var pageFooter = document.querySelector('.sdn-footer');
107
+ var lift = pageFooter ? Math.max(0, window.innerHeight - pageFooter.getBoundingClientRect().top) : 0;
108
+ box.style.setProperty('--ai-credits-lift', lift + 'px');
109
+ }
110
+ function queue() { if (!frame) frame = requestAnimationFrame(place); }
111
+ window.addEventListener('scroll', queue, { passive: true, capture: true });
112
+ window.addEventListener('resize', queue);
113
+ queue();
114
+ }
115
+ if (document.body) mount(); else document.addEventListener('DOMContentLoaded', mount);
116
+ })();
@@ -0,0 +1,434 @@
1
+ /* The shared top bar, stack section and footer of the Space Data Network
2
+ family of sites, in both themes. The canonical copy lives in
3
+ spacedatanetwork.org docs/assets/sdn-chrome/; the other stack sites carry
4
+ verbatim copies. sdn-chrome.js wires the menu button, the theme switch and
5
+ the stack cards. Dark is the default; <html data-theme="light"> is light.
6
+ A site without its own light palette sets <html data-sdn-light="invert">:
7
+ its light theme is the dark design inverted, with photos, video, canvases,
8
+ reels and the AI credits turned back so they keep their real colors. */
9
+
10
+ :root {
11
+ --sdn-c-bar: rgba(0, 0, 0, 0.8);
12
+ --sdn-c-menu: rgba(0, 0, 0, 0.95);
13
+ --sdn-c-ink: #f5f5f7;
14
+ --sdn-c-ink-soft: rgba(245, 245, 247, 0.8);
15
+ --sdn-c-muted: #8e8e93;
16
+ --sdn-c-line: rgba(255, 255, 255, 0.1);
17
+ --sdn-c-line-strong: rgba(255, 255, 255, 0.22);
18
+ --sdn-c-card: rgba(28, 28, 30, 0.72);
19
+ --sdn-c-card-hover: rgba(40, 40, 44, 0.85);
20
+ --sdn-c-accent: #f5a524;
21
+ --sdn-c-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='tail' gradientUnits='userSpaceOnUse' x1='16' y1='29' x2='16' y2='3'%3E%3Cstop offset='0' stop-color='%23f5a524' stop-opacity='0'/%3E%3Cstop offset='.55' stop-color='%23f5a524' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%23f5a524'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='16' cy='16' r='13' stroke='%23f5f5f7' stroke-width='1.6' opacity='.3'/%3E%3Cpath d='M16 29A13 13 0 0 1 16 3' stroke='url(%23tail)' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M16 10.2L10.4 20.1H21.6Z' stroke='%23f5f5f7' stroke-width='1.6' stroke-linejoin='round'/%3E%3Ccircle cx='16' cy='10.2' r='2.6' fill='%23f5f5f7'/%3E%3Ccircle cx='10.4' cy='20.1' r='2.6' fill='%23f5f5f7'/%3E%3Ccircle cx='21.6' cy='20.1' r='2.6' fill='%23f5f5f7'/%3E%3Ccircle cx='16' cy='3' r='2.5' fill='%23f5a524'/%3E%3C/svg%3E");
22
+ --sdn-c-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
23
+ }
24
+
25
+ :root[data-theme="light"]:not([data-sdn-light="invert"]) {
26
+ --sdn-c-bar: rgba(250, 250, 252, 0.88);
27
+ --sdn-c-menu: rgba(250, 250, 252, 0.97);
28
+ --sdn-c-ink: #1d1d1f;
29
+ --sdn-c-ink-soft: rgba(29, 29, 31, 0.8);
30
+ --sdn-c-muted: #6e6e73;
31
+ --sdn-c-line: rgba(0, 0, 0, 0.1);
32
+ --sdn-c-line-strong: rgba(0, 0, 0, 0.2);
33
+ --sdn-c-card: rgba(255, 255, 255, 0.78);
34
+ --sdn-c-card-hover: rgba(255, 255, 255, 0.95);
35
+ --sdn-c-accent: #c77d00;
36
+ --sdn-c-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='tail' gradientUnits='userSpaceOnUse' x1='16' y1='29' x2='16' y2='3'%3E%3Cstop offset='0' stop-color='%23c77d00' stop-opacity='0'/%3E%3Cstop offset='.55' stop-color='%23c77d00' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%23c77d00'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='16' cy='16' r='13' stroke='%231d1d1f' stroke-width='1.6' opacity='.25'/%3E%3Cpath d='M16 29A13 13 0 0 1 16 3' stroke='url(%23tail)' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M16 10.2L10.4 20.1H21.6Z' stroke='%231d1d1f' stroke-width='1.6' stroke-linejoin='round'/%3E%3Ccircle cx='16' cy='10.2' r='2.6' fill='%231d1d1f'/%3E%3Ccircle cx='10.4' cy='20.1' r='2.6' fill='%231d1d1f'/%3E%3Ccircle cx='21.6' cy='20.1' r='2.6' fill='%231d1d1f'/%3E%3Ccircle cx='16' cy='3' r='2.5' fill='%23c77d00'/%3E%3C/svg%3E");
37
+ }
38
+
39
+ /* Light by inversion. Media are inverted a second time, which restores them. */
40
+ :root[data-theme="light"][data-sdn-light="invert"] {
41
+ filter: invert(1) hue-rotate(180deg);
42
+ }
43
+ :root[data-theme="light"][data-sdn-light="invert"] :is(img, video, canvas, iframe, picture, .reel-frame, .ai-credits, [data-sdn-keep-dark]):not(:is(picture, .reel-frame, .ai-credits, [data-sdn-keep-dark]) *) {
44
+ filter: invert(1) hue-rotate(180deg);
45
+ }
46
+ /* Background footage and other dark-only decoration leave in light. */
47
+ :root[data-theme="light"] [data-sdn-dark-only] {
48
+ display: none !important;
49
+ }
50
+
51
+ /* ------------------------------------------------------------- top bar */
52
+
53
+ .sdn-header {
54
+ position: fixed;
55
+ top: 0;
56
+ left: 0;
57
+ right: 0;
58
+ z-index: 9999;
59
+ height: var(--sdn-stack-header-height, 52px);
60
+ box-sizing: border-box;
61
+ background: var(--sdn-c-bar);
62
+ border-bottom: 1px solid var(--sdn-c-line);
63
+ -webkit-backdrop-filter: blur(20px) saturate(140%);
64
+ backdrop-filter: blur(20px) saturate(140%);
65
+ color: var(--sdn-c-ink);
66
+ font-family: var(--sdn-c-sans);
67
+ line-height: 1;
68
+ -webkit-user-select: none;
69
+ user-select: none;
70
+ }
71
+ /* Pages that lay the bar out in their own flow: it sticks to the top. */
72
+ .sdn-header.sdn-header-inflow {
73
+ position: sticky;
74
+ }
75
+ .sdn-header *,
76
+ .sdn-menu * {
77
+ -webkit-user-select: none;
78
+ user-select: none;
79
+ -webkit-user-drag: none;
80
+ }
81
+ .sdn-header-inner {
82
+ display: flex;
83
+ align-items: center;
84
+ gap: 16px;
85
+ max-width: 1200px;
86
+ height: 100%;
87
+ margin: 0 auto;
88
+ padding: 0 24px;
89
+ box-sizing: border-box;
90
+ }
91
+ .sdn-header .sdn-header-brand {
92
+ display: flex;
93
+ align-items: center;
94
+ gap: 10px;
95
+ min-width: 0;
96
+ color: var(--sdn-c-ink);
97
+ font-size: var(--sdn-stack-header-brand-size, 15px);
98
+ font-weight: 600;
99
+ letter-spacing: 0.01em;
100
+ text-decoration: none;
101
+ white-space: nowrap;
102
+ }
103
+ .sdn-header .sdn-header-brand::before,
104
+ .sdn-footer .sdn-footer-brand::before {
105
+ content: "";
106
+ flex: none;
107
+ width: 22px;
108
+ height: 22px;
109
+ background: var(--sdn-c-mark) center / contain no-repeat;
110
+ }
111
+ .sdn-header .sdn-header-brand span {
112
+ overflow: hidden;
113
+ text-overflow: ellipsis;
114
+ }
115
+ .sdn-header-links {
116
+ display: flex;
117
+ align-items: center;
118
+ gap: 16px;
119
+ margin-left: auto;
120
+ }
121
+ .sdn-header .sdn-header-links a {
122
+ padding: 8px 0;
123
+ color: var(--sdn-c-ink-soft);
124
+ font-size: var(--sdn-stack-header-link-size, 14px);
125
+ font-weight: 500;
126
+ text-decoration: none;
127
+ white-space: nowrap;
128
+ transition: color 0.2s;
129
+ }
130
+ .sdn-header .sdn-header-links a:hover,
131
+ .sdn-header .sdn-header-links a.active,
132
+ .sdn-header .sdn-header-links a[aria-current] {
133
+ color: var(--sdn-c-ink);
134
+ }
135
+ .sdn-header-divider {
136
+ width: 1px;
137
+ height: 16px;
138
+ background: var(--sdn-c-line-strong);
139
+ }
140
+ .sdn-header-actions {
141
+ display: flex;
142
+ flex: none;
143
+ align-items: center;
144
+ gap: 4px;
145
+ }
146
+ .sdn-header-links + .sdn-header-actions {
147
+ margin-left: 4px;
148
+ }
149
+ .sdn-header-inner > .sdn-header-actions:nth-child(2) {
150
+ margin-left: auto;
151
+ }
152
+ .sdn-icon-button {
153
+ display: inline-grid;
154
+ place-items: center;
155
+ width: 36px;
156
+ height: 36px;
157
+ margin: 0;
158
+ padding: 0;
159
+ border: 0;
160
+ border-radius: 999px;
161
+ background: none;
162
+ color: var(--sdn-c-ink-soft);
163
+ cursor: pointer;
164
+ -webkit-tap-highlight-color: transparent;
165
+ touch-action: manipulation;
166
+ transition: color 0.2s, background-color 0.2s;
167
+ }
168
+ .sdn-icon-button:hover {
169
+ color: var(--sdn-c-ink);
170
+ background: var(--sdn-c-line);
171
+ }
172
+ .sdn-icon-button:focus-visible {
173
+ outline: 2px solid var(--sdn-c-accent);
174
+ outline-offset: 2px;
175
+ }
176
+ .sdn-icon-button svg {
177
+ width: 20px;
178
+ height: 20px;
179
+ }
180
+ .sdn-theme-toggle .sdn-moon,
181
+ :root[data-theme="light"] .sdn-theme-toggle .sdn-sun,
182
+ .sdn-menu-button .sdn-close,
183
+ .sdn-header.is-menu-open .sdn-menu-button .sdn-open {
184
+ display: none;
185
+ }
186
+ :root[data-theme="light"] .sdn-theme-toggle .sdn-moon,
187
+ .sdn-header.is-menu-open .sdn-menu-button .sdn-close {
188
+ display: block;
189
+ }
190
+ .sdn-menu-button {
191
+ display: none;
192
+ }
193
+
194
+ /* The menu below the bar on narrow screens: the bar's links, one per row. */
195
+ .sdn-menu {
196
+ display: none;
197
+ position: fixed;
198
+ top: var(--sdn-stack-header-height, 52px);
199
+ left: 0;
200
+ right: 0;
201
+ bottom: 0;
202
+ z-index: 9998;
203
+ flex-direction: column;
204
+ gap: 8px;
205
+ padding: 24px;
206
+ overflow-y: auto;
207
+ background: var(--sdn-c-menu);
208
+ -webkit-backdrop-filter: blur(20px);
209
+ backdrop-filter: blur(20px);
210
+ font-family: var(--sdn-c-sans);
211
+ }
212
+ .sdn-menu.is-open {
213
+ display: flex;
214
+ }
215
+ .sdn-menu a {
216
+ padding: 16px 0;
217
+ border-bottom: 1px solid var(--sdn-c-line);
218
+ color: var(--sdn-c-ink-soft);
219
+ font-size: var(--sdn-stack-header-mobile-link-size, 16px);
220
+ font-weight: 500;
221
+ line-height: 1.2;
222
+ text-decoration: none;
223
+ }
224
+ .sdn-menu a:last-child {
225
+ border-bottom: 0;
226
+ }
227
+ .sdn-menu a:hover,
228
+ .sdn-menu a.active,
229
+ .sdn-menu a[aria-current] {
230
+ color: var(--sdn-c-ink);
231
+ }
232
+
233
+ @media (max-width: 1200px) {
234
+ .sdn-header-links {
235
+ gap: 12px;
236
+ }
237
+ }
238
+ @media (max-width: 1000px) {
239
+ .sdn-header-links {
240
+ gap: 10px;
241
+ }
242
+ }
243
+ @media (max-width: 900px) {
244
+ .sdn-header-inner {
245
+ padding: 0 16px;
246
+ }
247
+ .sdn-header-links {
248
+ display: none;
249
+ }
250
+ .sdn-header-inner > .sdn-header-actions {
251
+ margin-left: auto;
252
+ }
253
+ .sdn-menu-button {
254
+ display: inline-grid;
255
+ }
256
+ }
257
+ @media (max-width: 480px) {
258
+ .sdn-header-inner {
259
+ gap: 10px;
260
+ }
261
+ }
262
+
263
+ /* ------------------------------------------------------- stack section */
264
+
265
+ .sdn-stack {
266
+ padding: 72px 20px;
267
+ color: var(--sdn-c-ink);
268
+ font-family: var(--sdn-c-sans);
269
+ text-align: left;
270
+ }
271
+ .sdn-stack-inner {
272
+ max-width: 1120px;
273
+ margin: 0 auto;
274
+ }
275
+ .sdn-stack .sdn-stack-eyebrow,
276
+ .sdn-stack .sdn-stack-title {
277
+ text-align: center;
278
+ }
279
+ .sdn-stack .sdn-stack-eyebrow {
280
+ margin: 0 0 12px;
281
+ color: var(--sdn-c-accent);
282
+ font-size: 12px;
283
+ font-weight: 600;
284
+ letter-spacing: 0.12em;
285
+ line-height: 1.4;
286
+ text-transform: uppercase;
287
+ }
288
+ .sdn-stack .sdn-stack-title {
289
+ margin: 0 0 32px;
290
+ color: var(--sdn-c-ink);
291
+ font-size: clamp(28px, 4vw, 40px);
292
+ font-weight: 700;
293
+ letter-spacing: -0.02em;
294
+ line-height: 1.1;
295
+ }
296
+ .sdn-stack-grid {
297
+ display: grid;
298
+ grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
299
+ gap: 16px;
300
+ }
301
+ .sdn-stack .sdn-stack-card {
302
+ display: flex;
303
+ flex-direction: column;
304
+ min-width: 0;
305
+ padding: 24px;
306
+ box-sizing: border-box;
307
+ border: 1px solid var(--sdn-c-line);
308
+ border-radius: 20px;
309
+ background: var(--sdn-c-card);
310
+ -webkit-backdrop-filter: blur(12px);
311
+ backdrop-filter: blur(12px);
312
+ color: var(--sdn-c-ink);
313
+ text-decoration: none;
314
+ transition: border-color 0.2s, background-color 0.2s;
315
+ }
316
+ .sdn-stack a.sdn-stack-card:hover {
317
+ border-color: var(--sdn-c-line-strong);
318
+ background: var(--sdn-c-card-hover);
319
+ }
320
+ .sdn-stack .sdn-stack-card[aria-current] {
321
+ border-color: var(--sdn-c-accent);
322
+ }
323
+ .sdn-stack-card-head {
324
+ display: flex;
325
+ align-items: center;
326
+ gap: 12px;
327
+ margin-bottom: 12px;
328
+ }
329
+ .sdn-stack-card-head svg {
330
+ flex: none;
331
+ width: 24px;
332
+ height: 24px;
333
+ color: var(--sdn-c-accent);
334
+ }
335
+ .sdn-stack .sdn-stack-card h3 {
336
+ margin: 0;
337
+ color: var(--sdn-c-ink);
338
+ font-size: 18px;
339
+ font-weight: 600;
340
+ letter-spacing: -0.01em;
341
+ line-height: 1.25;
342
+ }
343
+ .sdn-stack .sdn-stack-card p {
344
+ margin: 0;
345
+ color: var(--sdn-c-muted);
346
+ font-size: 14px;
347
+ line-height: 1.55;
348
+ }
349
+ .sdn-stack-foot {
350
+ display: flex;
351
+ flex-wrap: wrap;
352
+ align-items: center;
353
+ justify-content: space-between;
354
+ gap: 8px 12px;
355
+ margin-top: auto;
356
+ padding-top: 16px;
357
+ font-size: 13px;
358
+ line-height: 1.3;
359
+ }
360
+ .sdn-stack-more {
361
+ color: var(--sdn-c-ink);
362
+ font-weight: 500;
363
+ white-space: nowrap;
364
+ }
365
+ .sdn-stack-license {
366
+ margin-left: auto;
367
+ padding: 3px 10px;
368
+ border: 1px solid var(--sdn-c-line-strong);
369
+ border-radius: 999px;
370
+ color: var(--sdn-c-muted);
371
+ font-size: 12px;
372
+ white-space: nowrap;
373
+ }
374
+
375
+ /* --------------------------------------------------------------- footer */
376
+
377
+ .sdn-footer {
378
+ padding: 32px 20px;
379
+ border-top: 1px solid var(--sdn-c-line);
380
+ color: var(--sdn-c-muted);
381
+ font-family: var(--sdn-c-sans);
382
+ font-size: 13px;
383
+ line-height: 1.6;
384
+ text-align: left;
385
+ }
386
+ .sdn-footer-inner {
387
+ display: flex;
388
+ flex-wrap: wrap;
389
+ align-items: center;
390
+ justify-content: space-between;
391
+ gap: 16px 32px;
392
+ max-width: 1120px;
393
+ margin: 0 auto;
394
+ }
395
+ .sdn-footer .sdn-footer-brand {
396
+ display: flex;
397
+ align-items: center;
398
+ gap: 10px;
399
+ color: var(--sdn-c-ink);
400
+ font-size: 14px;
401
+ font-weight: 600;
402
+ text-decoration: none;
403
+ white-space: nowrap;
404
+ }
405
+ .sdn-footer .sdn-footer-brand::before {
406
+ width: 20px;
407
+ height: 20px;
408
+ }
409
+ .sdn-footer-links {
410
+ display: flex;
411
+ flex-wrap: wrap;
412
+ gap: 6px 20px;
413
+ }
414
+ .sdn-footer a {
415
+ color: var(--sdn-c-muted);
416
+ text-decoration: none;
417
+ transition: color 0.2s;
418
+ }
419
+ .sdn-footer a:hover {
420
+ color: var(--sdn-c-ink);
421
+ }
422
+ .sdn-footer .sdn-footer-legal {
423
+ flex-basis: 100%;
424
+ margin: 0;
425
+ color: var(--sdn-c-muted);
426
+ font-size: 12px;
427
+ }
428
+
429
+ @media print {
430
+ .sdn-header,
431
+ .sdn-menu {
432
+ display: none;
433
+ }
434
+ }