/* your 2027: color palettes. Candy is the default and lives in app.css and landing.css.
   This file only holds what changes for the other two. The palette is set as
   <html data-palette="neutral|dark"> by the maker (and by the review switch on the landing page).
   Keep the values in step with PALETTES in lib/paper.js. */

/* ---- palette picker on the style step (all palettes) */
.pals{display:flex;gap:12px}
.pal{flex:1;border:0;background:none;padding:0 0 4px;font-size:14px;font-weight:600;color:inherit;text-align:center;min-height:44px}
.pal span{display:grid;grid-template-columns:1fr 1fr;height:54px;margin-bottom:8px;border:2px solid rgba(21,23,59,.3);transform:rotate(-2deg)}
.pal:nth-child(even) span{transform:rotate(1.5deg)}
.pal[aria-pressed="true"] span{border:3px solid var(--fg,var(--ink));box-shadow:4px 4px 0 var(--fg,var(--ink))}
.pal [data-swatch="candy"] i:nth-child(1){background:#86DDD8}
.pal [data-swatch="candy"] i:nth-child(2){background:#F4A8D4}
.pal [data-swatch="candy"] i:nth-child(3){background:#F7EE6A}
.pal [data-swatch="candy"] i:nth-child(4){background:#6A79C6}
.pal [data-swatch="neutral"] i:nth-child(1){background:#FBF3E7}
.pal [data-swatch="neutral"] i:nth-child(2){background:#E7DDD1}
.pal [data-swatch="neutral"] i:nth-child(3){background:#F3EBE0}
.pal [data-swatch="neutral"] i:nth-child(4){background:#7A6A5B}
.pal [data-swatch="dark"] i:nth-child(1){background:#302634}
.pal [data-swatch="dark"] i:nth-child(2){background:#75495F}
.pal [data-swatch="dark"] i:nth-child(3){background:#DED2C3}
.pal [data-swatch="dark"] i:nth-child(4){background:#727966}

/* ---- neutral: warm whites and soft beiges, latte as the deepest tone. No dark blocks. */
html[data-palette="neutral"]{--aqua:#FBF3E7;--peri:#7A6A5B;--pink:#E7DDD1;--butter:#F3EBE0;--ink:#4A3F36;--paper:#FEFAF2}
html[data-palette="neutral"],html[data-palette="neutral"] body{background:#E7DDD1}
html[data-palette="neutral"] .mk[data-bg="aqua"] h2 em,html[data-palette="neutral"] .mk[data-bg="pink"] h2 em{color:var(--peri)}
html[data-palette="neutral"] .mk[data-bg="butter"]{background-color:#F3EBE0}
html[data-palette="neutral"] footer,html[data-palette="neutral"] .toast,html[data-palette="neutral"] .skip{background:var(--peri)}
/* the bottom bar is light too, so nothing dark sits on the light screens */
html[data-palette="neutral"] .dock{background:#E4D8CC;color:var(--ink);box-shadow:0 -1px 0 rgba(74,63,54,.12)}
html[data-palette="neutral"] .dock .back{color:var(--ink)}
html[data-palette="neutral"] .dock :focus-visible{outline-color:var(--ink)}
html[data-palette="neutral"] .go{filter:drop-shadow(3px 3px 0 rgba(74,63,54,.28))}
html[data-palette="neutral"] .mk[data-bg="peri"] .dock{background:#E4D8CC}
html[data-palette="neutral"] footer,html[data-palette="neutral"] .review,html[data-palette="neutral"] .edge-switch{color:#FBF3E7}
html[data-palette="neutral"] .cta,html[data-palette="neutral"] .offer{box-shadow:5px 5px 0 var(--peri)}
html[data-palette="neutral"] .mk[data-bg="peri"] .cta{box-shadow:5px 5px 0 #4A3F36}
html[data-palette="neutral"] .phone,html[data-palette="neutral"] .lock::before{background:#4A3F36}
html[data-palette="neutral"] .offer .upl{background:var(--paper)}

/* ---- dark: moonlit mauve. Midnight plum and mulberry screens, cream type, rose, lavender and sage pieces */
html[data-palette="dark"]{--fg:#EFE6DA;--aqua:#8C8195;--peri:#75495F;--pink:#A97982;--butter:#DED2C3;--ink:#302634;--paper:#F3ECE3;color-scheme:dark}
html[data-palette="dark"],html[data-palette="dark"] body{background:#1E1722}
html[data-palette="dark"] body{color:var(--fg)}
html[data-palette="dark"] .app{background:#2A2130}
html[data-palette="dark"] :focus-visible{outline-color:var(--fg)}

/* maker */
html[data-palette="dark"] .mk{color:var(--fg)}
html[data-palette="dark"] .mk[data-bg="aqua"]{background-color:#302634}
html[data-palette="dark"] .mk[data-bg="pink"]{background-color:#3F2A3B}
html[data-palette="dark"] .mk[data-bg="butter"]{background-color:#383D34}
html[data-palette="dark"] .mk[data-bg="peri"]{background-color:#4A2E3E}
html[data-palette="dark"] .mk[data-bg="paper"]{background-color:#2A2130}
html[data-palette="dark"] .mk h2 em{color:var(--butter)}
html[data-palette="dark"] .mk[data-bg="aqua"] h2 em{color:var(--aqua)}
html[data-palette="dark"] .mk[data-bg="pink"] h2 em{color:var(--pink)}
html[data-palette="dark"] .dots i{background:rgba(255,255,255,.28)}
html[data-palette="dark"] .dots i.on{background:var(--butter)}
html[data-palette="dark"] .tabs button{color:var(--fg)}
html[data-palette="dark"] .find input,html[data-palette="dark"] .fields input{border-bottom-color:var(--fg);color:var(--fg)}
html[data-palette="dark"] .find input::placeholder,html[data-palette="dark"] .fields input::placeholder{color:rgba(246,240,230,.5)}
html[data-palette="dark"] .sugg button{color:var(--fg)}
html[data-palette="dark"] .upl{border-color:var(--fg);color:var(--fg)}
html[data-palette="dark"] .upl:focus-within{outline-color:var(--fg)}
html[data-palette="dark"] .ups span,html[data-palette="dark"] .mycards span{color:var(--fg)}
html[data-palette="dark"] .shotwrap{border-color:var(--fg)}
html[data-palette="dark"] .lay[aria-pressed="true"] span{outline-color:var(--fg)}
html[data-palette="dark"] .sw,html[data-palette="dark"] .pal span{border-color:rgba(246,240,230,.4)}
html[data-palette="dark"] .sw[aria-pressed="true"] i{border-color:var(--fg);box-shadow:4px 4px 0 var(--fg)}
html[data-palette="dark"] .shuffle{border-color:var(--fg);color:var(--fg)}
html[data-palette="dark"] .cta{box-shadow:5px 5px 0 #150F18}
html[data-palette="dark"] .cta:active{box-shadow:2px 2px 0 #150F18}
html[data-palette="dark"] .emails input{accent-color:var(--butter)}
html[data-palette="dark"] .dock{background:#1E1722;box-shadow:0 -1px 0 rgba(246,240,230,.14)}
html[data-palette="dark"] .linkish{color:var(--fg)}
/* light cards keep dark type */
html[data-palette="dark"] .made,html[data-palette="dark"] .incl,html[data-palette="dark"] .sheet>div,html[data-palette="dark"] .saved li,html[data-palette="dark"] #account-status:not(:empty){color:var(--ink)}
html[data-palette="dark"] .made :focus-visible,html[data-palette="dark"] .incl :focus-visible,html[data-palette="dark"] .sheet :focus-visible,html[data-palette="dark"] .saved li :focus-visible{outline-color:var(--ink)}
html[data-palette="dark"] .made .fields input,html[data-palette="dark"] .sheet .fields input{border-bottom-color:var(--ink);color:var(--ink)}
html[data-palette="dark"] .made .fields input::placeholder{color:rgba(21,23,59,.5)}
html[data-palette="dark"] .made .upl,html[data-palette="dark"] .made .shuffle,html[data-palette="dark"] .sheet .shuffle,html[data-palette="dark"] .incl .shuffle{border-color:var(--ink);color:var(--ink)}
html[data-palette="dark"] .made .shotwrap{border-color:var(--ink)}
html[data-palette="dark"] .made .sugg button,html[data-palette="dark"] .made .linkish,html[data-palette="dark"] .saved li .linkish{color:var(--ink)}
html[data-palette="dark"] .made .cta,html[data-palette="dark"] .incl .cta,html[data-palette="dark"] .sheet .cta,html[data-palette="dark"] .saved li .cta{box-shadow:5px 5px 0 var(--ink)}
html[data-palette="dark"] .incl .emails input{accent-color:var(--ink)}

/* landing page */
html[data-palette="dark"] .hero{background-color:#302634}
html[data-palette="dark"] .how{background-color:#4A2E3E}
html[data-palette="dark"] .pink{background-color:#3F2A3B}
html[data-palette="dark"] .faq{background-color:#2A2130}
html[data-palette="dark"] .share{background-color:#383D34}
html[data-palette="dark"] .tear,html[data-palette="dark"] .card,html[data-palette="dark"] .mail,html[data-palette="dark"] .hex,html[data-palette="dark"] .goalviz{color:var(--ink)}
html[data-palette="dark"] .card :focus-visible{outline-color:var(--ink)}
html[data-palette="dark"] .card.later{color:var(--fg);border-color:var(--fg)}
html[data-palette="dark"] .card.later :focus-visible{outline-color:var(--fg)}
html[data-palette="dark"] .faq-list{border-top-color:var(--fg)}
html[data-palette="dark"] details{border-bottom-color:var(--fg)}
html[data-palette="dark"] summary::after{background:linear-gradient(var(--fg),var(--fg)) center/100% 3px no-repeat,linear-gradient(var(--fg),var(--fg)) center/3px 100% no-repeat}
html[data-palette="dark"] footer{background:#1E1722}
/* bright pieces always carry dark type */
html[data-palette="dark"] .pic,html[data-palette="dark"] .chip,html[data-palette="dark"] .go,html[data-palette="dark"] .cta,html[data-palette="dark"] .acct button,html[data-palette="dark"] .notes button{color:var(--ink)}
html[data-palette="dark"] h2 em{color:var(--butter)}
html[data-palette="dark"] .made,html[data-palette="dark"] .incl,html[data-palette="dark"] .sheet>div,html[data-palette="dark"] .saved li,html[data-palette="dark"] .card,html[data-palette="dark"] .mail{color-scheme:light}
html[data-palette="dark"] .made h2 em,html[data-palette="dark"] .incl h2 em,html[data-palette="dark"] .sheet h2 em,html[data-palette="dark"] .card h2 em{color:var(--peri)}
html[data-palette="dark"] .offer{color:var(--ink);color-scheme:light;box-shadow:5px 5px 0 #150F18}
html[data-palette="dark"] .offer .upl{border-color:var(--ink);color:var(--ink)}
html[data-palette="dark"] .offer :focus-visible{outline-color:var(--ink)}
html[data-palette="neutral"] .go .t-fill,html[data-palette="neutral"] .cta.butter{background-color:#FEFAF2}
html[data-palette="neutral"] .offer{background-color:#E4D8CC}
/* neutral is light all the way through: the two screens that are dark in candy are light here */
html[data-palette="neutral"] .mk[data-bg="peri"]{background-color:#E7DDD1;color:var(--ink)}
html[data-palette="neutral"] .mk[data-bg="peri"] .dots i{background:rgba(74,63,54,.22)}
html[data-palette="neutral"] .mk[data-bg="peri"] .dots i.on{background:var(--ink)}
html[data-palette="neutral"] .mk[data-bg="peri"] h2 em{color:var(--peri)}
html[data-palette="neutral"] .mk[data-bg="peri"] .tabs button{color:var(--ink)}
html[data-palette="neutral"] .mk[data-bg="peri"] :focus-visible{outline-color:var(--ink)}
html[data-palette="neutral"] .mk[data-bg="peri"] .fin .shuffle{border-color:var(--ink);color:var(--ink)}
html[data-palette="neutral"] .mk[data-bg="peri"] .cta{box-shadow:5px 5px 0 var(--peri)}
html[data-palette="neutral"] .how{background-color:#E7DDD1;color:var(--ink)}
html[data-palette="neutral"] .how :focus-visible{outline-color:var(--ink)}
html[data-palette="neutral"] .how em,html[data-palette="neutral"] .how .steps li::before,html[data-palette="neutral"] .how .num{color:var(--peri)}
html[data-palette="neutral"] .how .mono,html[data-palette="neutral"] .how .steps b{color:var(--peri)}
html[data-palette="dark"] .how{background-color:#4A2E3E}
html[data-palette="dark"] .mk[data-bg="peri"] .cta{box-shadow:5px 5px 0 #150F18}
html[data-palette="dark"] .palpick button[aria-pressed="true"] i{outline-color:var(--fg)}
html[data-palette="neutral"] .real{background-color:var(--peri);color:#fff}
html[data-palette="neutral"] .real h2 em{color:#F3EBE0}
html[data-palette="dark"] .real{background-color:#1E1722;color:var(--fg)}
html[data-palette="dark"] .stamp{color:var(--ink)}
html[data-palette="neutral"] .banner{background:var(--peri)}
html[data-palette="neutral"] .banner b{color:#FEFAF2}
/* the promise stays light on the mauve palette, so it reads as a label and not more dark */
html[data-palette="dark"] .banner{background:#DED2C3;color:#302634}
html[data-palette="dark"] .banner b{color:#75495F}

/* straight back from paying: one calm screen until her set is ready (see palette-boot.js) */
html.returning body::before{content:"";position:fixed;inset:0;z-index:900;background-color:var(--peri,#6C74C9);background-image:var(--grain);opacity:1;transition:opacity .3s ease}
html.returning body::after{content:"Thank you.\A Getting everything ready.";white-space:pre;position:fixed;left:0;right:0;top:38%;z-index:901;text-align:center;color:#fff;font:italic 34px/1.25 "Instrument Serif",Georgia,serif;opacity:1;transition:opacity .3s ease;animation:calm 1.6s ease-in-out infinite alternate}
html.returning[data-palette="dark"] body::before{background-color:#4A2E3E}
html.returning[data-palette="neutral"] body::before{background-color:#E7DDD1}
html.returning[data-palette="neutral"] body::after{color:var(--ink,#4A3F36)}
html.returning.returning-out body::before,html.returning.returning-out body::after{opacity:0;pointer-events:none;animation:none}
@keyframes calm{from{opacity:.72}to{opacity:1}}
@media (prefers-reduced-motion:reduce){html.returning body::after{animation:none}html.returning body::before,html.returning body::after{transition:none}}
