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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

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

input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font: 16px system-ui, sans-serif;
}

input::placeholder {
  color: #999;
}

input:focus {
  outline: 2px solid #111;
  outline-offset: 2px;
}

#preview {
  width: min(280px, 100%);
  margin: 28px auto 0;
  line-height: 0;
}

#preview svg {
  display: block;
  width: 100%;
  height: auto;
}

#error {
  margin: 16px 0 0;
  color: #a02525;
  font-size: 13px;
  line-height: 1.5;
}

[hidden] {
  display: none !important;
}

noscript {
  display: block;
  margin-top: 16px;
  font-size: 13px;
}
