:root {
  color-scheme: light dark;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  --danger: light-dark(#b00020, #ff8a80);
  --on-air-background: light-dark(#b00020, #ff5252);
  --on-air-text: light-dark(#ffffff, #000000);
}

body {
  margin: 0;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem;
}

.field {
  margin-block: 1rem;
}

.field label {
  display: block;
  font-weight: 600;
}

input:not([type]),
button {
  font: inherit;
}

input:not([type]) {
  box-sizing: border-box;
  width: 100%;
  padding: 0.5rem;
}

button {
  padding: 0.6rem 1.2rem;
}

:focus-visible {
  outline: 3px solid CanvasText;
  outline-offset: 3px;
}

.error {
  color: var(--danger);
  font-weight: 600;
}

.error:empty {
  display: none;
}

.talk {
  display: block;
  width: 100%;
  min-height: 6rem;
  font-size: 1.5rem;
  font-weight: 700;
  border: 3px solid currentColor;
  border-radius: 1rem;
  /* A press is held on purpose, so stop it selecting text or scrolling. */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}

.talk.on-air {
  background: var(--on-air-background);
  color: var(--on-air-text);
}

#people-list {
  padding: 0;
  list-style: none;
}

#people-list li {
  padding-block: 0.5rem;
  border-bottom: 1px solid GrayText;
}

.person-name {
  display: block;
  font-weight: 600;
}

#people-list input[type="range"] {
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
