Preheat the oven to 350°F and line a large baking sheet or half-sheet pan with parchment paper. Prepare a paper template for a connected A-frame shape with two roof panels joined at the top and small tabs at the base so the baked gingerbread can stand securely.
Whisk together the flour, baking soda, salt, ground ginger, cinnamon, and cloves in a medium bowl until evenly combined.
In a large bowl, beat the softened butter and brown sugar for 2 to 3 minutes until smooth and slightly fluffy. Beat in the molasses, egg, and vanilla extract until fully combined, scraping the bowl as needed.
Add the dry ingredients to the wet ingredients and mix on low speed just until a firm dough forms. If the dough feels sticky, flatten it into a disk, wrap it, and chill it for 20 minutes to make rolling easier.
Place the dough between two sheets of parchment paper and roll it into a large even sheet about 1/4 inch thick. Remove the top parchment, place the A-frame template over the dough, and cut around it with a sharp knife. Cut a door and window shapes if desired, and leave them in place for baking if you want the structure to stay stronger.
Transfer the parchment with the cut dough onto the baking sheet. Chill the shaped dough for 15 minutes so the edges stay neat in the oven.
Bake for 16 to 18 minutes until the surface looks dry and the edges are slightly darker. While the gingerbread is still warm, carefully retrace the template edges with a sharp knife to clean up the shape if needed.
Let the gingerbread cool on the pan for 10 minutes. While it is still slightly warm and flexible, gently fold it along the center line to form the A-frame angle, then support it with rolled towels or small jars so it holds its shape. Let it cool completely in this position for 45 minutes.
To make the royal icing, beat the powdered sugar, meringue powder, warm water, and cream of tartar in a medium bowl for 4 to 5 minutes until thick, glossy, and able to hold stiff peaks. Transfer the icing to a piping bag or a zip-top bag with a small corner snipped off.
Pipe royal icing along the bottom tabs and any seams that need support, then let the structure stand for 15 minutes so the icing begins to firm up. Pipe decorative lines along the roof ridge, roof edges, door, and windows.
While the icing is still wet, add white sanding sugar and assorted small candies to decorate the house. Use extra icing to attach candies where needed and to add snow-like dots, icicles, or trim.
Let the decorated gingerbread house sit at room temperature for 30 minutes so the royal icing can set before moving or displaying it.