Beat the butter and sugar together for 2 to 3 minutes until light and creamy, then beat in the egg and vanilla.
Sift in the flour, baking powder and salt and mix on low until the dough comes together in a ball and pulls cleanly away from the side of the bowl.
Wrap the dough and chill for 20 minutes, this stops it spreading into a puddle in the oven.
Heat the oven to 180C (350F) and line two baking sheets with parchment.
Divide the dough into 24 equal balls, then flatten each into a disc about 7 cm wide and 4 mm thick.
Lay out 12 discs, pile a heaped teaspoon of pink candies in the centre of 6 and blue candies in the centre of the other 6, leaving a bare rim of dough around the edge.
Brush the bare rim with a little beaten egg, then lay a second disc over each pile and press the edges together firmly all the way round to seal in the candy.
Crimp the sealed edge with a fork so it holds under the oven's heat, and prick the top once with a toothpick so steam has somewhere to go.
Bake for 11 to 13 minutes until the edges turn pale gold; the centre will look slightly soft, that is correct, it firms as it cools.
Cool on the tray for 10 minutes before moving the cookies to a rack, moving them too soon risks cracking the seal in the wrong place.
Serve each cookie whole and let guests crack it in half or bite straight in to find out which colour was hiding inside.