Explain how you would build a pixel-perfect single-page UI from a set of images and mockup specs using basic HTML and CSS.
Implement render_single_page(images, mockup_specs) to produce a complete HTML document. Include the specified title, theme values, sections, escaped text, and only images whose names are referenced by sections.
images is an array of maps with name and path. mockup_specs is a map containing title, optional theme, and optional sections. Return one HTML string.
Example: an image named hero referenced by a section must produce an <img> whose src is its path. A missing image reference must produce no image element.
name and path.heading, body, and an optional image name.def render_single_page(images, mockup_specs):