:root{--bg:#faf7f3;--card:#fff;--ink:#2b2433;--muted:#6b6272;--plum:#4a2545;--plum-2:#7a3a6e;--gold:#b08d57;--gold-soft:#f3e9d6;--line:#e9e1d8;--good:#2f7a57;--warn-bg:#fff6e0;--warn-ink:#7a5600;--err-bg:#fdebec;--err-ink:#8e1f2b;--radius:16px;--serif:"Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;--sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--ink);font-family:var(--sans);margin:0;font-size:16px;line-height:1.55}a{color:var(--plum-2)}h1,h2,h3,h4{font-family:var(--serif);color:var(--plum);margin:0 0 .4rem;font-weight:600;line-height:1.2}h2{font-size:1.45rem}h3{margin-bottom:.75rem;font-size:1.25rem}h4{margin:1.2rem 0 .4rem;font-size:1.02rem}p{margin:0 0 .75rem}.wrap{max-width:980px;margin:0 auto;padding:0 20px}.muted{color:var(--muted)}.small{font-size:.88rem}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.hero{color:#fff;background:linear-gradient(135deg,#3b1c38 0%,#5a2d54 60%,#6e3a5f 100%);padding:44px 0 40px}.hero h1{color:#fff;letter-spacing:-.01em;margin-bottom:.2rem;font-size:clamp(2rem,5.2vw,3.1rem)}.eyebrow{text-transform:uppercase;letter-spacing:.12em;color:#e9d3a6;margin-bottom:.8rem;font-size:.74rem}.byline{font-family:var(--serif);color:#f1e4cb;font-size:1.1rem;font-style:italic}.byline a{color:#e9d3a6;font-size:.82rem;font-style:normal;font-family:var(--sans);text-decoration-thickness:1px}.lead{color:#fbf6ee;max-width:40rem;margin-top:1.1rem;font-size:1.15rem}.why{color:#e6d6dd;border-left:2px solid var(--gold);max-width:40rem;margin-top:1rem;margin-bottom:0;padding-left:.8rem;font-size:.96rem}.main{flex-direction:column;gap:20px;padding-top:24px;padding-bottom:40px;display:flex}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:0 1px 2px #3c1e320a,0 8px 24px #3c1e320d}.card-head{align-items:flex-start;gap:14px;margin-bottom:14px;display:flex}.card-head p{margin:0}.step{background:var(--plum);color:#f3e3bd;width:34px;height:34px;font-family:var(--serif);border-radius:50%;flex:none;place-items:center;font-size:1.05rem;display:grid}.examples{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px;display:flex}.examples-label{color:var(--muted);margin-right:4px;font-size:.9rem}.chip{border:1px solid var(--line);color:var(--ink);font:inherit;cursor:pointer;background:#fff;border-radius:999px;padding:6px 13px;font-size:.88rem;transition:all .15s}.chip:hover{border-color:var(--plum-2)}.chip.on{background:var(--plum);color:#fff;border-color:var(--plum)}.chip.ex{border-color:var(--gold);background:var(--gold-soft);color:var(--plum);font-weight:600}.chip.ex.on{background:var(--plum);color:#fff}.data-text{border:1px solid var(--line);width:100%;color:var(--ink);resize:vertical;background:#fdfcfa;border-radius:12px;min-height:130px;padding:12px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.85rem}.data-text:focus,input:focus,select:focus,button:focus-visible,summary:focus-visible{outline-offset:1px;outline:3px solid #7a3a6e59}.row{align-items:center;display:flex}.row.gap{flex-wrap:wrap;gap:10px;margin-top:12px}.row.between{justify-content:space-between}.wrap-row{flex-wrap:wrap;gap:8px}.btn{font:inherit;cursor:pointer;border:1px solid #0000;border-radius:10px;padding:9px 16px;font-weight:600}.btn.secondary{background:var(--plum);color:#fff}.btn.secondary:hover{background:var(--plum-2)}.btn.ghost{color:var(--plum-2);border-color:var(--line);background:0 0}.btn:disabled{opacity:.45;cursor:default}.small-btn{padding:6px 12px;font-size:.85rem}.read-ok{color:var(--good);margin:12px 0 6px;font-weight:500}.note{color:var(--muted);margin-top:8px;font-size:.9rem}.banner{border-radius:10px;margin:8px 0;padding:10px 14px;font-size:.92rem}.banner.warn{background:var(--warn-bg);color:var(--warn-ink)}.banner.error{background:var(--err-bg);color:var(--err-ink)}.banner.example{background:var(--gold-soft);color:#5b4420;border:1px dashed var(--gold)}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 28px;display:grid}.field{flex-direction:column;gap:6px;min-width:0;display:flex}.field.wide{grid-column:1/-1}label,.lab{color:var(--ink);font-size:.95rem;font-weight:600}input[type=text],input[type=number],select{font:inherit;color:var(--ink);background:#fff;border:1px solid #d8cec3;border-radius:10px;width:100%;padding:10px 12px}.hint{color:var(--muted);margin:0;font-size:.84rem}.chips{flex-wrap:wrap;gap:6px;display:flex}.seg{border:1px solid #d8cec3;border-radius:10px;width:100%;display:inline-flex;overflow:hidden}.seg button{font:inherit;cursor:pointer;color:var(--ink);background:#fff;border:0;border-right:1px solid #d8cec3;flex:1;padding:10px 6px}.seg button:last-child{border-right:0}.seg button.on{background:var(--plum);color:#fff;font-weight:600}.buffer-row{grid-template-columns:90px 1fr;align-items:center;gap:14px;display:grid}input[type=range]{width:100%;accent-color:var(--plum-2)}.more{border-top:1px solid var(--line);margin-top:20px;padding-top:14px}.more summary{cursor:pointer;color:var(--plum-2);font-weight:600}.more-grid{margin-top:16px}.methods{flex-direction:column;gap:8px;display:flex}.method{border:1px solid var(--line);cursor:pointer;border-radius:12px;align-items:flex-start;gap:10px;padding:10px 12px;font-weight:400;display:flex}.method.on{border-color:var(--plum-2);background:#fbf5fa}.method.off{opacity:.55;cursor:not-allowed}.method input{accent-color:var(--plum-2);margin-top:5px}.method strong{display:block}.method em{color:var(--muted);font-size:.88rem;font-style:normal}.why-off{color:var(--warn-ink);font-weight:500}.result-hero{background:linear-gradient(#fff 0%,#fbf5fa 100%);border-color:#e3d3df}.badge{background:var(--gold-soft);color:#5b4420;border:1px dashed var(--gold);border-radius:999px;padding:2px 10px;font-size:.78rem;font-weight:600;display:inline-block}.summary{font-family:var(--serif);color:var(--plum);margin:4px 0 18px;font-size:clamp(1.2rem,3.2vw,1.6rem);line-height:1.35}.stats{grid-template-columns:repeat(3,1fr);gap:12px;display:grid}.stat{border:1px solid var(--line);background:#fff;border-radius:14px;flex-direction:column;padding:14px 16px;display:flex}.stat.accent{background:var(--plum);border-color:var(--plum);color:#fff}.stat .k{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-size:.8rem}.stat.accent .k{color:#e9d3a6}.stat .v{font-family:var(--serif);margin:2px 0;font-size:1.75rem;line-height:1.2}.stat .u{color:var(--muted);font-size:.84rem}.stat.accent .u{color:#eadbe8}.method-line{margin:14px 0 0}.chart-wrap{width:100%}.legend{color:var(--muted);flex-wrap:wrap;gap:6px 18px;margin:8px 0 0;padding:0;font-size:.85rem;list-style:none;display:flex}.sw{vertical-align:middle;border-top:3px solid;width:22px;height:0;margin-right:6px;display:inline-block}.sw-actual{border-color:#2b2433}.sw-fc{border-color:#7a3a6e;border-top-style:dashed}.sw-band{vertical-align:-2px;background:#8a4a7f38;border:0;border-radius:3px;width:22px;height:12px}.tip{border:1px solid var(--line);background:#fff;border-radius:10px;padding:8px 12px;font-size:.88rem;box-shadow:0 6px 18px #0000001a}.tip strong{color:var(--plum);display:block}.pill{font-family:var(--sans);vertical-align:middle;border-radius:999px;margin-left:6px;padding:3px 10px;font-size:.76rem;font-weight:600}.pill.good{color:var(--good);background:#e3f3ea}.pill.ok{background:var(--warn-bg);color:var(--warn-ink)}.pill.rough{background:var(--err-bg);color:var(--err-ink)}.big-sentence{font-size:1.12rem}.defs{grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0;display:grid}.defs>div{border:1px solid var(--line);border-radius:12px;padding:10px 12px}.defs dt{color:var(--muted);font-size:.78rem}.defs dd{margin:2px 0 0;font-weight:600}.table-scroll{border:1px solid var(--line);border-radius:12px;max-height:460px;overflow:auto}table{border-collapse:collapse;width:100%;font-size:.93rem}th,td{text-align:left;border-bottom:1px solid var(--line);white-space:nowrap;padding:9px 12px}thead th{white-space:normal;color:var(--plum);z-index:1;background:#f6f0f5;font-size:.84rem;position:sticky;top:0}tbody th{font-weight:500}.num{text-align:right;font-variant-numeric:tabular-nums}td.strong,th.strong{color:var(--plum);font-weight:700}tfoot th,tfoot td{background:#faf5f9;border-bottom:0;font-weight:700;position:sticky;bottom:0}tr.picked th,tr.picked td{background:#fbf5fa}.explain{background:#fbf8f3;border-radius:12px;margin-top:18px;padding:14px 16px}.explain h4{margin-top:0}.bullets{margin:0 0 .75rem;padding-left:1.2rem}.bullets li{margin-bottom:.55rem}.bullets.tight li{margin-bottom:.35rem}.linkish{font:inherit;color:var(--plum-2);cursor:pointer;background:0 0;border:0;padding:0;font-weight:600;text-decoration:underline}.method-box{background:#fbf8f3;border-radius:12px;padding:14px 16px}.method-box h4{margin-top:0}.method-box p:last-child{margin-bottom:0}.steps{padding-left:1.3rem}.steps li{margin-bottom:.6rem}.footer{border-top:1px solid var(--line);background:#fff;padding:26px 0 34px}.footer p{margin-bottom:.4rem}@media (width<=720px){.grid,.stats{grid-template-columns:1fr}.defs{grid-template-columns:repeat(2,1fr)}.card{border-radius:14px;padding:18px 16px}.wrap{padding:0 14px}.hero{padding:30px 0 28px}.stat .v{font-size:1.55rem}table{font-size:.84rem}th,td{padding:8px 7px}}@media (prefers-reduced-motion:reduce){*{transition:none!important}}.short{display:none}@media (width<=520px){.long{display:none}.short{display:inline}table{font-size:.8rem}th,td{padding:8px 5px}thead th{font-size:.74rem}}
