:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #09101a;
  color: #f5f1e8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(177, 131, 64, .2), transparent 28rem),
    linear-gradient(145deg, #09101a, #101826 60%, #0c131e);
}

.shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

header { margin-bottom: 34px; }
.eyebrow { color: #d8aa61; letter-spacing: .2em; font-weight: 800; font-size: .76rem; }
h1 { margin: 8px 0 10px; font-family: Georgia, serif; font-size: clamp(2.25rem, 7vw, 4.25rem); line-height: .98; }
.intro { color: #adb7c7; font-size: 1.05rem; }

form, .result {
  padding: clamp(22px, 5vw, 38px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  background: rgba(16, 24, 38, .84);
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
  backdrop-filter: blur(12px);
}

label { display: grid; gap: 9px; margin-bottom: 21px; color: #dce2ea; font-weight: 680; }
input, textarea, select {
  width: 100%;
  border: 1px solid #384559;
  border-radius: 12px;
  background: #0b1320;
  color: #fff;
  padding: 13px 14px;
  font: inherit;
}
textarea { min-height: 270px; resize: vertical; line-height: 1.55; }
input:focus, textarea:focus, select:focus { outline: 2px solid #d8aa61; outline-offset: 2px; }
.counter { margin: -14px 3px 22px; color: #8592a5; text-align: right; font-size: .8rem; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.voice-finder { margin-bottom: 20px; }
.voice-finder label { margin: 14px 0 0; }
.voice-status { min-height: 20px; margin: 9px 2px 0; color: #adb7c7; font-size: .86rem; }
output { color: #d8aa61; font-weight: 500; }

button, .download {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  padding: 0 24px;
  background: #d8aa61;
  color: #15100a;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
button:disabled { opacity: .55; cursor: wait; }
.secondary { min-height: 44px; background: transparent; color: #d8aa61; border: 1px solid #6d5734; }
#status { min-height: 24px; margin: 15px 0 0; color: #c8d1de; }
.result { display: grid; gap: 20px; margin-top: 18px; }
.result[hidden] { display: none; }
audio { width: 100%; }

@media (max-width: 600px) {
  .shell { padding-top: 38px; }
  .controls { grid-template-columns: 1fr; gap: 0; }
}
