Cookie Science: Chewy vs Crispy vs Cakey

What actually makes a cookie chewy, crispy, or cakey: how sugar type, butter handling, flour, eggs, leavening, dough chilling, and bake time each change the result — and how to dial a cookie toward the texture you want.