:root {
  color-scheme: light dark;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body {
  margin: 0;
}

main {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

form,
section {
  margin-block: 1.5rem;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  border-radius: 0.5rem;
}

select,
button {
  box-sizing: border-box;
  max-width: 100%;
  padding: 0.5rem 0.75rem;
  font: inherit;
}

pre {
  padding: 0.75rem;
  overflow-x: auto;
  border-radius: 0.25rem;
  background: color-mix(in srgb, currentColor 8%, transparent);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

.trace-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.trace-list li {
  padding: 0.75rem;
  border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
  border-radius: 0.25rem;
}

.trace-list pre {
  margin-bottom: 0;
}

.error {
  color: #d33;
}
