Why doesn't the CSS variable show a color if I define it but don't use it?
Defining a variable alone doesn't change anything visually. You must use var(--variable) in a property to see the effect, as shown in step 2.
💡 Variables store values but only affect visuals when applied.
Why does nesting with & work in SASS but not in plain CSS?
Native CSS nesting uses & similarly but is still new and may need browser support. The example uses nesting syntax that modern browsers support, replacing SASS nesting as in steps 3 and 4.
💡 Nesting scopes styles visually but requires correct syntax and browser support.
Why does changing font-size affect layout and spacing?
Larger font sizes take more space, pushing other elements. The browser recalculates layout as in step 3 to fit the new sizes.
💡 Text size changes cause reflow to adjust layout.