css-tricks.com/css-style-queries-as-conditional-modifiers Style Queries as Conditional Modifiers
Container style queries, now Baseline Newly Available, let CSS rules respond to a custom property value on an ancestor container rather than the element being styled. The article uses them alongside modifier patterns, showing how a layout can change a component's configuration so the component adapts its own styles.