Preheat oven to 350°F. Line an 8×8-inch pan with parchment.
Beat butter, granulated sugar, and brown sugar until light and fluffy. Add egg, vanilla, and almond extract.
Mix in flour, baking powder, and salt until a soft dough forms.
Press ⅔ of the dough into the pan.
Beat almond paste, butter, and sugar until smooth. Add egg, extracts, flour, and salt; mix until creamy.
Spread almond filling over the cookie layer.
Flatten the remaining cookie dough into pieces and gently place over the filling.
Sprinkle with sliced almonds and 2 tbsp sugar.
Bake 40–50 minutes, until the edges are golden and the center is set with only a slight wobble.
Cool completely before slicing. Dust generously with powdered sugar.
