:root {
  font-family: system-ui, sans-serif;
  color: #111;
  background: #fff;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

main {
  width: min(520px, calc(100% - 40px));
  margin: 10vh auto 40px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-size: 13px;
}

textarea {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font: 15px/1.5 ui-monospace, monospace;
  resize: vertical;
  overflow-wrap: anywhere;
}

button {
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font: 14px system-ui, sans-serif;
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: #f5f5f5;
}

button:disabled {
  color: #aaa;
  cursor: default;
}

textarea:focus-visible,
button:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.actions {
  display: flex;
  gap: 8px;
  margin: 12px 0 24px;
}

#copy {
  margin-top: 12px;
}

#message,
noscript {
  font-size: 13px;
  line-height: 1.5;
}

#message.error {
  color: #a02525;
}

[hidden] {
  display: none !important;
}
