:root{color-scheme:light;--ink:#252333;--paper:#f6f5f1;--purple:#c9b6ef;--border:#cecbd1;font-family:"DM Sans","Helvetica Neue",Arial,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}.defs,[hidden]{display:none!important}
button,select{font:inherit;color:inherit;cursor:pointer}button{border:0;background:transparent}button:focus-visible,select:focus-visible{outline:3px solid #7952b4;outline-offset:4px}
button:disabled{opacity:.4;cursor:default}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
header{border-bottom:1px solid var(--border);background:#fffefa}.bar,main{width:min(1024px,calc(100% - 64px));margin:auto}.bar{height:74px;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:12px;font-weight:780;font-size:1.4rem;letter-spacing:-.055em}.brand-mark{width:35px;height:35px;background:var(--purple);display:grid;place-items:center;border:1.5px solid var(--ink);border-radius:10px;transform:rotate(-6deg);box-shadow:1.5px 1.5px 0 var(--ink)}.brand-mark .icon{width:23px;height:23px;stroke-width:2.5}
.mode,.speed{display:flex;align-items:center;position:relative}.mode .icon:first-child{position:absolute;left:12px;pointer-events:none;width:17px}.drop{width:15px;height:15px;transition:transform .15s}.mode .drop,.speed .drop{right:10px;position:absolute;pointer-events:none}
select{appearance:none;border:1px solid var(--border);border-radius:7px;background:#fffefa;padding:9px 32px 9px 38px;font-size:.9rem}
main{padding:42px 0 28px}.intro{display:flex;gap:18px;align-items:center;justify-content:space-between;margin-bottom:25px}.section-label{display:flex;align-items:center;gap:9px;text-transform:uppercase;letter-spacing:.12em;font-size:.76rem;font-weight:750}.section-label i{width:19px;height:3px;background:#7854a5;display:block}
h1,h2,h3,p{margin:0}h1{font-family:"Iowan Old Style","Palatino Linotype",Georgia,serif;font-size:clamp(3.3rem,6vw,4.5rem);letter-spacing:-.067em;font-weight:500;line-height:1.06;margin:8px 0}h1 em{font-weight:500}
.intro p{color:#5e5b66;line-height:1.5}.level{align-self:flex-end;display:flex;gap:8px;align-items:center;border:1px solid #bfbac6;border-radius:100px;padding:4px 11px 4px 5px;white-space:nowrap;font-size:.84rem}.level b{background:#ded1f4;border-radius:100px;padding:3px 7px;font-size:.78rem}
.lesson{border:1.5px solid var(--ink);border-radius:15px;overflow:hidden;background:#fffefa;box-shadow:3px 4px 0 var(--ink)}.hero{display:grid;grid-template-columns:1.62fr 1fr}.prompt{padding:32px 38px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:24px;min-height:304px}.line{color:#61596d}.line .icon{height:17px;width:17px}
h2,#listen-prompt{font-family:"Iowan Old Style","Palatino Linotype",Georgia,serif;letter-spacing:-.042em;font-size:clamp(2rem,3.4vw,3rem);font-weight:500;line-height:1.13;text-wrap:pretty;overflow-wrap:anywhere}
mark{background:linear-gradient(transparent 76%,#dac8f5 76%);color:inherit}.art{min-height:100%;position:relative;overflow:hidden;background:#c2aff2;border-left:1.5px solid var(--ink)}.art img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:50% 53%}
.listen-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.listen,#next{display:flex;align-items:center;justify-content:center;gap:10px;background:var(--ink);color:white;font-weight:650;border-radius:7px;padding:12px 19px}.listen:hover,#next:hover{background:#494058}.listen:active,#next:active{transform:translateY(1px)}.speed select{padding:11px 29px 11px 13px;border-color:#d1ccd5;font-variant-numeric:tabular-nums;background:transparent}
.translation{border-top:1px solid var(--ink);background:#f4effb}.translation button{display:flex;align-items:center;gap:11px;text-align:left;width:100%;padding:15px 27px;font-weight:650}.translation button:hover{background:#ece4f6}.translation .drop{margin-left:auto}.translation button[aria-expanded=true] .drop{transform:rotate(180deg)}#answer{padding:0 28px 19px;font-size:1.125rem;line-height:1.5;overflow-wrap:anywhere}
#audio-status:not(:empty){margin:16px 0;color:#754823}.vocab{margin:26px 0 23px;border:1px solid var(--border);border-radius:12px;padding:21px 25px;background:#fffefa}.vocab h3{display:flex;align-items:center;gap:10px;font-size:1.12rem;letter-spacing:-.025em}.vocab h3 svg{color:#735297}#words{display:flex;gap:28px;margin-top:17px}#words:empty{display:none}.word{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:1;min-width:0}.word+.word{border-left:1px solid var(--border);padding-left:28px}.word b{font-family:Georgia,serif;font-size:1.35rem;font-weight:500}.word small{display:block;color:#67616d;font-size:.91rem;margin-top:3px}.word button{width:42px;height:42px;border:1px solid #ddd4e9;border-radius:50%;background:#f6f2fb;display:grid;place-items:center}.word button:hover{background:#e5d9f3}.word .icon{width:18px}#hint{margin-top:14px;line-height:1.5}
.navigation{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px}#prev{justify-self:start;border:1px solid #c4bfca;border-radius:7px;padding:11px 16px}#prev:hover:enabled{background:#edeaf0}#next{justify-self:end}#steps{display:flex;gap:5px;align-items:center}.step{width:8px;height:8px;border-radius:12px;background:#d2ced7}.step.active{width:23px;background:#796298}
@media(max-width:740px){main,.bar{width:calc(100% - 36px)}main{padding-top:28px}.prompt{padding:24px;min-height:265px}.hero{grid-template-columns:1.65fr 1fr}.intro{margin-bottom:19px}.art img{object-position:50% 50%}}
@media(max-width:570px){.bar{height:64px}.brand{font-size:1.12rem;gap:8px}.brand-mark{width:29px;height:29px}.mode select{font-size:.85rem;padding-left:11px}.mode .icon:first-child{display:none}.intro{align-items:flex-start;position:relative}.level{align-self:flex-start;position:absolute;top:-4px;right:0}.level span{display:none}.level{padding:2px}h1{font-size:3.6rem}.intro p{font-size:.95rem}.hero{display:flex;flex-direction:column-reverse}.art{height:115px;border-left:0;border-bottom:1px solid var(--ink)}.art img{object-position:50% 51%}.prompt{min-height:225px;gap:18px;padding:23px}.translation button{padding:14px 20px}#answer{padding:0 20px 17px}.vocab{padding:18px 20px;margin-top:21px}#words{flex-direction:column;gap:12px;margin-top:14px}.word+.word{border-left:0;border-top:1px solid #e1dce6;padding-left:0;padding-top:12px}.navigation{gap:6px}.step{width:5px;height:5px}.step.active{width:14px}#steps{gap:3px}#next,#prev{padding:10px 12px;font-size:.9rem}}

#toggle-sentence {border:1px solid #c4bfca;border-radius:7px;padding:11px 14px;background:#fffefa}
#toggle-sentence:hover {background:#f4effb}
#vocab[hidden] + .navigation {margin-top:26px}

.theme-picker {display:flex;align-items:center;gap:10px;margin-top:12px;color:#5e5b66;font-size:.94rem}
.theme-picker span {position:relative;min-width:0}
.theme-picker select {max-width:100%;padding-left:12px;color:var(--ink)}
.theme-picker .drop {position:absolute;right:11px;top:50%;transform:translateY(-50%);pointer-events:none}
.audio-art {position:absolute;inset:0;display:grid;place-items:center;background:repeating-radial-gradient(ellipse at 35% 70%,#cdbaf1 0 15px,#b8a0e1 16px 17px,#cdbaf1 18px 32px)}
.audio-art .icon {width:32%;height:auto;stroke-width:1.7;color:var(--ink);filter:drop-shadow(4px 4px #eee5fc)}
@media(max-width:570px){.audio-art .icon{height:64%;width:auto}.intro>div:first-child{max-width:100%}}

.art img#theme-art {object-fit:contain;object-position:center;background:#ddcef2}
