:root{color-scheme:light;--ink:#000;--muted:#55554f;--line:#e5e3d8;--paper:#f5f4ef;--accent:#ff4b1f;--accent-ink:#b8330f;
  font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--ink);background:#fff}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:#fff}
main{max-width:860px;margin:0 auto;padding:32px 16px 56px}
[data-readout]{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.eyebrow{margin:0;color:var(--accent-ink);font-weight:700;font-size:13px;letter-spacing:.06em;text-transform:uppercase}
h1{font-size:clamp(30px,5.4vw,46px);line-height:1.08;letter-spacing:-.02em;margin:8px 0 12px}
.deck{font-size:18px;line-height:1.55;margin:0 0 22px;max-width:680px}
.card{border:1px solid var(--line);border-radius:22px;padding:22px;margin:0 0 22px;background:#fff}
label.field{display:flex;flex-direction:column;gap:6px;font-weight:700;font-size:15px}
textarea{width:100%;min-height:150px;resize:vertical;border:1px solid #cfccc0;border-radius:14px;padding:12px 14px;font:inherit;font-size:17px;
  line-height:1.5;font-weight:400;background:var(--paper);color:var(--ink)}
textarea:focus{outline:none;border-color:var(--ink)}
.count{align-self:flex-end;color:var(--muted);font-size:13px;font-weight:400}
.controls{display:grid;grid-template-columns:1fr 1.6fr;gap:14px 18px;margin:14px 0 6px}
.controls .wide{grid-column:1 / -1}
select{width:100%;min-height:46px;border:1px solid #cfccc0;border-radius:12px;padding:0 40px 0 12px;font:inherit;font-size:15px;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance:none;color:var(--ink);font-weight:400}
.voice-info{margin:2px 0 0;font-size:13px;color:var(--muted);font-weight:400}
.sliders{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px}
.slider{display:flex;flex-direction:column;gap:6px;font-weight:700;font-size:15px}
.slider span{display:flex;justify-content:space-between;gap:10px}
.slider output{font-weight:500}
.slider input{width:100%;accent-color:var(--accent);min-height:32px}
.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:14px}
.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 26px;border:0;border-radius:999px;background:var(--accent);
  color:#fff;font-size:16px;font-weight:700;cursor:pointer;text-decoration:none;font-family:inherit}
.primary:disabled{background:#d8d5cb;color:#6b6a63;cursor:not-allowed}
.secondary{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border:1px solid #cfccc0;border-radius:999px;background:#fff;color:var(--ink);
  font-size:15px;font-weight:600;cursor:pointer;text-decoration:none;font-family:inherit}
.secondary:hover{border-color:var(--ink)}
.link{background:none;border:0;padding:0;min-height:44px;color:var(--accent-ink);text-decoration:underline;text-underline-offset:4px;font-size:15px;cursor:pointer;font-family:inherit}
.status{margin-top:14px}
.bar{height:8px;border-radius:99px;background:#efede6;overflow:hidden}
.bar span{display:block;height:100%;width:0;background:var(--accent);transition:width .2s}
.status p{margin:8px 0 0;font-size:14px}
.status.error p{color:#a3200b}
.result h2,.about h2{font-size:22px;margin:0 0 14px}
audio{width:100%;margin-bottom:12px}
.spoken{font-size:18px;line-height:1.75;margin:4px 0 14px;padding:14px 16px;background:var(--paper);border-radius:14px}
.spoken .w{cursor:pointer;border-radius:5px;padding:1px 1px;transition:background .08s}
.spoken .w:hover{background:#ece9dc}
.spoken .w.now{background:var(--accent);color:#fff}
.downloads{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.meta{font-size:14px;color:var(--muted);margin:6px 0 0;line-height:1.5}
.credit{font-size:13px;color:var(--muted);margin:8px 0 0;line-height:1.5}
.about{padding:6px 2px}
.about p,.about li{line-height:1.6}
.about a{color:var(--accent-ink)}
pre{background:#000;color:#fff;border-radius:12px;padding:12px 14px;overflow:auto;font-size:14px}
.links{font-weight:600}
.small{font-size:13px;color:var(--muted)}
@media(max-width:700px){.controls,.sliders{grid-template-columns:1fr}.card{padding:16px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
