:root {
  color-scheme: light dark;
  font:
    16px/1.5 system-ui,
    sans-serif;
}
body {
  margin: 0;
}
main {
  width: min(54rem, calc(100% - 2rem));
  margin: 2rem auto;
}
header,
.actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
header {
  justify-content: space-between;
}
h1,
h2,
p {
  margin: 0 0 0.75rem;
}
h2 {
  font-size: 1.2rem;
}
form,
section {
  border: 1px solid #8887;
  border-radius: 0.65rem;
  padding: 1rem;
  margin: 1rem 0;
}
.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0.5rem 1rem;
}
label {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}
button,
input,
textarea {
  font: inherit;
  padding: 0.4rem 0.65rem;
}
button {
  cursor: pointer;
}
article {
  padding: 0.8rem 0;
  border-top: 1px solid #8887;
  overflow-wrap: anywhere;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 24rem;
  overflow: auto;
}
