-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
243 lines (223 loc) · 11.1 KB
/
Copy pathindex.html
File metadata and controls
243 lines (223 loc) · 11.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Flow — A Conviction Doc</title>
<script src="https://cdn.jsdelivr.net/npm/markdown-it@14/dist/markdown-it.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/markdown-it-attrs@4/markdown-it-attrs.browser.js"></script>
<script type="module">
import mermaid from "https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs";
mermaid.initialize({ startOnLoad: false, theme: "neutral" });
const md = window.markdownit({ html: true, linkify: true }).use(window.markdownItAttrs);
async function render() {
for (const el of document.querySelectorAll("[data-md]")) {
const src = await fetch(el.dataset.md).then(r => r.text());
el.innerHTML = md.render(src);
}
for (const el of document.querySelectorAll("[data-mermaid]")) {
el.textContent = await fetch(el.dataset.mermaid).then(r => r.text());
el.classList.add("mermaid");
}
await mermaid.run();
document.dispatchEvent(new Event("doc:rendered"));
}
render();
</script>
<style>
:root {
--bg: #faf8f4; --paper: #fff; --ink: #1a1a1a; --ink-soft: #4a4a4a;
--ink-faint: #8a8a8a; --rule: #e6e1d8; --accent: #c4541e; --accent-soft: #fbeee5;
--settled: #2f6e3a; --leaning: #b8860b; --max: 760px; --bar-h: 52px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
background: var(--bg); color: var(--ink);
font-family: Georgia, "Times New Roman", serif;
font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
/* ---- sticky top bar ---- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--accent);
transform: scaleX(0); transform-origin: 0 50%; z-index: 60; transition: transform .08s linear; }
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(250,248,244,.92);
backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.bar-inner { max-width: var(--max); margin: 0 auto; height: var(--bar-h);
display: flex; align-items: center; gap: 14px; padding: 0 32px; }
.bar-mark { font-family: system-ui, sans-serif; font-weight: 700; font-size: 15px; letter-spacing: -.01em;
color: var(--ink); text-decoration: none; flex: none; }
.bar-mark span { color: var(--accent); }
.chipnav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
-webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); }
.chipnav::-webkit-scrollbar { display: none; }
.chipnav a { flex: none; scroll-snap-align: center; white-space: nowrap;
font-family: system-ui, sans-serif; font-size: 12.5px; color: var(--ink-faint);
text-decoration: none; padding: 6px 11px; border-radius: 999px; border: 1px solid transparent;
transition: color .15s, background .15s, border-color .15s; }
.chipnav a:hover { color: var(--ink); }
.chipnav a .n { font-variant-numeric: tabular-nums; opacity: .6; margin-right: 5px; }
.chipnav a.active { color: var(--accent); background: var(--accent-soft); border-color: #eed8c8; font-weight: 600; }
.chipnav a.active .n { opacity: 1; }
main { max-width: var(--max); margin: 0 auto; padding: 56px 32px 140px; }
header.doc { margin-bottom: 24px; }
.meta { font-family: system-ui, sans-serif; font-size: 11px; letter-spacing: .12em;
text-transform: uppercase; color: var(--ink-faint); margin-bottom: 28px; }
h1.title { font-weight: 400; font-size: 60px; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 20px; }
.deck { font-size: 22px; line-height: 1.45; color: var(--ink-soft); margin: 0 0 32px; max-width: 620px; }
.key { border: 1px solid var(--rule); background: var(--paper); padding: 16px 20px;
font-family: system-ui, sans-serif; font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.key b { color: var(--ink); }
section { margin: 60px 0; scroll-margin-top: calc(var(--bar-h) + 14px); }
.num { font-family: ui-monospace, monospace; font-size: 11px; color: var(--ink-faint); letter-spacing: .08em; }
h2 { font-weight: 400; font-size: 34px; line-height: 1.15; letter-spacing: -.01em; margin: 6px 0 20px; }
p { margin: 16px 0; }
.hero p:first-child { font-size: 26px; line-height: 1.25; color: var(--accent); margin-top: 8px; letter-spacing: -.01em; }
strong { color: var(--ink); }
ul, ol { padding-left: 22px; color: var(--ink-soft); }
li { margin: 8px 0; } li strong { color: var(--ink); }
code { font-family: ui-monospace, monospace; font-size: .88em; background: var(--paper);
border: 1px solid var(--rule); padding: 1px 5px; border-radius: 2px; }
pre { background: var(--paper); border: 1px solid var(--rule); padding: 16px; overflow-x: auto;
border-radius: 2px; font-size: 13px; line-height: 1.55; }
pre code { background: none; border: none; padding: 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 16px 0; }
th, td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-soft); }
th { font-family: system-ui, sans-serif; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
td:first-child { white-space: nowrap; font-family: ui-monospace, monospace; font-size: 12px; }
.mermaid { margin: 28px 0; text-align: center; }
footer { margin-top: 100px; padding-top: 28px; border-top: 1px solid var(--rule);
font-family: system-ui, sans-serif; font-size: 13px; color: var(--ink-faint);
display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--ink-soft); }
/* ---- color & utility classes usable from markdown via {.class} ---- */
.accent { color: var(--accent); }
.green { color: var(--settled); }
.warn { color: var(--leaning); }
.muted { color: var(--ink-faint); }
.lead { font-size: 1.12em; line-height: 1.4; color: var(--ink-soft); }
.badge { display: inline-block; font-family: system-ui, sans-serif; font-size: .62em; font-weight: 600;
letter-spacing: .09em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px;
vertical-align: middle; line-height: 1.5; }
.badge.settled { background: #e8f1ea; color: var(--settled); }
.badge.open { background: var(--accent-soft); color: var(--accent); }
.badge.warn { background: #fbf2dc; color: var(--leaning); }
@media (max-width: 640px) {
.bar-inner { padding: 0 16px; gap: 10px; }
main { padding: 36px 20px 90px; }
h1.title { font-size: 42px; } h2 { font-size: 26px; } .deck { font-size: 19px; }
.hero p:first-child { font-size: 21px; }
}
</style>
</head>
<body>
<div class="progress"></div>
<header class="topbar">
<div class="bar-inner">
<a class="bar-mark" href="#top">Flow<span>.</span></a>
<nav class="chipnav" id="chipnav">
<a href="#bet"><span class="n">01</span>The Bet</a>
<a href="#problem"><span class="n">02</span>Problem</a>
<a href="#principle"><span class="n">03</span>Principle</a>
<a href="#what"><span class="n">04</span>What Flow Is</a>
<a href="#how"><span class="n">05</span>How It Works</a>
<a href="#doc-types"><span class="n">06</span>Doc-Types</a>
<a href="#not"><span class="n">07</span>What It's Not</a>
<a href="#log"><span class="n">08</span>Decision Log</a>
<a href="#open"><span class="n">09</span>Open Qs</a>
<a href="#moves"><span class="n">10</span>First Moves</a>
</nav>
</div>
</header>
<main id="top">
<header class="doc">
<div class="meta">Conviction Doc · v0.1 · 2026-05-14 · Owner: Jason · Status: Sharpening</div>
<h1 class="title">Flow</h1>
<p class="deck">A working doc for the product. Every claim below is tagged with its conviction level so we know exactly where to push next.</p>
<div class="key">
<b>How to read this doc</b> — claims tagged <b>Settled</b> are load-bearing, don't touch; <b>Open</b> means active debate, push there.
</div>
</header>
<section id="bet">
<div class="num">§ 01</div>
<h2>The Bet</h2>
<div class="hero" data-md="sections/00-the-bet.md"></div>
</section>
<section id="problem">
<div class="num">§ 02</div>
<h2>The Problem</h2>
<div data-md="sections/10-the-problem.md"></div>
</section>
<section id="principle">
<div class="num">§ 03</div>
<h2>The Principle</h2>
<div class="hero" data-md="sections/20-the-principle.md"></div>
</section>
<section id="what">
<div class="num">§ 04</div>
<h2>What Flow Is</h2>
<div data-md="sections/30-what-flow-is.md"></div>
</section>
<section id="how">
<div class="num">§ 05</div>
<h2>How It Works</h2>
<div data-mermaid="diagrams/flow-chain.mermaid"></div>
<div data-md="sections/40-how-it-works.md"></div>
</section>
<section id="doc-types">
<div class="num">§ 06</div>
<h2>The Doc-Types</h2>
<div class="hero" data-md="sections/50-the-doc-types.md"></div>
</section>
<section id="not">
<div class="num">§ 07</div>
<h2>What Flow Is Not</h2>
<div data-md="sections/60-what-flow-is-not.md"></div>
</section>
<section id="log">
<div class="num">§ 08</div>
<h2>Decision Log</h2>
<div data-md="sections/70-decision-log.md"></div>
</section>
<section id="open">
<div class="num">§ 09</div>
<h2>Open Questions — Push Here</h2>
<div data-md="sections/80-open-questions.md"></div>
</section>
<section id="moves">
<div class="num">§ 10</div>
<h2>First Moves</h2>
<div data-md="sections/90-first-moves.md"></div>
</section>
<footer>
<div>Conviction Doc · format v0 · written for sharpening, not announcing</div>
<div>Companion read: <a href="../manual/index.html">The Manual</a></div>
</footer>
</main>
<script>
(function () {
var prog = document.querySelector('.progress');
function onScroll() {
var h = document.documentElement;
var max = h.scrollHeight - h.clientHeight;
prog.style.transform = 'scaleX(' + (max > 0 ? h.scrollTop / max : 0) + ')';
}
addEventListener('scroll', onScroll, { passive: true }); onScroll();
// active section -> highlight chip, keep it scrolled into view (key on mobile)
var chips = {};
document.querySelectorAll('.chipnav a').forEach(function (a) { chips[a.getAttribute('href').slice(1)] = a; });
function activate(id) {
Object.values(chips).forEach(function (c) { c.classList.remove('active'); });
var a = chips[id];
if (!a) return;
a.classList.add('active');
a.scrollIntoView({ inline: 'center', block: 'nearest', behavior: 'smooth' });
}
var obs = new IntersectionObserver(function (entries) {
entries.forEach(function (e) { if (e.isIntersecting) activate(e.target.id); });
}, { rootMargin: '-20% 0px -70% 0px' });
document.querySelectorAll('section[id]').forEach(function (s) { obs.observe(s); });
})();
</script>
</body>
</html>