How do crystals form and why do they have flat sides and sharp edges?

Hold a crystal up to the light and something feels almost suspicious about it. Those clean flat faces. Those crisp corners. It looks manufactured, like something a tiny factory carved on purpose. But nobody carved it. No mold, no ruler, no plan. So how does a rock learn to grow such perfect angles all by itself?
The secret is that crystals are built out of atoms — the impossibly tiny building blocks that make up everything. And the atoms in a crystal don't just clump together in a messy pile. They stack. Neatly. Each atom snaps into the same repeating spot, over and over, like an endlessly tidy pattern with no gaps and no shortcuts.
