:root {
  color-scheme: light dark;

  --bg: white;
  --text: black;

  --step--1: clamp(0.9375rem, 0.9119rem + 0.1136vw, 1rem);
  --step-0: clamp(1.125rem, 1.0739rem + 0.2273vw, 1.25rem);
  --step-1: clamp(1.35rem, 1.2631rem + 0.3864vw, 1.5625rem);
  --step-2: clamp(1.62rem, 1.4837rem + 0.6057vw, 1.9531rem);
  --step-6: clamp(3.3592rem, 2.7828rem + 2.5621vw, 4.7684rem);
  --step-hero: clamp(3.8rem, 1.673rem + 9.455vw, 9rem);

  --space-xs: clamp(0.875rem, 0.8494rem + 0.1136vw, 0.9375rem);
  --space-s: clamp(1.125rem, 1.0739rem + 0.2273vw, 1.25rem);
  --space-m: clamp(1.6875rem, 1.6108rem + 0.3409vw, 1.875rem);
  --space-l: clamp(2.25rem, 2.1477rem + 0.4545vw, 2.5rem);
  --space-xl: clamp(3.375rem, 3.2216rem + 0.6818vw, 3.75rem);
  --space-2xl: clamp(4.5rem, 4.2955rem + 0.9091vw, 5rem);
  --space-3xl: clamp(6.75rem, 6.4432rem + 1.3636vw, 7.5rem);
  --space-s-l: clamp(1.125rem, 0.5625rem + 2.5vw, 2.5rem);
  --space-2xl-3xl: clamp(4.5rem, 3.2727rem + 5.4545vw, 7.5rem);
  --space-l-3xl: clamp(2.25rem, 0.1023rem + 9.5455vw, 7.5rem);
}

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

@media (prefers-color-scheme: dark) {
  :root {
    --bg: black;
    --text: gainsboro;
  }
}

html {
  background-color: var(--bg);
  color: var(--text);
  font-family: serif;
}

h1, h2, h3 {
  text-wrap: pretty;
}

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

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

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

p { text-wrap: pretty; font-size: var(--step-0); }

.wrapper {
  max-width: 80rem;
  padding-inline: var(--space-s-l);
  margin-inline: auto;
}

.flow > * + * { margin-block-start: var(--flow-space, var(--space-s)); }

main.flow > * + * {
    margin-top: var(--space-l-3xl);
}

header {
    margin-top: var(--space-l-3xl);
}

header p {
    max-width: 50ch;
    font-style: italic;
    font-size: var(--step-1);
}

ul {
    max-width: 80ch;
}

.crimson {
    color: crimson;
}
