<p id="info"></p>
<p>
  Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</p>
<p>
  To get more info follow <a href="https://medium.com/@bogdanfromkyiv/responsive-layouts-without-media-queries-a859911790fc" target="_blank">this link</a>.
</p>
* {
  margin: 0;
}
body {
  color: #000;
  background: #fff;
  font-family: Arial, sans-serif;
  font-size: clamp(1rem, 2.08vw, 1.5rem);
  padding: 1em;
}
p:not(:last-child) {
  margin-bottom: 1em;
}
#info {
  color: red;
}
/**
No worries, JS here is only to show info :)
**/
const showInfo = () => {
  let vw = window.innerWidth;
  let fontSize = window.getComputedStyle(document.body, null).getPropertyValue('font-size')
  document.getElementById("info").innerHTML = `
  Current viewport (iframe's) width is ${vw}px. <br />
  Current font-size is ${fontSize}.
  `;
}
showInfo();
window.onresize = showInfo;

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.