<div class="container">
  <p class="explainer">The first paragraph is normal size. The second paragraph is set to <code>min-size</code> and will be as wide as the largest element.</p>

  <p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Cupiditate aliquid libero.</p>

  <p class="narrow">Lorem ipsum dolor, sit amet consectetur adipisicing elit. Cupiditate aliquid libero.</p>
</div>
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wdth,wght@0,75..100,300..800;1,75..100,300..800&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

* {
  border-sizing: border-box;
}

/*  
  <weight>: Use a value from 300 to 800
  <width>: Use a value from 75 to 100
*/
body {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 400;
}

.container {
  inline-size: 600px;
  margin: 5em auto;
}

.explainer {
  font-weight: 700;
  font-style: normal;
  font-variation-settings: "wdth" 700;
}

p {
  inline-size: 80ch;
}

.narrow {
  inline-size: min-content;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.