html { box-sizing: border-box; font-size: 62.5%; /* Mostly equivalates to 10px but allows users accessibility zoom settings to work*/ /* font-size: 10px; */ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; /* color-scheme: dark light; */ min-height: 100dvh; interpolate-size: allow-keywords; } html:focus-within { scroll-behavior: smooth; } *, *::before, *::after { box-sizing: inherit; /* LAYOUT DEBUG */ /* outline: 3px solid orange; */ /* background-color: hsla(120, 50%, 50%, 0.18); */ } body { font-size: 1.6rem; margin: 0; text-rendering: optimizeSpeed; line-height: 1.5; min-height: 100dvh; } /* Try to keep your margins going in one direction to avoid margin collapase or grounding. I switch all the top margins off to avoid this issue. */ h1, h2, h3, h4, h5, h6, ul, ol, li, dl, dt, dd, blockquote, address, article, aside, details, dialogue, fieldset, figcaption, figure, footer, form, header, hr, main, nav, pre, section, table, p { margin-top: 0; margin-block-start: 0; } a { color: inherit; text-decoration: none; /* You MUST make sure that links stand out from nomal text though...*/ } /* a:hover, a:focus { text-decoration: underline; } */ img, picture, svg, video { display: block; /* This means that it can be less than 100% of the width of its parent IF the image is INTRINSICALLY smaller */ max-width: 100%; height: auto; /* 'auto' is the initial value for height BUT for images (and other elements which have an intrinic height) that is not the case. To make an image responsive you set one dimension (usually width) to [max-]width: 100%; and the other to 'auto' to ensure it keeps aspect ratio. 'auto' basically tells the browser to decide. */ } /* Because we us