:root {
  color-scheme: dark;
}

body {
  margin: 16px;
  background: #18191a;
  color: #ddd;
  font: 14px/1.4 Roboto, system-ui, sans-serif;
}

h1 {
  margin: 0 0 2px;
  font-size: 1.2rem;
  font-weight: 500;
}

.intro {
  margin: 0 0 16px;
  color: #a5a5a5;
}

.cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: block;
  margin-bottom: 4px;
  color: #b4b4b4;
  font-size: 0.8rem;
}

textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 320px;
  min-height: 100px;
  padding: 8px;
  border: 1px solid #37393a;
  border-radius: 3px;
  background: #1e2021;
  color: inherit;
  font: 13px/1.4 "Roboto Mono", ui-monospace, Consolas, monospace;
  resize: vertical;
}

textarea[readonly] {
  background: #131414;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
}

button {
  padding: 5px 11px;
  border: 1px solid #393b3c;
  border-radius: 3px;
  background: #242627;
  color: #eee;
  cursor: pointer;
  font: inherit;
}

#go {
  background: #343739;
}

button:enabled:hover {
  border-color: #666;
}

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

:focus-visible {
  outline: 2px solid #9faeba;
  outline-offset: 1px;
}

.notice,
#copy-status {
  margin: 0;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.notice:not(:empty),
#copy-status:not(:empty) {
  margin-top: 8px;
}

.notice {
  color: #e5b174;
}

footer {
  margin-top: 14px;
  color: #a5a5a5;
  font-size: 0.8rem;
}

footer a {
  color: #ccc;
  text-underline-offset: 2px;
}

@media (max-width: 700px) {
  .cols {
    grid-template-columns: minmax(0, 1fr);
  }

  textarea {
    height: 200px;
  }
}
