@font-face{font-family:Studio;src:url('/lato.woff') format('woff');font-display:swap}
:root{--paper:#f6f5ee;--ink:#202a22;--secondary:#526055;--olive:#2a4933;--border:#d2d6c8;--face:Studio,"Segoe UI",Arial,sans-serif;--serif:Georgia,"Times New Roman",serif;color-scheme:light}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding:1rem}
body{margin:0;background:var(--paper);color:var(--ink);font:1rem/1.54 var(--face)}
button,a,textarea{font:inherit}
button,a{touch-action:manipulation}
button{cursor:pointer}button:disabled{cursor:default}
a{color:inherit;text-underline-offset:3px}
:focus-visible{outline:3px solid #8b5927;outline-offset:3px}
.symbols,[hidden]{display:none!important}
svg:not(.symbols){width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.frame{width:min(1144px,calc(100% - 7vw));margin:auto}
.skip{position:absolute;left:.5rem;top:-5rem;z-index:10;padding:.6rem 1rem;background:white}.skip:focus{top:.5rem}
header{border-bottom:1px solid var(--border);background:#f9f8f2}
.head,.head nav,.brand,.help,.langs,.foot,.foot div,.samples,.samples button,.generate,.download,.monitor-head,.section-head,.action-row,.guide-heading,.over{display:flex;align-items:center}
.head{min-height:72px;justify-content:space-between;gap:1rem}.brand,.help{text-decoration:none}
.brand{gap:9px;line-height:1}.brand strong{font:700 1.32rem var(--face);letter-spacing:-.055em}.brand span{font-size:.96rem;color:var(--secondary);border-left:1px solid var(--border);padding:4px 0 4px 13px;margin-left:5px}
.head nav{gap:26px}.help{gap:8px;font-size:.95rem}.help:hover{text-decoration:underline}.langs{border:1px solid #ccd1c2;background:#eaece2;border-radius:22px;padding:3px}.langs button{border:0;border-radius:16px;color:var(--secondary);background:none;font-size:.81rem;min-width:37px;height:30px;font-weight:bold}.langs [aria-pressed=true]{background:var(--olive);color:white}
.intro{padding:clamp(26px,3.4vw,53px) 0 25px}.over{gap:9px;letter-spacing:.17em;color:#4e674e;font-size:.75rem;font-weight:bold;margin:0 0 9px}.rule{width:21px;height:2px;background:#72946b}
h1{font:normal clamp(2.55rem,5vw,4.55rem)/1.12 var(--serif);letter-spacing:-.06em;margin:0}h1 em{font-weight:normal;color:#507044}
.lede{margin:9px 0 0;color:var(--secondary);font-size:1.07rem}
.desk{display:grid;grid-template-columns:minmax(0,1.46fr) minmax(0,1fr);gap:22px;align-items:stretch}
.panel{border:1px solid var(--border);border-radius:18px;background:#fdfdf8;box-shadow:0 3px 12px #2c392208;overflow:hidden}
.editor{padding:24px 26px}.section-head{gap:10px;margin-bottom:18px}.label-icon{width:34px;height:34px;display:grid;place-items:center;background:#e9efdf;color:#385839;border-radius:9px}
h2,h3{margin:0}h2{font-size:1.28rem;line-height:1.3;letter-spacing:-.022em}
.textwrap{border:1px solid #b8c2b1;border-radius:10px;background:white;overflow:hidden;display:flex;flex-direction:column}
.textwrap:focus-within{border-color:#486c44;box-shadow:0 0 0 2px #a8c49e75}
textarea{width:100%;min-height:130px;resize:vertical;display:block;border:none;padding:16px 17px 6px;outline:none;line-height:1.6;background:transparent;color:var(--ink);font-size:1.04rem}
textarea::placeholder{color:#6a7469}
.tools{display:flex;align-items:center;justify-content:space-between;margin:0 12px 6px;color:var(--secondary);font-size:.82rem;font-variant-numeric:tabular-nums}
.tools button{background:none;border:0;color:var(--secondary);padding:4px 5px;text-decoration:underline;text-underline-offset:3px}
.tools button:disabled{visibility:hidden}.tools .over-limit{color:#a33b25;font-weight:bold}
.samples{flex-wrap:wrap;gap:7px;margin:14px 0 21px;font-size:.87rem}.samples>span{margin-right:3px;color:var(--secondary)}.samples button{gap:5px;background:#f7f8ef;border:1px solid var(--border);border-radius:18px;padding:4px 10px;color:#364b36}.samples button svg{width:12px;height:12px}.samples button:hover,.download:hover{background:#e6eddf}
.action-row{gap:12px;justify-content:space-between}.generate,.download{justify-content:center;gap:9px;font-weight:bold;border-radius:9px;min-height:45px;padding:9px 20px}
.generate{background:var(--olive);color:white;border:1px solid var(--olive)}.generate:hover:enabled{background:#1a3523}.generate:disabled{background:#485b4b;border-color:#485b4b;color:#f2f2e8}.voicetag{font-size:.85rem;color:var(--secondary)}#feedback{margin:14px 0 0;color:#3d5b36;font-size:.94rem}#feedback.error{color:#93381c}
.listen{display:flex;flex-direction:column}.monitor{background:#25382c;color:#ecf7d8;position:relative;overflow:hidden;flex:1;min-height:193px;display:flex;flex-direction:column;background-image:linear-gradient(#e4f3cb09 1px,transparent 1px),linear-gradient(90deg,#e4f3cb09 1px,transparent 1px),radial-gradient(ellipse at 42% 70%,#45533a 0%,#23372b 70%);background-size:22px 22px,22px 22px,cover}
.monitor-head{padding:19px 22px 0;gap:9px;letter-spacing:.14em;font-size:.73rem;color:#e3efcf;font-weight:bold}.monitor-head svg{width:16px;height:16px}
.wavefield{position:absolute;inset:33px -2% 8px;pointer-events:none}.wavefield img{width:100%;height:100%;display:block}.ticks{position:absolute;left:20px;right:20px;bottom:13px;height:4px;background:repeating-linear-gradient(to right,#b8c6a078 0 1px,transparent 1px 9px)}
.listen-info{padding:21px 24px 24px}.listen-info>p{margin:.4rem 0 0;color:var(--secondary);font-size:.97rem}
#result audio{display:block;width:100%;height:44px;margin:14px 0 10px}.download{width:fit-content;min-height:38px;font-size:.94rem;border:1px solid var(--border);padding:4px 12px;color:#284a30;text-decoration:none}.download svg{width:16px}
#guide{margin:34px 0 36px}.guide-heading{gap:18px}.guide-heading h2{font:normal 1.88rem var(--serif);letter-spacing:-.035em}.guide-heading div{height:1px;background:var(--border);flex:1}
.guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:20px 0 21px}.guide-grid>div{position:relative;padding:0 24px 0 37px}.guide-grid>div+div{border-left:1px solid var(--border);padding-left:58px}.guide-grid svg{position:absolute;left:1px;top:3px;color:#58794e}.guide-grid>div+div svg{left:24px}
h3{font-size:1.05rem;line-height:1.45;letter-spacing:-.012em}.guide-grid p,details p{font-size:.95rem;color:var(--secondary);line-height:1.55;margin:5px 0}
details{border-top:1px solid var(--border);border-bottom:1px solid var(--border);font-size:.96rem}details summary{cursor:pointer;padding:13px 2px;font-weight:bold}details>div{max-width:82ch;padding:0 3px 10px}
footer{border-top:1px solid var(--border)}.foot{padding:19px 0;justify-content:space-between;color:var(--secondary);font-size:.85rem}.foot div{gap:9px}.foot b{font-weight:normal}
@media(min-width:1500px){.intro{padding-top:56px}.desk{gap:28px}.editor{padding:30px}textarea{min-height:165px}}
@media(max-width:800px){.frame{width:calc(100% - 40px)}.desk{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:14px}.editor{padding:18px}.samples{gap:5px}.voicetag{display:none}.guide-grid>div{padding-right:15px}.guide-grid>div+div{padding-left:39px}.guide-grid>div+div svg{left:12px}.brand span{font-size:.88rem}}
@media(max-width:650px){.frame{width:calc(100% - 32px)}.head{min-height:58px}.brand img{width:29px;height:29px}.brand strong{font-size:1.18rem}.brand span{display:none}.head nav{gap:14px}.help svg{width:16px}.help{font-size:.87rem}.langs button{height:29px;min-width:33px}.intro{padding:25px 0 20px}.intro h1{font-size:clamp(2.35rem,8.9vw,3.3rem)}.lede{font-size:1rem}.desk{grid-template-columns:1fr;gap:17px}.editor{padding:18px}.section-head{margin-bottom:12px}textarea{min-height:112px}.samples{margin:11px 0 15px}.samples button{min-height:33px}.generate{flex-grow:1}.listen{display:block}.monitor{min-height:151px}.monitor-head{padding-top:14px}.listen-info{padding:17px 19px}.wavefield{inset:23px -2% 4px}.guide-grid{grid-template-columns:1fr;gap:16px}.guide-grid>div,.guide-grid>div+div{border:0;padding:0 0 0 33px}.guide-grid>div+div svg{left:1px}.foot{align-items:flex-start;gap:8px;flex-wrap:wrap}.foot div{gap:5px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
