:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  --background: #171813;
  --panel: #23241c;
  --field: #1a1b15;
  --text: #f3efe3;
  --muted: #bdb7a7;
  --line: #4c4a3b;
  --straw: #e8d295;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 0%, #373222, var(--background) 54%);
  color: var(--text);
}
.masthead { max-width: 1120px; padding: 28px 30px 0; margin: auto; }
.brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.34rem;
  font-weight: 750;
  letter-spacing: -.05em;
  color: var(--text);
  text-decoration: none;
}
.brand-accent { color: var(--straw); }
.wave {
  display: grid;
  grid-template-columns: repeat(5, 2px);
  gap: 2px;
  place-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  margin-right: 10px;
  border-radius: 10px;
  background: var(--straw);
}
.wave i { height: 7px; border-radius: 2px; background: #2c2719; }
.wave i:nth-child(even) { height: 11px; }
.wave i:nth-child(3) { height: 17px; }
main { width: min(100% - 44px, 600px); margin: clamp(48px, 9vh, 100px) auto 56px; }
h1 {
  color: var(--straw);
  font-size: clamp(2rem, 6vw, 3.6rem);
  letter-spacing: -.052em;
  line-height: 1.08;
  margin: 0 0 27px;
}
form {
  padding: clamp(19px, 5vw, 35px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 20px 48px #0003;
}
label { display: block; font-size: .95rem; font-weight: 650; margin-bottom: 8px; }
button, select, textarea { font: inherit; }
select, textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--field);
}
select { min-height: 48px; }
textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
textarea::placeholder { color: var(--muted); }
.text-label { display: flex; justify-content: space-between; align-items: baseline; margin-top: 24px; }
#count { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
button {
  width: 100%;
  min-height: 49px;
  margin-top: 21px;
  border: 0;
  border-radius: 10px;
  background: var(--straw);
  color: #2d2514;
  font-weight: 700;
  cursor: pointer;
}
button:hover:enabled { background: #f1dea5; }
button:disabled, select:disabled { opacity: .58; cursor: default; }
:focus-visible { outline: 2px solid var(--straw); outline-offset: 3px; }
#status { margin: 16px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
#status[data-error] { color: #ffc2ad; }
audio { display: block; width: 100%; margin-top: 17px; }
@media (max-width: 500px) {
  .masthead { padding: 22px 22px 0; }
  main { margin-top: 39px; }
  h1 { margin-bottom: 20px; }
}
