${esc(n.tag)}Latest
${esc(n.title)}
${esc(n.excerpt)}
Read the note${esc(n.date)} / ${esc(n.read)}
`;
const item=n=>`${esc(n.tag)}
${esc(n.title)}
${esc(n.excerpt)}
${esc(n.date)}${esc(n.read)}
`;
const reveal=()=>{
const els=[...body.querySelectorAll(".mag-pre")];
if(reduced){ els.forEach(e=>e.classList.remove("mag-pre")); return; }
requestAnimationFrame(()=>requestAnimationFrame(()=>els.forEach((e,k)=>{ e.style.transitionDelay=`0ms,${k*60}ms,${k*60}ms,0ms`; e.classList.remove("mag-pre"); })));
};
const draw=(animate)=>{
const L=NOTES.filter(n=>filter==="All"||n.tag===filter);
if(!L.length){ body.innerHTML='Notes coming soon.
'; cnt.textContent="0 notes"; return; }
const [c,...rest]=L, toc=rest.slice(0,3), cards=rest.slice(3,7);
body.innerHTML=`