<div class="container">
  <h1 class="heading-large">My Blog</h1>
  <article class="post">
    <h2 class="heading-medium">Post’s heading</h2>
    <p class="paragraph">
      Lorem ipsum dolor sit amet, consectetur adipisicing elit.
      Laudantium numquam adipisci recusandae officiis dolore tenetur,
      nisi, beatae praesentium, soluta ullam suscipit quas?
    </p>
  </article>

  <article class="post">
    <h2 class="heading-medium">Post’s heading</h2>
    <p class="paragraph">
      Lorem ipsum dolor sit amet, consectetur adipisicing elit.
      Laudantium numquam adipisci recusandae officiis dolore tenetur,
      nisi, beatae praesentium, soluta ullam suscipit quas?
    </p>
  </article>
</div>
/* global styles */

body {
  background-color: LavenderBlush;
  color: Teal;
  font-size: 100%;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
  line-height: 1.5;
  margin: 0;
  padding: 1rem;
}

*, ::after, ::before {
  box-sizing: border-box;
}


/* component variables */

:root {
  --spacing-multiplier: 1;
  --headings-multiplier: 1;
}


/* component variables on larger screens */

@media (min-width: 576px) {
  :root {
    --spacing-multiplier: 2;
    --headings-multiplier: 3 / 2;
  }
}


/* components styles */

.container {
  max-width: 480px;
  margin: 0 auto;
}

.post {
  background-color: white;
  border-radius: 16px;
  padding: calc(.5rem * var(--spacing-multiplier)) calc(1rem  * var(--spacing-multiplier));
  margin: calc(.5rem * var(--spacing-multiplier)) 0 calc(1rem  * var(--spacing-multiplier));
}

.heading-medium, .heading-large {
  margin: 0;
}

.heading-medium {
  font-size: calc(2rem * var(--headings-multiplier));
}

.heading-large {
  font-size: calc(3rem * var(--headings-multiplier));
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.