Are you using Numbered List Function – Typst Documentation or simple paragraphs?
Some pointers:
- How to draw vertical line in grid column connecting/aligning end points with content items in another grid column
- How to create an adaptive vertical line that dynamically spans the height of its containing box/block - #13 by Andrew
- impressive-impression – Typst Universe
- treet – Typst Universe
And maybe something from How could I automatically generate tree views/collapsible lists from Typst lists? - #5 by saffronner although this is more directed towards HTML.