:root{color-scheme:light;--background:#f9f6ee;--fg:#283932;--muted:#505e51;--paper:#eef0e7;--outline:#778b7b;--active:#eddfa9;--focus:#944624;--shadow:#26382e33;font:100%/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
:root[data-theme=dark]{color-scheme:dark;--background:#202922;--fg:#f3efe2;--muted:#c0cdbf;--paper:#324037;--outline:#859485;--active:#625936;--focus:#f0bc9a;--shadow:#0007}
@media(prefers-color-scheme:dark){:root[data-theme=system]{color-scheme:dark;--background:#202922;--fg:#f3efe2;--muted:#c0cdbf;--paper:#324037;--outline:#859485;--active:#625936;--focus:#f0bc9a;--shadow:#0007}}
*{box-sizing:border-box}
body{margin:0;background:var(--background);color:var(--fg);padding-inline:max(1rem,env(safe-area-inset-left)) max(1rem,env(safe-area-inset-right));padding-block-end:env(safe-area-inset-bottom)}
button,select{font:inherit;color:inherit}
button{border:0;background:none;cursor:pointer;touch-action:manipulation}
button:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
header,main{max-width:42rem;margin:auto}
header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding-block:calc(.75rem + env(safe-area-inset-top)) .75rem;border-bottom:1px solid var(--outline)}
.brand{font-size:clamp(1.05rem,3vw,1.35rem);font-weight:760;letter-spacing:-.03em}
main{padding-block:1.75rem 3rem}
h1{font-size:clamp(1.65rem,6vw,2.4rem);line-height:1.12;letter-spacing:-.035em;margin:0 0 .6rem;text-wrap:balance}
.hint{color:var(--muted);font-size:.875rem;margin:0 0 1.35rem}
.reader p{font-size:clamp(1.125rem,2.5vw,1.26rem);line-height:1.72;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 1.1em}
.control{min-height:44px;border:1px solid var(--outline);border-radius:.5rem;padding:.4rem .8rem;font-size:.9rem;white-space:nowrap}
.word,.sentence{display:inline;padding:0;line-height:inherit;white-space:normal;overflow-wrap:anywhere}
.word{text-decoration:underline dotted var(--outline);text-underline-offset:.18em;border-radius:.2em}
.word:hover,[aria-expanded=true]{background:var(--active)}
.sentence{margin-inline:.22em;padding-inline:.15em;white-space:nowrap;border-radius:.25em}
.sentence span{border:1px solid var(--outline);border-radius:.28em;color:var(--muted);font-size:.68em;padding:.1em .3em;font-weight:650}
#popover{position:fixed;z-index:2;max-width:min(23rem,calc(100% - 24px));width:max-content;margin:0;padding:.6rem .8rem;overflow:auto;overscroll-behavior:contain;color:var(--fg);background:var(--paper);border:1px solid var(--outline);border-radius:.65rem;box-shadow:0 5px 26px var(--shadow)}
#popover>strong{display:block;font-size:.91rem;margin-bottom:.2em}
#popover a{display:inline-block;color:inherit;font-size:.9rem;margin-top:.35rem}
.settings{display:grid;max-width:24rem;gap:1rem}
.settings label{display:grid;gap:.3rem}
select{min-height:44px;background:var(--background);border:1px solid var(--outline);border-radius:.4rem;padding:.4rem .6rem}
.skip{position:absolute;left:1rem;top:-200px;color:var(--fg);background:var(--background)}
.skip:focus{top:0;z-index:3}
