/* 체리 AI 말로 묻기 녹음 창(voice.cherrylee.dev). 사이트 CSS를 가져오지 않고 체리 톤(분홍·흰 배경·둥근 단추)만 최소로 둔다. */
:root {
  --cherry: #e0457b;
  --cherry-dark: #b8295c;
  --cherry-deeper: #93204a;
  --cherry-soft: #fde8ef;
  --ink: #2b2230;
  --muted: #6b5f70;
  --bg: #fffafc;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Hiragino Sans', sans-serif;
}

.voice {
  width: 100%;
  max-width: 24rem;
  padding: 1.5rem 1rem;
  text-align: center;
}

.voice-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--cherry-dark);
}

.voice-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.voice-time {
  margin: 0 0 1rem;
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  color: var(--cherry-dark);
}

.voice-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.voice-btn {
  min-width: 10rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.4rem;
  border: 2px solid var(--cherry);
  border-radius: 999px;
  background: #fff;
  color: var(--cherry-dark);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.voice-btn--main {
  min-width: 12rem;
  min-height: 3.5rem;
  border-color: var(--cherry-dark);
  background: var(--cherry-dark);
  color: #fff;
  font-size: 1.1rem;
}

.voice-btn:hover {
  background: var(--cherry-soft);
}

.voice-btn--main:hover {
  background: var(--cherry-deeper);
}

.voice-btn:focus-visible {
  outline: 3px solid var(--cherry-dark);
  outline-offset: 3px;
}

.voice-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.voice-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.voice-note:empty {
  display: none;
}

.voice-privacy {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.voice-note--error {
  color: var(--cherry-dark);
}

.voice-link {
  color: var(--cherry-dark);
  font-weight: 600;
}

/* 대비: 글자는 --cherry-dark(흰 바탕 약 6:1) 이상만 쓴다. --cherry는 테두리·점에만. */
.voice[data-state='recording'] .voice-time::before {
  content: '';
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--cherry);
  vertical-align: middle;
  animation: voice-blink 1s steps(2, start) infinite;
}

@keyframes voice-blink {
  to {
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .voice[data-state='recording'] .voice-time::before {
    animation: none;
  }
}
