/* Canvas layer: the whole storefront dressed like the bag itself (matches the footer).
   Canvas weave everywhere, stitched seams between sections, sewn-in stitching on cards and panels,
   painted brush edges on dark bands. Loaded last; changes surfaces only, never layout or behaviour. */
:root{
  --stitch:#C2B497;
  --stitch-soft:#CDBFA4;
  --canvas-weave:#ECE4D2 url("/assets/textures/canvas.webp") 0 0 / 240px;
  --seam:repeating-linear-gradient(90deg, var(--stitch) 0 7px, transparent 7px 12px);
}

/* The fabric */
body:not(.is-admin){ background:var(--canvas-weave); }
body:not(.is-admin)::before{ background-image:radial-gradient(circle at 20% 30%, rgba(0,0,0,0.015) 0, transparent 40%), radial-gradient(circle at 80% 70%, rgba(0,0,0,0.02) 0, transparent 45%); }

/* Header: a stitched hem along its foot */
body:not(.is-admin) .site-header{
  background-image:var(--seam); background-size:100% 1.4px; background-position:0 calc(100% - 5px); background-repeat:no-repeat;
  border-bottom-color:#D2C5AB;
}

/* Seams between sections */
body:not(.is-admin) main .wrap > section + section::before,
body:not(.is-admin) main > section + section::before{
  content:""; position:absolute; top:0; left:0; right:0; height:1.4px; background:var(--seam); opacity:.85; pointer-events:none;
}

/* Sewn-in stitching on paper surfaces (an inset dashed outline follows the rounded corners) */
body:not(.is-admin) :is(.paper, .card, .step, .stat, .faq-item, .review, .order-card-lg, .empty-state.paper, .occasion, .tm-card, .letter-sheet){
  outline:1.2px dashed var(--stitch-soft); outline-offset:-7px;
}
body:not(.is-admin) :is(.tm-card){ outline-offset:-4px; outline-color:rgba(205,191,164,.7); }
body:not(.is-admin) .occasion{ outline-color:rgba(34,29,25,.14); }
body:not(.is-admin) .cross-sell{ outline:1.2px dashed rgba(251,248,241,.2); outline-offset:-10px; }
/* Keep keyboard focus obvious on any stitched element that can take focus */
body:not(.is-admin) :is(.paper, .card, .step, .occasion):focus-visible{ outline:2px solid var(--focus); outline-offset:2px; }

/* Boards (the panels that hold cards) become stitched canvas pockets */
body:not(.is-admin) .board{
  background:#E2D7C1 url("/assets/textures/canvas.webp") 0 0 / 240px;
  outline:1.4px dashed #BFAF90; outline-offset:-11px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35), inset 0 -10px 24px -18px rgba(59,47,34,.25);
}

/* Bands get the fabric too */
body:not(.is-admin) .ig-band{ background:var(--seam) 0 12px / 100% 1.4px no-repeat, #E3D9C4 url("/assets/textures/canvas.webp") 0 0 / 240px; border-top:0; }
body:not(.is-admin) .ig-band::before{ opacity:.4; }

/* Dark bands: painted brush edges instead of ruler-straight ones */
body:not(.is-admin) .strip{
  -webkit-mask:url("/assets/textures/strip-mask.svg") 0 0 / 100% 100% no-repeat;
          mask:url("/assets/textures/strip-mask.svg") 0 0 / 100% 100% no-repeat;
  padding:18px 0;
}

/* Small mono labels pick up the paint-dab bullets from the footer */
body:not(.is-admin) .rating-summary .stars{ color:var(--ochre); }

@media (prefers-reduced-motion: reduce){ body:not(.is-admin) .board{ transition:none; } }

/* ================= Crumpled-paper letters (footer note + "Dear June" letters) ================= */
:root{
  --paper-letter:#FBF6EA;
  --crumple:url("/assets/textures/crumple.svg");
  --rule:repeating-linear-gradient(0deg, transparent 0 31px, rgba(58,76,166,.13) 31px 32px);
  --folds:linear-gradient(180deg, transparent calc(33.3% - 1px), rgba(90,70,40,.10) calc(33.3% - 1px), rgba(255,255,255,.7) 33.3%, transparent calc(33.3% + 2px), transparent calc(66.6% - 1px), rgba(90,70,40,.10) calc(66.6% - 1px), rgba(255,255,255,.7) 66.6%, transparent calc(66.6% + 2px));
}

/* Footer: a crumpled note */
body:not(.is-admin) .footer-brand{
  background:none; box-shadow:none; border-radius:0; padding:30px 28px 26px 32px;
  transform:rotate(-1.5deg); transition:transform .6s cubic-bezier(.3,1.4,.5,1);
  filter:drop-shadow(0 1px 1px rgba(59,47,34,.18)) drop-shadow(0 14px 18px rgba(59,47,34,.2));
}
body:not(.is-admin) .footer-brand::before{
  content:""; position:absolute; inset:0; z-index:-1; border:0; border-radius:0;
  background:var(--folds), var(--crumple) center / cover no-repeat, var(--paper-letter);
  background-blend-mode:normal, multiply, normal;
  clip-path:polygon(0% 0.26%, 5% 0.6%, 10% 0.41%, 15% 0.66%, 20% 0.69%, 25% 0.07%, 30% 0.01%, 35% 0.92%, 40% 0.29%, 45% 0.26%, 50% 1.1%, 55% 0.52%, 60% 0.92%, 65% 0.52%, 70% 0.7%, 75% 0.17%, 80% 0.7%, 85% 0.95%, 90% 0.58%, 95% 0.82%, 100% 0.74%, 99.94% 5%, 99.33% 10%, 99.48% 15%, 99.73% 20%, 99.97% 25%, 99.24% 30%, 99.58% 35%, 99.37% 40%, 99.23% 45%, 99.37% 50%, 99.19% 55%, 99.65% 60%, 99.3% 65%, 99.61% 70%, 99.18% 75%, 99.23% 80%, 99.91% 85%, 99.88% 90%, 99.81% 95%, 99.15% 100%, 95% 99.52%, 90% 99.31%, 85% 99.67%, 80% 99.44%, 75% 99.58%, 70% 99.61%, 65% 99.36%, 60% 99.36%, 55% 99.01%, 50% 99.25%, 45% 98.98%, 40% 99.06%, 35% 98.91%, 30% 99.26%, 25% 99.82%, 20% 99.05%, 15% 98.94%, 10% 99.0%, 5% 99.37%, 0% 99.21%, 0.19% 95%, 0.73% 90%, 0.5% 85%, 0.25% 80%, 0.06% 75%, 0.75% 70%, 0.87% 65%, 0.08% 60%, 0.7% 55%, 0.36% 50%, 0.13% 45%, 0.26% 40%, 0.68% 35%, 0.77% 30%, 0.04% 25%, 0.54% 20%, 0.04% 15%, 0.63% 10%, 0.29% 5%);
  transition:filter .6s;
}
body:not(.is-admin) .footer-brand::after{ content:""; position:absolute; top:12%; bottom:8%; left:16px; width:1.5px; background:rgba(193,68,60,.45); z-index:-1; }
body:not(.is-admin) .footer-brand:is(:hover, :focus-within){ transform:rotate(-.5deg); }
body:not(.is-admin) .footer-brand:is(:hover, :focus-within)::before{ filter:contrast(.92) brightness(1.02); }
body:not(.is-admin) .newsletter label{ font:700 1.55rem/1 'Caveat', cursive; color:var(--ink); margin:4px 0 6px; }
body:not(.is-admin) .newsletter-row{ align-items:flex-end; gap:12px; }
body:not(.is-admin) .newsletter input{
  border:0; border-radius:0; padding:6px 2px 4px; background:transparent;
  border-bottom:1.5px solid rgba(34,29,25,.55); font:700 1.35rem/1.2 'Caveat', cursive; color:var(--ink);
}
body:not(.is-admin) .newsletter input::placeholder{ font:italic .92rem/1.2 'DM Serif Display', Georgia, serif; color:rgba(74,66,58,.55); }
body:not(.is-admin) .newsletter input:focus-visible{ outline:none; border-bottom-color:var(--cherry); box-shadow:0 3px 0 -1.5px rgba(193,68,60,.35); }
/* Wax-seal button */
.seal-btn{
  position:relative; flex:none; width:58px; height:58px; min-height:0 !important; padding:0 !important; justify-content:center;
  border-radius:52% 48% 55% 45% / 47% 55% 45% 53% !important; background:radial-gradient(circle at 38% 32%, #d65a51, var(--cherry) 55%, #8f2d27) !important;
  color:#fff !important; font:700 .9rem/1 'Space Grotesk', sans-serif !important;
  box-shadow:inset 0 0 0 4px rgba(143,45,39,.35), inset 0 0 0 6px rgba(255,255,255,.12), 0 6px 12px -4px rgba(94,28,23,.5) !important;
  transition:transform .3s cubic-bezier(.3,1.6,.5,1) !important;
}
.seal-btn:hover{ transform:rotate(-8deg) scale(1.06) !important; }
.seal-btn:active{ transform:scale(.94) !important; }

/* "Dear June" letters: home teaser + the full commission letter */
body:not(.is-admin) .order-form{
  overflow:visible; background:none; border:0; border-radius:0; box-shadow:none;
  transform:rotate(-1deg); transition:transform .7s cubic-bezier(.3,1.3,.5,1);
  filter:drop-shadow(0 1px 1px rgba(34,29,25,.2)) drop-shadow(0 22px 26px rgba(34,29,25,.28));
}
body:not(.is-admin) .order-form.letter-sheet{ transform:rotate(-.4deg); filter:drop-shadow(0 1px 1px rgba(34,29,25,.15)) drop-shadow(0 18px 24px rgba(59,47,34,.18)); }
body:not(.is-admin) .order-form::before{
  inset:0; opacity:1; z-index:0;
  background:var(--folds), var(--crumple) center / cover no-repeat, var(--paper-letter);
  background-blend-mode:normal, multiply, normal;
  clip-path:polygon(0% 0.28%, 4% 0.22%, 8% 0.08%, 12% 0.52%, 16% 0.0%, 20% 0.3%, 24% 0.54%, 28% 0.05%, 32% 0.33%, 36% 0.37%, 40% 0.02%, 44% 0.23%, 48% 0.42%, 52% 0.27%, 56% 0.44%, 60% 0.09%, 64% 0.14%, 68% 0.07%, 72% 0.3%, 76% 0.55%, 80% 0.35%, 84% 0.46%, 88% 0.23%, 92% 0.45%, 96% 0.06%, 100% 0.17%, 99.68% 4%, 99.65% 8%, 99.8% 12%, 99.96% 16%, 99.87% 20%, 99.9% 24%, 99.87% 28%, 99.61% 32%, 99.9% 36%, 99.57% 40%, 99.58% 44%, 99.97% 48%, 99.82% 52%, 99.76% 56%, 99.99% 60%, 99.8% 64%, 99.56% 68%, 99.95% 72%, 99.71% 76%, 99.94% 80%, 99.72% 84%, 99.57% 88%, 99.9% 92%, 100.0% 96%, 99.96% 100%, 96% 99.68%, 92% 99.99%, 88% 99.95%, 84% 99.7%, 80% 99.45%, 76% 99.75%, 72% 99.76%, 68% 99.62%, 64% 99.94%, 60% 99.65%, 56% 99.9%, 52% 99.63%, 48% 99.43%, 44% 99.97%, 40% 99.67%, 36% 99.64%, 32% 99.91%, 28% 99.84%, 24% 99.4%, 20% 99.4%, 16% 99.93%, 12% 99.58%, 8% 99.43%, 4% 99.86%, 0% 99.63%, 0.02% 96%, 0.18% 92%, 0.32% 88%, 0.28% 84%, 0.37% 80%, 0.04% 76%, 0.17% 72%, 0.41% 68%, 0.28% 64%, 0.22% 60%, 0.19% 56%, 0.47% 52%, 0.28% 48%, 0.01% 44%, 0.38% 40%, 0.16% 36%, 0.21% 32%, 0.1% 28%, 0.21% 24%, 0.16% 20%, 0.04% 16%, 0.3% 12%, 0.05% 8%, 0.38% 4%);
  transition:filter .7s;
}
body:not(.is-admin) .order-form::after{ top:0; bottom:0; left:24px; width:1.5px; background:rgba(193,68,60,.5); opacity:1; z-index:0; }
body:not(.is-admin) .order-form:focus-within{ transform:rotate(0deg); }
body:not(.is-admin) .order-form:focus-within::before{ filter:contrast(.9) brightness(1.03); }
body:not(.is-admin) .order-form .letter-topline{ background:none; border-bottom:1px solid rgba(58,76,166,.22); }
body:not(.is-admin) .order-form .letter-topline::before, body:not(.is-admin) .order-form .letter-topline::after{ content:none; }
/* Postage stamp + postmark */
body:not(.is-admin) .order-form .letter-stamp{
  position:relative; width:52px; height:60px; border:0; transform:rotate(5deg); font-size:0; color:transparent;
  background:url("/assets/illustrations/stamp.svg") center / contain no-repeat; filter:drop-shadow(0 2px 2px rgba(34,29,25,.18));
}
body:not(.is-admin) .order-form .letter-stamp::after{
  content:""; position:absolute; left:-34px; top:6px; width:84px; height:42px; transform:rotate(-10deg);
  background:url("/assets/illustrations/postmark.svg") center / contain no-repeat;
}
@supports (animation-timeline: view()){
  body:not(.is-admin) .order-form .letter-stamp::after{ animation:postmark linear both; animation-timeline:view(); animation-range:entry 30% entry 70%; }
  @keyframes postmark{ from{ opacity:0; transform:rotate(-10deg) scale(1.6); } to{ opacity:1; transform:rotate(-10deg) scale(1); } }
}
/* A reference photo tucked behind the letter */
.letter-photo{ position:absolute !important; z-index:-1 !important; top:-70px; right:92px; width:82px; padding:5px 5px 14px; background:#fff; transform:rotate(9deg); box-shadow:0 6px 14px -6px rgba(34,29,25,.4); transition:transform .5s cubic-bezier(.3,1.5,.5,1); }
.letter-photo img{ display:block; width:100%; aspect-ratio:4/5; object-fit:cover; }
.letter-photo::before{ content:""; position:absolute; top:-6px; left:50%; width:34px; height:12px; margin-left:-17px; background:rgba(201,138,42,.55); transform:rotate(-6deg); }
.order-form:hover .letter-photo, .order-form:focus-within .letter-photo{ transform:translateY(-8px) rotate(13deg); }
/* Handwriting */
body:not(.is-admin) .order-form .letter-field input,
body:not(.is-admin) .order-form .letter-field textarea{ font:700 1.4rem/32px 'Caveat', cursive; color:#1f2a66; }
body:not(.is-admin) .order-form .letter-field input::placeholder,
body:not(.is-admin) .order-form .letter-field textarea::placeholder{ font:italic 1rem/32px 'DM Serif Display', Georgia, serif; color:rgba(74,66,58,.5); }
body:not(.is-admin) .order-form .letter-message textarea{ background:var(--rule); line-height:32px; }
/* Wax-drip "Continue" button */
body:not(.is-admin) .order-form .letter-footer button:not(.btn-back){
  position:relative; border-radius:20px 26px 18px 24px / 24px 18px 26px 20px; overflow:visible;
  background:radial-gradient(circle at 30% 25%, #d4584f, var(--cherry) 60%, #9c342d);
}
body:not(.is-admin) .order-form .letter-footer button:not(.btn-back)::before{
  content:""; display:inline-block; width:12px; height:12px; margin-right:9px; vertical-align:-1px;
  border-radius:50% 46% 52% 48%; background:#8f2d27; box-shadow:inset 0 0 0 2px rgba(255,255,255,.25);
}
body:not(.is-admin) .order-form .letter-footer button:not(.btn-back)::after{
  content:""; position:absolute; left:26%; bottom:-7px; width:9px; height:11px; border-radius:40% 40% 50% 50% / 30% 30% 70% 70%; background:#a8382f;
}
/* "or send it directly" as a handwritten aside with an arrow doodle */
body:not(.is-admin) .order-form .or{ display:flex; align-items:center; justify-content:center; gap:6px; font-size:0; margin:2px 0; }
body:not(.is-admin) .order-form .or::after{
  content:"or send it directly"; font:700 1.2rem/1 'Caveat', cursive; color:var(--ink-soft);
  padding-right:30px; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 24' fill='none' stroke='%234a413a' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M3 4 C 14 2, 22 8, 20 18'/%3E%3Cpath d='M15 15 l5 4 3-6'/%3E%3C/svg%3E") right center / 26px 22px no-repeat;
}
/* Instagram as an airmail postcard */
body:not(.is-admin) .order-form .postcard-link{
  display:flex; align-items:center; justify-content:center; gap:10px; border-radius:4px; color:var(--ink); background:#fff;
  border:4px solid transparent; border-image:repeating-linear-gradient(45deg, var(--cherry) 0 7px, #fff 7px 12px, var(--blue) 12px 19px, #fff 19px 24px) 4;
  font:600 .95rem/1 'Space Grotesk', sans-serif;
}
body:not(.is-admin) .order-form .postcard-link:hover{ background:#fffdf8; transform:translateY(-2px) rotate(-.5deg); }
body:not(.is-admin) .order{ overflow:visible; }
@media (max-width:640px){ .letter-photo{ width:62px; top:-54px; right:76px; } body:not(.is-admin) .order-form::after{ left:12px; } }
@media (prefers-reduced-motion: reduce){
  body:not(.is-admin) :is(.footer-brand, .order-form, .letter-photo){ transition:none; }
}

/* Illustrations stand on the page: no tiles, no halos */
body:not(.is-admin) .step-art::before{ content:none; }

/* ================= Studio objects (account, order, track) ================= */
/* Reusable crumpled sheet for forms */
body:not(.is-admin) .crumpled{
  position:relative; isolation:isolate; background:none !important; border:0 !important; box-shadow:none !important; outline:none !important;
  filter:drop-shadow(0 1px 1px rgba(59,47,34,.16)) drop-shadow(0 14px 20px rgba(59,47,34,.16));
}
body:not(.is-admin) .crumpled::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background:var(--folds), var(--crumple) center / cover no-repeat, var(--paper-letter);
  background-blend-mode:normal, multiply, normal; clip-path:polygon(0% 0.08%, 4% 0.34%, 8% 0.32%, 12% 0.24%, 16% 0.11%, 20% 0.4%, 24% 0.4%, 28% 0.26%, 32% 0.25%, 36% 0.12%, 40% 0.0%, 44% 0.19%, 48% 0.29%, 52% 0.03%, 56% 0.4%, 60% 0.12%, 64% 0.12%, 68% 0.02%, 72% 0.5%, 76% 0.37%, 80% 0.44%, 84% 0.31%, 88% 0.02%, 92% 0.16%, 96% 0.25%, 100% 0.06%, 99.62% 4%, 99.85% 8%, 99.94% 12%, 99.67% 16%, 99.95% 20%, 99.63% 24%, 99.82% 28%, 99.78% 32%, 99.86% 36%, 99.81% 40%, 99.93% 44%, 99.99% 48%, 99.65% 52%, 99.91% 56%, 99.69% 60%, 99.92% 64%, 99.61% 68%, 99.64% 72%, 99.7% 76%, 99.69% 80%, 99.77% 84%, 99.71% 88%, 99.95% 92%, 99.81% 96%, 99.67% 100%, 96% 99.9%, 92% 99.54%, 88% 99.56%, 84% 99.8%, 80% 99.82%, 76% 99.77%, 72% 99.81%, 68% 99.5%, 64% 99.81%, 60% 99.99%, 56% 99.95%, 52% 99.64%, 48% 99.5%, 44% 99.75%, 40% 99.75%, 36% 99.72%, 32% 99.63%, 28% 99.89%, 24% 99.7%, 20% 99.72%, 16% 99.69%, 12% 99.91%, 8% 99.91%, 4% 99.83%, 0% 99.54%, 0.14% 96%, 0.24% 92%, 0.12% 88%, 0.04% 84%, 0.03% 80%, 0.33% 76%, 0.31% 72%, 0.15% 68%, 0.27% 64%, 0.27% 60%, 0.36% 56%, 0.38% 52%, 0.16% 48%, 0.4% 44%, 0.38% 40%, 0.24% 36%, 0.35% 32%, 0.2% 28%, 0.15% 24%, 0.1% 20%, 0.35% 16%, 0.06% 12%, 0.03% 8%, 0.32% 4%);
}
.order-no{ font:500 .74rem/1 'IBM Plex Mono', monospace; letter-spacing:.14em; text-transform:uppercase; color:var(--cherry); margin-bottom:8px; }

/* Order page: sections separated by seams, no boxes */
.order-grid{ gap:0 !important; grid-template-columns:minmax(0, 1fr) !important; }
.o-section{ position:relative; padding:34px 0; }
.o-section + .o-section::before{ content:""; position:absolute; top:0; left:0; right:0; height:1.4px; background:var(--seam); }
.o-section > h2{ font-size:clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom:22px; }
.order-welcome-art{ width:min(300px, 60vw); height:auto; }
.sketch-spread{ display:grid; grid-template-columns:minmax(0, 1.15fr) minmax(0, .85fr); gap:clamp(24px, 4vw, 56px); align-items:start; }
.sketchbook{ position:relative; margin:0; padding:28px 22px 22px; background:#fff; border-radius:4px 4px 10px 10px; transform:rotate(-1.2deg);
  box-shadow:0 1px 1px rgba(34,29,25,.08), 0 18px 34px -18px rgba(59,47,34,.45), 6px 6px 0 -1px #efe8da, 6px 6px 0 0 rgba(34,29,25,.08); }
.sketchbook-rings{ position:absolute; top:-8px; left:18px; right:18px; height:16px; background:radial-gradient(circle at 50% 50%, #2f2a26 0 4px, transparent 4.5px) 0 0 / 22px 16px repeat-x; }
.sketchbook img{ display:block; width:100%; border-radius:2px; }
.sketch-placeholder{ min-height:240px; display:grid; place-items:center; color:var(--text-muted); background:var(--rule), #fffdf8; font:700 1.3rem/1.3 'Caveat', cursive; text-align:center; padding:20px; }
.sk-tape-a{ position:absolute; top:14px; left:-10px; width:64px; height:20px; padding:0; transform:rotate(-24deg); }
.sk-tape-b{ position:absolute; bottom:56px; right:-12px; width:60px; height:20px; padding:0; transform:rotate(28deg); }
.sketchbook .quote-note{ margin-top:14px; font:700 1.3rem/1.35 'Caveat', cursive; color:#1f2a66; }
.sketchbook .quote-note .accent{ color:var(--cherry); }
.money-tag{ margin-top:34px !important; max-width:340px; justify-self:center; width:100%; }
.money-tag .tier-card ul{ margin:16px 0 18px; }
.money-tag .tier-card li strong{ font-family:'Space Grotesk', sans-serif; }
.money-tag .btn{ margin-top:6px; }
.coupon-line input{ width:100%; border:0; border-bottom:1.5px solid rgba(74,52,26,.45); background:transparent; padding:6px 2px; font:700 1.2rem/1.2 'Caveat', cursive; color:var(--ink); margin-bottom:12px; }
.coupon-line input::placeholder{ font:italic .9rem/1.2 'DM Serif Display', Georgia, serif; color:rgba(74,52,26,.55); }
.coupon-line input:focus-visible{ outline:none; border-bottom-color:var(--cherry); }
.btn-text{ display:block; margin:12px auto 0; padding:4px; background:none; border:0; cursor:pointer; color:var(--ink-soft); font:700 1.15rem/1 'Caveat', cursive; text-decoration:underline; text-decoration-style:wavy; text-decoration-color:rgba(193,68,60,.5); text-underline-offset:4px; }
.btn-text:hover{ color:var(--cherry); }
.o-pay{ display:grid; grid-template-columns:1fr auto; gap:28px; align-items:center; }
.o-pay .money-tag{ margin-top:30px !important; width:260px; }
.letter-copy{ padding:28px 30px 26px 40px; }
.letter-copy dl{ display:grid; grid-template-columns:auto 1fr; gap:10px 18px; margin:0; }
.letter-copy dt{ font:500 .68rem/2.2 'IBM Plex Mono', monospace; letter-spacing:.12em; text-transform:uppercase; color:var(--cherry); }
.letter-copy dd{ margin:0; font:700 1.35rem/1.45 'Caveat', cursive; color:#1f2a66; }
.note-form{ padding:28px; }
/* Receipt: thermal paper with a torn zig-zag foot */
.receipt{ position:relative; max-width:420px; padding:24px 24px 34px; background:#fffdf8; font-family:'IBM Plex Mono', monospace; font-size:.86rem;
  -webkit-mask:conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; mask:conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  filter:drop-shadow(0 8px 14px rgba(59,47,34,.16)); transform:rotate(.8deg); }
.receipt-head{ text-align:center; text-transform:uppercase; letter-spacing:.14em; font-size:.72rem; padding-bottom:12px; margin-bottom:12px; border-bottom:1px dashed rgba(34,29,25,.3); }
.receipt .totals{ border:0; padding:0; font-family:inherit; }
.receipt .totals dt:last-of-type, .receipt .totals dd:last-of-type{ padding-top:8px; border-top:1px dashed rgba(34,29,25,.3); font-weight:700; }
.receipt-foot{ margin-top:14px; font-size:.76rem; color:var(--text-muted); }
.receipt-thanks{ margin-top:14px; text-align:center; font:700 1.3rem/1 'Caveat', cursive; color:var(--cherry); }

/* Timeline: paint-dab nodes on the cherry thread */
body:not(.is-admin) .thread .pinpoint{ border-radius:46% 54% 52% 48% / 52% 46% 54% 48%; }
body:not(.is-admin) .thread li.is-upcoming .pinpoint{ background:transparent; border:1.5px dashed rgba(34,29,25,.3); color:var(--text-faint); }
body:not(.is-admin) .thread li::before{ background:repeating-linear-gradient(180deg, rgba(34,29,25,.22) 0 5px, transparent 5px 10px); }

/* Track: kraft shipping label */
.track-form{ margin-bottom:40px; }
.ship-label{ position:relative; padding:0 0 26px; background:#E2C79A url("/assets/textures/canvas.webp") 0 0 / 240px; border-radius:6px; transform:rotate(-.6deg);
  box-shadow:0 1px 1px rgba(59,47,34,.12), 0 20px 36px -20px rgba(59,47,34,.5); margin-bottom:64px; }
.ship-label::before{ content:""; position:absolute; inset:10px; border:1.5px dashed rgba(74,52,26,.35); border-radius:3px; pointer-events:none; }
.ship-label > *:not(.ship-label-head){ margin-left:28px; margin-right:28px; }
.ship-label-head{ display:flex; justify-content:space-between; align-items:center; padding:20px 28px 16px; border-bottom:2px solid rgba(34,29,25,.75); font:500 .72rem/1 'IBM Plex Mono', monospace; letter-spacing:.16em; text-transform:uppercase; }
.ship-barcode{ width:120px; height:26px; background:repeating-linear-gradient(90deg, #221D19 0 2px, transparent 2px 4px, #221D19 4px 5px, transparent 5px 8px, #221D19 8px 11px, transparent 11px 12px); }
.ship-label-body{ display:flex; justify-content:space-between; gap:20px; padding:20px 0 6px; margin-bottom:18px; border-bottom:1px dashed rgba(74,52,26,.4); }
.ship-k{ font:500 .66rem/1 'IBM Plex Mono', monospace; letter-spacing:.14em; text-transform:uppercase; color:rgba(34,29,25,.6); margin-top:10px; }
.ship-no{ font:700 clamp(1.8rem, 4vw, 2.4rem)/1.1 'Space Grotesk', sans-serif; letter-spacing:.02em; }
.ship-v{ font-weight:600; }
.ship-label .meta-row{ margin-top:12px; }
.ship-stamp{ align-self:center; flex:none; display:grid; place-items:center; width:132px; height:132px; border-radius:50%; border:3px double var(--cherry); color:var(--cherry);
  transform:rotate(-12deg); text-align:center; font:700 1rem/1.15 'Space Grotesk', sans-serif; text-transform:uppercase; letter-spacing:.06em; padding:14px; opacity:.88; mix-blend-mode:multiply; }
.ship-label .btn{ margin-top:8px; }

/* Account: text tabs on a seam, parcel tags, pinned notes, envelopes */
body:not(.is-admin) .side-tab{ background:none !important; border:0 !important; border-radius:0 !important; box-shadow:none !important; padding:10px 4px !important; text-align:left; position:relative; font-weight:600; color:var(--ink-soft); }
body:not(.is-admin) .side-tab.is-active{ color:var(--ink); }
body:not(.is-admin) .side-tab.is-active::after{ content:""; position:absolute; left:0; right:20%; bottom:4px; height:4px; border-radius:3px; background:var(--ochre); opacity:.8; }
.parcel-tag{ position:relative; display:grid; grid-template-columns:34px 1fr; background:#E2C79A url("/assets/textures/canvas.webp") 0 0 / 240px;
  clip-path:polygon(0 18px, 18px 0, 100% 0, 100% 100%, 18px 100%, 0 calc(100% - 18px)); filter:drop-shadow(0 10px 16px rgba(59,47,34,.2)); }
.parcel-tag + .parcel-tag{ margin-top:6px; }
.parcel-hole{ align-self:center; justify-self:center; width:12px; height:12px; border-radius:50%; background:var(--canvas); box-shadow:inset 0 1px 2px rgba(59,47,34,.4), 0 0 0 4px rgba(255,255,255,.3); }
.parcel-body{ padding:20px 22px 18px 6px; border-left:1.5px dashed rgba(74,52,26,.3); }
.parcel-body h3{ font-size:1.12rem; }
.parcel-status{ display:flex; align-items:center; gap:14px; margin-top:12px; flex-wrap:wrap; }
.parcel-status strong{ font-family:'Space Grotesk', sans-serif; }
.pinned-note{ position:relative; padding:28px 20px 18px; background:#FBF0D0; transform:rotate(var(--r, -1.2deg)); box-shadow:0 1px 1px rgba(59,47,34,.08), 0 14px 22px -14px rgba(59,47,34,.4); }
.pinned-note:nth-child(even){ --r:1.4deg; background:#F7E2DE; }
.pinned-note:nth-child(3n){ --r:-.6deg; background:#E6ECF7; }
.pinned-note .pin{ position:absolute; top:9px; left:50%; width:14px; height:14px; margin-left:-7px; border-radius:50%; background:radial-gradient(circle at 35% 30%, #e46d64, var(--cherry) 60%, #8f2d27); box-shadow:0 2px 3px rgba(34,29,25,.35); }
.pinned-note h3{ font:700 1.5rem/1.1 'Caveat', cursive; }
.pinned-note p{ font:700 1.15rem/1.35 'Caveat', cursive; color:var(--ink-soft); margin:6px 0 10px; }
.envelope-card{ position:relative; display:grid; gap:2px; align-content:start; min-height:160px; padding:20px 22px; text-align:left; background:#FBF6EA;
  border:6px solid transparent; border-image:repeating-linear-gradient(45deg, var(--cherry) 0 9px, #FBF6EA 9px 14px, var(--blue) 14px 23px, #FBF6EA 23px 28px) 6;
  box-shadow:0 12px 22px -14px rgba(59,47,34,.4); font:inherit; color:var(--ink); }
.envelope-card strong{ font:500 .68rem/1 'IBM Plex Mono', monospace; letter-spacing:.14em; text-transform:uppercase; color:var(--cherry); margin-bottom:10px; }
.env-line{ font:700 1.25rem/1.3 'Caveat', cursive; color:#1f2a66; }
.env-phone{ font-size:.82rem; color:var(--text-muted); margin-top:4px; }
.env-stamp{ position:absolute; top:12px; right:12px; width:34px; height:40px; background:url("/assets/illustrations/stamp.svg") center / contain no-repeat; transform:rotate(6deg); }
.envelope-new{ place-items:center; cursor:pointer; border-image:none; border:2px dashed var(--stitch); background:transparent; box-shadow:none; font:700 1.3rem/1 'Caveat', cursive; color:var(--ink-soft); }
.envelope-new:hover{ color:var(--cherry); border-color:var(--cherry); }
@media (max-width:760px){
  .sketch-spread, .o-pay{ grid-template-columns:1fr; }
  .ship-label-body{ flex-direction:column; }
  .ship-stamp{ width:110px; height:110px; align-self:flex-end; margin-top:-90px; }
}
.sketchbook .quote-note{ background:none !important; border:0 !important; padding:0 !important; box-shadow:none !important; }

/* ================= Checkout, sign in, contact, commission aside, about, FAQ, stories, gifts, menu ================= */
/* Checkout: one crumpled sheet, sections separated by seams, numbered with paint dabs */
body:not(.is-admin) .checkout-form{ counter-reset:co; padding:clamp(24px, 3.4vw, 40px) clamp(22px, 3.4vw, 42px); }
body:not(.is-admin) .checkout-form fieldset{ counter-increment:co; position:relative; padding-top:6px; }
body:not(.is-admin) .checkout-form fieldset + fieldset{ padding-top:26px; }
body:not(.is-admin) .checkout-form fieldset + fieldset::before{ content:""; position:absolute; top:0; left:0; right:0; height:1.4px; background:var(--seam); }
body:not(.is-admin) .checkout-form legend{ display:flex; align-items:center; gap:10px; }
body:not(.is-admin) .checkout-form legend::before{ content:counter(co); display:grid; place-items:center; width:26px; height:26px; border-radius:46% 54% 52% 48% / 52% 46% 54% 48%; background:var(--blue); color:#fff; font:600 .74rem/1 'IBM Plex Mono', monospace; }
body:not(.is-admin) .checkout-form fieldset:nth-of-type(2) legend::before{ background:var(--cherry); }
body:not(.is-admin) .checkout-form fieldset:nth-of-type(3) legend::before{ background:var(--ochre); }
body:not(.is-admin) .checkout-form textarea[name="gift.note"]{ font:700 1.3rem/1.4 'Caveat', cursive; color:#1f2a66; background:var(--rule), #fffdf8; }
body:not(.is-admin) .order-summary.receipt{ max-width:none; align-self:start; }
body:not(.is-admin) .order-summary.receipt .receipt-head{ font-size:.72rem; }
body:not(.is-admin) .order-summary.receipt .coupon-row input{ font-family:'IBM Plex Mono', monospace; text-transform:uppercase; }

/* Sign in / reset: a crumpled letter, June standing beside it, tabs on a seam */
body:not(.is-admin) .tabs{ background:none; padding:0; border-radius:0; gap:18px; border-bottom:0; }
body:not(.is-admin) .tab{ position:relative; padding:8px 2px; border-radius:0; background:none !important; box-shadow:none !important; }
body:not(.is-admin) .tab.is-active::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:4px; border-radius:3px; background:var(--ochre); opacity:.85; }
.auth-art{ width:min(260px, 70%); height:auto; margin-bottom:8px; }
body:not(.is-admin) .tick-list li::before{ content:""; flex:none; width:10px; height:10px; margin-top:.5em; border-radius:46% 54% 52% 48%; background:var(--sage); }
body:not(.is-admin) .tick-list li:nth-child(2)::before{ background:var(--cherry); }
body:not(.is-admin) .tick-list li:nth-child(3)::before{ background:var(--ochre); }
body:not(.is-admin) .tick-list li:nth-child(4)::before{ background:var(--blue); }

/* Asides: no boxes. "Quicker ways" is an airmail postcard; "what happens next" is a thread */
body:not(.is-admin) .aside-card{ background:none; border:0; border-radius:0; padding:0; box-shadow:none; }
body:not(.is-admin) .aside-card.postcard{ position:relative; padding:24px 24px 20px; background:#FBF6EA; border:6px solid transparent;
  border-image:repeating-linear-gradient(45deg, var(--cherry) 0 9px, #FBF6EA 9px 14px, var(--blue) 14px 23px, #FBF6EA 23px 28px) 6; transform:rotate(1deg); box-shadow:0 14px 24px -16px rgba(59,47,34,.45); }
body:not(.is-admin) .aside-card.postcard h2{ font:700 1.6rem/1 'Caveat', cursive; }
body:not(.is-admin) .aside-quiet{ padding-top:16px; }
body:not(.is-admin) .commission-aside .aside-card h2{ font:700 1.6rem/1 'Caveat', cursive; color:var(--ink); }
body:not(.is-admin) .mini-timeline{ position:relative; gap:18px; }
body:not(.is-admin) .mini-timeline::before{ content:""; position:absolute; left:12px; top:14px; bottom:14px; width:2px; background:repeating-linear-gradient(180deg, var(--cherry) 0 6px, transparent 6px 11px); opacity:.6; }
body:not(.is-admin) .mini-timeline li::before{ position:relative; z-index:1; border-radius:46% 54% 52% 48% / 52% 46% 54% 48%; }

/* About: promises as painted marks in a row; care instructions as a sewn-in care label */
.promise-grid{ display:grid; gap:clamp(18px, 3vw, 36px); }
.promise{ position:relative; padding-top:6px; }
.promise-dab{ display:grid; place-items:center; width:46px; height:46px; margin-bottom:14px; border-radius:46% 54% 52% 48% / 52% 46% 54% 48%; background:var(--blue); color:#fff; font:700 1.05rem/1 'Space Grotesk', sans-serif; transform:rotate(-6deg); }
.promise:nth-child(2) .promise-dab{ background:var(--cherry); transform:rotate(5deg); }
.promise:nth-child(3) .promise-dab{ background:var(--sage); transform:rotate(-3deg); }
.promise:nth-child(4) .promise-dab{ background:var(--ochre); transform:rotate(7deg); }
.promise h3{ font-size:1.08rem; margin-bottom:6px; }
.promise p{ color:var(--text-muted); font-size:.92rem; line-height:1.6; }
.care-label{ position:relative; max-width:460px; margin:24px auto 72px; padding:30px 30px 26px; background:#fffdf8; border-radius:2px;
  outline:1.2px dashed #c9bfae; outline-offset:-9px; box-shadow:0 1px 1px rgba(34,29,25,.06), 0 16px 26px -18px rgba(59,47,34,.45); transform:rotate(-.6deg); text-align:center; }
.care-label::before{ content:""; position:absolute; top:-14px; left:50%; width:44px; height:16px; margin-left:-22px; background:#efe8da; border-radius:2px 2px 0 0; box-shadow:inset 0 -2px 0 rgba(34,29,25,.06); }
.care-label h2{ font:500 .8rem/1.2 'IBM Plex Mono', monospace !important; letter-spacing:.16em; text-transform:uppercase; margin-bottom:14px; }
.care-label .care-list{ display:grid; gap:8px; list-style:none; padding:0; margin:0; grid-template-columns:1fr !important; font:500 .82rem/1.4 'IBM Plex Mono', monospace; color:var(--ink-soft); }

/* FAQ: seam-separated rows, no boxes; the + becomes a brushed × when open */
body:not(.is-admin) .faq-item{ background:none; border:0; border-radius:0; outline:none; position:relative; }
body:not(.is-admin) .faq-item::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:1.4px; background:var(--seam); }
body:not(.is-admin) .faq-item summary{ padding-left:0; padding-right:0; font-size:1.02rem; }
body:not(.is-admin) .faq-item summary::after{ border-radius:46% 54% 52% 48% / 52% 46% 54% 48%; }
body:not(.is-admin) .faq-item .answer{ padding-left:0; padding-right:0; }

/* Stories: polaroids pinned on the board */
body:not(.is-admin) .stories-grid .card{ background:#fff; border-radius:3px; padding:10px 10px 16px; outline:none; transform:rotate(var(--r, -1deg)); transition:transform .5s cubic-bezier(.3,1.5,.5,1), box-shadow .5s; box-shadow:0 1px 1px rgba(34,29,25,.06), 0 14px 26px -16px rgba(59,47,34,.45); }
body:not(.is-admin) .stories-grid .card:nth-child(3n+2){ --r:1.2deg; }
body:not(.is-admin) .stories-grid .card:nth-child(3n){ --r:-.4deg; }
body:not(.is-admin) .stories-grid .card:hover{ transform:rotate(0) translateY(-4px); }
body:not(.is-admin) .stories-grid .card .story-art{ border-radius:1px; }
body:not(.is-admin) .stories-grid .card h3{ font:700 1.35rem/1.1 'Caveat', cursive; margin-top:4px; }

/* Gifts: colour washes with painted edges instead of box edges */
/* Gifts: occasions are plain columns marked with a painted dab, not tinted tiles */
body:not(.is-admin) .gift-occasions{ gap:clamp(18px, 3vw, 36px); }
body:not(.is-admin) .gift-occasions .occasion{ background:none; border-radius:0; outline:none; min-height:0; padding:0; justify-content:flex-start; overflow:visible; }
body:not(.is-admin) .gift-occasions .occasion::before{ position:static; display:block; width:42px; height:38px; margin-bottom:12px; opacity:1; background:currentColor; border-radius:46% 54% 52% 48% / 52% 46% 54% 48%; transform:rotate(-6deg); transition:transform .4s var(--ease-out); }
body:not(.is-admin) .gift-occasions .occasion:nth-child(even)::before{ border-radius:54% 46% 48% 52% / 46% 52% 48% 54%; transform:rotate(5deg); }
body:not(.is-admin) .gift-occasions .occasion:hover::before{ transform:rotate(0deg) scale(1.08); }
/* Gifts: the date planner is a kraft parcel tag; you write the day on its line */
body:not(.is-admin) .planner{ position:relative; isolation:isolate; padding:30px 36px 30px 76px;
  filter:drop-shadow(0 1px 1px rgba(59,47,34,.15)) drop-shadow(0 14px 20px rgba(59,47,34,.2)); }
body:not(.is-admin) main .wrap > section.planner::before{ content:""; position:absolute; inset:0; height:auto; opacity:1; z-index:-1; transform:rotate(-.5deg);
  background:#E2C79A url("/assets/textures/canvas.webp") 0 0 / 240px;
  clip-path:polygon(0 26px, 26px 0, 100% 0, 100% 100%, 26px 100%, 0 calc(100% - 26px)); }
body:not(.is-admin) .planner::after{ content:""; position:absolute; left:28px; top:50%; width:16px; height:16px; margin-top:-8px; border-radius:50%;
  background:var(--canvas); box-shadow:inset 0 2px 3px rgba(59,47,34,.35), 0 0 0 4px rgba(255,255,255,.35); }
body:not(.is-admin) .planner p{ color:rgba(34,29,25,.72); }
body:not(.is-admin) .planner label{ font:500 .7rem/1 'IBM Plex Mono', monospace; letter-spacing:.14em; text-transform:uppercase; color:rgba(34,29,25,.62); }
body:not(.is-admin) .planner input{ background:transparent; border:0; border-bottom:1.5px solid rgba(34,29,25,.6); border-radius:0; box-shadow:none;
  padding:6px 2px 4px; font:700 1.45rem/1.2 'Caveat', cursive; color:var(--ink); }
body:not(.is-admin) .planner input:focus{ outline:none; border-bottom-color:var(--cherry); box-shadow:none; }
@media (max-width:640px){ body:not(.is-admin) .planner{ padding:26px 22px 26px 56px; } body:not(.is-admin) .planner::after{ left:20px; } }

/* Mobile menu: a canvas sheet with big links on seams */
body:not(.is-admin) .mobile-menu{ background:var(--canvas-weave); }
body:not(.is-admin) .mobile-links a{ position:relative; display:block; padding:14px 2px; font:600 1.35rem/1.15 'Space Grotesk', sans-serif; border:0; }
body:not(.is-admin) .mobile-links a::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:1.4px; background:var(--seam); }
.menu-art{ width:62%; max-width:220px; height:auto; margin:18px auto 6px; display:block; }
.menu-ig{ display:inline-flex; align-items:center; gap:8px; margin-top:12px; color:var(--ink-soft); font-weight:600; text-decoration:none; }
.care-label .care-list li{ background:none !important; border:0 !important; padding:2px 0 !important; box-shadow:none !important; border-radius:0 !important; }
.care-label .care-list li + li{ border-top:1px dashed rgba(34,29,25,.18) !important; padding-top:8px !important; }

/* ================= Motion & delight ================= */
/* Page-to-page: a soft fade and rise, header stays put */
@view-transition{ navigation:auto; }
body:not(.is-admin) .site-header{ view-transition-name:site-header; }
::view-transition-old(root){ animation:vtOut .2s ease-in both; }
::view-transition-new(root){ animation:vtIn .34s cubic-bezier(.2,.7,.3,1) both; }
@keyframes vtOut{ to{ opacity:0; transform:translateY(-6px); } }
@keyframes vtIn{ from{ opacity:0; transform:translateY(12px); } }

/* Add to bag: the flying tote and the bag's wiggle */
.fly-tote{ position:fixed; z-index:400; pointer-events:none; object-fit:cover; border-radius:6px; box-shadow:0 10px 20px rgba(34,29,25,.25); background:#fff; }
[data-cart-open].is-wiggle{ animation:bagWiggle .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes bagWiggle{ 0%{ transform:rotate(0); } 25%{ transform:rotate(-14deg) scale(1.12); } 55%{ transform:rotate(10deg) scale(1.05); } 80%{ transform:rotate(-4deg); } 100%{ transform:none; } }

/* Cart drawer: a tote opening — canvas inside, a handle on top, items drop in */
body:not(.is-admin) .cart-drawer{ background:var(--canvas-weave); }
body:not(.is-admin) .cart-drawer .sheet-head{ position:relative; padding-top:56px; }
body:not(.is-admin) .cart-drawer .sheet-head::before{ content:""; position:absolute; top:8px; left:50%; width:96px; height:46px; margin-left:-48px; border:9px solid #D9CCB2; border-bottom:0; border-radius:60px 60px 0 0; box-shadow:inset 0 0 0 1px rgba(34,29,25,.06); }
body:not(.is-admin) .cart-drawer .sheet-head::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:1.4px; background:var(--seam); }
body:not(.is-admin) .cart-drawer.is-open .cart-line{ animation:lineDrop .5s cubic-bezier(.3,1.4,.5,1) both; animation-delay:calc(.12s + var(--i, 0) * 70ms); }
@keyframes lineDrop{ from{ opacity:0; transform:translateY(-18px) rotate(-2deg); } }
body:not(.is-admin) .ship-progress .bar{ height:8px; border-radius:6px; background:repeating-linear-gradient(90deg, rgba(34,29,25,.18) 0 6px, transparent 6px 10px); overflow:hidden; }
body:not(.is-admin) .ship-progress .bar i{ display:block; height:100%; border-radius:6px; background:var(--cherry); transition:width .8s cubic-bezier(.3,1,.4,1); }

/* Hero tote leans toward the pointer */
.hero-tilt{ transform:perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition:transform .5s cubic-bezier(.2,.7,.3,1); transform-style:preserve-3d; }

/* Brush stroke under one word of a heading */
.brush{ position:relative; font-style:normal; white-space:nowrap; z-index:0; }
.brush::after{ content:""; position:absolute; z-index:-1; left:-3%; right:-3%; bottom:.02em; height:.36em; border-radius:40% 60% 50% 50% / 60% 40% 60% 40%;
  background:var(--ochre); opacity:.38; transform:scaleX(0) rotate(-1.2deg); transform-origin:0 50%; transition:transform .9s cubic-bezier(.6,0,.2,1) .15s; }
.brush.is-on::after{ transform:scaleX(1) rotate(-1.2deg); }

/* Text links: a brush underline that paints in on hover */
body:not(.is-admin) :is(.prose, .helper-note, .lost-help, .footer-grid, .contact-aside, .commission-aside) a:not(.btn){
  text-decoration:none; background:linear-gradient(var(--cherry), var(--cherry)) 0 100% / 0 2px no-repeat, linear-gradient(rgba(34,29,25,.35), rgba(34,29,25,.35)) 0 100% / 100% 1px no-repeat;
  transition:background-size .4s cubic-bezier(.6,0,.2,1), color .2s; padding-bottom:1px;
}
body:not(.is-admin) .footer-grid a:not(.btn){ background-size:0 2px, 0 1px; }
body:not(.is-admin) :is(.prose, .helper-note, .lost-help, .footer-grid, .contact-aside, .commission-aside) a:not(.btn):hover{ background-size:100% 2px, 100% 1px; color:var(--cherry); }

@media (prefers-reduced-motion: reduce){
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*){ animation:none !important; }
  .hero-tilt, .brush::after{ transition:none; }
  body:not(.is-admin) .cart-drawer.is-open .cart-line{ animation:none; }
}

/* ================= Shop features ================= */
/* Search: a canvas sheet that drops from the top */
.search-sheet{ left:0; right:0; bottom:auto; width:100%; max-height:min(80vh, 640px); border-left:0; border-bottom:1px solid #D2C5AB; transform:translateY(-104%); box-shadow:0 24px 60px rgba(34,29,25,.18); padding:18px max(16px, calc((100vw - 980px) / 2)) 26px; }
body:not(.is-admin) .search-sheet{ background:var(--canvas-weave); }
.search-sheet.is-open{ transform:none; }
.search-bar{ display:flex; align-items:center; gap:12px; padding-bottom:12px; position:relative; }
.search-bar::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:1.4px; background:var(--seam); }
.search-bar > svg{ width:24px; height:24px; flex:none; fill:none; stroke:var(--ink-soft); stroke-width:1.8; }
.search-bar input{ flex:1; min-width:0; border:0; background:transparent; font:600 clamp(1.3rem, 3vw, 1.8rem)/1.2 'Space Grotesk', sans-serif; color:var(--ink); padding:8px 0; }
.search-bar input:focus-visible{ outline:none; }
.search-bar input::placeholder{ color:rgba(74,66,58,.45); }
.search-results{ padding-top:14px; }
.search-label{ font:500 .7rem/1 'IBM Plex Mono', monospace; letter-spacing:.14em; text-transform:uppercase; color:var(--text-muted); margin:10px 0 12px; }
.search-totes{ display:grid; grid-template-columns:repeat(auto-fill, minmax(120px, 1fr)); gap:14px; }
.search-tote{ display:grid; gap:4px; text-decoration:none; color:var(--ink); padding:6px 6px 10px; background:#fff; border-radius:3px; box-shadow:0 10px 18px -12px rgba(59,47,34,.4); transition:transform .3s; }
.search-tote:hover{ transform:translateY(-3px) rotate(-1deg); }
.search-tote img{ width:100%; aspect-ratio:4/5; object-fit:cover; }
.search-tote span{ font-weight:600; font-size:.88rem; }
.search-tote small{ color:var(--text-muted); }
.search-stories{ list-style:none; margin:0; padding:0; }
.search-stories a{ display:flex; justify-content:space-between; gap:12px; padding:10px 0; text-decoration:none; color:var(--ink); font-weight:600; border-bottom:1px dashed rgba(34,29,25,.18); }
.search-stories small{ color:var(--text-muted); font-weight:500; }
.search-hint, .search-empty{ color:var(--text-muted); padding:10px 0; }
.search-empty a{ color:var(--cherry); font-weight:600; }

/* Saved (heart) */
.save-btn{ display:grid; place-items:center; width:38px; height:38px; padding:0; border-radius:50%; border:1px solid var(--line-strong); background:rgba(251,248,241,.9); color:var(--ink-soft); cursor:pointer; transition:transform .3s cubic-bezier(.3,1.6,.5,1), background-color .2s, color .2s; }
.save-btn svg{ fill:none; stroke:currentColor; stroke-width:1.8; transition:fill .2s; }
.save-btn:hover{ transform:scale(1.08); color:var(--cherry); }
.save-btn[aria-pressed="true"]{ color:var(--cherry); border-color:rgba(193,68,60,.4); }
.save-btn[aria-pressed="true"] svg{ fill:var(--cherry); }
.save-btn[aria-pressed="true"]{ animation:heartPop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes heartPop{ 50%{ transform:scale(1.25); } }
.product-media .save-btn{ position:absolute; top:10px; right:10px; z-index:3; }
.save-btn-lg{ width:52px; height:52px; flex:none; }
.save-btn-lg svg{ width:22px; height:22px; }

/* Recently viewed: a row of little polaroids */
.recent{ padding:48px 0 8px; }
.recent-row{ display:flex; gap:18px; overflow-x:auto; padding:10px 4px 18px; scroll-snap-type:x mandatory; }
.recent-item{ flex:none; width:136px; display:grid; gap:2px; padding:7px 7px 10px; background:#fff; border-radius:3px; text-decoration:none; color:var(--ink); transform:rotate(var(--r, 0deg)); box-shadow:0 12px 20px -14px rgba(59,47,34,.45); scroll-snap-align:start; transition:transform .35s cubic-bezier(.3,1.5,.5,1); }
.recent-item:hover{ transform:rotate(0) translateY(-3px); }
.recent-item img{ width:100%; aspect-ratio:4/5; object-fit:cover; margin-bottom:4px; }
.recent-item span{ font:700 1.05rem/1.1 'Caveat', cursive; }
.recent-item small{ color:var(--text-muted); font-size:.78rem; }

/* Bundle: a small tag tied to the product */
.bundle-card{ position:relative; margin:18px 0 6px; padding:18px 18px 16px; background:#E2C79A url("/assets/textures/canvas.webp") 0 0 / 240px; border-radius:6px; transform:rotate(-.6deg); box-shadow:0 12px 22px -16px rgba(59,47,34,.5); }
.bundle-card::before{ content:""; position:absolute; inset:7px; border:1.2px dashed rgba(74,52,26,.35); border-radius:3px; pointer-events:none; }
.bundle-title{ display:flex; justify-content:space-between; align-items:center; font:700 1.35rem/1 'Caveat', cursive; margin-bottom:12px; }
.bundle-title span{ font:500 .7rem/1 'IBM Plex Mono', monospace; letter-spacing:.1em; text-transform:uppercase; color:var(--cherry); }
.bundle-pair{ display:grid; grid-template-columns:56px auto 56px 1fr; align-items:center; gap:10px; margin-bottom:14px; }
.bundle-pair img{ width:56px; height:70px; object-fit:cover; border-radius:3px; background:#fff; padding:3px; }
.bundle-plus{ font:700 1.4rem/1 'Space Grotesk', sans-serif; color:var(--ink-soft); }
.bundle-pair p{ margin:2px 0 0; font-size:.88rem; }
.bundle-pair s{ color:var(--text-muted); margin-left:4px; }
.buy-row{ align-items:center; }

/* Lightbox */
.gallery-main{ position:relative; }
.gallery-expand{ position:absolute; right:12px; bottom:12px; z-index:2; display:grid; place-items:center; width:40px; height:40px; padding:0; border-radius:50%; border:0; background:rgba(251,248,241,.92); cursor:zoom-in; box-shadow:0 4px 12px rgba(34,29,25,.15); }
.gallery-expand svg{ width:18px; height:18px; fill:none; stroke:var(--ink); stroke-width:1.8; }
.lightbox{ position:fixed; inset:0; z-index:500; display:grid; place-items:center; padding:24px; background:rgba(34,29,25,.82); backdrop-filter:blur(6px); }
.lightbox-stage{ max-width:min(92vw, 760px); max-height:86vh; overflow:hidden; border-radius:6px; background:#fff; cursor:zoom-in; touch-action:pinch-zoom; }
.lightbox-stage img{ display:block; max-width:100%; max-height:86vh; transition:transform .35s cubic-bezier(.2,.7,.3,1); }
.lightbox-stage img.is-zoomed{ transform:scale(2.2); cursor:zoom-out; }
.lightbox-close{ position:absolute; top:16px; right:16px; background:rgba(251,248,241,.95) !important; border-radius:50%; }
.lightbox-hint{ position:absolute; bottom:16px; left:0; right:0; text-align:center; color:rgba(251,248,241,.75); font:500 .72rem/1 'IBM Plex Mono', monospace; letter-spacing:.12em; text-transform:uppercase; }
.checkout-form .handwritten{ font:700 1.3rem/1.4 'Caveat', cursive; color:#1f2a66; }
@media (prefers-reduced-motion: reduce){ .save-btn, .recent-item, .lightbox-stage img{ transition:none; animation:none !important; } }
.search-bar input::-webkit-search-cancel-button{ -webkit-appearance:none; appearance:none; display:none; }

/* Readability on the canvas: small text needs 4.5:1. Faint grey is darkened; small cherry labels use the deep cherry. */
body:not(.is-admin){ --text-faint:rgba(34,29,25,.7); }
body:not(.is-admin) :is(.order-no, .letter-kicker, .letter-sheet .field-label, .letter-prompt span, .bundle-title span, .envelope-card strong, .letter-copy dt, .search-empty a){ color:var(--cherry-800); }
body:not(.is-admin) .ship-k{ color:rgba(34,29,25,.78); }
body:not(.is-admin) .strip-track span{ opacity:1; }

/* ================= Small phones & tablets ================= */
@media (max-width:400px){
  .site-header nav{ padding-left:14px !important; padding-right:10px !important; gap:8px; }
  .site-header .logo{ font-size:1.08rem; gap:6px; }
  .nav-actions{ gap:0 !important; }
  .nav-actions .icon-btn{ width:38px; min-width:38px; padding:0; }
  .icon-btn-label{ display:none !important; }
}
/* Tablets (portrait and landscape): use the width instead of stacking everything */
@media (min-width:700px) and (max-width:1023px){
  body:not(.is-admin) .product-grid{ grid-template-columns:repeat(3, minmax(0, 1fr)); gap:14px; }
  body:not(.is-admin) .hero{ grid-template-columns:1.15fr .85fr; gap:24px; padding-top:40px; align-items:center; }
  body:not(.is-admin) .hero-visual{ order:0; }
  body:not(.is-admin) .hero h1{ font-size:clamp(2.2rem, 5.2vw, 3rem); }
  body:not(.is-admin) .product-layout{ grid-template-columns:1fr 1fr; gap:28px; }
  body:not(.is-admin) .product-gallery{ position:sticky; top:calc(var(--header-h, 70px) + 12px); }
  body:not(.is-admin) .steps.journey-flow{ grid-template-columns:repeat(3, minmax(0, 1fr)); gap:14px; }
  body:not(.is-admin) .journey-flow .step-art{ width:92px; height:92px; }
  body:not(.is-admin) .tm{ grid-template-columns:.9fr 1.1fr; gap:36px; max-width:none; }
  body:not(.is-admin) .footer-grid{ grid-template-columns:1.3fr 1fr 1fr; }
  body:not(.is-admin) .footer-brand{ grid-column:1 / -1; max-width:520px; }
}
/* Phones: comfortable tap targets and tighter rhythm */
@media (max-width:699px){
  body:not(.is-admin) section{ padding:64px 0; }
  body:not(.is-admin) .btn{ min-height:46px; }
  body:not(.is-admin) .tier-card{ padding:40px 20px 22px; }
  body:not(.is-admin) .footer-brand{ transform:none; }
  body:not(.is-admin) .order-form{ transform:none; }
  .letter-photo{ display:none; }
}

/* ================= Touch-first layouts (phones & tablets) =================
   Not a shrunk desktop: a thumb-reach tab bar, swipe rows, sticky buy bar, collapsible summary and footer. */
.tabbar, .buy-bar, .summary-toggle{ display:none; }
@media (max-width:1023px){
  /* Swipe rows with snap instead of long stacks */
  body:not(.is-admin) :is(#shop-preview .product-grid, .tier-line, .steps.journey-flow){
    display:grid; grid-auto-flow:column; grid-template-columns:none; grid-auto-columns:minmax(min(78vw, 300px), 1fr);
    overflow-x:auto; overflow-y:hidden; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scroll-padding-inline:16px;
    padding-bottom:16px; margin-inline:-16px; padding-inline:16px; scrollbar-width:none;
  }
  body:not(.is-admin) :is(#shop-preview .product-grid, .tier-line, .steps.journey-flow)::-webkit-scrollbar{ display:none; }
  body:not(.is-admin) :is(#shop-preview .product-grid, .tier-line, .steps.journey-flow) > *{ scroll-snap-align:start; }
  body:not(.is-admin) #shop-preview .product-grid{ grid-auto-columns:minmax(min(62vw, 240px), 1fr); }
  body:not(.is-admin) .tier-line{ grid-auto-columns:minmax(min(80vw, 320px), 1fr); padding-top:40px; max-width:none; }
  body:not(.is-admin) .tier-line::before{ display:block; left:0; right:0; width:calc(var(--n, 3) * 100%); }
  body:not(.is-admin) .tier-tag:nth-child(2){ margin-top:14px; }
  body:not(.is-admin) .steps.journey-flow{ grid-auto-columns:minmax(min(76vw, 290px), 1fr); }
  /* Chip filters scroll sideways instead of wrapping into rows */
  body:not(.is-admin) :is([data-tag-chips], [data-story-filter]){ flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; margin-inline:-16px; padding:2px 16px 6px; }
  body:not(.is-admin) :is([data-tag-chips], [data-story-filter])::-webkit-scrollbar{ display:none; }
  body:not(.is-admin) :is([data-tag-chips], [data-story-filter]) .chip{ flex:none; }
}
@media (max-width:699px){
  /* Bottom tab bar within thumb reach */
  body:not(.is-admin){ padding-bottom:calc(72px + env(safe-area-inset-bottom)); }
  body:not(.is-admin) .tabbar{
    display:grid; grid-template-columns:repeat(5, 1fr); align-items:end; position:fixed; left:0; right:0; bottom:0; z-index:150;
    padding:6px 6px calc(6px + env(safe-area-inset-bottom)); background:#ECE4D2 url("/assets/textures/canvas.webp") 0 0 / 240px;
    box-shadow:0 -10px 24px -16px rgba(34,29,25,.4);
  }
  body:not(.is-admin) .tabbar::before{ content:""; position:absolute; left:0; right:0; top:5px; height:1.4px; background:var(--seam); }
  .tabbar a, .tabbar button{ position:relative; display:grid; justify-items:center; gap:3px; padding:8px 2px 4px; border:0; background:none; color:var(--ink-soft); font:600 .68rem/1 'Space Grotesk', sans-serif; text-decoration:none; cursor:pointer; }
  .tabbar svg{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
  .tabbar [aria-current="page"]{ color:var(--ink); }
  .tabbar [aria-current="page"]::after{ content:""; position:absolute; bottom:-1px; width:18px; height:4px; border-radius:3px; background:var(--ochre); }
  .tabbar .tabbar-cta{ margin-top:-22px; }
  .tabbar .tabbar-cta svg{ width:48px; height:48px; padding:12px; border-radius:50%; background:var(--cherry); color:#fff; stroke:#fff; box-shadow:0 8px 16px -6px rgba(143,45,39,.6); }
  .tabbar-count{ position:absolute; top:2px; right:calc(50% - 20px); min-width:17px; height:17px; padding:0 4px; border-radius:9px; background:var(--cherry); color:#fff; font:700 .62rem/17px 'Space Grotesk', sans-serif; font-style:normal; }
  /* The header keeps brand + search + menu; the rest lives in the tab bar */
  body:not(.is-admin) .nav-actions [data-account-link], body:not(.is-admin) .nav-actions [data-cart-open], body:not(.is-admin) .nav-cta{ display:none !important; }
  body:not(.is-admin) .toast-stack{ bottom:calc(84px + env(safe-area-inset-bottom)); }
  /* Hero: the tote steps back so the words and buttons fit the first screen */
  body:not(.is-admin) .hero{ padding-top:20px; gap:8px; }
  body:not(.is-admin) .hero-visual{ max-width:62vw; margin:0 auto; }
  body:not(.is-admin) .hero h1{ font-size:clamp(2rem, 9vw, 2.6rem); }
  body:not(.is-admin) .hero-ctas{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  body:not(.is-admin) .hero-ctas .btn{ width:100%; padding-inline:10px; }
  /* Product: sticky buy bar above the tab bar */
  .buy-bar{ display:flex; position:fixed; left:10px; right:10px; bottom:calc(80px + env(safe-area-inset-bottom)); z-index:140; align-items:center; justify-content:space-between; gap:12px;
    padding:10px 10px 10px 16px; border-radius:14px; background:#FBF6EA; box-shadow:0 14px 30px -12px rgba(34,29,25,.45); transform:translateY(160%); transition:transform .35s cubic-bezier(.2,.7,.3,1); }
  .buy-bar.is-shown{ transform:none; }
  .buy-bar div{ display:grid; min-width:0; }
  .buy-bar strong{ font:600 .92rem/1.2 'Space Grotesk', sans-serif; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .buy-bar span{ font-size:.85rem; color:var(--text-muted); }
  .buy-bar .btn{ flex:none; min-height:44px; }
  /* Checkout: the bag summary collapses to one line */
  .summary-toggle{ display:flex; justify-content:space-between; align-items:center; width:100%; padding:4px 0 10px; border:0; background:none; font:600 .95rem/1.2 'Space Grotesk', sans-serif; color:var(--ink); cursor:pointer; }
  .summary-toggle::after{ content:"▾"; margin-left:8px; transition:transform .2s; }
  .summary-toggle[aria-expanded="true"]::after{ transform:rotate(180deg); }
  body:not(.is-admin) .order-summary.receipt:not(.is-open) > :not(.summary-toggle){ display:none; }
  /* Footer: link groups as accordions */
  .foot-col summary{ list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:center; padding:12px 0; }
  .foot-col summary::-webkit-details-marker{ display:none; }
  .foot-col summary::after{ content:"+"; font:600 1.2rem/1 'Space Grotesk', sans-serif; color:var(--ink-soft); }
  .foot-col[open] summary::after{ content:"−"; }
  .foot-col{ border-bottom:1px dashed rgba(34,29,25,.2); }
  body:not(.is-admin) .footer-grid{ grid-template-columns:1fr !important; gap:0 !important; }
  body:not(.is-admin) .footer-brand{ margin-bottom:24px; }
  .foot-col h3{ margin:0 !important; }
}
@media (min-width:700px){ .foot-col summary{ list-style:none; cursor:default; } .foot-col summary::-webkit-details-marker{ display:none; } }
@media (prefers-reduced-motion: reduce){ .buy-bar{ transition:none; } }
@media (max-width:699px){
  body:not(.is-admin) .hero-visual .tote, body:not(.is-admin) .hero-tilt{ max-width:min(52vw, 210px); margin-inline:auto; }
  body:not(.is-admin) .hero-tag{ right:8%; }
  body:not(.is-admin) .footer-grid > *{ min-width:0; max-width:100%; }
  body:not(.is-admin) .footer-brand{ width:auto; margin-inline:0; }
  body:not(.is-admin) .newsletter-row{ max-width:100%; }
  body:not(.is-admin) .newsletter input{ min-width:0; }
}

/* ================= Native touch patterns ================= */
@media (max-width:699px){
  /* Bag and menu rise from the bottom as sheets, within thumb reach */
  body:not(.is-admin) :is(.cart-drawer, .mobile-menu){
    top:auto; left:0; right:0; width:100%; max-height:88vh; border-left:0; border-radius:20px 20px 0 0;
    transform:translateY(104%); padding-bottom:calc(24px + env(safe-area-inset-bottom)); box-shadow:0 -20px 50px rgba(34,29,25,.25);
  }
  body:not(.is-admin) :is(.cart-drawer, .mobile-menu).is-open{ transform:none; }
  body:not(.is-admin) :is(.cart-drawer, .mobile-menu) .sheet-head{ padding-top:22px; }
  body:not(.is-admin) :is(.cart-drawer, .mobile-menu)::before{ content:""; position:absolute; top:8px; left:50%; width:44px; height:5px; margin-left:-22px; border-radius:3px; background:rgba(34,29,25,.22); }
  body:not(.is-admin) .cart-drawer .sheet-head::before{ display:none; }
  body:not(.is-admin) .search-sheet{ max-height:100vh; height:100vh; border-radius:0; }

  /* Product photos: full-width swipe with dots */
  body:not(.is-admin) .gallery-swipe{ display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; margin-inline:-16px; border-radius:0; }
  body:not(.is-admin) .gallery-swipe::-webkit-scrollbar{ display:none; }
  body:not(.is-admin) .gallery-swipe img{ flex:0 0 100%; width:100%; aspect-ratio:4/5; object-fit:cover; scroll-snap-align:center; }
  body:not(.is-admin) .gallery-dots{ display:flex; justify-content:center; gap:6px; margin-top:10px; }
  body:not(.is-admin) .gallery-dots i{ width:7px; height:7px; border-radius:50%; background:rgba(34,29,25,.25); transition:width .25s, background .25s; }
  body:not(.is-admin) .gallery-dots i.on{ width:20px; border-radius:4px; background:var(--cherry); }
  body:not(.is-admin) :is(.gallery-main, .gallery-thumbs){ display:none !important; }
  body:not(.is-admin) .product-gallery{ position:static; }

  /* Commission: a progress thread instead of five circles; Back/Continue pinned above the tab bar */
  body:not(.is-admin) .stepper{ position:relative; display:block; height:auto; padding:0 0 12px; margin-bottom:14px; }
  body:not(.is-admin) .stepper li{ display:none; }
  body:not(.is-admin) .stepper li.is-current{ display:flex; align-items:center; gap:10px; font:600 .95rem/1 'Space Grotesk', sans-serif; }
  body:not(.is-admin) .stepper li.is-current::before{ content:"Step"; font:500 .7rem/1 'IBM Plex Mono', monospace; letter-spacing:.12em; text-transform:uppercase; color:var(--text-muted); }
  body:not(.is-admin) .stepper::before, body:not(.is-admin) .stepper::after{ content:""; position:absolute; left:0; bottom:0; height:4px; border-radius:3px; }
  body:not(.is-admin) .stepper::before{ right:0; background:repeating-linear-gradient(90deg, rgba(34,29,25,.2) 0 6px, transparent 6px 10px); }
  body:not(.is-admin) .stepper::after{ width:calc(var(--progress, .2) * 100%); background:var(--cherry); transition:width .4s cubic-bezier(.3,1,.4,1); }
  body:not(.is-admin) .letter-nav{ position:sticky; bottom:calc(76px + env(safe-area-inset-bottom)); z-index:5; margin:0 -10px; padding:10px; background:rgba(251,246,234,.94); border-radius:14px; box-shadow:0 -8px 20px -14px rgba(34,29,25,.35); }
  body:not(.is-admin) .letter-nav .letter-hint{ display:none; }
  body:not(.is-admin) .commission-aside{ display:none; }

  /* Shop: filters stay pinned while you scroll */
  body:not(.is-admin) .shop-toolbar{ position:sticky; top:0; z-index:20; margin-inline:-16px; padding:10px 16px 8px; background:rgba(236,228,210,.95); backdrop-filter:blur(6px); box-shadow:0 8px 16px -14px rgba(34,29,25,.4); flex-direction:column; align-items:stretch; gap:8px; }
  body:not(.is-admin) .shop-toolbar .toolbar-right{ display:flex; justify-content:space-between; align-items:center; gap:10px; }

  /* Account: sections as a scrolling tab row */
  body:not(.is-admin) .account-layout{ display:block; }
  body:not(.is-admin) .side-tabs{ display:flex; flex-wrap:wrap; gap:2px 20px; overflow:visible; margin:0 -16px 18px; padding:4px 16px 6px; position:sticky; top:0; z-index:10; background:rgba(236,228,210,.95); }
  body:not(.is-admin) .side-tabs::-webkit-scrollbar{ display:none; }
  body:not(.is-admin) .side-tab{ flex:none; white-space:nowrap; }
}
@media (min-width:700px){ .gallery-swipe, .gallery-dots{ display:none; } }
@media (max-width:699px){ body:not(.is-admin) .sheet{ z-index:310; } body:not(.is-admin) .sheet-backdrop{ z-index:300; } body:not(.is-admin) .toast-stack{ z-index:320; } }

/* Pricing switcher, commission step label, room under the pinned buttons */
.tier-switch, .tier-meta{ display:none; }
@media (max-width:1023px){
  body:not(.is-admin) .tier-switch{ display:flex; gap:6px; padding:4px; margin:0 0 6px; border-radius:16px; background:rgba(34,29,25,.06); }
  body:not(.is-admin) .tier-switch button{ flex:1; display:grid; gap:2px; padding:9px 6px; border:0; border-radius:12px; background:none; cursor:pointer; font:600 .86rem/1.1 'Space Grotesk', sans-serif; color:var(--ink-soft); transition:background-color .25s, color .25s, box-shadow .25s; }
  body:not(.is-admin) .tier-switch button small{ font:500 .72rem/1 'IBM Plex Mono', monospace; color:var(--text-muted); }
  body:not(.is-admin) .tier-switch button[aria-selected="true"]{ background:#FBF6EA; color:var(--ink); box-shadow:0 4px 10px -6px rgba(34,29,25,.35); }
  body:not(.is-admin) .tier-meta{ display:flex; justify-content:space-between; align-items:center; margin-top:2px; }
  .tier-dots{ display:flex; gap:6px; }
  .tier-dots i{ width:7px; height:7px; border-radius:50%; background:rgba(34,29,25,.25); transition:width .25s, background-color .25s; }
  .tier-dots i.on{ width:20px; border-radius:4px; background:var(--cherry); }
  .tier-hint{ font:700 1.1rem/1 'Caveat', cursive; color:var(--ink-soft); transition:opacity .4s; }
  .tier-meta.is-swiped .tier-hint{ opacity:0; }
}
@media (max-width:699px){
  body:not(.is-admin) .stepper li, body:not(.is-admin) .stepper li.is-current{ display:none !important; }
  body:not(.is-admin) .stepper{ padding:0 0 14px; min-height:0; }
  body:not(.is-admin) .stepper[data-label]::before{
    content:attr(data-label); position:static; display:block; height:auto; background:none; margin-bottom:10px;
    font:600 1rem/1.2 'Space Grotesk', sans-serif; color:var(--ink);
  }
  body:not(.is-admin) .stepper::after{ bottom:0; }
  body:not(.is-admin) .stepper{ border-bottom:0; }
  body:not(.is-admin) .stepper{ background:repeating-linear-gradient(90deg, rgba(34,29,25,.2) 0 6px, transparent 6px 10px) 0 100% / 100% 4px no-repeat; }
  body:not(.is-admin) .letter-sheet{ padding-bottom:96px !important; }
}
/* Phone filters: compact chips that clearly swipe (faded edge), with Sort back beside "In stock" */
@media (max-width:699px){
  body:not(.is-admin) [data-tag-chips], body:not(.is-admin) [data-story-filter]{
    margin-inline:0; padding:2px 28px 6px 0; gap:6px;
    -webkit-mask-image:linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image:linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  }
  body:not(.is-admin) :is([data-tag-chips], [data-story-filter]) .chip{ min-height:34px; padding:6px 12px; font-size:.82rem; }
  body:not(.is-admin) .shop-toolbar{ top:0; padding:8px 16px; gap:6px; }
  body:not(.is-admin) .shop-toolbar .toolbar-right{ display:flex !important; flex-wrap:nowrap; justify-content:space-between; align-items:center; }
  body:not(.is-admin) .shop-toolbar .check{ font-size:.86rem; white-space:nowrap; }
  body:not(.is-admin) .shop-toolbar .select-wrap{ display:block !important; flex:none; }
  body:not(.is-admin) .shop-toolbar .select-wrap select{ min-height:34px; padding:6px 30px 6px 12px; font-size:.82rem; }
}

/* ================= Shop filters on phones: button + bottom sheet ================= */
.filter-bar, .filter-pills{ display:none; }
@media (max-width:699px){
  body:not(.is-admin) .shop-toolbar{ display:none !important; }
  body:not(.is-admin) .filter-bar{ position:sticky; top:0; z-index:20; display:flex; justify-content:space-between; align-items:center; gap:12px; margin-inline:-16px; padding:10px 16px; background:rgba(236,228,210,.95); backdrop-filter:blur(6px); box-shadow:0 8px 16px -14px rgba(34,29,25,.4); }
  .filter-open{ display:inline-flex; align-items:center; gap:8px; min-height:42px; padding:0 16px; border:1px solid var(--ink); border-radius:999px; background:var(--ink); color:#fff; font:600 .9rem/1 'Space Grotesk', sans-serif; cursor:pointer; }
  .filter-open svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
  .filter-badge{ display:grid; place-items:center; min-width:20px; height:20px; padding:0 5px; border-radius:10px; background:var(--cherry); font-size:.72rem; }
  .filter-count{ font:500 .76rem/1 'IBM Plex Mono', monospace; letter-spacing:.08em; text-transform:uppercase; color:var(--text-muted); }
  body:not(.is-admin) .filter-pills:not(:empty){ display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 4px; }
  .filter-pill{ display:inline-flex; align-items:center; gap:8px; min-height:34px; padding:0 8px 0 14px; border:1px solid rgba(193,68,60,.35); border-radius:999px; background:#FBF6EA; color:var(--ink); font:600 .82rem/1 'Space Grotesk', sans-serif; cursor:pointer; }
  .filter-pill span{ display:grid; place-items:center; width:20px; height:20px; border-radius:50%; background:rgba(193,68,60,.12); color:var(--cherry-800); font-size:.95rem; }
  /* the sheet */
  body:not(.is-admin) .filter-sheet{ top:auto; left:0; right:0; width:100%; max-height:86vh; border-left:0; border-radius:20px 20px 0 0; transform:translateY(104%); padding-bottom:calc(16px + env(safe-area-inset-bottom)); background:var(--canvas-weave); }
  body:not(.is-admin) .filter-sheet.is-open{ transform:none; }
  body:not(.is-admin) .filter-sheet::before{ content:""; position:absolute; top:8px; left:50%; width:44px; height:5px; margin-left:-22px; border-radius:3px; background:rgba(34,29,25,.22); }
  .filter-body{ overflow-y:auto; display:grid; gap:12px; padding-bottom:6px; }
  .filter-label{ font:500 .7rem/1 'IBM Plex Mono', monospace; letter-spacing:.14em; text-transform:uppercase; color:var(--text-muted); margin-top:6px; }
  .filter-options{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; }
  .filter-opt{ min-height:46px; border:1px solid var(--line-strong); border-radius:12px; background:#FBF6EA; color:var(--ink); font:600 .92rem/1 'Space Grotesk', sans-serif; cursor:pointer; }
  .filter-opt[aria-checked="true"]{ background:var(--ink); color:#fff; border-color:var(--ink); }
  .filter-switch{ display:flex; justify-content:space-between; align-items:center; min-height:50px; padding:0 14px; border-radius:12px; background:#FBF6EA; font-weight:600; cursor:pointer; }
  .filter-switch input{ position:absolute; opacity:0; }
  .filter-switch i{ position:relative; width:44px; height:26px; border-radius:13px; background:rgba(34,29,25,.2); transition:background-color .2s; }
  .filter-switch i::after{ content:""; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.25); transition:transform .25s cubic-bezier(.3,1.4,.5,1); }
  .filter-switch input:checked + i{ background:var(--sage); }
  .filter-switch input:checked + i::after{ transform:translateX(18px); }
  .filter-switch input:focus-visible + i{ outline:2px solid var(--focus); outline-offset:2px; }
  .filter-sorts{ display:grid; gap:2px; }
  .filter-sorts label{ display:flex; align-items:center; gap:12px; min-height:46px; padding:0 4px; border-bottom:1px dashed rgba(34,29,25,.15); font-weight:500; cursor:pointer; }
  .filter-sorts input{ accent-color:var(--cherry); width:18px; height:18px; }
  .filter-foot{ display:grid; grid-template-columns:1fr 2fr; gap:10px; padding-top:12px; position:relative; }
  .filter-foot::before{ content:""; position:absolute; left:0; right:0; top:0; height:1.4px; background:var(--seam); }
  .filter-foot .btn{ min-height:48px; }
}
/* ================= Product cards: aligned like a store shelf =================
   Equal-height cards, titles held to two lines, price + button pinned to the bottom edge,
   and a lone last card becomes a wide horizontal card instead of leaving a hole. */
body:not(.is-admin) .product-grid{ align-items:stretch; }
body:not(.is-admin) .product-card{ display:flex; flex-direction:column; height:100%; }
body:not(.is-admin) .product-card .card-link{ display:flex; flex-direction:column; flex:1; }
body:not(.is-admin) .product-card h3{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:2.5em; line-height:1.25; }
body:not(.is-admin) .product-card .product-meta{ margin-top:auto; }
@media (max-width:699px){
  body:not(.is-admin) .product-card .summary{ display:none; }
  body:not(.is-admin) .product-card h3{ font-size:.98rem; margin:10px 0 4px; }
  body:not(.is-admin) .product-card .product-meta{ display:grid; gap:8px; }
  body:not(.is-admin) .product-card .quick-add{ width:100%; min-height:40px; }
  body:not(.is-admin) :not(#shop-preview) > .product-grid > .product-card:last-child:nth-child(odd){
    grid-column:1 / -1; display:grid; grid-template-columns:42% 1fr; column-gap:14px; align-items:center;
  }
  body:not(.is-admin) :not(#shop-preview) > .product-grid > .product-card:last-child:nth-child(odd) .card-link{ display:contents; }
  body:not(.is-admin) :not(#shop-preview) > .product-grid > .product-card:last-child:nth-child(odd) .product-media{ grid-row:1 / span 3; }
  body:not(.is-admin) :not(#shop-preview) > .product-grid > .product-card:last-child:nth-child(odd) h3{ min-height:0; align-self:end; }
  body:not(.is-admin) :not(#shop-preview) > .product-grid > .product-card:last-child:nth-child(odd) .product-meta{ grid-column:2; align-self:start; margin-top:0; }
}
/* ================= Phone product cards: one clean frame, full-bleed photo, store-shelf footer ================= */
@media (max-width:699px){
  body:not(.is-admin) .board:has(> .product-grid){ background:none; outline:none; box-shadow:none; padding:0; border-radius:0; }
  body:not(.is-admin) .product-grid{ gap:18px 12px !important; }
  body:not(.is-admin) .product-card{
    padding:0 !important; outline:none !important; overflow:hidden; border-radius:16px; background:#FBF8F1;
    border:1px solid rgba(34,29,25,.08); box-shadow:0 1px 1px rgba(34,29,25,.04), 0 10px 22px -16px rgba(59,47,34,.45);
  }
  body:not(.is-admin) .product-card .pin{ display:none; }
  body:not(.is-admin) .product-card .product-media{ margin:0; border-radius:0; aspect-ratio:4/5; background:#F1EADB; }
  body:not(.is-admin) .product-card .product-media img{ border-radius:0; }
  body:not(.is-admin) .product-card .product-media img + img{ border-radius:0; }
  body:not(.is-admin) .product-card .product-media .tape{ top:auto; bottom:10px; left:10px; transform:rotate(-2deg); font-size:.58rem; padding:4px 8px; }
  body:not(.is-admin) .product-card .save-btn{ top:8px; right:8px; width:34px; height:34px; background:rgba(251,248,241,.92); border-color:transparent; box-shadow:0 2px 8px rgba(34,29,25,.12); }
  body:not(.is-admin) .product-card h3{ margin:12px 12px 2px; min-height:2.5em; font-size:.95rem; font-weight:600; }
  body:not(.is-admin) .product-card .product-meta{ display:flex !important; align-items:center; justify-content:space-between; gap:8px; padding:4px 10px 12px 12px; margin-top:auto; }
  body:not(.is-admin) .product-card .price-stamp{ font:700 1rem/1 'Space Grotesk', sans-serif; background:none; padding:0; }
  body:not(.is-admin) .product-card .quick-add{
    width:40px !important; height:40px; min-height:0 !important; padding:0 !important; flex:none; border-radius:50%;
    font-size:0 !important; color:#fff; background:var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 11.2a2 2 0 0 1-2 1.8H8.2a2 2 0 0 1-2-1.8z'/%3E%3Cpath d='M9 8V6.5a3 3 0 0 1 6 0V8'/%3E%3Cpath d='M12 12v5M9.5 14.5h5'/%3E%3C/svg%3E") center / 20px no-repeat; border:0;
  }
  body:not(.is-admin) .product-card .quick-add:disabled{ background-color:rgba(34,29,25,.25); }
  body:not(.is-admin) .product-card.is-soldout .product-media img{ opacity:.6; }
  /* the lone wide card keeps the same language */
  body:not(.is-admin) :not(#shop-preview) > .product-grid > .product-card:last-child:nth-child(odd){ grid-template-columns:44% 1fr; column-gap:0; }
  body:not(.is-admin) :not(#shop-preview) > .product-grid > .product-card:last-child:nth-child(odd) .product-media{ height:100%; aspect-ratio:auto; min-height:170px; }
  body:not(.is-admin) :not(#shop-preview) > .product-grid > .product-card:last-child:nth-child(odd) .product-meta{ padding:4px 14px 14px; }
  body:not(.is-admin) :not(#shop-preview) > .product-grid > .product-card:last-child:nth-child(odd) h3{ margin:14px 14px 4px; }
}
@media (max-width:699px){ body:not(.is-admin) .product-card .product-meta{ flex-direction:row !important; align-items:center !important; justify-content:space-between !important; text-align:left; } body:not(.is-admin) .product-card .price-stamp{ margin:0; text-align:left; } body:not(.is-admin) .product-card h3{ text-align:left; } }
/* Second photo: hover on mouse devices (any width); press-and-hold on touch screens */
body:not(.is-admin) .product-card.is-peek .product-media img + img{ opacity:1; }
body:not(.is-admin) .product-card.is-peek .product-media img:first-child{ transform:scale(1.03); }
body:not(.is-admin) .product-media:has(img + img)::after{
  content:""; position:absolute; z-index:2; left:50%; bottom:8px; width:18px; height:6px; margin-left:-9px;
  background:radial-gradient(circle, rgba(251,248,241,.95) 2.4px, transparent 2.8px) 0 0 / 9px 6px repeat-x; filter:drop-shadow(0 0 1px rgba(34,29,25,.5)); pointer-events:none;
}
@media (hover:none){ body:not(.is-admin) .product-card .product-media img{ -webkit-touch-callout:none; user-select:none; } }

/* Checkout codes: input takes the room, the button stays its own size (phones made buttons full width) */
.coupon-row .btn{ flex:none; width:auto; }
.coupon-row input{ flex:1 1 auto; min-width:0; padding:10px 12px; }

/* Account: the tab panels are <section>s but not page sections; no big section padding or seam */
body:not(.is-admin) .account-panels > .tab-panel{ padding:0; }
body:not(.is-admin) .account-panels > .tab-panel::before{ content:none; }

/* ================= UPI payment (checkout step 2, order page) ================= */
/* Payment state is a typed word on the order, like a rubber stamp, not a pill. */
body:not(.is-admin) .status-chip{ padding:0; border-radius:0; background:none !important; gap:7px; font:500 .7rem/1.2 'IBM Plex Mono', monospace; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-soft); }
body:not(.is-admin) .status-chip::before{ content:""; width:9px; height:9px; flex:none; border-radius:46% 54% 52% 48% / 52% 46% 54% 48%; background:var(--blue); }
body:not(.is-admin) .status-chip.is-paid::before{ background:var(--sage); }
body:not(.is-admin) .status-chip.is-due::before{ background:var(--ochre); }
body:not(.is-admin) .status-chip.is-cancel::before{ background:var(--cherry); }

/* Checkout steps: paint-dab numbers on a stitched thread */
/* Checkout steps: paint-dab numbers on a stitched thread, under the heading */
.co-steps{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:16px 0 0; padding:0; list-style:none; }
.co-steps li{ display:flex; align-items:center; gap:8px; font:500 .74rem/1 'IBM Plex Mono', monospace; letter-spacing:.1em; text-transform:uppercase; color:var(--text-faint); }
.co-steps li + li::before{ content:""; width:clamp(18px, 5vw, 48px); height:1.4px; background:var(--seam); margin-right:2px; }
.co-dab{ display:grid; place-items:center; width:26px; height:26px; flex:none; border-radius:46% 54% 52% 48% / 52% 46% 54% 48%; border:1.5px dashed rgba(34,29,25,.3); font:600 .74rem/1 'IBM Plex Mono', monospace; }
.co-steps li.is-current{ color:var(--ink); }
.co-steps li.is-current .co-dab{ border:0; background:var(--ink); color:#fff; }
.co-steps li.is-done .co-dab{ border:0; background:var(--cherry); color:#fff; }
@media (max-width:420px){ .co-steps{ gap:6px; } .co-steps li{ font-size:.62rem; gap:5px; letter-spacing:.06em; } .co-dab{ width:22px; height:22px; } }

/* Email code under the email field */
.email-code{ margin:-2px 0 14px; display:grid; gap:8px; justify-items:start; }
.email-code-why, .email-code-hint{ margin:0; font-size:.86rem; color:var(--text-muted); }
.email-code .btn-text{ margin:0; padding:2px 0; font-size:1.15rem; }
.email-code-row{ display:flex; align-items:flex-end; gap:10px; width:100%; max-width:380px; }
.email-code-row .field{ flex:1; margin:0; }
.email-code-row input{ font:600 1.15rem/1 'IBM Plex Mono', monospace; letter-spacing:.3em; }
.email-ok{ margin:0; font-size:.9rem; color:var(--sage-800); }
.email-ok span{ font-weight:700; }
.checkout-form input[readonly]{ background:transparent; border-style:dashed; }
.link-copy{ background:none; border:0; padding:0 2px; cursor:pointer; font:500 .8rem/1.4 'IBM Plex Mono', monospace; color:var(--blue); text-decoration:underline; text-underline-offset:3px; }
.link-copy:hover{ color:var(--cherry); }

/* The pay step: a printed payment slip beside the "tell June" letter */
.co-pay, .co-done{ max-width:980px; margin:0 auto; }
.co-saved{ text-align:center; color:var(--text-muted); margin:0 0 6px; }
.co-saved .order-no{ display:inline; margin:0 4px; }
.upi-heading{ font-size:clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom:22px; }
.upi-grid{ display:grid; grid-template-columns:minmax(0, 380px) minmax(0, 1fr); gap:clamp(24px, 4vw, 56px); align-items:start; padding-top:18px; }
.upi-slip{ margin:0; max-width:380px; width:100%; text-align:center; transform:rotate(-.8deg); }
.upi-amount{ margin:4px 0 12px; font:700 2.4rem/1 'Space Grotesk', sans-serif; color:var(--ink); }
.upi-amount small{ display:block; margin-bottom:6px; font:500 .68rem/1 'IBM Plex Mono', monospace; letter-spacing:.14em; text-transform:uppercase; color:var(--text-muted); }
.upi-qr{ display:block; width:196px; height:196px; margin:0 auto; image-rendering:pixelated; }
.upi-scan{ margin:8px 0 14px; font:700 1.15rem/1.2 'Caveat', cursive; color:var(--cherry); }
.upi-lines{ display:grid; grid-template-columns:auto 1fr; gap:6px 14px; margin:0; padding-top:12px; border-top:1px dashed rgba(34,29,25,.3); text-align:left; }
.upi-lines dt{ font-size:.7rem; letter-spacing:.1em; text-transform:uppercase; color:var(--text-muted); line-height:1.7; }
.upi-lines dd{ margin:0; word-break:break-all; }
.upi-id{ font-weight:600; }
.upi-apps{ display:grid; gap:10px; margin-top:16px; padding-top:14px; border-top:1px dashed rgba(34,29,25,.3); font-family:Inter, system-ui, sans-serif; }
.upi-apps-or{ margin:0; font-size:.86rem; color:var(--text-muted); }
.upi-apps-or a{ color:var(--ink); font-weight:600; text-decoration:underline; text-decoration-color:rgba(193,68,60,.5); text-underline-offset:3px; }
.upi-app-miss{ margin:0; font-size:.84rem; color:var(--cherry-800); text-align:left; }
/* Phones: the app buttons come first; the QR is only for paying from a second device. */
.upi-apps.is-first{ margin:4px 0 12px; padding:0 0 14px; border-top:0; border-bottom:1px dashed rgba(34,29,25,.3); }
.upi-pay-btn{ min-height:52px; font-size:1.02rem; }
.upi-apps.is-first .upi-apps-or a{ display:inline-block; padding:8px 2px; }
.upi-qr-more{ margin:0 0 12px; font-family:Inter, system-ui, sans-serif; }
.upi-qr-more summary{ cursor:pointer; padding:10px 0; font-size:.86rem; font-weight:600; color:var(--ink-soft); text-decoration:underline; text-underline-offset:3px; text-decoration-color:rgba(34,29,25,.3); list-style:none; }
.upi-qr-more summary::-webkit-details-marker{ display:none; }
.upi-qr-more[open] .upi-qr{ margin-top:6px; }
.upi-proof{ padding:clamp(22px, 3vw, 34px); display:grid; gap:4px; }
.upi-proof h3{ font-size:1.3rem; margin-bottom:8px; }
.upi-nudge{ margin:0 0 10px; padding-left:12px; border-left:3px solid var(--sage); font-size:.9rem; }
.upi-proof input[name="utr"]{ font:600 1.15rem/1 'IBM Plex Mono', monospace; letter-spacing:.12em; }
.upi-ocr-note{ display:block; margin-top:6px; font-size:.84rem; color:var(--text-muted); }
.upi-ocr-pick{ display:flex; flex-wrap:wrap; gap:6px 14px; margin-top:6px; }
.field-label{ display:block; margin-bottom:6px; font-weight:600; font-size:.9rem; }
/* The screenshot picker is a control, so it gets an outline: a dashed polaroid slot. */
.upi-shot{ position:relative; display:grid; place-items:center; min-height:132px; padding:14px; border:1.5px dashed rgba(34,29,25,.35); border-radius:4px; background:#fffdf8; cursor:pointer; text-align:center; }
.upi-shot:focus-within{ outline:2px solid var(--focus); outline-offset:2px; }
.upi-shot input{ position:absolute; inset:0; opacity:0; cursor:pointer; }
.upi-shot-empty{ font:700 1.2rem/1.3 'Caveat', cursive; color:var(--ink-soft); max-width:26ch; }
.upi-shot img{ max-height:240px; max-width:100%; border-radius:2px; box-shadow:0 8px 18px -10px rgba(59,47,34,.5); }
.upi-shot-status{ display:block; margin-top:6px; font-size:.84rem; color:var(--sage-800); min-height:1em; }

/* ---------- The scout: the kitten detective while the screenshot is read ---------- */
/* The kitten sits on the left and leans over the screenshot, like it's reading it. */
.upi-shot.is-scouting{ min-height:250px; }
.upi-shot.is-scouting img{ transform:translateX(34px); filter:saturate(.9); transition:transform .45s cubic-bezier(.2,.8,.3,1), filter .3s; }
.ocr-scout{ position:absolute; inset:0; pointer-events:none; overflow:hidden; border-radius:4px; transition:opacity .35s ease; }
.ocr-scout[hidden]{ display:none; }
.ocr-scout.is-leaving{ opacity:0; }
/* A soft cherry line reading the screenshot top to bottom */
.ocr-scan{ position:absolute; left:34%; right:6%; top:14%; height:2px; border-radius:2px; background:linear-gradient(90deg, transparent, rgba(193,68,60,.75), transparent); box-shadow:0 0 12px 2px rgba(193,68,60,.25); animation:ocr-scan 1.3s ease-in-out infinite alternate; }
.ocr-scout.is-found .ocr-scan, .ocr-scout.is-lost .ocr-scan{ opacity:0; transition:opacity .3s; }
@keyframes ocr-scan{ from{ top:14%; } to{ top:84%; } }

.scout-wrap{ position:absolute; left:-4px; bottom:-2px; width:196px; animation:scout-in .5s cubic-bezier(.2,.9,.3,1.25) both; }
@keyframes scout-in{ from{ transform:translate(-30px, 18px) scale(.9); opacity:0; } to{ transform:none; opacity:1; } }
.scout-kitty{ display:block; width:100%; height:auto; background:transparent; filter:drop-shadow(0 10px 12px rgba(59,47,34,.22)); }

/* Not sure (no UTR, or several numbers): a big "?" pops over the kitten's head and wobbles. */
.scout-ask{ position:absolute; left:52%; top:-6px; opacity:0; transform:scale(.3) rotate(-20deg); transform-origin:50% 90%;
  font:700 4rem/1 'Caveat', cursive; color:var(--cherry); text-shadow:0 3px 0 rgba(255,253,248,.9), 0 6px 14px rgba(59,47,34,.25); }
.ocr-scout.is-asking .scout-ask{ animation:scout-ask .5s cubic-bezier(.2,.9,.3,1.6) .15s forwards, scout-wobble 1.1s ease-in-out .65s infinite; }
@keyframes scout-ask{ to{ opacity:1; transform:scale(1) rotate(8deg); } }
@keyframes scout-wobble{ 0%, 100%{ opacity:1; transform:scale(1) rotate(8deg); } 50%{ opacity:1; transform:scale(1.06) rotate(-6deg) translateY(-3px); } }

/* The caption is handwriting on the page itself, not a card: a paper-coloured glow keeps it readable over the screenshot. */
.ocr-caption{ position:absolute; left:12px; top:10px; max-width:58%; transform:rotate(-2deg); transform-origin:left top;
  font:700 1.3rem/1.1 'Caveat', cursive; color:var(--ink); text-align:left;
  text-shadow:0 0 2px #fffdf8, 0 0 6px #fffdf8, 0 0 10px #fffdf8, 0 0 14px #fffdf8; }
.ocr-scout.is-found .ocr-caption{ color:var(--cherry); }
@media (max-width:400px){ .scout-wrap{ width:172px; } .upi-shot.is-scouting img{ transform:translateX(28px); } .ocr-caption{ font-size:1.18rem; } }

@media (prefers-reduced-motion: reduce){
  .ocr-scan, .scout-wrap{ animation:none !important; }
  .ocr-scan{ top:46%; }
  .upi-shot.is-scouting img{ transition:none; }
  .ocr-scout.is-asking .scout-ask{ animation:none; opacity:1; transform:rotate(8deg); }
}
.upi-help{ margin:8px 0 14px; padding-top:12px; position:relative; font-size:.88rem; }
.upi-help::before{ content:""; position:absolute; top:0; left:0; right:0; height:1.4px; background:var(--seam); }
.upi-help summary{ cursor:pointer; font-weight:600; }
.upi-help ul{ margin:10px 0 0; padding-left:18px; display:grid; gap:6px; color:var(--ink-soft); }
.upi-truth{ margin:14px 0 0 !important; }
@media (max-width:820px){ .upi-grid{ grid-template-columns:minmax(0, 1fr); } .upi-slip{ justify-self:center; } }

/* Step 3 and the order page states */
.co-done{ display:grid; justify-items:center; text-align:center; gap:10px; padding:10px 0 30px; }
.co-done h2{ font-size:clamp(1.6rem, 3vw, 2.2rem); }
.co-done > p{ max-width:56ch; color:var(--ink-soft); }
.o-checking .checking-note{ font:500 .92rem/1.6 'IBM Plex Mono', monospace; color:var(--ink); }
.rejection-note{ margin-bottom:10px; }
.rejection-note h2{ font-size:clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom:12px; }
.rejection-note .quote-note{ background:none; padding:0 0 0 14px; border-left:3px solid var(--cherry); font:700 1.35rem/1.4 'Caveat', cursive; color:#1f2a66; }
.rejection-note .quote-note .accent{ color:var(--cherry); }
.receipt-save{ margin:16px 0 0; }

/* Printed receipt: only .print-receipt (built by order.js on "Save receipt"), on plain white A4. */
.print-receipt{ display:none; }
@media print{
  @page{ size:A4; margin:16mm; }
  html, body, body:not(.is-admin){ background:#fff !important; }
  body::before, body::after{ display:none !important; }
  body > :not(.print-receipt){ display:none !important; }
  .print-receipt{ display:block; color:#1d1915; font:10.5pt/1.5 'IBM Plex Mono', ui-monospace, monospace; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .pr-head{ display:flex; justify-content:space-between; align-items:flex-end; padding-bottom:10pt; border-bottom:1.5pt solid #1d1915; }
  .pr-brand{ font:700 20pt/1 'Space Grotesk', sans-serif; }
  .pr-sub{ margin-top:4pt; font-size:9pt; color:#6b6158; }
  .pr-title{ text-align:right; text-transform:uppercase; letter-spacing:.14em; font-size:9pt; }
  .pr-no{ margin-top:4pt; font-size:13pt; font-weight:700; letter-spacing:.06em; }
  .pr-meta{ display:grid; grid-template-columns:repeat(2, 1fr); gap:12pt 24pt; margin:16pt 0; }
  .pr-meta dt{ text-transform:uppercase; letter-spacing:.12em; font-size:8pt; color:#6b6158; }
  .pr-meta dd{ margin:2pt 0 0; }
  .pr-lines{ width:100%; border-collapse:collapse; }
  .pr-lines th, .pr-lines td{ padding:6pt 0; border-bottom:.75pt dashed #b8ada0; font-weight:400; text-align:left; }
  .pr-lines td{ text-align:right; white-space:nowrap; }
  .pr-lines .is-total :is(th, td){ font-weight:700; border-bottom:1.5pt solid #1d1915; }
  .pr-note{ margin-top:14pt; padding:8pt 0; border-top:1pt solid #b8ada0; border-bottom:1pt solid #b8ada0; font-size:9.5pt; }
  .pr-foot{ margin-top:22pt; font-size:8.5pt; color:#6b6158; }
}
