Preheat your oven to 350F. Grease a 8x8 square pan or a springform pan and set aside.
in a large bowl, combine flour, cardamom, cinnamon, baking powder, baking soda, and salt. Set aside.
In your stand mixer bowl, add softened butter, granulated sugar, and brown sugar. Beat with a paddle attachment (or hand mixer) for 3 minutes until pale and fluffy.
Use a rubber spatula to scrape down the sides and bottom of the bowl. Then add eggs, vanilla extract, and almond extract. Mix until combined.
Scrape down your bowl once again and add sour cream. Beat until well combined. Your batter may be a bit lumpy. That's okay!
Add all dry ingredients and mix until just barely combined. Be careful not to overmix! If your batter seems pretty lumpy, beat quickly on a medium-high speed for about 3-5 seconds for an extra smooth batter.