:root{color-scheme:light;--ink:#30362f;--muted:#74776e;--line:#dfdfd4;--paper:#faf9f6;--accent:#445440}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.65 system-ui,-apple-system,'Malgun Gothic',sans-serif}
button,select{font:inherit;color:inherit}
button,select,a{touch-action:manipulation}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.5}
a{color:inherit;text-underline-offset:4px}
button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #7d573c;outline-offset:4px}
[hidden]{display:none!important}
.skip{position:absolute;top:-100px}
.skip:focus{top:0;background:white;z-index:10}
main{max-width:1180px;margin:auto;padding:48px 36px 80px}
.eyebrow{font-size:10px;letter-spacing:2px;color:#7b806f;margin:0 0 13px}
h1,h2,h3,p{margin-top:0;word-break:keep-all}
h1{font-size:42px;letter-spacing:-2px;font-weight:500;margin-bottom:12px}
h2{font-size:24px;font-weight:500;letter-spacing:-.8px;margin-bottom:14px}
h3{font-size:19px;font-weight:500}
.intro{margin-bottom:36px}
.intro>p:last-child{color:var(--muted);margin-bottom:0}
.studio{display:grid;grid-template-columns:1fr 1.1fr;gap:56px;align-items:start}
.look-stage{background:#efede5;padding:23px 26px;position:sticky;top:20px;border-radius:2px}
.stage-title{display:flex;justify-content:space-between;gap:12px;font-size:9px;letter-spacing:1px;color:#787b70}
#outfit{display:block;width:100%;max-width:350px;height:auto;margin:-5px auto -8px}
.stage-note{text-align:center;font-size:11px;line-height:1.6;color:#73766d;margin-bottom:12px}
.stage-palette{display:flex;justify-content:center;gap:6px;flex-wrap:wrap}
.stage-palette span{width:20px;height:20px;border:1px solid #0002;border-radius:50%}
.editor-heading{display:flex;justify-content:space-between;align-items:start;gap:20px}
.text-button{background:none;border:0;padding:5px 0;color:#68735f;font-size:12px;text-decoration:underline;text-underline-offset:4px}
.goal-label{font-size:12px;color:var(--muted);display:block;margin-bottom:6px}
select{background:#fff;border:1px solid var(--line);padding:11px 36px 11px 12px;width:100%;border-radius:0}
.pieces{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:20px 0 25px}
.piece{border:1px solid var(--line);background:transparent;min-height:78px;padding:8px 5px;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px}
.piece[aria-pressed=true]{border-color:var(--ink);box-shadow:inset 0 -2px var(--ink);background:#fff}
.piece i{width:20px;height:20px;border:1px solid #0002;display:block;border-radius:50%;margin-bottom:3px}
.piece small{font-size:10px;color:var(--muted)}
fieldset{border:0;padding:0;margin:0}
legend{font-size:13px;padding:0;margin-bottom:12px}
.swatches{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px 7px}
.swatch{display:flex;flex-direction:column;align-items:center;gap:5px;padding:5px 0;background:none;border:1px solid transparent;font-size:10px;white-space:nowrap}
.swatch i{width:29px;height:29px;border-radius:50%;border:1px solid #0002;display:grid;place-items:center}
.swatch-none i{background:linear-gradient(135deg,transparent 47%,#a5a89b 48%,#a5a89b 52%,transparent 53%)}
.swatch[aria-pressed=true]{border-color:#a5ab98;background:#fff}
.swatch[aria-pressed=true] i:after{content:'✓';color:white;font-size:17px;text-shadow:0 1px 3px #000,0 0 3px #000}
.play-actions{display:flex;gap:10px;margin-top:23px}
.play-actions button{border:1px solid var(--ink);padding:12px 16px;font-size:13px;background:var(--ink);color:white}
.play-actions button+button{background:transparent;color:var(--ink)}
#status{font-size:12px;color:#6d715f;margin:12px 0 0;min-height:20px}
.fine{font-size:11px;color:var(--muted);line-height:1.8}
.result{border-top:1px solid var(--line);padding-top:36px;margin-top:55px;scroll-margin-top:20px}
.result-head{display:flex;justify-content:space-between;align-items:center;gap:15px}
.result-head p{font-size:13px;color:var(--muted)}
.score{white-space:nowrap}
.score strong{font:70px/1 Georgia,serif;font-variant-numeric:lining-nums}
.score span{font-size:14px;color:var(--muted);margin-left:6px}
.comparison{border-left:2px solid #8b9c78;padding-left:15px;font-size:13px}
.breakdown{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:24px;margin:25px 0}
.breakdown article{border-top:1px solid var(--line);padding-top:18px}
.breakdown h3{display:flex;justify-content:space-between;gap:10px;font-size:14px}
.breakdown strong{white-space:nowrap;font-weight:500}
.breakdown p,.coverage-note,.evidence,.next-step>p,.reference-heading p{font-size:12px;color:var(--muted)}
.bar{height:3px;background:#e4e4dc;margin:14px 0}
.bar span{display:block;height:100%;background:#7a8968}
.coverage-note{padding:12px 0;border-bottom:1px solid var(--line)}
summary{cursor:pointer;padding:14px 0;font-size:13px}
.table-scroll{overflow:auto}
table{border-collapse:collapse;width:100%;min-width:560px;font-size:12px;text-align:left}
caption{text-align:left;font-size:11px;margin-bottom:8px;color:var(--muted)}
td,th{border-bottom:1px solid var(--line);padding:10px 8px;vertical-align:top}
th{font-weight:500;color:var(--ink)}
td:first-child{min-width:200px}
.next-step{margin:30px 0}
.next-step h3{margin-bottom:7px}
.suggestions{display:flex;flex-wrap:wrap;gap:12px}
.suggestions button{background:#fff;border:1px solid var(--line);padding:12px 15px;text-align:left;font-size:12px}
.suggestions strong,.suggestions small{display:block;font-size:11px;font-weight:400}
.suggestions strong{color:#566f42}
.reference-heading{margin:36px 0 20px}
.reference-heading h3{margin-bottom:7px}
.examples{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.examples img{display:block;width:100%;height:auto;aspect-ratio:2/3;object-fit:contain;background:#efeee8}
.examples h4{font-size:13px;font-weight:500;margin:12px 0 7px}
.examples p{font-size:11px;color:var(--muted);line-height:1.7}
.examples a{font-size:12px}
.method{border-top:1px solid var(--line);margin-top:55px;padding-top:7px;font-size:13px;color:var(--muted);max-width:850px}
.method h2{font-size:21px;margin-top:20px}
.method p{line-height:1.9}
.method li{margin:12px 0}
.method ul{padding-left:20px}
@media(max-width:800px){main{padding:28px 20px 60px}
h1{font-size:34px}
.studio{gap:25px;grid-template-columns:.8fr 1fr}
.look-stage{padding:18px 12px}
.stage-title{font-size:8px}
.pieces{gap:5px}
.swatches{grid-template-columns:repeat(4,minmax(0,1fr))}
.breakdown{gap:16px}
.examples{gap:14px}
}
@media(max-width:580px){main{padding:25px 16px 50px}
.intro{margin-bottom:22px}
.intro>p:last-child{font-size:13px}
h1{font-size:31px}
.studio{display:block}
.look-stage{position:relative;top:auto;padding:14px 18px;margin-bottom:28px}
#outfit{max-width:205px;margin:-12px auto -6px}
.stage-note{font-size:10px;position:absolute;right:13px;bottom:44px;text-align:right;max-width:110px}
.stage-palette span{width:16px;height:16px}
.stage-title{font-size:8px}
.editor-heading h2{font-size:22px}
.pieces{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:16px 0 22px}
.piece{min-height:74px}
.swatches{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px 3px}
.swatch{font-size:9px}
.swatch i{width:27px;height:27px}
.play-actions button{padding:12px;font-size:12px}
.breakdown{display:block}
.breakdown article{padding:16px 0 0}
.breakdown p{margin-bottom:16px}
.score strong{font-size:58px}
.result-head{align-items:start}
.result-head h2{font-size:22px}
.examples{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
.examples article:last-child{display:none}
.suggestions{display:grid;grid-template-columns:1fr}
.stage-note{max-width:90px}
.result{margin-top:35px}
.method{margin-top:35px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}
}
