im tired of writing media queries for every single little card component. its such a headache when u move a widget from a sidebar to the main content area and everything breaks. instead of checking the viewport size i just use @container now. it makes the component actually self-contained so you can drop it anywhere without worrying about the screen width.
.card-container {container-type: inline-size;}@container (min-width: 400px) {.card { display: flex; }}much cleaner than
massive huge media query blocks at the bottom of the stylesheet. its basically a lifesaver for design systems ✅