:root {
  color-scheme: light;
}

html {
  background: #fdfcfb;
}

body {
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
}

button,
textarea,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
textarea:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #ff6e1d;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.play {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

[data-audio-control].is-playing .play {
  width: 8px;
  height: 10px;
  margin-left: 0;
  border: 0;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.hero-art.is-playing img {
  transform: scale(1.018) translateX(-.5%);
}

.hero-art.is-playing .mini-wave,
.is-playing + div .mini-wave {
  opacity: .82;
}

.prompt-area textarea {
  width: 100%;
  min-height: 150px;
  padding: 0;
  resize: vertical;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 26px;
  line-height: 1.35;
}

.prompt-area textarea:focus {
  outline: 0;
}

.mode-tabs button[aria-selected="true"] {
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
}

.language-bar a {
  margin-left: auto;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
}

.language-bar button {
  cursor: pointer;
}

.faq-list summary span {
  width: 24px;
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
  .motion-ready .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 520ms cubic-bezier(.23, 1, .32, 1),
      transform 520ms cubic-bezier(.23, 1, .32, 1);
  }

  .motion-ready .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .motion-ready .reveal[data-delay="1"] {
    transition-delay: 60ms;
  }

  .motion-ready .reveal[data-delay="2"] {
    transition-delay: 120ms;
  }

  .motion-ready .editor .selection {
    transform: translateX(24px);
    opacity: 0;
    transition:
      opacity 520ms cubic-bezier(.23, 1, .32, 1),
      transform 650ms cubic-bezier(.77, 0, .175, 1);
  }

  .motion-ready .editor.is-visible .selection {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .prompt-area textarea {
    min-height: 170px;
    font-size: 20px;
  }

  .language-bar a {
    display: none;
  }
}
