Preheat oven to 350°F. Prepare a cupcake pan with cupcake liners. Place hazelnut flour on a small cookie sheet and place it into the oven to toast for 10-15 minutes, ensuring you stir it every 5 minutes to promote even toasting. Once golden, allow to cool for 10 minutes.
In a large mixing bowl, add the cooled toasted hazelnut flour, AP flour, baking soda, baking powder, and salt. Whisk together to combine. Set aside.
In another large bowl, add egg, sugar, sour cream, vegetable oil, vanilla and almond extract. Whisk together until smooth and well combined.
In a small mixing bowl or 2-cup liquid measuring cup, add the hot coffee and cocoa powder. Whisk together until well-combined and smooth. Allow to sit for 2 minutes, then add the cocoa mixture into the mixing bowl with the wet ingredients (eggs, sour cream, etc.), then mix until smooth.
Add the wet ingredients into the bowl with the dry ingredients, and mix until smooth. Pour the cake batter into the prepared cupcake pan, filling 2/3 full, and bake for 20 minutes or until an inserted toothpick comes out clean. Allow to cool completely before frosting.