/* Site Wiz Works questionnaire. One look throughout: warm paper, deep blue ink,
   one orange for anything you type or press and for the mark on the site you
   chose. The spark in the logo is the brighter #F0522F; text and buttons use
   the darker --edge so they stay readable on paper. */
*,*::before,*::after{box-sizing:border-box}
:root{--ground:#F3EEE3;--lift:#FBF8F2;--text:#1C2147;--dim:#4B5072;--edge:#BF3916;--on:#fff;--wax:#E0401C;--rule:#DDD5C4;--line:#8A8DA8;--field:#fff;--ph:#5F6486;--tint:#FBE3D8;--hover:#EEE8DA;--off:#D9D2C2;--head:'Bricolage Grotesque','Red Hat Display',system-ui,sans-serif}
:root[data-theme=dark]{color-scheme:dark;--ground:#1C2147;--lift:#262C5C;--text:#F3EEE3;--dim:#B7BAD3;--edge:#FF8A63;--on:#1C2147;--rule:#383E70;--line:#7F83A9;--field:#262C5C;--ph:#9A9EBE;--tint:#3F2A47;--hover:#2F3567;--off:#3D4378}
html{-webkit-text-size-adjust:100%;scrollbar-width:none}html::-webkit-scrollbar{display:none}
body{margin:0;background:var(--ground);color:var(--text);font:1.04rem/1.5 'Red Hat Display',system-ui,sans-serif;-webkit-font-smoothing:antialiased;padding-bottom:6.5rem}
button,input,textarea{font:inherit;color:inherit}
button{cursor:pointer}
[hidden]{display:none!important}
::selection{background:var(--edge);color:var(--on)}
.wrap{width:min(100% - 2rem,1320px);margin-inline:auto}
.narrow{max-width:900px}
:focus-visible{outline:3px solid var(--edge);outline-offset:2px}

/* top bar */
.top{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 0 0}
.mark{display:inline-flex;align-items:center;gap:.5em;font:800 1.15rem/1 var(--head);letter-spacing:-.03em;color:var(--text);text-decoration:none;white-space:nowrap}
.mark img{width:1.5em;height:1.5em;flex:none}
.mark i{font-style:normal;font-weight:400}
.theme{flex:none;min-height:44px;padding:0 .2rem;background:none;border:0;color:var(--dim);font-size:.92rem;font-weight:600;text-decoration:underline;text-underline-offset:.2em}
.theme:hover{color:var(--text)}
h1,h2{font-family:var(--head)}
.where{display:flex;align-items:center;gap:.7rem;color:var(--dim);font-size:.92rem;font-variant-numeric:tabular-nums}
.where progress{width:clamp(5rem,18vw,11rem);height:4px;appearance:none;border:0;background:var(--rule);border-radius:9px;overflow:hidden}
.where progress::-webkit-progress-bar{background:var(--rule)}
.where progress::-webkit-progress-value{background:var(--edge);transition:width .4s cubic-bezier(.2,.8,.2,1)}
.where progress::-moz-progress-bar{background:var(--edge)}

/* steps */
.step{display:none;padding:clamp(1.6rem,5vw,3.4rem) 0 1rem}
.step.on{display:block}
h1{font-size:clamp(2rem,5.6vw,4.2rem);font-weight:800;line-height:1.04;letter-spacing:-.03em;margin:0;text-wrap:balance}
h1 em{font-style:normal;color:var(--edge)}
.sub{margin:1rem 0 0;color:var(--dim);max-width:56ch;font-size:1.1rem}
h2{font-size:clamp(1.3rem,2.6vw,1.7rem);font-weight:800;letter-spacing:-.02em;margin:clamp(2rem,5vw,3rem) 0 1rem}
.opt{color:var(--dim);font-weight:500;font-size:.95rem;letter-spacing:0}

/* the big name field on the first step */
.big{display:block;width:100%;margin-top:clamp(1.6rem,4vw,2.6rem);background:none;border:0;border-bottom:3px solid var(--edge);border-radius:0;padding:.1em 0 .15em;font-size:clamp(1.8rem,6vw,3.6rem);font-weight:800;letter-spacing:-.03em;color:var(--edge);caret-color:var(--wax)}
.big::placeholder{color:var(--ph)}
.big:focus-visible{outline:0;background:var(--field)}
#biz{field-sizing:content;min-width:4ch;max-width:100%;background:none;border:0;border-bottom:3px solid var(--edge);color:var(--edge);font-weight:800;letter-spacing:inherit;padding:0 .08em;border-radius:0;caret-color:var(--wax)}
#biz:focus-visible{outline:0;background:var(--field)}

/* chips: one-tap answers */
.chips{display:flex;flex-wrap:wrap;gap:.5rem}
.chip{min-height:46px;padding:.5rem 1.05rem;border-radius:999px;background:none;border:1.5px solid var(--line);font-weight:600;transition:background .15s ease,border-color .15s ease,color .15s ease}
.chip:hover{border-color:var(--text)}
.chip[aria-pressed=true]{background:var(--text);color:var(--ground);border-color:var(--text)}
.change .chip[aria-pressed=true]{background:none;color:var(--edge);border-color:var(--edge);border-style:dashed}

/* the five sites */
#frames{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1.4rem,2.6vw,2.4rem) clamp(1rem,2vw,1.6rem);margin-top:clamp(1.4rem,3vw,2.2rem)}
.fr{display:grid;gap:.7rem;align-content:start}
.vpw{position:relative}
.vp{position:relative;overflow:hidden;aspect-ratio:4/3;background:#fff;outline:1px solid var(--rule)}
.vp iframe{position:absolute;top:0;left:0;border:0;transform-origin:0 0;pointer-events:none;opacity:0;translate:0 0;transition:opacity .5s ease,translate .7s cubic-bezier(.2,.8,.2,1)}
.vp.ready iframe{opacity:1}
@media (hover:hover){
  .vpw:hover .vp iframe,.fr-open:focus-visible + .vp iframe{translate:0 var(--travel,0);transition:opacity .5s ease,translate var(--pan,6s) linear}
}
.fr-open{position:absolute;inset:0;z-index:2;background:none;border:0;padding:0}
.fr-open:focus-visible{outline-offset:3px}
.fr[data-state=no] .vp{filter:grayscale(1) brightness(.5)}
.marks{position:absolute;inset:-5%;width:110%;height:110%;z-index:3;pointer-events:none;overflow:visible}
.marks path{fill:none;stroke:var(--wax);stroke-width:5;stroke-linecap:round;vector-effect:non-scaling-stroke;stroke-dasharray:4000;stroke-dashoffset:4000;opacity:0;transition:stroke-dashoffset .25s ease,opacity .1s ease}
.fr[data-state=pick] .ring{opacity:1;stroke-dashoffset:0;transition:stroke-dashoffset 1.6s cubic-bezier(.3,.7,.2,1)}
.fr[data-state=no] .x1{opacity:1;stroke-dashoffset:0;transition:stroke-dashoffset 1.2s ease-out}
.fr[data-state=no] .x2{opacity:1;stroke-dashoffset:0;transition:stroke-dashoffset 1.2s ease-out .12s}
.cap{display:flex;align-items:baseline;gap:.7rem;flex-wrap:wrap}
.cap b{color:var(--edge);font-weight:800;font-size:.95rem;letter-spacing:.09em;text-transform:uppercase}
.cap span{color:var(--dim);font-size:.95rem;flex:1 1 16rem}
.acts{display:flex;flex-wrap:wrap;gap:.5rem}.acts .fr-more{margin-left:auto;background:none}
.acts button{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;padding:.5rem .9rem;background:var(--lift);border:1px solid var(--rule);border-radius:4px;font-weight:600;transition:background .15s ease,border-color .15s ease}
.acts button:hover{border-color:var(--text)}
.acts svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.acts [data-act=pick][aria-pressed=true]{background:var(--wax);border-color:var(--wax);color:#fff}
.acts [data-act=no][aria-pressed=true]{background:var(--off)}
.key{align-self:center;color:var(--dim);font-size:1.05rem;display:grid;gap:.9rem;padding:1rem}
.key b{color:var(--text)}
.key button{justify-self:start;background:none;border:0;padding:0;min-height:44px;color:var(--edge);font-weight:700;text-decoration:underline;text-underline-offset:.2em}
#notes .sub{margin-bottom:1.6rem}
.sub.fine{font-size:.98rem;margin-top:.5rem}
#help{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1.1rem;margin-top:1.4rem;scroll-margin-top:1rem}
#help p{margin:0;color:var(--dim);font-size:1.05rem;max-width:52ch}
#help-go{min-height:46px;padding:.5rem 1.1rem;border-radius:4px;background:none;border:1.5px solid var(--edge);color:var(--edge);font-weight:700}
#help-go:hover{background:var(--edge);color:var(--on)}
#help.on{padding:1rem 1.1rem;background:var(--lift);border:1px solid var(--rule);border-radius:6px}
#help.on p{color:var(--text);font-size:1.15rem}
#help-n{display:block;color:var(--edge);font-size:.9rem;letter-spacing:.04em}
#help-acts{display:flex;flex-wrap:wrap;gap:.2rem 1.4rem;flex-basis:100%}
#help-acts button{background:none;border:0;padding:0;min-height:44px;color:var(--edge);font-weight:700;text-decoration:underline;text-underline-offset:.2em}
#frames.helping .key,#frames.helping [data-act=no]{display:none}
.fr.was::before{content:"Your first choice";color:var(--edge);font-weight:700;font-size:.95rem}
#tune{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(1.2rem,3vw,2.6rem);align-items:start}
#tune .q{grid-template-columns:1fr}
#mine{position:sticky;top:1rem}#mine p{margin:.6rem 0 0;color:var(--dim);font-size:.92rem}
body:not(.has-style) #mine,body:not(.has-style) .q.opt{display:none}
body:not(.has-style) #tune{grid-template-columns:1fr}
.chip.sw{display:inline-flex;align-items:center;gap:.6rem;padding-left:.6rem}
.chip.sw i{display:flex;border-radius:999px;overflow:hidden;outline:1px solid rgb(0 0 0/.22)}.chip.sw u{width:.85rem;height:1.5rem}
.chip span{font-size:1.15em;margin-right:.15em}
.meter input{width:100%;min-height:44px;accent-color:var(--edge);margin:0}
.meter .ends{display:flex;justify-content:space-between;gap:1rem;color:var(--dim);font-size:.9rem}
.meter p{margin:.5rem 0 0;font-weight:600;min-height:1.6em}
#notes h1 span{color:var(--wax)}

/* question rows */
.q{display:grid;grid-template-columns:13rem 1fr;gap:.6rem 1.2rem;align-items:center;padding:1rem 0;border-top:1px solid var(--rule)}
.q>b,.q>label{font-weight:700}
.q small{display:block;color:var(--dim);font-weight:500;font-size:.9rem}
.q .agreed{grid-column:1/-1;margin:0;padding:.7rem .9rem;border-radius:6px;background:var(--tint);border:1px solid var(--edge);font-size:.95rem;line-height:1.45}
.q .agreed.off,.tile .agreed.off{background:none;border-color:var(--rule);color:var(--dim)}
.tile .agreed{color:var(--text,inherit);font-size:.92rem;line-height:1.4}
.q:last-of-type{border-bottom:1px solid var(--rule)}
textarea,.in{width:100%;background:var(--lift);border:1px solid var(--rule);border-radius:4px;padding:.75rem .85rem;min-height:48px}
textarea{min-height:5.5rem;resize:vertical}
textarea::placeholder,.in::placeholder{color:var(--ph)}
.in:user-invalid{border-color:var(--wax)}

/* what the site must do */
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem;margin-top:clamp(1.4rem,3vw,2.2rem)}
.tile{position:relative;display:grid;gap:.15rem;align-content:start;text-align:left;min-height:5.6rem;padding:.95rem 2.8rem .95rem 1.05rem;background:var(--lift);border:1.5px solid var(--rule);border-radius:6px;transition:border-color .15s ease,background .15s ease}
.tile b{font-size:1.1rem;font-weight:800;letter-spacing:-.01em}
.tile span{color:var(--dim);font-size:.94rem}
.tile:hover{border-color:var(--text)}
.tile::after{content:"";position:absolute;top:.95rem;right:1rem;width:20px;height:20px;border:1.5px solid var(--line);border-radius:50%;transition:background .15s ease,border-color .15s ease}
.tile[aria-pressed=true]{border-color:var(--edge);background:var(--tint)}
.tile[aria-pressed=true]::after{background:var(--edge) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='%23131211' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;border-color:var(--edge)}

/* have it / need it */
.seg{display:inline-flex;justify-self:start;border:1.5px solid var(--line);border-radius:999px;padding:3px;gap:3px}
.seg button{min-height:40px;padding:.35rem 1rem;border:0;border-radius:999px;background:none;font-weight:600;color:var(--dim)}
.seg button:hover{color:var(--text)}
.seg button[aria-pressed=true]{background:var(--text);color:var(--ground)}
.seg button[data-v=need][aria-pressed=true]{background:var(--edge);color:var(--on)}
.q .in{margin-top:.6rem}
.have{margin-top:clamp(1.4rem,3vw,2.2rem)}

/* bottom bar */
.dock{position:fixed;inset:auto 0 0 0;z-index:8;background:var(--lift);border-top:1px solid var(--rule);padding:.7rem 0}
.dock .wrap{display:flex;align-items:center;gap:.8rem}
.dock p{margin:0 auto 0 0;color:var(--dim);min-width:0}
.dock p strong{color:var(--wax)}
.dock p.warn{color:var(--edge)}
.back{min-height:46px;padding:.55rem .9rem;background:none;border:1px solid var(--rule);border-radius:4px;font-weight:700}
.back:hover{border-color:var(--text)}
.go{margin-left:auto;min-height:46px;padding:.6rem 1.3rem;background:var(--edge);color:var(--on);font-weight:800;border:0;border-radius:4px;white-space:nowrap;transition:transform .15s cubic-bezier(.2,.8,.2,1)}
.go:active{transform:scale(.97)}
.go:focus-visible{outline-color:var(--text)}
.is-done .dock,.is-done .where{display:none}
.is-done{padding-bottom:2rem}

/* the end */
.done{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,5vw,4rem);align-items:center}
.done ol{margin:1.6rem 0 0;padding:0;list-style:none;counter-reset:n;display:grid;gap:1rem;max-width:44ch}
.done li{counter-increment:n;display:grid;grid-template-columns:2.2rem 1fr;color:var(--dim)}
.done li::before{content:counter(n);color:var(--edge);font-weight:800;font-variant-numeric:tabular-nums}
.done li b{color:var(--text);font-weight:700}
.done .vp{aspect-ratio:4/3}
.done .fr-open{cursor:default}
.mock{margin-top:2.5rem;border:1px dashed var(--line);border-radius:6px;padding:1rem 1.2rem;color:var(--dim)}
.mock summary{cursor:pointer;font-weight:700;color:var(--text)}
.mock pre{white-space:pre-wrap;word-break:break-word;font:0.86rem/1.5 ui-monospace,Menlo,Consolas,monospace;color:var(--text);margin:.9rem 0 0}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}

/* the full-size look */
#pv{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:var(--ground);color:var(--text)}
#pv[open]{display:grid;grid-template-rows:auto auto 1fr}
#pv iframe{width:100%;height:100%;border:0;background:#fff;view-transition-name:site}
#pv::backdrop{background:rgb(0 0 0/.6)}
.pv-bar{display:flex;align-items:center;gap:.75rem;padding:.6rem .9rem;border-bottom:1px solid var(--rule)}
.pv-bar span{margin-right:auto;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pv-bar span{min-width:0}.pv-bar button{flex:none;white-space:nowrap;min-height:44px;padding:.5rem 1rem;border-radius:4px;border:1px solid var(--rule);background:var(--lift);font-weight:700}
#pv-size{display:none}
@media (min-width:760px){#pv-size{display:block}
  #pv.phone iframe{width:390px;height:calc(100% - 3rem);max-height:844px;min-height:0;place-self:center;border-radius:30px;box-shadow:0 0 0 10px #050505,0 0 0 11px #3A3733,0 30px 60px -20px #000}}
.pv-bar #pv-pick{background:var(--wax);border-color:var(--wax);color:#fff}
::view-transition-group(site){animation-duration:.5s;animation-timing-function:cubic-bezier(.2,.8,.2,1)}
::view-transition-old(site),::view-transition-new(site){height:100%;object-fit:cover;object-position:top}
::view-transition-old(root){animation:out .18s ease both}
::view-transition-new(root){animation:in .32s cubic-bezier(.2,.8,.2,1) both}
@keyframes out{to{opacity:0}}
@keyframes in{from{opacity:0;transform:translateY(10px)}}

@media (max-width:1000px){#frames{grid-template-columns:repeat(2,1fr)}.tiles{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){
  #frames{grid-template-columns:1fr}
  .vp{aspect-ratio:5/6}
  .marks{inset:-3%;width:106%;height:106%}
  .key{padding:0}
  .q{grid-template-columns:1fr}
  #tune{grid-template-columns:1fr}#mine{position:static}#mine .vp{aspect-ratio:4/3}
  .tiles{grid-template-columns:1fr}
  .tile{min-height:0}
  .done{grid-template-columns:1fr}
  .dock p{font-size:.9rem}
  .dock p.plain{display:none}
  .go{padding-inline:1rem}
}
@media (prefers-reduced-motion:reduce){
  .vp iframe{transition:opacity .2s ease!important;translate:0 0!important}
  .marks path{transition:none!important}
  ::view-transition-old(root),::view-transition-new(root){animation:none}
}
/* the drawn ring round the chosen sample overhangs its card by a few pixels */
html{overflow-x:clip}
/* the page behind the full-page look must not scroll: its bar sat over the sample's own and took the wheel at either end */
html:has(#pv[open]){overflow:hidden}
.dd{position:relative;display:flex;flex-direction:column;gap:.35rem;min-width:0}
.dd b{font-size:.85rem;color:var(--dim);font-weight:600}
.dd-b{display:flex;align-items:center;gap:.6rem;width:100%;min-height:50px;padding:.3rem 2.2rem .3rem .7rem;border:1.5px solid var(--line);border-radius:10px;color:var(--text);font:inherit;font-weight:600;text-align:left;cursor:pointer;transition:border-color .15s ease;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23B9B3A6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right .8rem center/12px}
.dd-b:hover{border-color:var(--text)}.dd-b[aria-expanded=true]{border-color:var(--text)}
.dd i{display:flex;flex:none;border-radius:999px;overflow:hidden;outline:1px solid rgb(0 0 0/.22)}.dd u{width:.85rem;height:1.5rem}
.dd span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dd .smp{flex:1;font-size:1.3rem;line-height:1.5;letter-spacing:0}
.dd small{flex:none;font:500 .8rem 'Red Hat Display',system-ui,sans-serif;color:var(--dim)}
.dd-l{position:absolute;z-index:30;top:calc(100% + .35rem);left:0;min-width:100%;width:max-content;max-width:min(26rem,calc(100vw - 1.2rem));max-height:min(23rem,52dvh);overflow-y:auto;overscroll-behavior:contain;margin:0;padding:.35rem;list-style:none;background:var(--field);border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 40px -12px rgb(0 0 0/.7);scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.dd-l li{display:flex;align-items:center;gap:.7rem;min-height:48px;padding:.3rem .7rem;border-radius:8px;font-weight:600;cursor:pointer}
.dd-l li:hover,.dd-l li:focus{background:var(--hover);outline:0}
.dd-l li:focus-visible{outline:2px solid var(--edge);outline-offset:-2px}
.dd-l li[aria-selected=true]{background:var(--text);color:var(--ground)}.dd-l li[aria-selected=true] small{color:inherit;opacity:.75}
.dd[data-o=c] .dd-l{max-height:min(30rem,72dvh)}
.dd-l .dd-own{display:grid;grid-template-columns:repeat(3,1fr);gap:.2rem .5rem;margin-top:.35rem;padding:.6rem .7rem .5rem;border-top:1px solid var(--line);border-radius:0;cursor:default;font-weight:500}
.dd-l .dd-own:hover{background:none}
.dd-own em{grid-column:1/-1;font-style:normal;font-size:.85rem;color:var(--dim)}
.dd-own label{display:grid;gap:.25rem;justify-items:start;font-size:.8rem;color:var(--dim);cursor:pointer}
.dd-own input{appearance:none;-webkit-appearance:none;width:100%;min-width:3rem;height:44px;padding:0;border:1.5px solid var(--line);border-radius:10px;background:none;cursor:pointer;overflow:hidden}
.dd-own input::-webkit-color-swatch-wrapper{padding:0}.dd-own input::-webkit-color-swatch{border:0}.dd-own input::-moz-color-swatch{border:0}
.dd-own input:hover{border-color:var(--text)}.dd-own input:focus-visible{outline:2px solid var(--edge);outline-offset:2px}
.dds{display:grid;grid-template-columns:1fr 1fr;gap:.9rem}
.pv-opts{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,17rem) minmax(0,24rem);gap:.9rem;padding:.5rem .9rem;border-bottom:1px solid var(--rule)}
.pv-opts:empty{display:none}
.pv-opts .dd{flex-direction:row;align-items:center;gap:.6rem}.pv-opts .dd-b{flex:1;min-width:0;min-height:44px}
@media (max-width:640px){.pv-opts{grid-template-columns:1fr 1fr;gap:.5rem;padding:.45rem .6rem}.pv-opts .dd>b{display:none}.pv-opts .dd-b{padding-left:.5rem;gap:.45rem}.pv-opts .dd u{width:.7rem}.pv-opts .dd-b small{display:none}.pv-opts .dd-b .smp{font-size:1.1rem}
  .pv-opts .dd:last-child .dd-l{left:auto;right:0}.pv-opts .dd-l{max-width:calc(100vw - 1.2rem)}}
@media (max-width:620px){.dds{grid-template-columns:1fr}}

.top .line{margin-right:auto;margin-left:1rem;color:var(--dim);font-size:.95rem}
@media (max-width:900px){.top .line{display:none}}
.q .in{margin-top:0}.q .seg+.in,.q div>.in{margin-top:.6rem}

/* the trick on the first screen: their name on three small pages as they type */
.trio{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem;max-width:26rem;margin:1.6rem 0 0}
.trio div{aspect-ratio:4/5;border-radius:6px;padding:.6rem;display:flex;align-items:flex-end;overflow:hidden;overflow-wrap:anywhere;border:1.5px solid var(--text);line-height:1.05}
.trio div:nth-child(1){background:var(--text);color:var(--ground);font:700 .85rem/1.05 'Fraunces',serif}
.trio div:nth-child(2){background:#fff;color:#1C2147;font:800 .74rem/1.08 'Red Hat Display',sans-serif;text-transform:uppercase;letter-spacing:.04em}
.trio div:nth-child(3){background:#FFD9A0;color:#1C2147;font:italic 600 .95rem/1.05 'Cormorant Garamond',serif}
