* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #101518;
  color: #edf2f3;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
}

main {
  width: min(100% - 32px, 620px);
  margin: 40px auto;
}

header {
  text-align: center;
  margin-bottom: 28px;
}

h1 {
  font-size: 26px;
  letter-spacing: -0.6px;
  margin: 0;
}

header p,
#artist,
small,
#status {
  color: #98a8ae;
}

header p {
  margin: 4px 0;
}

section {
  text-align: center;
}

h2 {
  font-size: 22px;
  margin: 20px 0 4px;
}

#artist {
  margin: 0 0 16px;
}

#nothing {
  padding: 28px 0;
}

#nothing p {
  margin: 0 0 4px;
}

button {
  display: block;
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  background: #bde8d5;
  color: #10241c;
  font: 600 17px system-ui;
  cursor: pointer;
  margin-top: 18px;
}

button:hover {
  background: #d4f3e5;
}

button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid #bde8d5;
  outline-offset: 4px;
}

progress {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  width: 100%;
  height: 4px;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #28353b;
}

progress::-webkit-progress-bar {
  background: #28353b;
}

progress::-webkit-progress-value {
  background: #bde8d5;
}

progress::-moz-progress-bar {
  background: #bde8d5;
}

#status {
  font-size: 13px;
  min-height: 20px;
  margin: 18px 0;
}

details {
  text-align: left;
  border-top: 1px solid #28353b;
  padding: 14px 0;
  color: #a9b6bc;
  font-size: 13px;
}

summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
}

.settings-content {
  padding-top: 18px;
}

.setting-label,
.range-labels {
  display: flex;
  justify-content: space-between;
}

input {
  width: 100%;
  accent-color: #bde8d5;
  margin: 18px 0 6px;
}

.range-labels {
  font-size: 11px;
}

#diagnostics {
  overflow-wrap: anywhere;
}

canvas {
  display: block;
  width: 100%;
  background: #101518;
  border-radius: 8px;
}

#preview-panel {
  margin-bottom: 24px;
}

.hidden,
[hidden] {
  display: none !important;
}

@media (max-width: 480px) {
  main {
    margin-top: 24px;
  }
}

.preview-label {
  font-size: 11px;
  color: #98a8ae;
  margin: 4px 0 0;
}
