Whisk the dry ingredients: in a medium bowl, whisk together the flour, baking powder, and salt until evenly combined. Set aside.
Cream the butter and sugar: in a large bowl, beat the softened butter with the granulated sugar on medium speed until pale and fluffy, about 3 minutes. Scrape down the sides of the bowl.
Add the egg and extracts: beat in the egg, vanilla extract, and almond extract until smooth and fully combined, about 1 minute.
Mix in the dry ingredients: add the flour mixture in two additions, mixing on low speed just until a soft dough forms and no dry streaks remain. Do not overmix, or the cookies turn tough.
Chill the dough: divide the dough in half, flatten each half into a disk, and wrap tightly in plastic wrap. Refrigerate for at least 1 hour, or up to 2 days. Cold dough is the secret to cookies that keep their shape.
Roll and cut: preheat the oven to 350°F (175°C) and line two baking sheets with parchment paper. Roll one disk of dough between two sheets of parchment to 1/4 inch thick. Cut into Christmas shapes — trees, stars, snowflakes, stockings — and place them 1 inch apart on the sheets. Gather and re-roll the scraps once; chill the scraps again if they get soft.
Bake: bake for 9 to 11 minutes, until the edges are set and just barely turning golden. The centers should still look pale — that is what keeps them soft.
Cool completely: let the cookies rest on the pan for 5 minutes, then move them to a wire rack to cool fully before decorating, about 30 minutes. Warm cookies melt royal icing.
Make the royal icing: in a clean bowl, beat the powdered sugar, meringue powder, warm water, and clear vanilla extract on low speed until smooth, about 2 minutes. The icing should ribbon off the spoon and smooth back into itself in about 15 seconds — add water a teaspoon at a time to thin it, or a spoonful of powdered sugar to thicken it. Divide into bowls and tint with gel food coloring.
Decorate and let set: spoon the icing into piping bags or zip-top bags with a tiny corner snipped off. Outline each cookie, then flood the center and use a toothpick to guide the icing to the edges. Add sprinkles while the icing is still wet. Let the cookies dry uncovered for at least 8 hours, or overnight, until the icing is completely hard.