/* calyxculture page design (Prompt 18). Built on tokens.css (load it first). Rules: docs/ART-DIRECTION.md, docs/DESIGN-SYSTEM.md.
   Every colour is a locked colour (alpha at most) or a token. Only transform and opacity animate. Masks are gradients (no url(), CSP untouched). */
:root{--z-far:0;--z-mid:1;--z-near:2;--dv-h:32px;--sh-hero:0 28px 60px -22px #0b0b0bcc,0 0 0 1px #ffffff26}
/* hero: curved bottom edge, three depth layers (far = glow and star mark, mid = photos, near = text) */
.hero{border-radius:var(--r-3) var(--r-3) 50% 50%/var(--r-3) var(--r-3) var(--sp-6) var(--sp-6);padding-bottom:var(--sp-7)}
.hero .hst{z-index:var(--z-mid)}
.hero>div{z-index:var(--z-near)}
@media(min-width:640px) and (orientation:landscape){
.hero .hst{z-index:var(--z-far);translate:calc(var(--px,0)*-14px) calc(var(--py,0)*-10px)}
.hero>img.hl,.hero>picture.hl2{z-index:var(--z-mid);box-shadow:var(--sh-hero)}}
/* dividers: a gradient mask carves the shape; .dv is a soft lens, .dv.dk is an ink dome that rises out of a dark footer */
.dv{display:block;height:var(--dv-h);margin:var(--sp-6) 0 0;background:var(--cx-raise);-webkit-mask:radial-gradient(ellipse 50% 50% at 50% 50%,#0b0b0b 98%,#0b0b0b00 100%);mask:radial-gradient(ellipse 50% 50% at 50% 50%,#0b0b0b 98%,#0b0b0b00 100%)}
.dv.dk{margin:0;background:var(--cx-ink);-webkit-mask:radial-gradient(ellipse 70% 100% at 50% 100%,#0b0b0b 98%,#0b0b0b00 100%);mask:radial-gradient(ellipse 70% 100% at 50% 100%,#0b0b0b 98%,#0b0b0b00 100%)}
/* trust strip: one compact band, existing claims only, no card chrome */
.trust{gap:0;border-block:1px solid var(--cx-line);grid-template-columns:repeat(2,minmax(0,1fr))}
.trust li{border:0;background:none;border-radius:0;padding:var(--sp-3);gap:var(--sp-3)}
.trust li:nth-child(n+3){border-top:1px solid var(--cx-line)}
@media(min-width:800px){.trust{grid-template-columns:repeat(4,minmax(0,1fr))}.trust li:nth-child(n+3){border-top:0}.trust li+li{border-left:1px solid var(--cx-line)}}
/* product cards: one 4:5 ratio, contact shadow, 2 columns on phones, long names wrap */
.cimg{aspect-ratio:4/5;box-shadow:var(--sh-contact)}
:where(body:has(#top)) .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:800px){:where(body:has(#top)) .grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.card .meta h3{overflow-wrap:anywhere}
/* tilt: pointer only; the JS keeps --rx/--ry inside 6 degrees and the clamp keeps it there even if a script is wrong */
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){.card.rvd:hover{transform:perspective(900px) translateY(-4px) rotateX(clamp(-6deg,var(--rx,0deg),6deg)) rotateY(clamp(-6deg,var(--ry,0deg),6deg))}}
@media(hover:none),(prefers-reduced-motion:reduce){.card.rvd:hover{transform:none}}
/* sticky add-to-bag (phones; the inline button stays on desktop) */
#sab{border-radius:var(--r-2);box-shadow:var(--sh-2);background:var(--cx-surface);bottom:calc(76px + env(safe-area-inset-bottom,0px));padding:var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4)}
#sab .btn{min-height:44px}
/* the nav pill was 0.8px wider than a 320px screen */
@media(max-width:359px){.pill .l .wm,.nav .wm{font-size:14px}}
/* footer: tokens for spacing, 1 column on phones, 2 on tablets, 4 on desktop */
footer{padding:var(--sp-7) var(--sp-4) var(--sp-5)}
footer .g{gap:var(--sp-6);grid-template-columns:minmax(0,1fr)}
@media(min-width:600px) and (max-width:899px){footer .g{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:900px){footer .g{grid-template-columns:1.4fr 1fr 1fr 1.2fr}}
footer .cr{overflow-wrap:anywhere;gap:var(--sp-2) var(--sp-4)}
footer.ft .in{gap:var(--sp-6)}
/* empty and error states (shared) */
.empty{border:1px dashed var(--cx-line-2);border-radius:var(--r-2);background:var(--cx-raise);padding:var(--sp-7) var(--sp-4);text-align:center}
[role=alert]:not(:empty):not(.er):not(.er-i){border-left:3px solid var(--cx-err);border-radius:var(--r-1);padding:var(--sp-3) var(--sp-4)}
/* checkout keeps its own warm palette; radius, depth and errors come from the tokens */
.pg-ck fieldset{border-radius:var(--r-2);padding:var(--sp-4) var(--sp-4) var(--sp-2)}
.pg-ck .opt,.pg-ck input,.pg-ck select,.pg-ck .code{border-radius:var(--r-1)}
.pg-ck .sum{border-radius:var(--r-2);box-shadow:var(--sh-1)}
.pg-ck .msg.err{border-left:3px solid var(--err);border-radius:var(--r-1);padding:var(--sp-3) var(--sp-4);background:var(--card)}
.pg-ck .done{padding:var(--sp-5) var(--sp-4)}
/* policies: the notice box is a card, not the bag drawer */
.pg-pol .dr{border-radius:var(--r-2);box-shadow:none;animation:none}
.pg-pol .box{border-radius:var(--r-2)}
/* 404 and offline: centred on purpose, same buttons and spacing as the shop */
.pg-404,.pg-off{gap:var(--sp-4);padding:var(--sp-6) var(--sp-4)}
.pg-404 a.b,.pg-off a.b{transition:transform var(--t-2) var(--ease)}
.pg-404 a.b:hover,.pg-off a.b:hover{transform:translateY(-2px)}
.pg-404 a.b:active,.pg-off a.b:active{transform:scale(.97)}
.pg-404 a.b.p,.pg-off a.b.p{background-image:var(--sheen);box-shadow:var(--sh-btn)}
/* contact (static page): the form and the scam note use the card radius */
.pg-contact .cf{border-radius:var(--r-2)}
.pg-contact .scam p{border-radius:0 var(--r-1) var(--r-1) 0}
/* admin: same tokens; the shop card pseudo-element (raised shadow) must not appear on admin panels */
.pg-adm .card::before{display:none}
.pg-adm .card{transition:none;border-radius:var(--r-2);box-shadow:var(--sh-1)}
.pg-adm .kp div{border-radius:var(--r-2);box-shadow:var(--sh-1)}
.pg-adm .top{box-shadow:var(--sh-1)}
@media(prefers-reduced-motion:reduce){.pg-404 a.b:hover,.pg-off a.b:hover{transform:none}}
@media(forced-colors:active){.dv{display:none}.pg-ck .sum,.pg-adm .card,.pg-adm .kp div,.pg-adm .top,#sab,.empty{box-shadow:none;border:2px solid CanvasText}.hero>img.hl,.hero>picture.hl2{box-shadow:none}}
