<!doctype html>
<html>
	<head>
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<link href="/assets/reset.css" rel="stylesheet">
		<link href="setup.css" rel="stylesheet">
		<link href="style.css" rel="stylesheet">
	</head>
	<body>
		<section>
			<p>This element is responsive.</p>
			<p>I’ll add some text more here so we have something to look at and so that it wraps, but the text itself isn’t important, at the moment.</p>
		</section>
		<section>
			<p>This is another responsive element, with some more text in it. Again the text doesn’t really matter, I just want a bit of stuff in here. A few lines, is all.</p>
		</section>
	</body>
</html>

		
index.html
			body {
	font-family: sans-serif;
	padding: 1rem;
}

section { padding: 1rem; }

section:not(:first-child) { margin-block-start: 1rem; }

p:not(:first-child) { margin-block-start: 1rem; }

		
setup.css
			section { background-color: aquamarine; }

@media (width > 550px) and (width < 700px) {
	section:first-child { background-color: gold; }
}

@media (width > 700px) and (height > 300px) {
	section:last-child { background-color: orange; }
}

		
style.css