Container style queries check a custom property on an ancestor container and apply conditional styles. Size queries react to available space; style queries react to theme or state values.
The demo switches the parent `--mode` value and the child card changes between day and night. Check browser support and where the property is inherited.
When to use
Use it when components should style themselves from a parent theme or state.