Shine a laser from inside a glass block toward the glass-air surface. At small angles from the normal most of the beam passes out into the air, bending away from the normal, with a faint reflection. Tilt the beam further and the escaping ray bends closer and closer to the surface. At about 42∘ inside the glass, the ray in the air would have to leave at 90∘, skimming along the surface. That angle is the critical angle. Past it there is no refracted ray at all, and all of the light reflects back into the glass.
The number comes straight from Snell's law, n1sinθ1=n2sinθ2. Setting θ2=90∘ gives sinθc=n2/n1. For glass (n=1.50) to air that is 1/1.50, so θc=41.8∘. For diamond (n=2.42) it is only 24.4∘, so light that gets into a diamond is easily trapped, bounces around inside and escapes mostly through the top facets, which is the sparkle.
It only works one way. Light going from air into glass bends toward the normal, and n2/n1 would be 1.50/1.00, more than 1, so no angle qualifies: light heading into a higher-index material can always get in. A partial reflection, like your faint face in a shop window, is not total internal reflection either, because most of the light passes through. Total reflection needs both a drop in refractive index and an angle beyond θc.
Think of it like this. A stone thrown steeply at a pond plunges in, but one thrown at a glancing enough angle skips off the surface. Light inside glass meets its surface the same way: beyond one critical angle it bounces back entirely. Unlike the stone, light does this only when leaving the optically denser material, never when entering it.
Core idea. Light leaving a material for one with a lower index bends away from the normal; past the critical angle, sinθc=n2/n1, it has no way out, and all of it reflects back inside.