:root {
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  color: #293c35;
  background: #f4f2eb;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  max-width: 1040px;
  margin: auto;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
header a {
  font:
    700 25px Georgia,
    serif;
  color: inherit;
  text-decoration: none;
}
header span {
  color: #68746a;
  font-size: 13px;
}
header button {
  margin-left: auto;
}
main {
  max-width: 720px;
  margin: 34px auto;
  padding: 0 24px;
}
.intro {
  text-align: center;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: #6f7b6a;
}
h1 {
  font-size: clamp(32px, 6vw, 46px);
  font-weight: 500;
  letter-spacing: -2px;
  margin: 16px 0;
}
p {
  line-height: 1.8;
}
.intro > p:last-child {
  color: #6b746d;
  font-size: 15px;
}
.voice {
  text-align: center;
  padding: 34px 0 24px;
}
.orb {
  width: 126px;
  height: 126px;
  border-radius: 50%;
  border: 1px solid #78947a;
  background: #dfe8d8;
  box-shadow:
    0 0 0 15px #e8ecdf,
    0 0 0 30px #efefe5;
  margin: 22px;
  color: #42604a;
  cursor: pointer;
  font-size: 34px;
}
.orb.recording {
  background: #52785d;
  color: white;
  animation: breathe 2s infinite;
}
.orb:disabled {
  opacity: 0.55;
  cursor: wait;
}
@keyframes breathe {
  50% {
    box-shadow:
      0 0 0 22px #e0e8d8,
      0 0 0 34px #ebeee1;
  }
}
button,
.primary {
  font: inherit;
  font-size: 14px;
  border: 1px solid #c9d0c3;
  background: #fafbf5;
  color: inherit;
  padding: 10px 17px;
  border-radius: 9px;
  cursor: pointer;
  text-decoration: none;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:hover:not(:disabled) {
  background: #e5ebdd;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #64876c;
  outline-offset: 4px;
}
.controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.auto {
  display: block;
  margin-top: 22px;
  font-size: 13px;
  color: #627365;
}
.hint {
  font-size: 12px;
  color: #798074;
}
.latest {
  margin: 20px 0 34px;
  border-left: 2px solid #95a68a;
  padding: 8px 24px;
}
#heard {
  font-size: 14px;
  color: #7d8379;
}
#reply {
  font-size: 22px;
  line-height: 1.65;
  white-space: pre-wrap;
}
details {
  border-top: 1px solid #dce0d4;
  padding: 20px 0;
}
summary {
  cursor: pointer;
  font-size: 14px;
}
textarea {
  display: block;
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  border: 1px solid #cbd1c4;
  border-radius: 10px;
  resize: vertical;
  font: inherit;
  line-height: 1.6;
  background: #fcfcf7;
  color: inherit;
}
form {
  margin: 18px 0;
}
.quiet {
  margin-top: 20px;
  background: transparent;
  font-size: 12px;
  color: #797f74;
}
#history p {
  font-size: 14px;
  white-space: pre-wrap;
}
#history small {
  color: #808a7d;
}
footer {
  margin: 28px 0 50px;
  font-size: 11px;
  line-height: 1.9;
  color: #81877b;
}
#error {
  background: #f4e7db;
  padding: 14px;
  border-radius: 10px;
  color: #8a4e36;
}
dialog {
  max-width: 540px;
  width: 90%;
  border: 1px solid #bfcab8;
  border-radius: 18px;
  background: #f4f2eb;
  color: inherit;
  padding: 26px;
}
dialog::backdrop {
  background: #25382c55;
}
.saved-item {
  padding: 15px 0;
  border-bottom: 1px solid #dce0d4;
}
.saved-item p {
  font-size: 14px;
}
.saved-item button {
  font-size: 12px;
  margin-right: 8px;
}
[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }
}
@media (max-width: 500px) {
  header {
    padding: 20px;
    gap: 14px;
  }
  header span {
    font-size: 11px;
  }
  main {
    margin-top: 20px;
  }
  #reply {
    font-size: 19px;
  }
}
