demo/style.css
* {
  box-sizing: border-box;
}
:root {
  --color-bg-1: #f2f2f9;
}

/* Demo */
body {
  /* max-width: 75ch;
  margin: auto; */
  font-family: sans-serif;
  margin: 0;
  min-height: 100vh;
}
main {
  height: 100vh;
  display: grid;
  grid-template-areas:
    "examples preview"
    "examples history";
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 2fr 1fr;
}
p {
  max-width: 75ch;
}
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 1.75rem;
}
h3 {
  margin-bottom: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #7942fa;
}

main > * {
  outline: 1px solid #f2f0f4;
}
.wrapper {
  max-width: 100ch;
  margin: auto;
}
.examples {
  grid-area: examples;
  overflow: auto;
}
.history {
  grid-area: history;
  overflow: auto;
}
.preview {
  grid-area: preview;
  display: flex;
  flex-direction: column;
}
.paste-box {
  flex: 1;
  padding: 1rem;
  margin: 0;
  background-color: var(--color-bg-1);
}
.log-item {
  background-color: var(--color-bg-1);
  border-radius: 0.5rem;
  margin: 0 0.5rem 0.5rem 0.5rem;
}
summary {
  cursor: pointer;
  padding: 1rem;
}
details {
  border-bottom: 1px solid var(--color-bg-1);
  animation: flash 700ms ease-out;
  animation-fill-mode: forwards;
}
@keyframes flash {
  from {
    background-color: #ffff0044;
  }
  to {
    background-color: transparent;
  }
}

.p-1 {
  padding: 1rem;
}
.p-2 {
  padding: 2rem;
}
@media screen and (max-width: 40rem) {
  main {
    grid-template-areas: "examples" "preview" "history";
    grid-template-columns: 1fr;
    grid-template-rows: 2fr 1fr 1fr;
  }
  .p-1 {
    padding: 0.5rem;
  }
  .p-2 {
    padding: 1rem;
  }
}
