This directory contains the Typst modules shared by the rulebook. - `setup.typ` is the stable complete facade and document entry point. - `prelude.typ` is the curated chapter-authoring surface and can be imported with `#import "/setup/prelude.typ": *`. - `analysis/` contains reusable metric extraction and report presentation for standalone targets such as `/balance_report.typ`. - `core/` contains project-wide macros and rule constants. - `generation/` turns external data into Typst content. - `models/` contains document and domain-specific presentation models. - `theme/` contains colors, symbols, tables, boxes, and decorations. Prefer `prelude.typ` while writing ordinary rules and prose. Import from `setup.typ` or an implementation module explicitly for document configuration, specialized renderers, warnings, build metadata, or theme internals.