CSS Container Queries: Build Components That Adapt to Their Container, Not the Viewport
Container Queries let UI components respond to their parent's size instead of the viewport. This post shows how to opt in with container-type, a worked card example that flips layout at 350px, and the performance and stacking-context trade-offs you'll hit in production.