Mix dry ingredients: In a large bowl, whisk flour, ground almonds, sugar, cinnamon, cloves, baking powder, and salt.
Cut in butter: Add cold butter cubes and rub into the flour until crumbly.
Add yolks and flavoring: Stir in egg yolks, vanilla, and lemon zest until dough starts to form.
Chill the dough: Split into two portions (one slightly larger), wrap, and chill in the fridge for 1 hour.
Prepare base: Preheat oven to 350°F (175°C). Roll out larger dough portion, press into a 9-inch tart pan.
Spread jam: Spoon raspberry jam evenly over the base.
Make lattice: Roll out smaller dough portion, cut into strips, and arrange in a crisscross lattice on top.
Brush and bake: Brush lattice with egg wash. Bake 35–40 minutes until golden.
Cool and serve: Let cool completely before slicing. Dust with powdered sugar if you like.