:root{color-scheme:light;--paper:#f5f6f3;--ink:#232923;--muted:#636b62;--line:#d9ddd5;--accent:#bd4024;--serif:Georgia,'Times New Roman',serif;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0}button,input,a,summary{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{font:inherit;cursor:pointer;border:0}button:disabled{cursor:default;opacity:.5}a{color:inherit}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible+span{outline:3px solid var(--accent);outline-offset:4px}fieldset{margin:0;padding:0;border:0;min-width:0}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[hidden]{display:none!important}.masthead{max-width:800px;margin:auto;padding:22px 28px;display:flex;align-items:center;justify-content:space-between}.brand{font-family:var(--serif);font-size:30px;letter-spacing:-1.5px;text-decoration:none;font-weight:bold}.brand>span:first-child{font-weight:normal;font-style:italic}.brand-dot{color:var(--accent)}#saved-toggle{background:none;color:var(--muted);padding:12px 0 12px 14px;font-size:14px}main{max-width:800px;margin:auto;padding:4px 28px 30px}.preferences{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.segmented{display:flex;background:#e9ece5;padding:3px;border-radius:8px}.segmented button{min-width:50px;min-height:42px;padding:9px 14px;border-radius:6px;background:transparent;color:var(--muted);font-size:14px}.segmented button[aria-pressed=true]{background:white;color:var(--ink);box-shadow:0 1px 3px #23301c13}.originals{display:flex;align-items:center;gap:9px;cursor:pointer;font-size:14px;position:relative;min-height:44px}.originals input{position:absolute;left:0;width:38px;height:26px;opacity:0;cursor:pointer}.switch{width:36px;height:22px;border-radius:20px;background:#d0d5cb;position:relative;flex-shrink:0}.switch:after{content:'';position:absolute;width:16px;height:16px;border-radius:100%;left:3px;top:3px;background:white;box-shadow:0 1px 2px #0002}.originals input:checked+.switch{background:var(--ink)}.originals input:checked+.switch:after{transform:translateX(14px)}.reader{background:white;border:1px solid var(--line);border-top:2px solid var(--ink);border-radius:2px;padding:12px 38px 24px}.reader-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;border-bottom:1px solid #ecede8}.font-controls{display:flex;margin-left:auto;gap:2px}.font-controls button{min-width:44px;min-height:44px;background:transparent;color:var(--muted);font-size:16px}.font-controls button:hover{color:var(--ink);background:var(--paper)}.bite-options{display:flex;gap:24px;flex-wrap:wrap}.bite-options button{background:none;color:var(--muted);font-size:14px;min-height:44px;position:relative;padding:10px 0}.bite-options button[aria-pressed=true]{color:var(--accent)}.bite-options button[aria-pressed=true]:after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--accent)}.excerpt{font-family:var(--serif);font-size:var(--reading-size,20px);line-height:1.75;padding:24px 0 0;min-height:240px;overflow-wrap:break-word}.excerpt p{margin:0 0 1.1em}.excerpt p:last-child{margin-bottom:0}.loading{color:var(--muted)}.actions{display:grid;grid-template-columns:52px 52px 1fr 1fr;gap:10px;margin-top:14px}.button{border-radius:6px;padding:16px 12px;min-height:52px;font-size:14px;display:flex;justify-content:center;align-items:center}.primary{background:var(--accent);color:white}.primary:hover{background:#a3331b}.secondary,.rating{border:1px solid var(--line);background:transparent}.secondary:hover,.rating:hover{background:#e9ece5}.rating[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:white}.sentence-controls{display:flex;justify-content:space-between;align-items:center;margin-top:20px;gap:12px;color:var(--muted);font-size:12px}.sentence-controls button{padding:12px 16px;background:var(--paper);border:1px solid var(--line);border-radius:5px;color:var(--ink);font-size:14px}.reveal-panel,.saved-panel{margin-top:20px;padding:24px 28px;background:#ecefe8;border:1px solid var(--line);border-radius:6px}.reveal-panel h2{font-family:var(--serif);font-size:28px;font-weight:normal;line-height:1.25;margin:0 0 8px}.reveal-panel p{margin:0;font-size:14px;color:var(--muted);line-height:1.6}.reveal-panel .translation-credit{margin-top:5px;font-size:12px}.book-links{display:flex;gap:24px;flex-wrap:wrap;margin-top:16px}.book-links a{font-size:14px;text-underline-offset:4px}.book-links a:hover{color:var(--accent)}footer{margin-top:24px;color:var(--muted);font-size:12px}.collection summary{cursor:pointer;text-decoration:underline;text-underline-offset:4px;width:max-content;padding:8px 0;list-style:none}.collection-content{line-height:1.65;font-size:14px}.collection-content p{margin:12px 0}.saved-panel{margin:0 0 20px;background:white}.saved-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.saved-top h2{font-family:var(--serif);font-size:24px;font-weight:normal;margin:0}.saved-top button{font-size:28px;width:44px;height:44px;color:var(--muted);background:none}.saved-group{font-size:12px;color:var(--muted);font-weight:500;margin:20px 0 6px}.saved-book{display:block;background:none;border-top:1px solid var(--line);padding:14px 0;width:100%;text-align:left;font-family:var(--serif);font-size:18px;line-height:1.4;color:var(--ink)}.saved-book small{display:block;font-family:ui-sans-serif,system-ui,sans-serif;font-size:12px;color:var(--muted);margin-top:4px}.saved-empty,.storage-status{font-size:14px;color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.error{text-align:center;margin-top:30px}.error button{padding:12px 22px;background:var(--ink);color:white;border-radius:5px}@media(max-width:600px){.masthead{padding:18px}.brand{font-size:28px}main{padding:4px 16px 24px}.preferences{gap:10px;margin-bottom:16px}.segmented button{min-width:43px;padding:9px 10px}.originals{gap:7px}.reader{padding:8px 22px 24px}.bite-options{gap:16px}.excerpt{line-height:1.7;min-height:220px}.actions{grid-template-columns:48px 48px 1fr 1fr;gap:8px}.button{padding:14px 8px}.reveal-panel,.saved-panel{padding:20px}.reveal-panel h2{font-size:25px}}@media(max-width:340px){.preferences{flex-wrap:wrap}.actions{grid-template-columns:44px 44px 1fr 1fr;gap:6px}.bite-options{gap:16px}.reader{padding-left:18px;padding-right:18px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

main{display:flex;flex-direction:column;min-height:calc(100svh - 90px)}.reader{padding-top:26px}.excerpt{padding-top:0}.settings{margin-top:auto;padding-top:28px}.settings>summary{list-style:none;cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:center;border:1px solid #e3e6df;border-radius:6px;background:#eff1ec;color:#697165;font-size:14px}.settings>summary::-webkit-details-marker{display:none}.settings[open]>summary{color:var(--ink);border-radius:6px 6px 0 0}.settings-body{padding:18px;border:1px solid #e3e6df;border-top:0;border-radius:0 0 6px 6px;background:#eff1ec}.settings .preferences{margin-bottom:14px;flex-wrap:wrap}.settings .reader-controls{border-bottom:0}.settings .collection{margin-top:12px;font-size:12px;color:var(--muted)}@media(max-width:600px){main{min-height:calc(100svh - 80px)}.reader{padding-top:22px}.settings-body{padding:16px}.settings .preferences{gap:12px}.settings .reader-controls{gap:8px}}

.settings{padding-top:80px}.settings>summary{width:max-content;min-width:104px;margin-left:auto;padding:0 18px;border-radius:6px}.settings[open]>summary{border-radius:6px}.settings-body{margin-top:10px;border-top:1px solid #e3e6df;border-radius:6px}.collection-picker{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:14px;color:var(--muted);margin-bottom:16px}.collection-picker select{font:inherit;color:var(--ink);border:1px solid var(--line);border-radius:5px;background:white;min-height:44px;padding:8px 12px;max-width:70%}.collection-picker select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.sentence-controls{justify-content:flex-end}
