:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f8efe8;
  background: #110d0c;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 20%, rgba(167, 72, 46, 0.2), transparent 36rem),
    #110d0c;
}

main {
  width: min(100%, 560px);
}

.eyebrow {
  color: #cc8a70;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.17em;
}

h1 {
  margin: 10px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 9vw, 4.4rem);
  font-weight: 500;
  line-height: 0.98;
}

.intro,
.privacy {
  color: #bcaeaa;
  line-height: 1.7;
}

label {
  display: grid;
  gap: 8px;
  margin: 28px 0 16px;
  color: #d9ccc7;
  font-size: 0.86rem;
}

.pairing {
  margin: 28px 0 16px;
  padding: 20px;
  border: 1px solid #3c302d;
  border-radius: 18px;
  background: rgba(27, 20, 18, 0.72);
}

.pairing label {
  margin-top: 0;
}

.pairing button {
  width: 100%;
}

input {
  width: 100%;
  border: 1px solid #403431;
  border-radius: 12px;
  padding: 14px;
  color: inherit;
  background: #191312;
  font: inherit;
}

.recorder {
  border: 1px solid #3c302d;
  border-radius: 24px;
  padding: 28px;
  text-align: center;
  background: rgba(27, 20, 18, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.pulse {
  width: 18px;
  height: 18px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #6a5c58;
}

.pulse.active {
  background: #ff795f;
  box-shadow: 0 0 0 10px rgba(255, 121, 95, 0.1);
  animation: breathe 1.2s ease-in-out infinite;
}

.timer {
  margin: 8px 0 24px;
  color: #f6b39d;
  font: 2.4rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: #1a100d;
  background: #f4b29c;
  font: 700 0.86rem/1.2 inherit;
  cursor: pointer;
}

button:disabled {
  color: #776b67;
  background: #302825;
  cursor: not-allowed;
}

audio {
  width: 100%;
  margin-top: 20px;
}

.privacy {
  font-size: 0.78rem;
  text-align: center;
}

@keyframes breathe {
  50% {
    transform: scale(1.15);
  }
}

@media (max-width: 520px) {
  .actions {
    grid-template-columns: 1fr;
  }
}
