Drawing a tree with HTML and CSS

The structure of this tree is defined in HTML and the edges are drawn with CSS. No JavaScript involved.
Source code
The CSS styling expects the following HTML/DOM structure:
Notes:
The :scope rule at the beginning of tree.css provides default values for various custom properties for styling the tree. These values can be overridden. They must fit with the CSS properties applied to nodes.
More tree structure for testing and demo purposes: