:root {
  color-scheme: light dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: clamp(1rem, -0.0909090909rem + 5.4545454545vw, 4rem) clamp(1rem, -0.8181818182rem + 9.0909090909vw, 6rem);
  font-family: system-ui, sans-serif;
  line-height: 1.5;
}

header {
  margin-bottom: clamp(2rem, 1.2727272727rem + 3.6363636364vw, 4rem);
}

h1 {
  font-size: clamp(1.75rem, 1.1136363636rem + 3.1818181818vw, 3.5rem);
  margin: 0 0 clamp(0.5rem, 0.3181818182rem + 0.9090909091vw, 1rem);
}

.lede {
  font-size: clamp(1rem, 0.9090909091rem + 0.4545454545vw, 1.25rem);
  max-width: 60ch;
  opacity: 0.75;
}

#viewport-width {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.demo {
  margin-bottom: clamp(1.5rem, 0.9545454545rem + 2.7272727273vw, 3rem);
  padding: clamp(1rem, 0.8181818182rem + 0.9090909091vw, 1.5rem);
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  border-radius: 8px;
}

.demo h2 {
  font-size: clamp(1.125rem, 0.9886363636rem + 0.6818181818vw, 1.5rem);
  margin-top: 0;
}

.demo p {
  opacity: 0.75;
}

.demo-fluid-heading {
  font-size: clamp(1rem, 0.3076923077rem + 1.9230769231vw, 1.5rem);
  margin: 0;
  border: 1px dashed color-mix(in srgb, currentColor 30%, transparent);
  padding: clamp(0.5rem, 0.3181818182rem + 0.9090909091vw, 1rem);
  border-radius: 6px;
}

.demo-numeric-heading {
  font-size: clamp(0.625rem, 0.4086538462rem + 0.9615384615vw, 1.25rem);
  margin: 0;
  border: 1px dashed color-mix(in srgb, currentColor 30%, transparent);
  padding: clamp(0.5rem, 0.3181818182rem + 0.9090909091vw, 1rem);
  border-radius: 6px;
}

.demo-inverted {
  font-size: clamp(1rem, 2.1923076923rem + -1.9230769231vw, 1.5rem);
  margin: 0;
  border: 1px dashed color-mix(in srgb, currentColor 30%, transparent);
  padding: clamp(0.5rem, 0.3181818182rem + 0.9090909091vw, 1rem);
  border-radius: 6px;
}

.resizable {
  resize: horizontal;
  overflow: auto;
  min-width: 200px;
  max-width: 100%;
  width: 400px;
  padding: clamp(0.5rem, 0.3181818182rem + 0.9090909091vw, 1rem);
  border: 1px dashed color-mix(in srgb, currentColor 30%, transparent);
  border-radius: 6px;
  container-type: inline-size;
}

.demo-csize {
  font-size: clamp(0.875rem, 0.5rem + 3cqi, 2rem);
  margin: 0;
}

pre {
  background: color-mix(in srgb, currentColor 6%, transparent);
  padding: clamp(0.5rem, 0.3181818182rem + 0.9090909091vw, 1rem);
  border-radius: 6px;
  overflow-x: auto;
  font-size: clamp(0.75rem, 0.7045454545rem + 0.2272727273vw, 0.875rem);
}

footer {
  margin-top: clamp(2rem, 1.2727272727rem + 3.6363636364vw, 4rem);
  opacity: 0.6;
  font-size: clamp(0.8125rem, 0.7897727273rem + 0.1136363636vw, 0.875rem);
}
