/* Lola's Event Studio: dark mode and the light Reviews page (Lola, November 21)
   Dark mode follows the phone or computer setting. Every page takes the Reviews page's deep wine look: a wine page with its
   own pattern in wine tones (site.js), cream words, light rose lines, cherry and rose accents, gold edges. The cards turn wine
   too (Lola, November 21: "the white cards need to be changed for dark mode"): a wine card with the gold edges, cream words and
   darker fields; the drawings on paper switch to their wine-paper twins (source/render-dark-scenes.cjs, <picture> in build.py).
   The heading stripes and the ending (blush wave, rose wave, cherry footer) go dark too (Lola, November 21: "you don't want a
   bright boom when you're in dark mode"). In light mode The Reviews is now cream and blush like the other pages (it was deep
   wine at all times). */

/* ===== The dark palette (Lola, November 21: "take our existing colour palette and make the same colours, just darker") =====
   Every colour has a dark twin (handoff/assets/tokens/dark-palette.html shows them side by side):
   1. Backgrounds, patterns and cards go darker. The lightest colour becomes the darkest, so each pattern keeps its shape.
   2. Words go lighter, or they would disappear: espresso becomes cream, oxblood words light rose, small cherry words rose.
   3. Each heading stripe becomes a darker version of itself, with cream words.
   4. The ending goes dark: the two waves in wine, the footer deepest of all, INQUIRE in cherry.
   5. A few accents step up a little so they still stand out: the menu card's gold icons.
   Gold, photos, products and the cherry buttons keep their colours. site.js (the patterns) and
   source/render-dark-scenes.cjs (the drawings) read these same tokens, so a colour changes in one place. */
:root{
  /* 1. the darker twins */
  --dk-cream:#4A0910;                         /* the page (cream #FFF1E4) */
  --dk-paper:#5C1020;                         /* cards (paper #FFFAF3) */
  --dk-paper-hi:#6B1529;--dk-paper-lo:#4E0B18;  /* a card's soft light-to-dark */
  --dk-paper-g:linear-gradient(165deg,var(--dk-paper-hi),var(--dk-paper-lo));
  --dk-field:#41081A;                         /* boxes to type in (#FFFDF9) */
  --dk-blush:#5A0C1A;                         /* blush #FBD3D6 */
  --dk-light-rose:#6B1027;                    /* light rose #F8B4BE */
  --dk-rose:#7A1B3D;                          /* rose #F597A8 */
  --dk-coral:#8E1B33;                         /* coral #EC6A7A */
  --dk-cherry:#A51C2E;                        /* cherry #D9232E, in the patterns */
  --dk-raspberry:#8C2450;                     /* raspberry #B0305F, in the patterns */
  --dk-oxblood:#2E050B;                       /* oxblood #7A1219, in the patterns */
  /* 2. the lighter words */
  --dk-ink:#F6E5D8;                           /* reading text (espresso #3B2219) */
  --dk-oxblood-text:#F8B4BE;                  /* oxblood words */
  --dk-cherry-text:#F597A8;                   /* small cherry words */
  --dk-drawing-line:#F2D9C6;                  /* pencil and ink in the drawings (studio ink #4A0E15, pencil #3F3A39) */
  --dk-line:rgba(255,241,228,.22);            /* fine rules (espresso at 20%) */
  --dk-field-line:rgba(248,180,190,.42);      /* the edge of a box to type in */
  /* 3. the heading stripes, each a darker version of itself (Lola, November 21: "I thought you made the pale pink a darker version of itself") */
  --dk-band-oxblood:#2C040A;                  /* oxblood stripe #7A1219: deeper than the page */
  --dk-band-raspberry:#7D1A47;                /* raspberry stripe #B0305F */
  --dk-band-rose:#A4405E;                     /* rose stripe #F597A8 */
  --dk-band-cherry:#A8192B;                   /* cherry stripe #D9232E */
  /* 4. the ending goes dark too (Lola, November 21: "you don't want a bright boom when you're in dark mode") */
  --dk-end-wave-1:#5E0E1F;                    /* the blush wave with Previous and Next (#FBD3D6) */
  --dk-end-wave-2:#7A1B3D;                    /* the rose wave (#F597A8) */
  --dk-end-footer:#33050C;                    /* the cherry footer (#D9232E) */
  /* 5. the accents a step brighter */
  --dk-gold-icon:#E2C27D;                     /* the menu card's gold icons (#8C6A30) */
}
.art picture,.mkbox picture{display:contents}   /* a drawing's dark twin wrapper takes no room of its own */
.line-draw .ld-dark{display:none}
@media (prefers-color-scheme: dark){.line-draw .ld-light{display:none}.line-draw .ld-dark{display:inline}}

/* ---------- The Reviews page in light mode ---------- */
@media (prefers-color-scheme: light){
  html:has(body.p-impressions){background:var(--cream)}
  .p-impressions{background:var(--cream);color:var(--ink)}
  .p-impressions .surface{display:block}
  .p-impressions .im-bg{display:none}
  .p-impressions .mark-link{color:var(--cherry)}
  .p-impressions .top{border-bottom-color:rgba(122,18,25,.16)}
  .p-impressions .page-title{color:var(--cherry)}
  .p-impressions .im-intro{color:var(--ink)}
  .p-impressions .waves path:nth-child(1){fill:#FDE4E4}
  .p-impressions .waves path:nth-child(2){fill:#F597A8}
  .p-impressions .waves path:nth-child(3){fill:#FBD3D6}
  .p-impressions .im-stage{background:#FBD3D6}
  .p-impressions .im-ask{color:var(--oxblood)}
  .p-impressions .im-invite::before{background:radial-gradient(circle,rgba(245,151,168,.5),transparent 70%)}
  .p-impressions .im-arrow{color:var(--cherry);border-color:var(--cherry)}
  .p-impressions .im-arrow:hover{color:var(--cream)}
  .p-impressions .im-dashes i{background:var(--rose)}
  .p-impressions .im-dashes i.on{background:var(--cherry)}
  .p-impressions .sb--nav{background:linear-gradient(#FBD3D6,#FBD3D6) top/100% 40px no-repeat}
  .p-impressions .im-sign .im-name{color:var(--cherry)}
}

/* ---------- Dark mode ---------- */
@media (prefers-color-scheme: dark){
  :root{--ink:var(--dk-ink);--oxblood:var(--dk-oxblood-text);--line:var(--dk-line)}   /* words go lighter */
  html,body{background:var(--dk-cream)}
  body{color:var(--ink)}
  .page{background:transparent}
  html:not(.surf) .surface{opacity:0}   /* the light pattern picture that shows until the wine one is drawn */
  .surface .rest{opacity:.8}
  .top{border-bottom-color:rgba(255,241,228,.18)}
  .mark-link{color:var(--cream)}
  .page-title{color:var(--cream)}
  .lead,.phead .lead,.phead .intro{color:var(--light-rose)}
  .lead .hi,.phead .hi,.lead .idea{color:var(--cream)}

  /* ---------- the cards: wine with gold edges, cream words, darker fields ---------- */
  .frame{background:linear-gradient(var(--dk-paper),var(--dk-paper)) padding-box,var(--gold) border-box}
  .art,.art[data-stages="0"]{background:var(--dk-paper)}
  .spin{background:radial-gradient(70% 60% at 50% 45%,var(--dk-paper-hi),var(--dk-paper-lo))}
  .slot-label{background:var(--dk-paper);color:var(--ink)}
  .case .slot::before{background:radial-gradient(70% 60% at 30% 30%,rgba(245,151,168,.28),transparent 70%),radial-gradient(60% 60% at 75% 75%,rgba(217,35,46,.3),transparent 70%),var(--dk-paper)}
  .portrait{background:var(--dk-paper)}
  .p-studio .portrait-set .nameplate{background:linear-gradient(170deg,var(--dk-paper-hi),var(--dk-paper)) padding-box,var(--gold-rich) border-box}
  .p-studio .portrait img{border-color:var(--dk-oxblood)}   /* the mat of Lola's photo frames goes dark, but deeper than the page so the frame stands off it (Lola, November 21: "shouldn't match the background") */
  @media (min-width:700px){.p-studio .behind .note{background:var(--dk-paper-g)}}
  .p-home .sb-card,.p-inquiry .iv-b .iv-card{background:var(--dk-paper-g);box-shadow:0 26px 40px -24px rgba(0,0,0,.6),inset 0 0 0 1px rgba(255,241,228,.08)}
  .p-inquiry .one .musts,.p-inquiry .one .more{background:var(--dk-paper-g)}
  .input,.p-inquiry .one .input,.p-inquiry .one #f-more,.cal-field,.p-inquiry .one .cal-field,.drop,.kw-form .drop{background:var(--dk-field);color:var(--ink);border-color:var(--dk-field-line)}
  .input::placeholder,textarea::placeholder{color:rgba(248,180,190,.6)}
  .chip span{background:rgba(255,241,228,.07);color:var(--ink)}
  .p-inquiry .chip span::before{background-color:var(--dk-field)}
  .p-inquiry .chip input:checked+span::before{background-color:var(--cream)}
  .p-inquiry .one .wheel{background:var(--dk-field)}
  .p-inquiry .one .plus{background:var(--dk-paper)}
  .cal-pop{background:var(--dk-paper);color:var(--ink)}
  .im-card{background:radial-gradient(circle at 100% 0,rgba(245,151,168,.24) 0,rgba(245,151,168,.24) 74px,transparent 75px),radial-gradient(circle at 100% 0,rgba(236,106,122,.14) 0,rgba(236,106,122,.14) 118px,transparent 119px),var(--dk-paper);
    box-shadow:0 30px 44px -14px rgba(0,0,0,.6),inset 0 0 0 9px var(--dk-paper),inset 0 0 0 10px rgba(248,180,190,.3)}
  .im-text::-webkit-scrollbar-track{background:rgba(255,241,228,.1)}
  .im-pill--ig{background:none;color:var(--light-rose)}   /* no grey fill behind the name (Lola, November 23: "why is there a gray bar through it?") */
  .topics-nav{background:rgba(74,9,16,.62)}
  .topics-nav.stuck{background:rgba(46,5,11,.96);box-shadow:0 12px 18px -14px rgba(0,0,0,.6)}
  .topics a{background:rgba(255,241,228,.07);color:var(--ink)}
  .collapse-all,.group-close{background:var(--dk-paper);color:var(--ink)}
  .page-end .notsure,.page-end .begin{background:rgba(255,241,228,.07)}
  .case-close{background:rgba(74,9,16,.85)}
  .drawer{background:radial-gradient(75% 42% at 100% 0%,rgba(245,151,168,.3),transparent 72%),radial-gradient(70% 40% at 0% 62%,rgba(217,35,46,.24),transparent 72%),var(--dk-paper);box-shadow:0 30px 70px -22px rgba(0,0,0,.7),inset 0 0 0 1px rgba(255,241,228,.1)}
  .drawer .dico{color:var(--dk-gold-icon);background:linear-gradient(var(--dk-paper),var(--dk-paper)) padding-box,var(--gold-rich) border-box}
  .drawer .dlist a:not(.btn){color:var(--light-rose)}
  .drawer .dlist a:not(.btn):hover,.drawer .dlist [aria-current=page]:not(.btn){color:var(--cream)}
  .p-studio .portrait-set .founder{color:#FFF6EE}   /* Lola, November 23: her name on the nameplate is white, not pink */
  .p-studio .portrait-set .founder-role{color:var(--light-rose)}
  :where(.p-inquiry .one,.cal-pop,.kw-dialog){color-scheme:dark}
  .p-home .sb-card{--ink:var(--dk-ink);--oxblood:var(--dk-oxblood-text);--line:var(--dk-line);color:var(--ink)}   /* Home's card sits in the bright ending, which keeps the light ink */
  .p-inquiry .iv-b .inq-q .hi{color:var(--dk-cherry-text)}
  /* the stars after each question and the calendar's day letters: rose, so they show on wine (Lola, November 21) */
  /* Lola, November 21: the prices and the + on The Answers were too dark on wine; both turn rose */
  .amt .val{color:var(--dk-cherry-text)}
  .qa .pm{border-color:var(--dk-cherry-text)}
  .qa .pm::before,.qa .pm::after{background:var(--dk-cherry-text)}
  .qa[open] .pm{background:var(--dk-cherry-text)}
  .qa[open] .pm::before,.qa[open] .pm::after{background:var(--dk-cream)}
  .way{background:var(--dk-paper-g);box-shadow:0 12px 20px -14px rgba(0,0,0,.6)}
  .ways-lead{color:var(--cream)}
  /* product photos: in dark mode they are cut-outs (source/make-dark-cutouts.sh), so they are not multiplied onto the wine card, which
     tinted them wine ("you can see the dark background through it", Lola, November 21); a soft shadow stands in for the studio one */
  :is(.create-swipe,.pic-design) .st:is([src*="tee-real-1-"],[src*="tee-real-5-"],[src*="d40-real-1-"],[src*="d40-real-2-"],[src*="d40-real-3-"],[src*="bayo-real-1-"],[src*="sign-real-3-"]){mix-blend-mode:normal;filter:drop-shadow(0 6px 8px rgba(0,0,0,.45))}
  .inq-demo{--iq-off:var(--dk-field);--iq-line:var(--dk-field-line);--iq-on:#D9232E;--iq-ink:var(--dk-ink);--iq-onink:#FFF1E4;--iq-card:var(--dk-paper);--iq-big:#FFF1E4;--iq-soft:var(--dk-cherry-text);--iq-tap:rgba(255,241,228,.92)}
  .inq-demo .iq-l{fill:var(--cream)}
  .inq-demo .iq-box{fill:var(--dk-field);stroke:var(--dk-field-line)}
  .inq-demo .iq-date{fill:var(--dk-cherry-text)}
  .inq-demo .iq-calbg{fill:var(--dk-paper-hi);filter:drop-shadow(0 14px 18px rgba(0,0,0,.55))}
  .dz .st[src*="tee-real-1-"],.dz .st[src*="tee-real-5-"]{filter:drop-shadow(0 6px 8px rgba(0,0,0,.45))}
  .dz .dz-screen{background:#1A0508;box-shadow:0 0 0 1px rgba(226,194,125,.9),0 14px 22px -10px rgba(0,0,0,.7)}
  .dz .dz-neck{background:linear-gradient(#1A0508,#2a0b10)}.dz .dz-foot{background:#1A0508}
  .way-go{color:var(--dk-cherry-text)}
  .p-process .step-text .body a.tl{text-decoration-color:var(--dk-cherry-text)}
  .way-h{color:var(--cream)}.way-h .it{color:var(--dk-cherry-text)}
  .p-inquiry .one .req,.p-inquiry .one .musts .field.bad .req{color:var(--dk-cherry-text)}
  .cal-week span{color:var(--dk-cherry-text)}
  .p-inquiry .one .wr{color:rgba(248,180,190,.75)}
  .p-inquiry .one .helper{color:rgba(248,180,190,.85)}
  .p-inquiry .one .opt{color:rgba(248,180,190,.78)}

  /* Home: the invitation over the wine */
  .p-home .hs{color:var(--cream)}
  .p-home .hs+em,.p-home .hs~em{color:var(--dk-cherry-text)}

  /* the heading stripes: each a darker version of itself, with cream words (site.js draws them from the same tokens) */
  .band[style]{--on:#FFF1E4!important}
  .band[data-band="#7A1219"]{--band:var(--dk-band-oxblood)!important}
  .band[data-band="#B0305F"]{--band:var(--dk-band-raspberry)!important}
  .band[data-band="#F597A8"]{--band:var(--dk-band-rose)!important}
  .band[data-band="#D9232E"]{--band:var(--dk-band-cherry)!important}

  /* the ending: the blush wave, the rose wave and the cherry footer go dark, so the page ends quietly */
  .sb .wv path[style*="#FBD3D6"]{fill:var(--dk-end-wave-1)!important}
  .sb .wv path[style*="#F597A8"]{fill:var(--dk-end-wave-2)!important}
  .sb .wv path[style*="#D9232E"]{fill:var(--dk-end-footer)!important}
  .sb-in{background:var(--dk-end-footer)}
  :is(body,.p-impressions) .sb.sb--nav .nx-pair a{color:var(--dk-cherry-text)}
  :is(body,.p-impressions) .sb.sb--nav .nx-eyebrow{color:var(--dk-oxblood-text)}
  .sbdr[style*="--c:#FFF1E4"]{--c:var(--dk-light-rose)!important}
  .sbdr[style*="--c:#FBD3D6"]{--c:var(--dk-rose)!important}
  .sbdr[style*="--c:#F597A8"]{--c:var(--dk-coral)!important}
  .sbdr[style*="--c:#EC6A7A"]{--c:var(--dk-cherry)!important}
  .sbdr[style*="--c:#B0305F"]{--c:var(--dk-raspberry)!important}
  .sbdr[style*="--c:#7A1219"]{--c:var(--dk-blush)!important}
  /* INQUIRE in the footer: the cherry button, as at the top of Home, instead of a cream one */
  .sb-in .btn-inq:not(.hg-btn){background:var(--cherry);color:#FFF1E4;box-shadow:inset 0 1.5px 0 rgba(255,255,255,.3),0 6px 0 #7A1219,0 22px 22px -12px rgba(0,0,0,.6)}
  .sb-in .btn-inq:not(.hg-btn):hover{box-shadow:inset 0 1.5px 0 rgba(255,255,255,.3),0 8px 0 #7A1219,0 26px 24px -12px rgba(0,0,0,.6)}
  .sb-in .btn-inq:not(.hg-btn):active{box-shadow:inset 0 1.5px 0 rgba(255,255,255,.3),0 1px 0 #7A1219,0 6px 10px -4px rgba(0,0,0,.5)}
  .sb-in .btn-inq:not(.hg-btn)::after{background-image:linear-gradient(110deg,transparent 40%,rgba(255,244,232,.5) 50%,transparent 60%)}
  /* Home: the soft shapes behind the name go wine instead of cream and blush */
  .p-home .hero .ap[style*="color:#FFF1E4"]{color:var(--dk-coral)!important}
  .p-home .hero .ap[style*="color:#FBD3D6"]{color:var(--dk-rose)!important}
  .p-home .hero .ap[style*="color:#F597A8"]{color:var(--dk-light-rose)!important}
  .p-home .hero .ap[style*="color:#EC6A7A"]{color:var(--dk-coral)!important}
  /* the buttons' stacked shadows go from rose and light rose to their darker versions */
  .btn,.send{--rose:var(--dk-band-rose);--light-rose:var(--dk-rose)}
  .p-inquiry .one .send[aria-disabled=true],.p-inquiry .one .send:not(.ready){background:#7E2B44;box-shadow:4px 4px 0 rgba(164,64,94,.45)}
  .kw-sheet{box-shadow:0 -10px 0 var(--dk-band-rose)}
  @media (min-width:700px){.kw-sheet{box-shadow:0 10px 0 var(--dk-band-rose)}}
  .ig-card{box-shadow:-8px 0 0 var(--dk-band-rose),0 20px 40px -20px rgba(0,0,0,.5)}
  /* the menu card's foot: the rose band goes wine */
  .drawer .dfoot,.drawer .dfoot::before{background:var(--dk-end-wave-2)}

  /* The Studio: the note and the captions glow wine instead of cream */
  @media (max-width:699px){.p-studio .behind .note .body p,.p-studio .behind .note .body p:first-child{color:var(--ink);text-shadow:0 0 16px rgba(74,9,16,.95),0 0 4px rgba(74,9,16,.9)}}
  .p-studio .create-swipe .cap h3,.p-studio .create-swipe .cap p{text-shadow:0 0 14px rgba(74,9,16,.95),0 0 3px rgba(74,9,16,.9)}
  .p-studio .create-swipe .cap h3{color:var(--dk-cherry-text)}
  .p-studio .create-h{color:var(--cream)}

  /* The Three Lines: the callout under each band */
  .line .copy .sub,.step .statement{background:rgba(255,241,228,.1);color:var(--ink)}
  .line .copy .sub .idea,.step .statement .idea{color:var(--dk-cherry-text)}

  /* The Inquiry's thank you: the big words turn cream like the titles */
  .p-inquiry .thanks .big{color:var(--cream)}

  /* The Gallery */
  .case .tag{color:var(--dk-oxblood-text)!important}   /* the line's name is coloured inline per line */
  .case-close{color:var(--cream)}

}
