To make these cookies gluten-free, substitute the all-purpose flour with a high-quality 1:1 gluten-free baking flour blend (such as King Arthur or Bob’s Red Mill). Ensure the baking soda and cocoa powder are certified gluten-free, and follow the recipe as directed. The texture may be slightly softer, but the flavor remains rich and indulgent.