commit ae2c99d71aee3c6b5efbd81f6782ebfbd4613243
Author: Alvin-Zilverstand <524715@vistacollege.nl>
Date: Mon Nov 9 14:57:00 2026 +0100
Initial commit
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..746087d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+dist/
+node_modules/
+*.log
diff --git a/app.js b/app.js
new file mode 100644
index 0000000..a3f48a5
--- /dev/null
+++ b/app.js
@@ -0,0 +1,78 @@
+import { profile, projects, processes, source } from './content.js';
+const main = document.querySelector('main');
+let lang = new URLSearchParams(location.search).get('lang') === 'en' ? 'en' : 'nl';
+const t = pair => pair[lang === 'nl' ? 0 : 1];
+const esc = value => String(value).replace(/[&<>"']/g, c => ({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]));
+const tx = pair => esc(t(pair));
+const ext = (url, label, cls = '') => `${label} ↗ `;
+const badge = text => `${esc(text)} `;
+const route = () => location.hash.slice(1) || 'home';
+const go = (id, label, cls = '') => `${label} `;
+function header() {
+ const current = route();
+ document.querySelector('#header').innerHTML = `
`;
+ document.querySelectorAll('[data-lang]').forEach(button => button.addEventListener('click', () => {
+ lang = button.dataset.lang;
+ const url = new URL(location.href); url.searchParams.set('lang', lang); history.replaceState(null, '', url);
+ render(false);
+ document.querySelector(`[data-lang="${lang}"]`).focus();
+ }));
+}
+function footer() {
+ document.querySelector('footer').innerHTML = `AZ / PORTFOLIO Alvin Zilverstand · VISTA college, Heerlen
${tx(['In ontwikkeling','Work in progress'])} / 2026 `;
+}
+function system(p, large = false) {
+ return `SYS.${p.number} ${tx(['SYSTEEMSCHEMA','SYSTEM MAP'])}
${p.nodes.map((node,i)=>`${i ? '
' : ''}
${['◫','⌘','▤'][i]} ${esc(node)} 0${i+1}
`).join('')}
${p.stack.slice(0,2).join(' / ')} CH.${p.challenge}
`;
+}
+function projectRow(p) {
+ return `/${p.number} CHALLENGE ${p.challenge} · ${tx(p.kind)}
${go(`project/${p.id}`,tx(p.name))} ${tx(p.intro)}
${p.stack.map(badge).join('')}
${go(`project/${p.id}`,`${tx(['Bekijk project','Explore project'])} ↗ `,'row-link')} `;
+}
+function home() {
+ const p = projects[0];
+ return ` SOFTWARE DEVELOPER / ${tx(['IN OPLEIDING','IN TRAINING'])}
${tx(['Van idee','From idea'])} ${tx(['naar iets','to something'])}${tx(['dat werkt.','that works.'])} ${tx(['Ik ben Alvin. Derdejaars Software Developer bij VISTA college in Heerlen. Hier laat ik zien wat ik bouw, hoe het in elkaar zit en wat ik nog leer.','I’m Alvin, a third-year Software Developer student at VISTA college in Heerlen. This is what I build, how it fits together, and what I’m still learning.'])}
${go('work',`${tx(['Ontdek mijn werk','Explore my work'])} ↗ `,'button primary')}${go('evidence',tx(['Naar de bewijsindex','View the evidence index']),'text-link')}
FIELDNOTES / 001 2024—2026
${system(p,true)}
01 / ${tx(p.name)} ${tx(['Van requirements naar reserveringen.','From requirements to reservations.'])}
${go('project/warehouse','↗','circle-link')}
${tx(['NU','NOW'])} VISTA college · Heerlen ${tx(['Leerjaar 3','Year 3'])}
+ 01 / ${tx(['SELECTIE','SELECTED'])}
${tx(['Werk met een verhaal.','Work with a story.'])} 03 ${tx(['PROJECTEN','PROJECTS'])} ${projects.map(projectRow).join('')}
+ 02 / ${tx(['VAN PROJECT NAAR BEWIJS','FROM PROJECT TO EVIDENCE'])}
${tx(['De code is het begin.','The code is the starting point.'])} ${tx(['Een project vertelt meer met de keuzes, documenten en tests ernaast. De bewijsindex verbindt die onderdelen met de acht beroepsspecifieke SBB-werkprocessen.','A project says more with its decisions, documents, and tests alongside it. The evidence index connects those artifacts to the eight vocational SBB work processes.'])}
${go('evidence',`${tx(['Open bewijsindex','Open evidence index'])} ↗`,'text-link')}
${[['01','SCOPE'],['02','DESIGN'],['03','BUILD'],['04','TEST']].map(([n,s])=>`
${n} ${s}
`).join('')}
`;
+}
+function work() {
+ return `01 / ${tx(['PROJECTARCHIEF','PROJECT ARCHIVE'])}
${tx(['Gebouwd. Getest.','Built. Tested.'])}${tx(['Verder geleerd.','Still learning.'])} ${tx(['Drie schoolprojecten, bekeken vanuit het probleem, de uitvoering en het beschikbare bewijs. De broncode blijft één klik verder.','Three school projects, through their problems, implementation, and available evidence. The source code is always one click away.'])}
${projects.map(p=>`${system(p)}${projectRow(p)}
`).join('')} ${ext(profile.school,tx(['Bekijk het volledige schoolarchief','Browse the full school archive']),'text-link')}
`;
+}
+function detail(p) {
+ return `${go('work',`← ${tx(['Alle projecten','All projects'])}`,'back-link')}PROJECT ${p.number} / CHALLENGE ${p.challenge}
${tx(p.name)}. ${tx(p.intro)}
${p.stack.map(badge).join('')}
${system(p,true)}${[[['De opdracht','The assignment'],p.context],[['Hoe het is opgebouwd','How it is built'],p.implementation],[['Keuzes & aandachtspunten','Decisions & considerations'],p.decisions]].map(([title,body],i)=>`
0${i+1}
${tx(title)} ${tx(body)}
`).join('')}
04
${tx(['Bronnen & bewijs','Sources & evidence'])} ${tx(['Dit zijn gevonden bronnen, geen goedgekeurde examenbewijzen. Documentinhoud en testresultaten moeten nog worden gecontroleerd.','These are located sources, not approved exam evidence. Document contents and test results still need review.'])}
${p.evidence.map(e=>ext(source(e.path,e.directory),`${e.type} ${tx(e.label)} `)).join('')}
05 / ${tx(['PERSOONLIJKE REFLECTIE','PERSONAL REFLECTION'])}
${tx(['Het verhaal achter mijn bijdrage.','The story behind my contribution.'])} ${tx(['Nog aan te vullen door Alvin: welke onderdelen heb ik zelf gemaakt, met wie werkte ik samen, welke feedback kreeg ik en wat zou ik anders doen?','To be completed by Alvin: which parts did I build myself, who did I work with, what feedback did I receive, and what would I do differently?'])}
${p.codes.map(c=>go(`evidence/${c}`,c,'tag')).join('')}
`;
+}
+function evidence(filter = '') {
+ const selected = processes.some(p=>p.code === filter) ? filter : '';
+ return `02 / ${tx(['EXAMENPORTFOLIO','EXAM PORTFOLIO'])}
${tx(['Van werk','From work'])}${tx(['naar bewijs.','to evidence.'])} ${tx(['Bronnen per werkproces. Een navigeerbare voorbereiding op mijn examen, met zichtbaar onderscheid tussen gevonden materiaal en wat nog ontbreekt.','Sources by work process. A navigable preparation for my exam, making the distinction between located material and missing evidence visible.'])}
${tx(['In opbouw. Koppelingen zijn voorlopig; aanwezigheid van code of een document bewijst nog geen beheersing. Persoonlijke bijdrage, resultaten en beoordeling moeten worden toegevoegd. Stem de definitieve bewijslast af met de examinator.','In progress. Mappings are provisional; code or a document alone does not demonstrate competence. Personal contributions, results, and assessment need to be added. Agree the final evidence requirements with the examiner.'])}
${processes.filter(p=>!selected||p.code===selected).map(processRow).join('')} SBB / 25998 / 2024
${tx(['Deze index volgt de acht beroepsspecifieke werkprocessen uit het gekoppelde dossier. Generieke vakken, keuzedelen en VISTA-examenafspraken vallen buiten deze index. Engelse labels zijn eigen vertalingen.','This index follows the eight vocational work processes in the linked qualification. General subjects, electives, and VISTA exam arrangements are outside this index. English labels are informal translations.'])}
${ext(profile.qualification,tx(['Lees het officiële kwalificatiedossier','Read the official qualification document']),'text-link')}
`;
+}
+function processRow(p) {
+ const found = projects.flatMap(project=>project.evidence.filter(e=>e.codes.includes(p.code)).map(e=>({project,e})));
+ return `${p.code} ${tx(p.title)} ${found.length ? `${found.length} ${tx(['bronnen','sources'])}` : tx(['Aanvullen','To add'])} + ${tx(p.description)}
${found.length?`
${found.map(({project,e})=>`
${ext(source(e.path,e.directory),`${e.type} ${tx(e.label)} `)}${go(`project/${project.id}`,tx(project.name),'evidence-project')}
`).join('')}
${tx(['Te controleren: inhoud, eigen bijdrage en geschiktheid voor het examen.','To verify: contents, personal contribution, and suitability for the exam.'])}
`:`
${tx(['Nog geen bewijs geselecteerd. Voeg een eigen document, feedback of een concreet projectvoorbeeld toe.','No evidence selected yet. Add your own document, feedback, or a specific project example.'])}
`}
`;
+}
+function about() {
+ return `03 / ${tx(['OVER MIJ','ABOUT ME'])}
AlvinZilverstand. ${tx(['Software Developer in opleiding. Derdejaars bij VISTA college in Heerlen.','Software Developer in training. Third-year student at VISTA college in Heerlen.'])}
${tx(['Leren door te bouwen.','Learning by building.'])} ${tx(['Mijn schoolwerk loopt uiteen van websites en PHP-applicaties tot een magazijnsysteem en narrowcasting. Dit portfolio brengt de projecten en de bijbehorende bronnen bij elkaar.','My schoolwork ranges from websites and PHP applications to a warehouse system and narrowcasting. This portfolio brings those projects and their sources together.'])}
${tx(['Ik bouw dit portfolio voor mijn eindexamen. Daarna wil ik het verder gebruiken om mijn werk aan toekomstige werkgevers te laten zien.','I’m building this portfolio for my final exam. After that, I want to keep using it to show my work to future employers.'])}
${tx(['Opleiding','Course'])} Software Developer
Campus VISTA · Heerlen
${tx(['Studiefase','Study stage'])} ${tx(['Leerjaar 3','Year 3'])}
${tx(['Werk & broncode','Work & source'])} GitHub + Gitea
`;
+}
+function render(focus = false) {
+ document.documentElement.lang = lang;
+ header(); footer();
+ const r = route();
+ let title = t(['Portfolio','Portfolio']);
+ if (r === 'home') main.innerHTML = home();
+ else if (r === 'work') { main.innerHTML = work(); title = t(['Werk','Work']); }
+ else if (r === 'about') { main.innerHTML = about(); title = t(['Over mij','About']); }
+ else if (r === 'evidence' || r.startsWith('evidence/')) {
+ main.innerHTML = evidence(r.split('/')[1]); title = t(['Bewijsindex','Evidence index']);
+ document.querySelector('#process-filter').addEventListener('change', e => { location.hash = e.target.value ? `evidence/${e.target.value}` : 'evidence'; });
+ document.querySelector('#print').addEventListener('click', () => { document.querySelectorAll('.process').forEach(d=>d.open=true); window.print(); });
+ } else {
+ const p = projects.find(p=>r === `project/${p.id}`);
+ if (p) { main.innerHTML = detail(p); title = t(p.name); }
+ else main.innerHTML = `404 ${tx(['Deze pagina bestaat niet.','This page does not exist.'])}
${go('home',tx(['Terug naar het begin','Back to home']),'button')} `;
+ }
+ document.title = `${title} — Alvin Zilverstand`;
+ if (focus) { main.focus({preventScroll:true}); window.scrollTo(0,0); }
+}
+window.addEventListener('hashchange',()=>render(true));
+render();
diff --git a/content.js b/content.js
new file mode 100644
index 0000000..fb668cf
--- /dev/null
+++ b/content.js
@@ -0,0 +1,77 @@
+// Edit portfolio content here. Text pairs are [Dutch, English].
+export const profile = {
+ name: 'Alvin Zilverstand',
+ github: 'https://github.com/Alvin-Zilverstand',
+ gitea: 'https://codealvin.xyz/Alvin-Zilverstand',
+ school: 'https://github.com/Alvin-Zilverstand/school',
+ qualification: 'https://kwalificatie-mijn.s-bb.nl/Details/DownloadDocument/1963420',
+ reviewed: '2026-11-09',
+};
+export const revision = 'd420c317abcbd117e0e1dd641674ab3283ab34ba';
+export const source = (path, directory = false) => `${profile.school}/${directory ? 'tree' : 'blob'}/${revision}/${path.split('/').map(encodeURIComponent).join('/')}`;
+const warehouse = 'projects/year_02/challenge_15/Challenge_15_Magazijn_App_Maken';
+const planning = 'projects/year_02/challenge_14/Challenge_14_Magazijn_App_plannen';
+const refactor = 'projects/year_02/challenge_13/Messy-coder-Verbeterd';
+const screens = 'projects/year_02/challenge_18/narrow_casting_system';
+export const projects = [
+ {
+ id: 'warehouse', number: '01', challenge: '14 + 15', kind: ['Webapplicatie', 'Web application'],
+ title: ['Van aanvraag tot uitgifte.', 'From request to checkout.'], name: ['Magazijnbeheer', 'Warehouse management'],
+ intro: ['Een schoolmagazijn met artikelen, reserveringen en aparte schermen voor studenten en beheerders. Van de eerste requirements naar een applicatie met een database.', 'A school warehouse with items, reservations, and separate interfaces for students and administrators. From initial requirements to a database-backed application.'],
+ stack: ['JavaScript', 'Node.js', 'Express', 'MongoDB'], codes: ['B1-K1-W1', 'B1-K1-W2', 'B1-K1-W3'],
+ path: warehouse,
+ context: ['Challenges 14 en 15 vormen samen een traject van voorbereiding naar realisatie. De schoolrepository bevat klantgesprekken, requirements, een concept en de applicatie.', 'Challenges 14 and 15 connect preparation with implementation. The school repository contains client interviews, requirements, a concept, and the application.'],
+ implementation: ['De Express-server koppelt routes voor accounts, artikelen, reserveringen en uploads aan MongoDB via Mongoose. De frontend bevat afzonderlijke pagina’s voor student- en beheertaken.', 'The Express server connects account, item, reservation, and upload routes to MongoDB through Mongoose. The frontend has separate pages for student and administrator tasks.'],
+ decisions: ['De scheiding tussen artikelen en reserveringen is zichtbaar in zowel de datamodellen als de API-routes. Daarmee is de relatie tussen de gebruikershandeling en de opgeslagen gegevens te volgen in de broncode.', 'Items and reservations are separated in both data models and API routes. This makes it possible to trace a user action to its stored data in the source code.'],
+ nodes: ['Browser', 'Express API', 'MongoDB'],
+ evidence: [
+ { label: ['Requirements & voorbereiding', 'Requirements & preparation'], path: `${planning}/Documentatie/documenten`, directory: true, type: 'DOCX', codes: ['B1-K1-W1', 'B1-K1-W2'] },
+ { label: ['Interactief concept', 'Interactive concept'], path: `${planning}/concept`, directory: true, type: 'HTML', codes: ['B1-K1-W2'] },
+ { label: ['Server & API-routes', 'Server & API routes'], path: `${warehouse}/server.js`, type: 'JS', codes: ['B1-K1-W3'] },
+ { label: ['Artikelen en reserveringen', 'Items and reservations'], path: `${warehouse}/models`, directory: true, type: 'JS', codes: ['B1-K1-W3'] },
+ ],
+ },
+ {
+ id: 'narrowcasting', number: '02', challenge: '18', kind: ['Ged istribueerd systeem'.replace('Ged is', 'Gedis'), 'Distributed system'],
+ title: ['Eén bron. Meerdere schermen.', 'One source. Multiple screens.'], name: ['SnowWorld narrowcasting', 'SnowWorld narrowcasting'],
+ intro: ['Een narrowcastingproject voor content op verschillende schermen. Een beheeromgeving, een backend en een schermclient hebben ieder een eigen rol.', 'A narrowcasting project for content across multiple displays. An administration interface, backend, and display client each have a separate role.'],
+ stack: ['JavaScript', 'Node.js', 'WebSocket', 'SQLite'], codes: ['B1-K1-W2', 'B1-K1-W3', 'B1-K1-W4'], path: screens,
+ context: ['Een schoolchallenge rond schermcontent voor SnowWorld. De README beschrijft zonegebonden content en planning. Dit portfolio toont het schoolproject; ingebruikname bij het bedrijf is niet bevestigd.', 'A school challenge around display content for SnowWorld. The README describes zone-specific content and scheduling. This portfolio presents the school project; use by the company has not been confirmed.'],
+ implementation: ['De repository verdeelt het systeem in backend, admin en client. De documentatie beschrijft WebSocket-updates en SQLite-opslag. Er zijn scripts voor systeem- en robuustheidstests aanwezig.', 'The repository separates backend, admin, and client. Its documentation describes WebSocket updates and SQLite storage. System and robustness test scripts are present.'],
+ decisions: ['De aparte schermclient maakt het verschil tussen content beheren en content afspelen zichtbaar. De systeemindeling is terug te vinden in de mappenstructuur en de projectdocumentatie.', 'A separate display client makes the distinction between managing content and playing content explicit. The folder structure and project documentation reflect this separation.'],
+ nodes: ['Admin', 'Backend', 'Display clients'],
+ evidence: [
+ { label: ['Architectuur & projectbeschrijving', 'Architecture & project description'], path: `${screens}/README.md`, type: 'MD', codes: ['B1-K1-W2'] },
+ { label: ['Implementatie', 'Implementation'], path: screens, directory: true, type: 'JS', codes: ['B1-K1-W3'] },
+ { label: ['Systeemtestscript', 'System test script'], path: `${screens}/test_system.js`, type: 'JS', codes: ['B1-K1-W4'] },
+ { label: ['Robuustheidstestscript', 'Robustness test script'], path: `${screens}/test_robust.js`, type: 'JS', codes: ['B1-K1-W4'] },
+ ],
+ },
+ {
+ id: 'refactoring', number: '03', challenge: '13', kind: ['Onderhoud & kwaliteit', 'Maintenance & quality'],
+ title: ['Bestaande code, opnieuw bekeken.', 'Existing code, reconsidered.'], name: ['Messy Coder', 'Messy Coder'],
+ intro: ['Een bestaande PHP-portfoliosite als vertrekpunt voor refactoring. Met broncode, een opinieverslag en een testdocument in dezelfde projectmap.', 'An existing PHP portfolio as a starting point for refactoring. With source code, a review document, and a test document in the same project folder.'],
+ stack: ['PHP', 'CSS', 'JavaScript', 'SQL'], codes: ['B1-K1-W3', 'B1-K1-W4', 'B1-K1-W5'], path: refactor,
+ context: ['Challenge 13 richt zich op het analyseren en verbeteren van een bestaande codebase. De naam Lorenzo von Matterhorn hoort bij het aangeleverde oefenportfolio, niet bij mij.', 'Challenge 13 focuses on analysing and improving an existing codebase. Lorenzo von Matterhorn is the name in the exercise portfolio, not my identity.'],
+ implementation: ['De projectmap bevat PHP-pagina’s, een databasebestand, CSS en JavaScript. De begeleidende documenten bieden aanknopingspunten om de analyse en testaanpak naast de code te beoordelen.', 'The project folder contains PHP pages, a database file, CSS, and JavaScript. Its accompanying documents provide starting points for reviewing the analysis and testing approach alongside the code.'],
+ decisions: ['Bij dit project is het verschil tussen de uitgangssituatie en de verbeterde versie belangrijk. Concrete voor-en-na-voorbeelden en een onderbouwde persoonlijke reflectie moeten nog worden toegevoegd.', 'For this project, the difference between the starting point and the improved version matters. Specific before-and-after examples and a substantiated personal reflection still need to be added.'],
+ nodes: ['Review', 'Refactor', 'Test'],
+ evidence: [
+ { label: ['Opdrachtcontext', 'Assignment context'], path: 'projects/year_02/challenge_13/README.md', type: 'MD', codes: ['B1-K1-W5'] },
+ { label: ['PHP-implementatie', 'PHP implementation'], path: refactor, directory: true, type: 'PHP', codes: ['B1-K1-W3'] },
+ { label: ['Testdocument', 'Test document'], path: `${refactor}/documents/Testrapport Portfoliowebsite (1).docx`, type: 'DOCX', codes: ['B1-K1-W4'] },
+ { label: ['Opinieverslag', 'Review document'], path: `${refactor}/documents/Opinieverslag portfolio Lorenzo von Matterhorn.docx`, type: 'DOCX', codes: ['B1-K1-W5'] },
+ ],
+ },
+];
+// These are navigation labels, not a replacement for the official assessment rubric.
+export const processes = [
+ ['B1-K1-W1', ['Afstemmen & plannen', 'Scope & planning'], ['Opdracht, afspraken, planning en voortgang aantonen.', 'Show the assignment, agreements, planning, and progress.']],
+ ['B1-K1-W2', ['Technisch ontwerpen', 'Technical design'], ['Ontwerpkeuzes verbinden aan requirements.', 'Connect design decisions to requirements.']],
+ ['B1-K1-W3', ['Software realiseren', 'Software implementation'], ['Eigen bijdrage onderbouwen met concrete code.', 'Substantiate your contribution with specific code.']],
+ ['B1-K1-W4', ['Software testen', 'Software testing'], ['Testaanpak, uitvoering en resultaten vastleggen.', 'Document the test approach, execution, and results.']],
+ ['B1-K1-W5', ['Verbeteringen voorstellen', 'Proposing improvements'], ['Bevindingen vertalen naar onderbouwde verbeteringen.', 'Turn findings into substantiated improvements.']],
+ ['B1-K2-W1', ['Samenwerken', 'Teamwork'], ['Rolverdeling, afstemming en eigen bijdrage vastleggen.', 'Document roles, coordination, and your contribution.']],
+ ['B1-K2-W2', ['Werk presenteren', 'Presenting work'], ['Presentatie en ontvangen feedback toevoegen.', 'Add a presentation and the feedback received.']],
+ ['B1-K2-W3', ['Samenwerking evalueren', 'Evaluating collaboration'], ['Reflecteren op samenwerking en vervolgstappen.', 'Reflect on collaboration and next steps.']],
+].map(([code, title, description]) => ({ code, title, description }));
diff --git a/favicon.svg b/favicon.svg
new file mode 100644
index 0000000..7aef249
--- /dev/null
+++ b/favicon.svg
@@ -0,0 +1 @@
+
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..5554557
--- /dev/null
+++ b/index.html
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+ Alvin Zilverstand — Software Developer
+
+
+
+
+
+ Skip to content / Naar inhoud
+
+
+
+ JavaScript is nodig voor de project- en bewijsindex. Bekijk de bronprojecten op GitHub .
+
+
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..344e300
--- /dev/null
+++ b/package.json
@@ -0,0 +1,11 @@
+{
+ "name": "alvin-portfolio",
+ "private": true,
+ "type": "module",
+ "scripts": {
+ "dev": "node scripts/serve.mjs",
+ "build": "node scripts/build.mjs",
+ "test": "node --test tests/*.test.mjs"
+ },
+ "engines": { "node": ">=22" }
+}
diff --git a/scripts/build.mjs b/scripts/build.mjs
new file mode 100644
index 0000000..fe796c3
--- /dev/null
+++ b/scripts/build.mjs
@@ -0,0 +1,6 @@
+import { mkdir, copyFile } from 'node:fs/promises';
+await mkdir('dist', { recursive: true });
+for (const file of ['index.html', 'styles.css', 'app.js', 'content.js', 'favicon.svg']) {
+ await copyFile(file, `dist/${file}`);
+}
+console.log('Built static site in dist/');
diff --git a/scripts/serve.mjs b/scripts/serve.mjs
new file mode 100644
index 0000000..a89d74e
--- /dev/null
+++ b/scripts/serve.mjs
@@ -0,0 +1,14 @@
+import { createServer } from 'node:http';
+import { readFile } from 'node:fs/promises';
+const port = Number(process.env.PORT || 4173);
+const files = new Map([['/', 'index.html'], ['/index.html', 'index.html'], ['/styles.css', 'styles.css'], ['/app.js', 'app.js'], ['/content.js', 'content.js'], ['/favicon.svg', 'favicon.svg']]);
+const mime = { html: 'text/html', css: 'text/css', js: 'text/javascript', svg: 'image/svg+xml' };
+createServer(async (req, res) => {
+ const file = files.get(new URL(req.url, 'http://localhost').pathname);
+ if (!file) { res.writeHead(404); return res.end('Not found'); }
+ try {
+ const body = await readFile(new URL(`../${file}`, import.meta.url));
+ res.writeHead(200, { 'Content-Type': `${mime[file.split('.').pop()]}; charset=utf-8`, 'Cache-Control': 'no-cache', 'X-Content-Type-Options': 'nosniff' });
+ res.end(body);
+ } catch { res.writeHead(500); res.end('Unable to read file'); }
+}).listen(port, '127.0.0.1', () => console.log(`Local: http://127.0.0.1:${port}`));
diff --git a/styles.css b/styles.css
new file mode 100644
index 0000000..50fcb54
--- /dev/null
+++ b/styles.css
@@ -0,0 +1,3 @@
+@import url('');
+:root{color-scheme:dark;--bg:#111413;--panel:#181c1a;--text:#e7e9e3;--muted:#a0aaa2;--line:#303831;--accent:#c4dda3;--mono:'Cascadia Code','SFMono-Regular',Consolas,monospace;font-family:Inter,'Segoe UI',Arial,sans-serif;font-synthesis:none}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-size:16px;line-height:1.65}a{color:inherit;text-decoration:none}button,select{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a:focus-visible,button:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:6px}button{color:inherit}a:hover{color:var(--accent)}main:focus{outline:none}header{border-bottom:1px solid var(--line)}.header-inner{max-width:1400px;margin:auto;min-height:96px;padding:0 64px;display:flex;align-items:center;justify-content:space-between;gap:32px}.brand{display:flex;align-items:center;gap:20px}.monogram{font-weight:750;font-size:35px;letter-spacing:-3px}.monogram span{color:var(--accent)}.brand-name{font-size:13px;font-weight:550}.header-inner nav{display:flex;gap:34px;font-size:14px;margin-left:auto;margin-right:50px}.header-inner nav a{color:var(--muted);position:relative;padding:10px 0}.header-inner nav a[aria-current]{color:var(--text)}.header-inner nav a[aria-current]:after{content:'';position:absolute;bottom:0;left:0;width:16px;height:2px;background:var(--accent)}.languages{display:flex;border:1px solid var(--line);padding:3px;border-radius:4px}.languages button{border:0;background:none;padding:5px 8px;font:11px var(--mono);color:var(--muted)}.languages button[aria-pressed=true]{background:#30392e;color:var(--accent)}main{max-width:1400px;margin:auto;padding:0 64px}.mono,.eyebrow{font-family:var(--mono);font-size:11px;letter-spacing:1.3px}.eyebrow{color:var(--accent);margin:0 0 24px;display:flex;align-items:center;gap:10px}.eyebrow span:not(.dot){color:var(--muted)}.dot{display:inline-block;flex-shrink:0;width:6px;height:6px;background:var(--accent);border-radius:50%}.muted{color:var(--muted)}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(48px,6.8vw,94px);line-height:1.06;letter-spacing:-5px;font-weight:500;margin-bottom:28px}h1 em{font-style:normal;color:var(--accent)}h2{font-size:34px;line-height:1.2;letter-spacing:-1.2px;font-weight:500;margin-bottom:24px}h3{font-size:29px;letter-spacing:-.8px;font-weight:500;line-height:1.25;margin:0 0 14px}p{color:var(--muted)}.hero{display:grid;grid-template-columns:1.1fr 1fr;gap:70px;align-items:center;padding:86px 0 88px}.hero-intro{max-width:440px;font-size:16px;line-height:1.8;margin:28px 0 30px}.actions{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.button{display:inline-flex;align-items:center;justify-content:space-between;gap:32px;border:1px solid var(--line);padding:12px 18px;border-radius:3px;background:transparent;font-size:13px;font-weight:550}.button.primary{background:var(--accent);color:#1d2819;border-color:var(--accent)}.button:hover{background:#2a3427;color:var(--text)}.text-link{font-size:13px;border-bottom:1px solid #626f56;padding-bottom:5px;display:inline-block}.edition{display:flex;justify-content:space-between;color:var(--muted);padding-bottom:16px}.hero-aside{padding-top:35px}.system{background:var(--panel);border:1px solid var(--line);overflow:hidden;position:relative;min-height:230px;display:flex;flex-direction:column;background-image:radial-gradient(#3b443a 0.7px,transparent .7px);background-size:19px 19px}.system.large{min-height:340px}.system-top,.system-bottom{display:flex;justify-content:space-between;gap:15px;padding:18px 22px;font-size:9px;color:var(--muted)}.system-top{border-bottom:1px solid #30383170;align-items:center;background:#181c1ad9}.system-bottom{margin-top:auto;background:#181c1ad9}.diagram{display:flex;align-items:center;justify-content:center;flex:1;padding:38px 24px}.node{display:flex;flex-direction:column;align-items:center;gap:13px;position:relative;background:#1c241e;border:1px solid #56634e;padding:17px 12px;min-width:92px;font:11px var(--mono);color:var(--accent)}.node small{position:absolute;top:-8px;left:9px;background:#1c241e;padding:0 5px;font-size:8px}.node-icon{font-size:25px;line-height:1}.wire{width:35px;height:1px;background:#80966c;position:relative}.wire:after{content:'';border:3px solid transparent;border-left-color:#80966c;position:absolute;right:-2px;top:-3px}.narrowcasting .node{color:#b4cddd;border-color:#566773;background:#1d262b}.narrowcasting .wire{background:#758e9d}.refactoring .node{color:#d5c3a9;border-color:#70624e;background:#28241e}.refactoring .wire{background:#a49276}.aside-caption{display:flex;gap:19px;padding:24px 0;border-bottom:1px solid var(--line);align-items:center}.aside-caption>.mono{color:var(--accent)}.aside-caption strong{font-size:14px;font-weight:500}.aside-caption p{margin:5px 0 0;font-size:12px}.circle-link{border:1px solid var(--line);border-radius:50%;width:34px;height:34px;display:grid;place-items:center;margin-left:auto}.study-stamp{display:flex;gap:16px;margin-top:24px;font-size:11px;color:var(--muted)}.study-stamp>span:last-child{margin-left:auto}.section{padding:60px 0 65px;border-top:1px solid var(--line)}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.section-heading .eyebrow{margin-bottom:16px}.section-heading h2{margin-bottom:16px}.project-row{display:grid;grid-template-columns:50px 1fr 160px;gap:20px;align-items:start;padding:33px 0;border-bottom:1px solid var(--line)}.project-number{color:var(--muted);padding-top:5px}.project-copy .eyebrow{font-size:10px;margin-bottom:14px}.project-copy p:not(.eyebrow){font-size:14px;max-width:650px;margin-bottom:20px}.tags{display:flex;gap:8px;flex-wrap:wrap}.tag{font:10px var(--mono);border:1px solid var(--line);border-radius:3px;padding:5px 8px;color:var(--muted)}.row-link{display:flex;justify-content:space-between;gap:12px;align-self:center;font-size:12px}.row-link span:last-child{font-size:23px;color:var(--accent)}.exam-callout{margin:15px 0 90px;padding:45px;border:1px solid var(--line);display:grid;grid-template-columns:1.5fr 1fr;gap:80px;background:#151a16}.exam-callout p:not(.eyebrow){font-size:14px;max-width:600px}.index-preview{display:flex;flex-direction:column;justify-content:center;gap:0;font:11px var(--mono)}.index-preview>div{display:flex;align-items:center;gap:22px;border-bottom:1px solid var(--line);padding:13px 0}.index-preview>div>span:first-child{color:var(--muted);font-size:9px}.index-preview strong{font-weight:400;letter-spacing:2px}.small-line{height:3px;background:#71855c;width:38px;margin-left:auto}.index-preview>div:nth-child(2) .small-line{width:62px}.index-preview>div:nth-child(3) .small-line{width:85px}footer{max-width:1272px;margin:auto;border-top:1px solid var(--line);padding:32px 0;display:flex;align-items:center;justify-content:space-between;gap:30px}footer p{font-size:12px;margin:10px 0 0}.footer-links{display:flex;gap:25px;font-size:12px}footer>.mono{font-size:9px}.skip{position:fixed;top:-100px;left:15px;padding:12px;background:var(--accent);color:#111;z-index:100}.skip:focus{top:15px}.page-heading{padding:70px 0 55px;max-width:920px}.page-heading h1{font-size:clamp(42px,6vw,80px);letter-spacing:-3px}.page-heading>p:not(.eyebrow){max-width:680px;font-size:17px}.work-list{border-top:0;padding-top:0;display:grid;gap:50px}.work-list .system{max-width:100%}.work-list .diagram{max-width:700px;width:100%;margin:auto}.work-list .node{min-width:160px}.work-list .wire{width:90px}.archive-link{margin-bottom:75px}.back-link{font-size:12px;color:var(--muted);display:inline-block;margin-bottom:35px}.accent{color:var(--accent)}.project-heading{max-width:1000px}.project-layout{display:grid;grid-template-columns:240px 1fr;gap:80px;padding:65px 0 85px}.project-meta{font-size:13px}.project-meta dt{color:var(--muted);font-size:11px;margin-top:24px}.project-meta dd{margin:5px 0 0}.project-meta .text-link{margin-top:25px}.project-story{max-width:760px}.project-story section{margin-bottom:50px}.project-story .eyebrow{margin-bottom:15px}.project-story h2{font-size:29px}.project-story p{font-size:15px}.evidence-links{border-top:1px solid var(--line);margin-top:25px}.evidence-links>a,.evidence-entry{border-bottom:1px solid var(--line);padding:17px 0;font-size:13px}.evidence-links>a,.evidence-entry>a:first-child{display:flex;justify-content:space-between;gap:18px}.evidence-links small{font-size:9px;display:inline-block;min-width:55px;color:var(--accent)}.reflection{border:1px solid var(--line);padding:28px;background:var(--panel)}.reflection p:last-child{margin-bottom:0}.evidence-toolbar{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:28px}.evidence-toolbar label{display:block;font:11px var(--mono);margin-bottom:12px;color:var(--muted)}select{background:var(--panel);border:1px solid var(--line);border-radius:3px;color:var(--text);padding:12px;font-size:13px;max-width:100%}.notice{display:flex;gap:15px;border-left:2px solid #af9564;background:#1f211b;padding:20px 24px;margin-bottom:30px}.notice p{font-size:13px;margin:0;max-width:900px;color:#c0c2b2}.status-dot{height:6px;width:6px;border-radius:50%;background:#c3ad80;flex-shrink:0;margin-top:8px}.process{border-bottom:1px solid var(--line)}.process:first-child{border-top:1px solid var(--line)}.process summary{list-style:none;display:grid;grid-template-columns:130px 1fr 110px 20px;gap:20px;align-items:center;padding:25px 0;cursor:pointer}.process summary::-webkit-details-marker{display:none}.process-code{font-size:11px;color:var(--muted);letter-spacing:0}.process-title{font-size:18px}.evidence-status{font:10px var(--mono)}.located{color:var(--accent)}.missing{color:#c9b48e}.expand{font-size:22px;color:var(--muted)}details[open] .expand{transform:rotate(45deg)}.process-content{padding:0 0 30px 150px;max-width:960px}.process-content>p{font-size:14px}.evidence-project{font-size:11px;color:var(--muted);margin:8px 0 0 55px;display:inline-block}.pending{margin-top:20px;font-size:12px!important}.empty-state{border:1px dashed #51594c;color:var(--muted);padding:22px;font-size:13px}.source-note{margin:50px 0 70px;max-width:800px;font-size:13px}.source-note .mono{color:var(--accent)}.about-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:100px;border-top:1px solid var(--line);padding:60px 0}.about-grid p{font-size:15px}.profile-facts>div{border-bottom:1px solid var(--line);padding:19px 0;display:flex;justify-content:space-between;gap:25px;font-size:13px}.profile-facts span{color:var(--muted)}.profile-facts strong{font-weight:500}.contact-section{border-top:1px solid var(--line);padding:60px 0 80px}.contact-section>p:last-child{font-size:12px;margin-top:24px}
+@media(min-width:1500px){.hero{padding-top:100px;padding-bottom:100px}}@media(max-width:1100px){.header-inner{padding:0 32px}.hero{gap:35px}main{padding:0 32px}footer{margin:0 32px}.node{min-width:75px;font-size:10px}.wire{width:22px}.diagram{padding:35px 18px}.hero h1{font-size:68px}.hero .actions{gap:17px}.brand-name{display:none}.exam-callout{gap:40px}.project-layout{gap:45px;grid-template-columns:200px 1fr}.study-stamp{gap:10px}}@media(max-width:760px){.header-inner{padding:0 22px;min-height:78px;gap:16px}.header-inner nav{gap:18px;margin:0 auto;font-size:12px}.monogram{font-size:28px}main{padding:0 22px}.hero{grid-template-columns:1fr;padding:48px 0;gap:20px}.hero h1{font-size:65px;letter-spacing:-3.5px}.hero-intro{max-width:530px}.hero-aside{padding-top:10px}.system.large{min-height:280px}.hero .node{min-width:95px}.hero .wire{width:35px}.section{padding:42px 0}.section-heading{align-items:end}.section-heading>.mono{display:none}h2{font-size:29px}.project-row{grid-template-columns:28px 1fr;gap:14px;padding:28px 0}.row-link{grid-column:2;justify-content:flex-start;gap:20px}.project-copy h3{font-size:25px}.project-copy .eyebrow{display:block;line-height:2}.exam-callout{padding:26px;grid-template-columns:1fr;gap:20px;margin-bottom:50px}.index-preview{display:none}footer{margin:0 22px;flex-wrap:wrap;gap:24px}.footer-links{gap:18px}footer>.mono{width:100%}.page-heading{padding:45px 0 35px}.page-heading h1{font-size:52px;letter-spacing:-2px}.page-heading>p:not(.eyebrow){font-size:15px}.work-list .node{min-width:90px}.work-list .wire{width:30px}.project-layout{grid-template-columns:1fr;gap:45px;padding-top:35px}.project-meta dl{display:grid;grid-template-columns:1fr 1fr;gap:12px}.project-meta dt{margin:0}.project-meta dd{margin:0}.project-story h2{font-size:26px}.evidence-toolbar{align-items:stretch;flex-wrap:wrap}.evidence-toolbar>div{width:100%}select{width:100%}.process summary{grid-template-columns:1fr 90px 15px;gap:8px;padding:20px 0}.process-code{grid-column:1/-1}.process-title{font-size:16px}.process-content{padding-left:0}.notice{padding:17px}.about-grid{grid-template-columns:1fr;gap:25px;padding:35px 0}.contact-section{padding-top:40px}.evidence-links small{min-width:42px}}@media(max-width:380px){.header-inner{padding:0 14px;gap:10px}.header-inner nav{gap:12px}.languages button{padding:5px}.hero h1{font-size:57px}.hero .node{min-width:75px}.hero .wire{width:20px}.system-top,.system-bottom{padding:14px;font-size:8px}.diagram{padding:35px 12px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}@media print{:root{color-scheme:light;--bg:white;--text:#111;--muted:#444;--line:#bbb;--accent:#314826}body{background:white;color:#111;font-size:11pt}header,footer,.evidence-toolbar,.skip,.expand{display:none!important}main{padding:0;max-width:none}.page-heading{padding:0 0 20px}.page-heading h1{font-size:34pt;letter-spacing:-1px}.notice{background:none}.notice p{color:#333}.process summary{padding:15px 0;grid-template-columns:110px 1fr 100px}.process-content{padding-left:0}.process{break-inside:avoid}.evidence-status{color:#333}.process-title{font-size:14pt}.source-note{margin-bottom:0}.evidence-links a{overflow-wrap:anywhere}.evidence-links a[href^=http]:after{content:' (' attr(href) ')';font-size:8pt;display:block;max-width:75%;color:#444}.evidence-links>a,.evidence-entry>a:first-child{display:block}.system{background:none}.reflection{background:none}}