:root {
  --size-step-0: clamp(1rem, calc(0.96rem + 0.22vw), 1.13rem);
  --size-step-1: clamp(1.25rem, calc(1.16rem + 0.43vw), 1.5rem);
  --size-step-2: clamp(1.56rem, calc(1.41rem + 0.76vw), 2rem);
  --size-step-3: clamp(1.95rem, calc(1.71rem + 1.24vw), 2.66rem);
  --size-step-4: clamp(2.44rem, calc(2.05rem + 1.93vw), 3.55rem);
}

main {
  background: var(--background);
  color: var(--color);
  padding: 2em;
  margin-bottom: 4rem;
  font-size: var(--size-step-0);
  line-height: 1.7;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-size: var(--size-step-4);
}

h2 {
  font-size: var(--size-step-3);
}

h3 {
  font-size: var(--size-step-2);
}



ul, ol {
  padding-inline-start: 1em;
}

blockquote {
  padding-inline-start: 1em;
  border-inline-start: 0.3em solid var(--red3);
  font-style: italic;
  font-size: var(--size-step-1);
}

main > * + * {
  margin-block-start: var(--flow-space, 1em);
}

:is(h1, h2, h3, blockquote) {
  --flow-space: 1.5em;
}

:is(h1, h2, h3) + * {
  --flow-space: 0.5em;
}

main {
  max-width: 65ch;
  margin-inline: auto;
}

blockquote {
  max-width: 50ch;
}

h1 {
  max-width: 20ch;
}

h2,
h3 {
  max-width: 28ch;
}

main a {
  color: currentColor;
  text-decoration: underline;
  text-decoration-color: var(--red3);
  text-decoration-thickness: 0.3ex;
  text-underline-offset: 0.3ex;
}

main a:hover {
  text-decoration-color: var(--red2);
  text-underline-offset: 0.5ex;
}

.summary {
  font-size: var(--size-step-1);
  font-style: italic;
  max-width: 50ch;
  text-wrap: balance;
}

.summary + * {
  --flow-space: 2em;
}

pre code {
    overflow-x: auto;
    width:100%;
    display: block;
}
