:root {
  color-scheme: dark;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  background: #07100e;
  color: #f4f0df;
}

* { box-sizing: border-box; }

html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { background: radial-gradient(circle at 50% 72%, #183127 0, #091512 42%, #040807 100%); }

#world, .veil { position: fixed; inset: 0; width: 100%; height: 100%; }
.veil {
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 35%, rgba(1, 5, 4, .52) 100%);
}

header { position: fixed; top: 5vh; left: 5vw; z-index: 2; }
.eyebrow { margin: 0 0 10px; font: 10px/1.4 -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: .28em; opacity: .5; }
h1 { margin: 0; font-size: clamp(28px, 4vw, 58px); font-weight: 400; letter-spacing: .15em; }

.recorder {
  position: fixed; z-index: 3; left: 50%; bottom: 7vh; transform: translateX(-50%);
  display: grid; justify-items: center; width: min(92vw, 520px); text-align: center;
}
#prompt { margin: 0 0 15px; font-size: clamp(15px, 1.7vw, 21px); letter-spacing: .12em; }
#record {
  appearance: none; border: 1px solid rgba(244, 240, 223, .28); color: inherit;
  background: rgba(13, 31, 25, .72); backdrop-filter: blur(16px);
  min-width: 210px; padding: 15px 23px; border-radius: 999px;
  font: 14px/1 -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: .08em;
  cursor: pointer; transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
#record:hover { transform: scale(1.035); border-color: rgba(255, 231, 167, .75); }
#record.recording { background: rgba(92, 34, 26, .82); border-color: #ffd7a0; transform: scale(1.05); }
#record.processing { opacity: .72; cursor: wait; }
.record-light { display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: #e7c77e; box-shadow: 0 0 14px #e7c77e; }
.recording .record-light { background: #ff806e; animation: blink .8s infinite alternate; }
#status { height: 18px; margin: 11px 0 0; font: 11px/1.4 -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: .06em; opacity: .56; }

footer {
  position: fixed; z-index: 2; left: 5vw; right: 5vw; bottom: 4vh;
  display: flex; justify-content: space-between;
  font: 9px/1.4 -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: .17em; opacity: .38;
}

@keyframes blink { to { transform: scale(1.45); box-shadow: 0 0 28px #ff806e; } }
@media (max-width: 620px) { footer span:last-child { display: none; } header { top: 3vh; } }
