@font-face{font-family:"Bree Serif";font-weight:400;font-display:swap;src:url("/fonts/bree-serif-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Mukta";font-weight:400;font-display:swap;src:url("/fonts/mukta-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Mukta";font-weight:700;font-display:swap;src:url("/fonts/mukta-latin-700-normal.woff2") format("woff2")}
/* a mat on the frame: calico page, old coat navy, a rag red, and bare hessian waiting to be worked */
:root{--calico:#faf6ee;--white:#fff;--ink:#1c2033;--soft:#4a4d5e;--coat:#232b4d;--red:#a52a2a;--mustard:#e0a526;--heather:#75557f;--loden:#4f6b57;--oat:#e8dcc0;--sack:#c3a371;--line:#cfc4ac;--focus:#ffdd00;--bad:#9c0d0d}
*{box-sizing:border-box}
html{background:var(--calico)}
body{margin:0;background:var(--calico);color:var(--ink);font:400 18px/1.55 "Mukta",system-ui,sans-serif;overflow-x:clip}
main{display:block;max-width:1040px;margin:0 auto;padding:0 16px 56px}
h1,h2,h3,.big{font-family:"Bree Serif",Georgia,serif;font-weight:400;line-height:1.15}
h1{font-size:clamp(2.1rem,6.4vw,3.4rem);margin:0 0 8px;text-wrap:balance}
h2{font-size:1.7rem;margin:34px 0 10px}
h3{font-size:1.3rem;margin:26px 0 8px}
p,li{max-width:68ch}
li{margin-bottom:7px}
a{color:#1b4586;text-underline-offset:3px;overflow-wrap:anywhere}
:focus-visible{outline:3px solid var(--ink);outline-offset:0;box-shadow:0 0 0 6px var(--focus)}

/* the title is framed the way the mat is: rows of cut cloth pulled through to a dark ground */
.top{max-width:760px;margin:16px auto 22px;padding:22px;background:var(--coat) url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%2764%27%20height=%2764%27%20viewBox=%270%200%2064%2064%27%3E%3Cg%20transform=%27translate%288%208%29%20rotate%28-21%29%27%20fill=%27%23a52a2a%27%20stroke=%27%2314172a%27%20stroke-width=%27.8%27%3E%3Cpath%20d=%27M-9-7L-1.5-8.5L1%207L-6%208.5Z%27/%3E%3Cpath%20d=%27M0-8L8.5-6.5L6.5%208.5L-1.5%207Z%27/%3E%3C/g%3E%3Cg%20transform=%27translate%2824%208%29%20rotate%28-34%29%27%20fill=%27%23c9c0aa%27%20stroke=%27%2314172a%27%20stroke-width=%27.8%27%3E%3Cpath%20d=%27M-9-7L-1.5-8.5L1%207L-6%208.5Z%27/%3E%3Cpath%20d=%27M0-8L8.5-6.5L6.5%208.5L-1.5%207Z%27/%3E%3C/g%3E%3Cg%20transform=%27translate%2840%208%29%20rotate%2828%29%27%20fill=%27%23e0a526%27%20stroke=%27%2314172a%27%20stroke-width=%27.8%27%3E%3Cpath%20d=%27M-9-7L-1.5-8.5L1%207L-6%208.5Z%27/%3E%3Cpath%20d=%27M0-8L8.5-6.5L6.5%208.5L-1.5%207Z%27/%3E%3C/g%3E%3Cg%20transform=%27translate%2856%208%29%20rotate%286%29%27%20fill=%27%23e0a526%27%20stroke=%27%2314172a%27%20stroke-width=%27.8%27%3E%3Cpath%20d=%27M-9-7L-1.5-8.5L1%207L-6%208.5Z%27/%3E%3Cpath%20d=%27M0-8L8.5-6.5L6.5%208.5L-1.5%207Z%27/%3E%3C/g%3E%3Cg%20transform=%27translate%288%2024%29%20rotate%2824%29%27%20fill=%27%23a52a2a%27%20stroke=%27%2314172a%27%20stroke-width=%27.8%27%3E%3Cpath%20d=%27M-9-7L-1.5-8.5L1%207L-6%208.5Z%27/%3E%3Cpath%20d=%27M0-8L8.5-6.5L6.5%208.5L-1.5%207Z%27/%3E%3C/g%3E%3Cg%20transform=%27translate%2824%2024%29%20rotate%28-36%29%27%20fill=%27%23e8dcc0%27%20stroke=%27%2314172a%27%20stroke-width=%27.8%27%3E%3Cpath%20d=%27M-9-7L-1.5-8.5L1%207L-6%208.5Z%27/%3E%3Cpath%20d=%27M0-8L8.5-6.5L6.5%208.5L-1.5%207Z%27/%3E%3C/g%3E%3Cg%20transform=%27translate%2840%2024%29%20rotate%2815%29%27%20fill=%27%23e0a526%27%20stroke=%27%2314172a%27%20stroke-width=%27.8%27%3E%3Cpath%20d=%27M-9-7L-1.5-8.5L1%207L-6%208.5Z%27/%3E%3Cpath%20d=%27M0-8L8.5-6.5L6.5%208.5L-1.5%207Z%27/%3E%3C/g%3E%3Cg%20transform=%27translate%2856%2024%29%20rotate%28-32%29%27%20fill=%27%23c9c0aa%27%20stroke=%27%2314172a%27%20stroke-width=%27.8%27%3E%3Cpath%20d=%27M-9-7L-1.5-8.5L1%207L-6%208.5Z%27/%3E%3Cpath%20d=%27M0-8L8.5-6.5L6.5%208.5L-1.5%207Z%27/%3E%3C/g%3E%3Cg%20transform=%27translate%288%2040%29%20rotate%28-29%29%27%20fill=%27%23e8dcc0%27%20stroke=%27%2314172a%27%20stroke-width=%27.8%27%3E%3Cpath%20d=%27M-9-7L-1.5-8.5L1%207L-6%208.5Z%27/%3E%3Cpath%20d=%27M0-8L8.5-6.5L6.5%208.5L-1.5%207Z%27/%3E%3C/g%3E%3Cg%20transform=%27translate%2824%2040%29%20rotate%28-33%29%27%20fill=%27%23c9c0aa%27%20stroke=%27%2314172a%27%20stroke-width=%27.8%27%3E%3Cpath%20d=%27M-9-7L-1.5-8.5L1%207L-6%208.5Z%27/%3E%3Cpath%20d=%27M0-8L8.5-6.5L6.5%208.5L-1.5%207Z%27/%3E%3C/g%3E%3Cg%20transform=%27translate%2840%2040%29%20rotate%28-12%29%27%20fill=%27%23e0a526%27%20stroke=%27%2314172a%27%20stroke-width=%27.8%27%3E%3Cpath%20d=%27M-9-7L-1.5-8.5L1%207L-6%208.5Z%27/%3E%3Cpath%20d=%27M0-8L8.5-6.5L6.5%208.5L-1.5%207Z%27/%3E%3C/g%3E%3Cg%20transform=%27translate%2856%2040%29%20rotate%2833%29%27%20fill=%27%23a52a2a%27%20stroke=%27%2314172a%27%20stroke-width=%27.8%27%3E%3Cpath%20d=%27M-9-7L-1.5-8.5L1%207L-6%208.5Z%27/%3E%3Cpath%20d=%27M0-8L8.5-6.5L6.5%208.5L-1.5%207Z%27/%3E%3C/g%3E%3Cg%20transform=%27translate%288%2056%29%20rotate%28-34%29%27%20fill=%27%23c9c0aa%27%20stroke=%27%2314172a%27%20stroke-width=%27.8%27%3E%3Cpath%20d=%27M-9-7L-1.5-8.5L1%207L-6%208.5Z%27/%3E%3Cpath%20d=%27M0-8L8.5-6.5L6.5%208.5L-1.5%207Z%27/%3E%3C/g%3E%3Cg%20transform=%27translate%2824%2056%29%20rotate%28-35%29%27%20fill=%27%23e8dcc0%27%20stroke=%27%2314172a%27%20stroke-width=%27.8%27%3E%3Cpath%20d=%27M-9-7L-1.5-8.5L1%207L-6%208.5Z%27/%3E%3Cpath%20d=%27M0-8L8.5-6.5L6.5%208.5L-1.5%207Z%27/%3E%3C/g%3E%3Cg%20transform=%27translate%2840%2056%29%20rotate%28-3%29%27%20fill=%27%234f6b57%27%20stroke=%27%2314172a%27%20stroke-width=%27.8%27%3E%3Cpath%20d=%27M-9-7L-1.5-8.5L1%207L-6%208.5Z%27/%3E%3Cpath%20d=%27M0-8L8.5-6.5L6.5%208.5L-1.5%207Z%27/%3E%3C/g%3E%3Cg%20transform=%27translate%2856%2056%29%20rotate%28-22%29%27%20fill=%27%23c9c0aa%27%20stroke=%27%2314172a%27%20stroke-width=%27.8%27%3E%3Cpath%20d=%27M-9-7L-1.5-8.5L1%207L-6%208.5Z%27/%3E%3Cpath%20d=%27M0-8L8.5-6.5L6.5%208.5L-1.5%207Z%27/%3E%3C/g%3E%3C/svg%3E") 0 0/44px 44px;border-radius:9px}
.clip{background:var(--calico);padding:16px 18px 14px;text-align:center;border-radius:3px}
.lead{margin:0 auto;max-width:33em;font-size:1.12rem;line-height:1.45}

#calc{max-width:760px;margin:0 auto}
/* each group of questions is a cut piece of calico, stitched round */
.piece{background:var(--white);padding:2px 20px 4px;margin:0 0 18px;outline:2px dashed var(--line);outline-offset:-8px;border:1px solid var(--line)}
.piece h2{margin:22px 0 12px;color:var(--red)}
.q{margin:0 0 20px;min-width:0}
.q.bad{border-left:5px solid var(--bad);padding-left:12px}
.pair{display:grid;gap:0 22px;grid-template-columns:minmax(0,1fr)}
@media (min-width:620px){.pair{grid-template-columns:1fr 1fr;align-items:end}}
fieldset{border:0;padding:0;margin:0;min-width:0}
label,legend{display:block;font-weight:700;line-height:1.35;padding:0}
.hint{color:var(--soft);margin:2px 0 7px;font-size:.95rem;line-height:1.45}
.err{color:var(--bad);font-weight:700;margin:0 0 6px}
input[type=text]{font:700 1.4rem "Mukta",system-ui,sans-serif;color:var(--ink);background:var(--white);border:2px solid var(--ink);border-radius:4px 0 0 4px;min-height:50px;padding:6px 12px}
.bad input[type=text]{border-color:var(--bad)}
.affix{display:flex;max-width:11em}
.affix input{width:100%;min-width:0}
.affix span{display:flex;align-items:center;flex:none;min-width:3.2em;justify-content:center;padding:0 10px;border:2px solid var(--ink);border-left:0;border-radius:0 4px 4px 0;background:var(--oat)}
.pick{display:flex;align-items:center;gap:12px;font-weight:400;min-height:48px;padding:8px 12px;margin-top:8px;border:2px solid var(--line);border-radius:4px;background:var(--white);cursor:pointer;line-height:1.35}
.pick input{flex:none;width:24px;height:24px;margin:0;accent-color:var(--coat)}
.pick:has(input:checked){border-color:var(--coat);background:#eef0f7}
button{font:700 1.05rem "Mukta",system-ui,sans-serif;min-height:48px;min-width:48px;padding:10px 20px;border-radius:4px;cursor:pointer;background:var(--red);color:var(--white);border:2px solid var(--red)}
button:hover{background:var(--coat);border-color:var(--coat)}
button:disabled{opacity:.5;cursor:default}
.go{display:block;width:100%;font-size:1.2rem}

.result{max-width:760px;margin:18px auto 0;background:var(--coat);color:var(--white);padding:4px 22px 14px;border-bottom:8px solid var(--mustard)}
.result h2{margin:14px 0 4px;font-size:1.15rem;color:#ffd879}
.big{font-size:clamp(1.75rem,5.6vw,2.5rem);line-height:1.25;margin:0 0 12px;text-wrap:balance}
.big strong{font-weight:400;color:#ffd879}
.verdict p{margin:0 0 10px}
.odd{border-left:6px solid var(--mustard);padding-left:12px}
.bagline{border-top:1px solid #7c83a8;padding-top:10px}
.care{font-size:.97rem;border-top:1px solid #7c83a8;padding-top:10px}
#asof{margin:0 0 10px}

.frame{max-width:760px;margin:30px auto 0}
.frame.stale #controls{opacity:.4}
#controls label{font-weight:400;font-size:1.15rem}
#controls label strong{font-family:"Bree Serif",Georgia,serif;font-weight:400;font-size:1.5rem}
#slide{-webkit-appearance:none;appearance:none;display:block;width:100%;height:48px;margin:4px 0;background:transparent;touch-action:pan-y;cursor:pointer}
#slide::-webkit-slider-runnable-track{height:12px;border:2px solid var(--ink);border-radius:8px;background:var(--oat)}
#slide::-webkit-slider-thumb{-webkit-appearance:none;width:46px;height:46px;margin-top:-19px;border-radius:50%;border:4px solid var(--white);background:var(--red);box-shadow:0 0 0 2px var(--ink)}
#slide::-moz-range-track{height:10px;border:2px solid var(--ink);border-radius:8px;background:var(--oat)}
#slide::-moz-range-thumb{width:38px;height:38px;border-radius:50%;border:4px solid var(--white);background:var(--red);box-shadow:0 0 0 2px var(--ink)}
.nudge{display:flex;flex-wrap:wrap;gap:10px;margin:6px 0 14px}
.nudge button{flex:1 1 9em;background:var(--white);color:var(--ink);border-color:var(--ink)}
.nudge button:hover{color:var(--white)}
.matwrap{margin:0}
.mat{display:block;width:100%;height:auto;max-height:80vh}
.mat .sack{fill:var(--sack)}
.mat .weave{fill:none;stroke:#8d7048;stroke-width:1.1;opacity:.75}
.mat .outline{fill:none;stroke:var(--ink);stroke-width:1.5;stroke-dasharray:5 3}
.tuft{stroke:#14172a;stroke-width:.7}
.tuft.coat{fill:var(--coat)}
.tuft.red{fill:var(--red)}
.tuft.mustard{fill:var(--mustard)}
.tuft.heather{fill:var(--heather)}
.tuft.loden{fill:var(--loden)}
.tuft.moss{fill:#7d8458}
.tuft.oat{fill:var(--oat)}
.tuft .eye{fill:#14172a;stroke:none;opacity:.55}
.tuft.may{fill:#fffdf6;stroke:var(--ink);stroke-width:1;stroke-dasharray:2.4 1.2}
.tuft.may .eye{display:none}
.reading{font-size:1.15rem;background:var(--white);border-left:8px solid var(--red);padding:12px 16px;margin:12px 0 8px}
.scrollx{overflow-x:auto}
table{border-collapse:collapse;width:100%;min-width:34em;font-size:.95rem;background:var(--white)}
table.facts{min-width:0}
th,td{border:1px solid var(--line);padding:7px 10px;text-align:left;vertical-align:top}
thead th{background:var(--oat)}

.summary{max-width:760px;border:4px solid var(--bad);background:var(--white);padding:4px 18px 10px;margin:0 auto 16px}
.summary h2{margin:8px 0}
.summary ul{list-style:none;padding:0;margin:0}
.summary a{color:var(--bad);font-weight:700;display:block;padding:11px 0}

article{margin:40px auto 0;max-width:760px;border-top:3px dashed var(--coat)}
details{border-bottom:1px solid var(--line)}
summary{cursor:pointer;font-weight:700;min-height:48px;padding:11px 0}
.updated{color:var(--soft);font-size:.93rem}
.nojs{background:var(--focus);padding:10px}
[hidden]{display:none!important}
/* a new tuft pushes up through the weave; the drawing is already complete without this */
@media (prefers-reduced-motion:no-preference){.tuft.new{animation:poke .26s ease-out backwards;transform-box:fill-box;transform-origin:center}}
@keyframes poke{from{transform:scale(.2);opacity:0}}
@media (prefers-reduced-motion:reduce){*{transition-property:none!important;animation-name:none!important}}
@media print{#calc,article,#controls,.summary{display:none!important}.result{background:#fff;color:#000}.result h2,.big strong{color:#000}}
