Place racks in lower and upper thirds of oven and preheat to 375 degrees. Whisk flour, baking soda, cinnamon, ginger, cardamom, and salt together in a small bowl. Whisk egg, butter, granulated sugar, molasses, and brown sugar in a medium bowl. Mix in dry ingredients into the wet until just combined.