:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #22201c;
  background: #f5f1e8;
  line-height: 1.6;
  font-size: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f5f1e8;
}

button,
textarea {
  font: inherit;
}

button {
  width: 100%;
  min-height: 60px;
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  border: 2px solid #302d27;
  cursor: pointer;
  font-weight: 650;
  text-align: center;
}

button:focus-visible,
textarea:focus-visible {
  outline: 4px solid #245ea8;
  outline-offset: 4px;
}

button[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.shell {
  width: min(700px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #302d27;
  color: #fffdf7;
}

.card {
  background: #fffdf7;
  border: 1px solid #d7d0c2;
  border-radius: 20px;
  padding: clamp(1.3rem, 4vw, 2.4rem);
  box-shadow: 0 12px 35px rgb(48 45 39 / 8%);
}

h1 {
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1:focus {
  outline: none;
}

p {
  max-width: 58ch;
}

.supporting {
  font-size: 1.05rem;
}

.progress {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #514b41;
}

.permission-note {
  margin: 1.2rem 0 0;
  padding: 1rem;
  border: 2px solid #b7ad9d;
  border-radius: 12px;
  background: #faf7f0;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.primary {
  background: #302d27;
  color: #fffdf7;
}

.secondary {
  background: #fffdf7;
  color: #22201c;
}

.stop-action {
  background: #f5f1e8;
  color: #22201c;
  border-color: #6e675b;
}

textarea {
  display: block;
  width: 100%;
  min-height: 220px;
  margin-top: 0.7rem;
  padding: 1rem;
  border: 2px solid #6e675b;
  border-radius: 12px;
  resize: vertical;
  background: #fff;
  color: #22201c;
}

label {
  display: block;
  margin-top: 1.2rem;
  font-weight: 700;
}

.memory,
.reflection,
.question {
  border-left: 5px solid #7e7464;
  padding: 0.35rem 0 0.35rem 1rem;
  margin: 1.4rem 0;
  white-space: pre-wrap;
  font-size: 1.05rem;
}

.recording-state {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.5rem 0;
  font-weight: 750;
}

.recording-state::before {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: #a32626;
  box-shadow: 0 0 0 0.35rem rgb(163 38 38 / 14%);
}

.status {
  min-height: 1.6em;
  margin: 1rem 0 0;
  color: #514b41;
  font-weight: 600;
}

.error {
  padding: 1rem;
  border: 2px solid #a32626;
  border-radius: 12px;
  background: #fff7f5;
}

@media (max-width: 560px) {
  :root {
    font-size: 20px;
  }

  .shell {
    width: min(100% - 1rem, 700px);
    padding-top: 0.5rem;
  }

  .card {
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
