/* ==========================================================================
   de.lu.lu, on top of the site starter's st.css (colours come from its tokens,
   set in site.json). The idea: the site is Carla's vision board, and the board
   turns over (concept D). Delulu, to her, is the self-belief that makes something
   real ("the delusional process that I was going through"), so the front pins up
   what she's manifesting and the back is her workbench, where it's made. Her
   signature, the colour-matched labels, runs through as small tags.

   Sections: fonts · type · header · buttons · the board (stage, front, back,
   the corner, phones, reduced motion) · the pieces · the labels · page parts ·
   contact · the "Buy here" lightbox · call to action · footer · every page fills
   the screen · easing in · small screens
   ========================================================================== */

/* ---------- fonts (SIL OFL, self-hosted) ---------- */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/fraunces-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("fonts/fraunces-italic.woff2") format("woff2"); }
@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("fonts/quicksand-normal.woff2") format("woff2"); }
@font-face { font-family: "Questrial"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/questrial-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("fonts/jost-normal.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/caveat-normal.woff2") format("woff2"); }

:root {
  /* Text in Quicksand, the menu (and Flatsome's "Alt font", .alt-font) in Questrial, headings
     still Fraunces (Sean, 1 November). Flatsome's own font settings are off: the fonts are here. */
  --dl-display: "Fraunces", Georgia, serif;
  --dl-sans: "Quicksand", system-ui, sans-serif;
  --dl-alt: "Questrial", "Century Gothic", system-ui, sans-serif;
  --dl-hand: "Caveat", "Comic Sans MS", cursive;
  /* the starter's own rules (the words in buttons, the phone menu) were still in its DM Sans */
  --st-font: var(--dl-sans);
  --dl-pink: #E36888;
  --dl-butter: #F2D886;
  --dl-blue: #3E6FB0;
  /* one shadow for every box on the page (Sean, 18 October). The things pinned to the board
     are objects in a scene, not boxes: they keep the shadows of what they are (paper, tape, card). */
  --dl-shadow: 0 1px 2px rgba(80, 20, 40, 0.06), 0 18px 36px -24px rgba(80, 20, 40, 0.45);
}

/* ---------- type ---------- */
body, p, li, td, .button { font-family: var(--dl-sans); }
.nav > li > a, .alt-font { font-family: var(--dl-alt); }
.alt-font { font-weight: 400; } /* Questrial has one weight: no made-up bold */
h1, h2, h3, .heading-font { font-family: var(--dl-display); font-weight: 800; font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.05; }
.dl-hand { font-family: var(--dl-hand); font-weight: 700; font-size: 1.6rem; color: var(--st-primary); }
.st-eyebrow, .section .col-inner > p.st-eyebrow { font-family: var(--dl-sans); font-weight: 600; letter-spacing: 0.18em; }
.st-eyebrow::before { background: var(--dl-pink); }

/* ---------- header ---------- */
/* the logo at full size: a little over half the 88px header (Matt, 17 October) */
#logo .st-logo-img { height: 48px; max-height: none; width: auto; max-width: none; }
/* The starter's .header-nav-main .nav selectors never match (it's one <ul>), so the menu is
   styled here: large enough to read at a glance, in Questrial (one weight, regular). */
#masthead ul.header-nav-main > li > a { font: 400 17px/1.2 var(--dl-alt); letter-spacing: 0.01em; color: var(--st-ink); padding-left: 2px; padding-right: 2px; }
#masthead ul.header-nav-main > li > a:hover,
#masthead ul.header-nav-main > li.current-menu-item > a,
#masthead ul.header-nav-main > li.current-page-ancestor > a { color: var(--st-primary); }
.header-button .button { font-size: 16px; padding: 0.5em 1.3em; }
.header-button .button:hover { transform: none; }   /* only its colour changes, no lift or tilt */
/* 850-919px: the menu and the header button didn't fit beside the logo and the button wrapped to a
   second line; a little less space between the items there (Sean, 1 November), and less again for
   SHOP NOW with its cart icon, 159px wide (2 November) */
@media (min-width: 850px) and (max-width: 919px) {
  #masthead #logo { margin-right: 14px; }
  #masthead ul.header-nav-main > li + li { margin-left: 5px; }
  #masthead ul.header-nav-main > li:not(:last-child) { margin-right: 5px; }
}
/* the phone menu: the starter's rule, in the menu's face */
.off-canvas .nav-vertical li a, .mobile-sidebar .nav > li > a { font-family: var(--dl-alt); font-weight: 400; }
/* Stuck, the bar floats over the board and the bands under it, so it gets a deliberate edge:
   frosted, a fine bottom line and a soft shadow (Matt, 19 October). Opaque without blur. */
.header-wrapper.stuck .header-main { background-color: var(--st-paper) !important; box-shadow: 0 1px 0 var(--st-line), 0 12px 28px -18px rgba(80, 20, 40, 0.45); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header-wrapper.stuck .header-main { background-color: rgba(255, 247, 240, 0.84) !important; -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
}
.nav-dropdown { box-shadow: var(--dl-shadow) !important; }

/* ---------- buttons ---------- */
.button { border-radius: 999px; font-family: var(--dl-sans); font-weight: 600; letter-spacing: 0.02em; }
.button:hover { transform: translateY(-2px) rotate(-1deg); }

/* ==========================================================================
   The board. The stage is the container every size on the board is measured
   against (cqw), so the board scales like a poster. With JavaScript (html.dl-js,
   set in the head) the two sides share one place and the back faces away; without
   it, and in the page editor, they sit one above the other.
   ========================================================================== */
.dl-board-wrap { padding: clamp(0.5rem, 2vw, 1.5rem) 0 0; }
.dl-stage { position: relative; container-type: inline-size; perspective: 2400px; }
.dl-flip { display: grid; gap: 2.5rem; }
.dl-face { position: relative; aspect-ratio: 1240 / 900; border-radius: 18px; }
.dl-phone, .dl-turn-row, .dl-curl { display: none; }

.dl-js .dl-lift { transform-style: preserve-3d; transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .4s ease-out; }
.dl-js .dl-stage.turning .dl-lift { animation: dl-lift 1.05s cubic-bezier(.4, 0, .2, 1); }
@keyframes dl-lift { 45% { translate: 0 -1.5cqw -260px; } }
.dl-js .dl-flip { gap: 0; transform-style: preserve-3d; transform: rotateY(var(--turn, 0deg)); transition: transform 1.05s cubic-bezier(.55, .05, .2, 1); }
.dl-js .dl-face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.dl-js .dl-back { transform: rotateY(180deg); }
/* the side facing away is hidden outright from the moment it's edge-on: Chrome painted the photo
   stacks (their own layers) through the board, mirrored, on the back (19 October) */
.dl-js .dl-face { transition: visibility 0s .5s; }
.dl-js .dl-flip:not(.is-back) .dl-back, .dl-js .dl-flip.is-back .dl-front { visibility: hidden; }
.dl-js .dl-turn-row { display: flex; justify-content: flex-end; margin-top: .4rem; }
.dl-js .dl-curl { display: block; }

/* a pinned thing: x, y and width are % of the board, r its tilt, i its turn to land */
.dl-pin { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); margin: 0; transform: rotate(calc(var(--r) * 1deg)); transition: transform .35s cubic-bezier(.2, .8, .2, 1.3), box-shadow .35s; }
.dl-front .dl-pin { animation: dl-pin-in .6s cubic-bezier(.2, .8, .2, 1.2) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
.dl-js .dl-back.play .dl-pin { animation: dl-pin-in .6s cubic-bezier(.2, .8, .2, 1.2) backwards; animation-delay: calc(500ms + var(--i, 0) * 55ms); }
@keyframes dl-pin-in { from { opacity: 0; transform: translateY(-30px) rotate(calc(var(--r) * 1deg - 8deg)) scale(1.08); } }
a.dl-pin { text-decoration: none !important; color: inherit; }
a.dl-pin:hover, a.dl-pin:focus-visible { transform: rotate(0deg) scale(1.06) translateY(-4px); z-index: 20; }
/* the small paper things lift, straighten and grow a little under the pointer, to read (Matt) */
@media (hover: hover) {
  .dl-note:hover, .dl-todo:hover, .dl-card:hover, .dl-paper:hover, .dl-loops:hover, .dl-luggage:hover, .dl-bcard:hover, .dl-masking:hover, .dl-headline:hover { transform: rotate(0deg) scale(1.15); z-index: 22; }
}
.dl-pin::before { content: ""; position: absolute; z-index: 3; }
.dl-pin.has-pin::before { top: -9px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 2px, var(--pc, #E36888) 3px 70%, #8E2E4F); box-shadow: 0 3px 4px rgba(0, 0, 0, .3); }
.dl-pin.has-tape::before { top: -12px; left: 50%; width: 38%; height: 24px; margin-left: -19%; background: rgba(255, 240, 200, .75); transform: rotate(-4deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); clip-path: polygon(2% 0, 98% 4%, 100% 100%, 0 96%); }
/* paddings in cqw, not %: a % padding is a share of the BOARD's width */

/* ---------- the front: pink felt ---------- */
.dl-front {
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.18) 0 1px, transparent 1.5px) 0 0 / 7px 7px,
    radial-gradient(circle at 70% 60%, rgba(176,61,98,.10) 0 1px, transparent 1.5px) 0 0 / 9px 9px,
    linear-gradient(160deg, #F7C3D1, #F2AFC2 60%, #EFA6BB);
  box-shadow: inset 0 0 0 14px #F9E4D6, inset 0 0 0 16px #E9CDBB, inset 0 10px 40px rgba(120,40,70,.18), 0 30px 60px -40px rgba(120,40,70,.6);
}

/* where everything sits: x, y and width in % of the board, r its tilt, i its turn to land. MANIFEST
   (front) and MAKE (back) are the centre of each side, large, in exactly the same place, so turning
   the board reads as a change of mode (Matt, 19 October); the logo card (the H1) sits above. */
/* MANIFEST in the middle, the logo card above it, and three photo stacks of the newest pieces,
   each with a clear lane to fan out into, away from the others: .s-p1 down the left edge, .s-p3
   down the right, .s-p2 to the right along the bottom (Matt, 19 October: fewer things, and
   nothing fanning into anything else). The bottom-right
   corner stays clear for the curl you turn the board by. */
.s-p1       { --x: 3.5;  --y: 4.5;  --w: 16; --r: -5; --i: 0; --fx: 0;   --fy: .45; }
.s-note1    { --x: 22.5; --y: 7;    --w: 12; --r: -5; --i: 1; --bg: #FFE680; }
.s-title    { --x: 36;   --y: 4.5;  --w: 30; --r: -2; --i: 2; }
.s-card     { --x: 69;   --y: 4.5;  --w: 27; --r: 3;  --i: 3; }
.s-letters  { --x: 17;   --y: 31;   --w: 66; --r: -2; --i: 4; }
.s-p3       { --x: 82;   --y: 31;   --w: 15; --r: 4;  --i: 5; --fx: 0;   --fy: .42; --dir: -1; }
.s-p2       { --x: 24;   --y: 47;   --w: 17; --r: -3; --i: 6; --fx: .6;  --fy: 0; }
.s-tally    { --x: 64;   --y: 47;   --w: 13; --r: 4;  --i: 7; --bg: #CFE8C7; }
.s-todo     { --x: 3.5;  --y: 68;   --w: 17; --r: -3; --i: 8; }
.s-note2    { --x: 24;   --y: 81;   --w: 12; --r: 6;  --i: 9; --bg: #FFC2D1; }
.s-insta    { --x: 42;   --y: 81;   --w: 18; --r: 3;  --i: 10; }
.s-ticket   { --x: 63;   --y: 72;   --w: 17; --r: -2; --i: 11; }
.dl-letters.s-letters span, .dl-letters.b-letters span { font-size: 6.5cqw; padding: .04em .2em; box-shadow: 0 5px 8px rgba(0,0,0,.22); }
.s-letters, .b-letters { justify-content: center; }
/* a little tighter than 2%, giving back the room the N and S gained (below), so MANIFEST still clears the stacks either side */
.dl-letters.s-letters { gap: 1.6%; }

.dl-polaroid { padding: .9cqw .9cqw 0; background: #fff; text-align: center; box-shadow: 0 10px 18px -8px rgba(80,20,40,.45); }
.dl-polaroid .ph { display: block; overflow: hidden; aspect-ratio: 1; background: #fff; }
.dl-polaroid img { width: 100%; height: 100%; object-fit: cover; object-position: var(--op, 50% 50%); transform: scale(var(--z, 1.25)); }
.dl-polaroid .cap { display: block; padding: .35em .2em .55em; font: 700 1.65cqw/1.1 var(--dl-hand); color: var(--st-ink); }
.dl-title { padding: 1.6cqw 2.2cqw 1.4cqw; background: #FFFDF9; text-align: center; clip-path: polygon(0 4%, 6% 0, 14% 3%, 25% 0, 37% 4%, 50% 1%, 62% 4%, 75% 0, 88% 3%, 100% 1%, 99% 96%, 90% 100%, 76% 97%, 62% 100%, 48% 96%, 35% 100%, 22% 97%, 10% 100%, 0 97%); filter: drop-shadow(0 8px 10px rgba(80,20,40,.25)); }
.dl-title h1 { margin: 0; line-height: 0; }
.dl-title img { width: 100%; height: auto; }
/* the H1's words, under the logo, looking as the tagline always did */
.dl-title h1 span { display: block; margin: .6em 0 0; font: 500 1.15cqw/1.4 var(--dl-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--st-primary); font-variation-settings: normal; }
.dl-letters { display: flex; gap: 2%; }
.dl-letters span { flex: none; padding: .05em .18em; font-size: 2.5cqw; font-weight: 800; line-height: 1.05; box-shadow: 0 3px 5px rgba(0,0,0,.18); }
.dl-letters span:nth-child(odd) { transform: rotate(-3deg); } .dl-letters span:nth-child(3n) { transform: rotate(4deg); }
/* the cut-out letters keep Jost, the text face they were cut and spaced in (MANIFEST and MAKE are the board's headings) */
.dl-f { font-family: var(--dl-display); } .dl-j { font-family: "Jost", "Futura", system-ui, sans-serif; } .dl-h { font-family: var(--dl-hand); }
/* Caveat leans out past its own width on the right: more room that side and a little less on the
   left, so its letters (the N and S, the K of MAKE) sit off their card's edges like the others */
.dl-letters span.dl-h { padding-left: .14em; padding-right: .4em; }
.dl-card { padding: 1.4em 1.8cqw 1em; border: 0; background: #fff repeating-linear-gradient(#fff 0 calc(1.5em - 1px), #C9DDF2 calc(1.5em - 1px) 1.5em); background-position: 0 1.15em; box-shadow: 0 10px 18px -8px rgba(80,20,40,.4); font: 700 1.7cqw/1.5em var(--dl-hand); color: #2B3A67; }
.dl-card::after { content: ""; position: absolute; left: 0; right: 0; top: 1.1em; height: 2px; background: #F3A1B3; }
.dl-card p { margin: 0; color: inherit; font: inherit; }
.dl-card cite { display: block; font-style: normal; font-size: .8em; text-align: right; color: var(--st-primary); }
.dl-note { aspect-ratio: 1; padding: 1.2cqw; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--bg); box-shadow: 0 12px 14px -10px rgba(80,20,40,.5); font: 700 1.75cqw/1.15 var(--dl-hand); color: #3A2E1F; }
.dl-todo { padding: 1.4cqw 1.6cqw; background: #FFFBEF; box-shadow: 0 10px 16px -8px rgba(80,20,40,.4); font: 600 1.7cqw/1.25 var(--dl-hand); color: var(--st-ink); }
.dl-todo b { display: block; margin-bottom: .3em; font: 700 .62em var(--dl-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--st-primary); }
.col-inner .dl-todo ul, .dl-todo ul { list-style: none; margin: 0; padding: 0; }
.col-inner .dl-todo li, .dl-todo li { margin: 0; color: inherit; }
.dl-todo li::before { content: "\2610\00a0"; }
.dl-todo li.done::before { content: "\2713\00a0"; color: var(--st-primary); font-family: var(--dl-sans); font-weight: 700; }
.dl-offcut .pinked { clip-path: polygon(0 0,5% 3%,10% 0,15% 3%,20% 0,25% 3%,30% 0,35% 3%,40% 0,45% 3%,50% 0,55% 3%,60% 0,65% 3%,70% 0,75% 3%,80% 0,85% 3%,90% 0,95% 3%,100% 0,97% 5%,100% 10%,97% 15%,100% 20%,97% 25%,100% 30%,97% 35%,100% 40%,97% 45%,100% 50%,97% 55%,100% 60%,97% 65%,100% 70%,97% 75%,100% 80%,97% 85%,100% 90%,97% 95%,100% 100%,95% 97%,90% 100%,85% 97%,80% 100%,75% 97%,70% 100%,65% 97%,60% 100%,55% 97%,50% 100%,45% 97%,40% 100%,35% 97%,30% 100%,25% 97%,20% 100%,15% 97%,10% 100%,5% 97%,0 100%,3% 95%,0 90%,3% 85%,0 80%,3% 75%,0 70%,3% 65%,0 60%,3% 55%,0 50%,3% 45%,0 40%,3% 35%,0 30%,3% 25%,0 20%,3% 15%,0 10%,3% 5%); }
.dl-ticket { display: block; padding: 1.4cqw 3.4cqw 1.4cqw 1.7cqw; border-radius: 6px; background: #241C1F; color: #fff !important; box-shadow: 0 12px 16px -10px rgba(0,0,0,.6); font: 500 1.2cqw/1.4 var(--dl-sans); }
.dl-ticket b { display: block; margin-bottom: .3em; font: 800 2.1cqw/1.05 var(--dl-display); color: var(--dl-pink); }
.dl-ticket::after { content: "→"; position: absolute; right: 7%; bottom: 8%; font-size: 1.4em; color: var(--dl-butter); }
.dl-hint { position: absolute; inset: 40% 20% auto; padding: 1rem; background: #fff; text-align: center; }

/* her Instagram, pinned up like everything else: a business card with a note in biro on the
   front, her handle in marker on a strip of masking tape on the back */
.dl-bcard { display: block; aspect-ratio: 85 / 52; padding: 1.3cqw 1.5cqw; background: #FFFDF8 linear-gradient(120deg, rgba(0,0,0,.025), transparent 40%); box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 10px 16px -8px rgba(80,20,40,.45); color: var(--st-ink) !important; }
.dl-bc-brand { display: block; font: italic 800 2.2cqw/1 var(--dl-display); font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--st-primary); }
.dl-bc-line { display: block; margin-top: 1.4cqw; font: 600 .78cqw/1 var(--dl-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--st-muted); }
.dl-bc-handle { display: block; margin-top: .35cqw; font: 500 1.15cqw/1.2 var(--dl-sans); letter-spacing: .01em; }
.dl-biro { position: absolute; right: 6%; bottom: 7%; display: flex; align-items: center; gap: .4cqw; transform: rotate(-7deg); color: #2B3A67; font: 700 1.55cqw/1 var(--dl-hand); }
.dl-doodle { display: block; flex: none; width: 2.6cqw; height: auto; }
.dl-masking { display: flex; align-items: center; justify-content: center; gap: .8cqw; padding: .8cqw 1.6cqw; background: rgba(238, 224, 192, .93); clip-path: polygon(0 8%, 2% 0, 4% 9%, 6% 1%, 50% 4%, 94% 0, 96% 8%, 98% 1%, 100% 7%, 99% 50%, 100% 93%, 98% 100%, 96% 92%, 94% 99%, 50% 96%, 6% 100%, 4% 91%, 2% 99%, 0 92%, 1% 50%); filter: drop-shadow(0 3px 3px rgba(10,30,25,.35)); color: #2A2420 !important; font: 700 1.6cqw/1.2 var(--dl-hand); text-align: center; }
.dl-masking .dl-doodle { width: 2.4cqw; }
.dl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the newest pieces: a little stack of polaroids that fans out on hover or focus */
/* every card in one grid cell, so all of them are as tall as the longest caption (sized to the
   top card, a longer name behind it ran off its card) */
.dl-stack { z-index: 2; display: grid; }
.dl-stack:hover, .dl-stack:has(:focus-visible) { z-index: 25; }
.dl-stack .dl-polaroid { grid-area: 1 / 1; position: relative; display: block; color: inherit; text-decoration: none !important; transition: transform .45s cubic-bezier(.2,.8,.2,1.15), box-shadow .3s; }
.dl-stack .dl-polaroid.behind { z-index: calc(-1 * var(--k)); transform: rotate(calc(var(--k) * 5deg * var(--dir, 1))) translate(calc(var(--k) * 5% * var(--dir, 1)), calc(var(--k) * -2%)); }
/* fanned out along the stack's own lane: --fx/--fy are steps in card widths/heights */
.dl-stack:hover .dl-polaroid.behind, .dl-stack:has(:focus-visible) .dl-polaroid.behind { transform: translate(calc(var(--k) * 100% * var(--fx, .62)), calc(var(--k) * 100% * var(--fy, 0))) rotate(calc(var(--k) * 3deg * var(--dir, 1))); }
.dl-stack .dl-polaroid { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
/* the fanned-out card under the pointer comes to the front, lifting a little (dl.js) */
.dl-stack .dl-polaroid.behind.dl-up { z-index: 4; box-shadow: 0 24px 30px -14px rgba(80,20,40,.6); scale: 1.04; }
.dl-stack .dl-polaroid { transition: transform .45s cubic-bezier(.2,.8,.2,1.15), box-shadow .3s, scale .25s ease-out; }
.dl-stack .dl-polaroid:hover, .dl-stack .dl-polaroid:focus-visible { box-shadow: 0 22px 28px -14px rgba(80,20,40,.55); }
.dl-stack .has-pin::before { content: ""; position: absolute; z-index: 3; top: -9px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 2px, var(--pc, #E36888) 3px 70%, #8E2E4F); box-shadow: 0 3px 4px rgba(0,0,0,.3); }
@media (prefers-reduced-motion: reduce) { .dl-stack .dl-polaroid { transition: none; } }

/* her tally (she types the number; the shop only knows its online sales) */
.dl-tally { flex-direction: column; gap: .2cqw; }
.dl-tally .dl-marks { width: 55%; color: #3A5A33; }
.dl-tally b { font: 700 3.8cqw/1 var(--dl-hand); color: #2A3D26; }
.dl-tally span { font-size: 1.4cqw; line-height: 1.1; }

/* ---------- the back: her workbench, on a cutting mat ---------- */

.dl-back {
  background:
    linear-gradient(rgba(255,255,255,.26) 0 1px, transparent 1px) 0 16px / 100% 10cqw,
    linear-gradient(90deg, rgba(255,255,255,.26) 0 1px, transparent 1px) 16px 0 / 10cqw 100%,
    linear-gradient(rgba(255,255,255,.09) 0 1px, transparent 1px) 0 16px / 100% 2.5cqw,
    linear-gradient(90deg, rgba(255,255,255,.09) 0 1px, transparent 1px) 16px 0 / 2.5cqw 100%,
    linear-gradient(45deg, transparent calc(50% - 1px), rgba(255,255,255,.12) 50%, transparent calc(50% + 1px)),
    radial-gradient(ellipse at 25% 15%, rgba(255,255,255,.10), transparent 55%),
    #2D6B5B;
  box-shadow: inset 0 0 0 14px #F9E4D6, inset 0 0 0 16px #E9CDBB, inset 0 10px 40px rgba(0,30,20,.35), 0 30px 60px -40px rgba(20,50,40,.7);
}

.b-pattern1 { --x: 3.5; --y: 5; --w: 24; --r: -3; --i: 0; }
.b-headline { --x: 31; --y: 4; --w: 32; --r: -1.5; --i: 1; }
.b-photo1   { --x: 66; --y: 4; --w: 12; --r: 4; --i: 2; }
.b-photo2   { --x: 81; --y: 6; --w: 12; --r: -5; --i: 3; }
.b-paper    { --x: 3; --y: 32; --w: 24; --r: -2; --i: 4; }
.b-letters  { --x: 17; --y: 32; --w: 66; --r: -2; --i: 5; }
.b-pattern2 { --x: 68; --y: 28; --w: 15; --r: 6; --i: 6; }
.b-pins     { --x: 88.5; --y: 40; --w: 7; --r: 0; --i: 7; }
.b-todo     { --x: 20; --y: 60; --w: 15; --r: -4; --i: 8; }
.b-fabric1  { --x: 37; --y: 58; --w: 9; --r: 9; --i: 9; }
.b-fabric2  { --x: 45; --y: 64; --w: 8; --r: -8; --i: 10; }
.b-labels   { --x: 55; --y: 55; --w: 32; --r: -2; --i: 11; }
.b-desk     { --x: 4; --y: 70; --w: 12; --r: -3; --i: 12; }
.b-making   { --x: 36; --y: 77; --w: 15; --r: 5; --i: 13; }
.b-insta    { --x: 54; --y: 78; --w: 19; --r: 2; --i: 14; }
.b-shears   { --x: 75; --y: 81; --w: 20; --r: -12; --i: 15; }
.b-tape     { --x: 36; --y: 91; --w: 38; --r: -2; --i: 16; }

.dl-mat-nums { position: absolute; display: flex; color: rgba(255,255,255,.5); font: 500 .8cqw/1 var(--dl-sans); pointer-events: none; }
.dl-mat-nums.across { top: 1.7cqw; left: 16px; right: 16px; }
.dl-mat-nums.across span { flex: none; width: 10cqw; padding-left: .3cqw; }
.dl-mat-nums.down { top: 16px; bottom: 16px; left: 1.7cqw; flex-direction: column; }
.dl-mat-nums.down span { flex: none; height: 10cqw; padding-top: .3cqw; }
.dl-thread { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 2px 1px rgba(10,30,25,.35)); }
.dl-pattern svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 6px 6px rgba(10,30,25,.35)); }
.dl-pattern text { font-family: var(--dl-hand); fill: #6B4A2E; }
.dl-headline { padding: 1.4cqw 2.4cqw 1.2cqw; background: #FFF7F0; clip-path: polygon(0 6%, 8% 0, 19% 5%, 33% 1%, 47% 5%, 61% 0, 76% 4%, 90% 0, 100% 3%, 99% 94%, 87% 100%, 72% 95%, 56% 100%, 41% 95%, 26% 100%, 12% 96%, 0 100%); filter: drop-shadow(0 8px 10px rgba(10,30,25,.4)); }
.dl-headline h2 { margin: 0; max-width: none; font: 800 3.9cqw/1 var(--dl-display); font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--st-primary); }
.dl-headline p { margin: .5cqw 0 0; font: 700 1.6cqw var(--dl-hand); color: var(--st-muted); text-align: right; }
.dl-paper { margin: 0; padding: 1.4em 1.8cqw 1em 2.6cqw; border: 0; background: #FFFDF6 repeating-linear-gradient(#FFFDF6 0 calc(1.5em - 1px), #CFE0F1 calc(1.5em - 1px) 1.5em); background-position: 0 1.15em; box-shadow: 0 10px 18px -8px rgba(10,30,25,.5); font: 700 1.6cqw/1.5em var(--dl-hand); color: #2B3A67; }
.dl-paper::after { content: ""; position: absolute; top: 0; bottom: 0; left: 1.7cqw; width: 2px; background: #F3A1B3; }
.dl-paper p { margin: 0; color: inherit; font: inherit; }
.dl-paper cite { display: block; font-style: normal; text-align: right; color: var(--st-primary); }
.dl-back .dl-polaroid { box-shadow: 0 10px 18px -8px rgba(10,30,25,.5); }
.dl-back .dl-polaroid .cap { font-size: 1.45cqw; }

/* her signature: a card of loop labels, one for each shade */
.dl-loops { padding: 2.2cqw 1.6cqw 1.2cqw; background: #FBF6EC; box-shadow: 0 10px 18px -8px rgba(10,30,25,.5); }
.dl-loops .strip { display: flex; justify-content: space-between; }
.dl-loops .loop { flex: none; width: 1.75cqw; height: 6cqw; border-radius: .35cqw .35cqw 0 0; background: linear-gradient(rgba(0,0,0,.14), transparent 9%), linear-gradient(transparent 82%, rgba(0,0,0,.08) 82%), var(--c); box-shadow: 0 2px 3px rgba(0,0,0,.18); transform: rotate(var(--lr)); display: flex; align-items: center; justify-content: center; }
.dl-loops .loop b { writing-mode: vertical-rl; transform: rotate(180deg); font: italic 700 1cqw/1 var(--dl-display); font-variation-settings: "SOFT" 100; color: #fff; text-shadow: 0 0 2px rgba(120,80,0,.35); }
.dl-loops .loop.pale b { color: #8A6A12; text-shadow: none; }
.dl-loops .tape { position: absolute; left: 3%; right: 3%; top: 1.5cqw; height: 2.2cqw; background: rgba(255, 240, 200, .8); box-shadow: 0 1px 2px rgba(0,0,0,.1); clip-path: polygon(0 8%, 100% 0, 99% 100%, 1% 92%); }
.dl-loops p { margin: .8cqw 0 0; font: 700 1.55cqw/1.2 var(--dl-hand); color: #3A2E1F; }
.dl-back .dl-todo { box-shadow: 0 10px 16px -8px rgba(10,30,25,.5); }
.dl-offcut { filter: drop-shadow(0 6px 7px rgba(10,30,25,.4)); }
/* the photo is set on the element itself, not through a variable: a url() in a variable resolves
   against this stylesheet, which breaks in a static copy (share.sh) */
.dl-offcut span { display: block; aspect-ratio: var(--ar, 1); background-position: var(--bp, center); background-size: var(--bs, cover); background-repeat: no-repeat; }

/* her tools, drawn */
.dl-tool svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 6px 5px rgba(10,30,25,.4)); }
.dl-tape-measure { display: flex; align-items: center; filter: drop-shadow(0 5px 4px rgba(10,30,25,.4)); }
.dl-tape-measure .case { flex: none; width: 5.5cqw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #fff 0 12%, #F7C3D1 13% 16%, transparent 17%), radial-gradient(circle at 35% 30%, #F49AB3, #E36888 55%, #B03D62); position: relative; z-index: 1; }
/* half and whole marks only: millimetre marks (a 1px line every 2.5px) flickered and seemed to
   crawl as the board tilts towards the pointer, being redrawn against the pixels at every angle (Sean, 1 November) */
.dl-tape-measure .tp { flex: 1; height: 2.1cqw; margin-left: -.6cqw; display: flex; align-items: flex-end; overflow: hidden; background:
    repeating-linear-gradient(90deg, #3A2E1F 0 1.5px, transparent 1.5px 1cqw) 0 0 / 100% 28% no-repeat,
    repeating-linear-gradient(90deg, #3A2E1F 0 2px, transparent 2px 2cqw) 0 0 / 100% 46% no-repeat,
    #FFFCF2; }
.dl-tape-measure .tp span { flex: none; width: 2cqw; font: 600 .78cqw/1 var(--dl-sans); color: #3A2E1F; padding: 0 0 .25cqw .15cqw; }
.dl-tape-measure .tp span:nth-child(10n) { color: #C0392B; }
.dl-tape-measure .end { flex: none; width: .7cqw; height: 2.5cqw; background: linear-gradient(90deg, #C9CDD2, #8E959C); border-radius: 0 2px 2px 0; }

/* the luggage tag: what's on the bench this week */
.dl-luggage { padding: 1.2cqw 1.4cqw 1.2cqw 3.2cqw; background: #D9B98C; color: #3A2E1F; clip-path: polygon(16% 0, 100% 0, 100% 100%, 16% 100%, 0 75%, 0 25%); filter: drop-shadow(0 6px 6px rgba(10,30,25,.4)); font: 700 1.5cqw/1.2 var(--dl-hand); }
.dl-luggage::after { content: ""; position: absolute; left: 1cqw; top: 50%; width: 1.2cqw; height: 1.2cqw; margin-top: -.6cqw; border-radius: 50%; background: #2D6B5B; box-shadow: 0 0 0 .3cqw #F2E3C9; }
.dl-luggage b { display: block; font: 700 .9cqw var(--dl-sans); letter-spacing: .18em; text-transform: uppercase; color: #6B4A2E; margin-bottom: .3em; }
.dl-luggage .dl-stamp { position: static; display: table; margin-top: .5em; transform: rotate(-4deg); }

/* the photo we'll ask her for, and anything that's our guess until she says */
.dl-standin .ph { display: flex; align-items: center; justify-content: center; padding: 1cqw; border: 2px dashed #C9B8A6; background: repeating-linear-gradient(-45deg, #FBF6EC 0 .8cqw, #F3EADB .8cqw 1.6cqw); color: var(--st-muted); font: 500 1.05cqw/1.3 var(--dl-sans); }
.dl-stamp { position: absolute; top: 18%; right: -6%; transform: rotate(12deg); padding: .15em .45em; border: 2px solid #B03D62; border-radius: 4px; background: rgba(255,255,255,.88); color: #B03D62; font: 800 .85cqw/1.2 var(--dl-sans); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }

/* ---------- the corner you turn it by ---------- */
/* the bottom-right corner is peeled up: past the fold you see the page behind the board, and on
   the fold the board's other side */
.dl-curl { position: absolute; right: 0; bottom: 0; z-index: 30; width: 6.5cqw; aspect-ratio: 1; padding: 0; margin: 0; min-height: 0; border: 0; border-radius: 0 0 18px 0; background: linear-gradient(to top left, var(--st-paper) 0 50%, transparent 50%); cursor: pointer; transition: width .4s cubic-bezier(.2,.8,.2,1.25); }
.dl-curl:hover, .dl-board-wrap:has(.dl-turn:hover) .dl-face:not([inert]) .dl-curl { width: 10cqw; }
.dl-curl i { position: absolute; inset: 0; filter: drop-shadow(-3px -3px 5px rgba(60,20,35,.28)); }
.dl-curl i::before { content: ""; position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 0 100%); border-top-left-radius: 30%; background: var(--flap); }
.dl-front .dl-curl { --flap:
  linear-gradient(rgba(255,255,255,.18) 0 1px, transparent 1px) 0 0 / 100% 1.25cqw,
  linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, transparent 1px) 0 0 / 1.25cqw 100%,
  linear-gradient(135deg, #24584B 10%, #33806C 40%, #5FAE95 50%); }
.dl-back .dl-curl { --flap: linear-gradient(135deg, #D9869E 10%, #EFA6BB 40%, #FBD5E0 50%); }

/* the turn button, under the board */
.dl-turn { display: inline-flex; align-items: center; gap: .3em; margin: 0; padding: .2em .6em; min-height: 0; border: 0; background: none; color: var(--st-primary); font: 700 1.7rem/1 var(--dl-hand); text-transform: none; letter-spacing: 0; cursor: pointer; transform: rotate(-3deg); }
.dl-turn svg { width: 1.3em; height: 1.3em; transition: transform .5s; }
.dl-turn:hover svg { transform: rotate(-35deg); }

/* ---------- phones: no board, an opening made from its pieces (Matt, 19 October) ---------- */
@media (max-width: 820px) {
  .dl-stage, .dl-js .dl-turn-row { display: none; }
  .dl-phone { display: block; padding: .6rem 0 .4rem; }
  /* the little board: two faces in one place; with JavaScript the mat faces away until it turns */
  .dl-mini-flip { display: grid; perspective: 1400px; }
  .dl-felt, .dl-mat { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; }
  .dl-mat { display: none; }
  .dl-js .dl-mini-flip { transform-style: preserve-3d; transform: perspective(1400px) rotateY(var(--turn, 0deg)); transition: transform .9s cubic-bezier(.55, .05, .2, 1); cursor: pointer; }
  .dl-js .dl-felt, .dl-js .dl-mat { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
  .dl-js .dl-mat { display: flex; transform: rotateY(180deg); }
  .dl-mat { padding: 1.6rem 1rem 1.8rem; border-radius: 16px;
    background:
      linear-gradient(rgba(255,255,255,.24) 0 1px, transparent 1px) 0 10px / 100% 40px,
      linear-gradient(90deg, rgba(255,255,255,.24) 0 1px, transparent 1px) 10px 0 / 40px 100%,
      linear-gradient(rgba(255,255,255,.08) 0 1px, transparent 1px) 0 10px / 100% 10px,
      linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px) 10px 0 / 10px 100%,
      #2D6B5B;
    box-shadow: inset 0 0 0 8px #F9E4D6, inset 0 0 0 9px #E9CDBB; }
  .dl-phone .dl-mat .dl-letters span { font-size: clamp(1.8rem, 10vw, 2.6rem); }
  .dl-phone .dl-mat .dl-headline { width: 88%; margin: 0 auto; padding: 1rem 1.2rem .8rem; transform: rotate(-1.5deg); }
  .dl-phone .dl-mat .dl-headline h2 { font-size: 2rem; }
  .dl-phone .dl-mat .dl-headline p { font-size: 1.15rem; margin-top: .2rem; }
  .dl-js .dl-mini-turn { display: flex; margin: .3rem 0 0 auto; font-size: 1.45rem; }
  .dl-mini-turn { display: none; }
  .dl-felt { padding: 1.6rem 1rem 1.8rem; border-radius: 16px;
    background:
      radial-gradient(circle at 20% 30%, rgba(255,255,255,.18) 0 1px, transparent 1.5px) 0 0 / 7px 7px,
      radial-gradient(circle at 70% 60%, rgba(176,61,98,.10) 0 1px, transparent 1.5px) 0 0 / 9px 9px,
      linear-gradient(160deg, #F7C3D1, #F2AFC2 60%, #EFA6BB);
    box-shadow: inset 0 0 0 8px #F9E4D6, inset 0 0 0 9px #E9CDBB; }
  .dl-phone .dl-letters { justify-content: center; gap: .25rem; margin-bottom: 1.1rem; }
  .dl-phone .dl-letters span { font-size: clamp(1.4rem, 7vw, 2rem); }
  .dl-phone .dl-title { width: 88%; margin: 0 auto; padding: 1rem 1.1rem .9rem; transform: rotate(-1.5deg); }
  .dl-phone .dl-title h1 span { font-size: .7rem; letter-spacing: .24em; }
  .dl-phone-quote { margin: 1.6rem .4rem 1.2rem; padding: 0; border: 0; }
  .dl-phone-quote p { margin: 0; font: italic 400 1.25rem/1.45 var(--dl-display); color: var(--st-ink); }
  .col-inner ul.dl-strip, ul.dl-strip { display: flex; gap: .9rem; margin: 0 -15px .6rem; padding: .6rem 15px 1.2rem; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 15px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  ul.dl-strip::-webkit-scrollbar { display: none; }
  ul.dl-strip li { flex: 0 0 56%; margin: 0; scroll-snap-align: start; }
  /* as tall as its slot, so every card is as tall as the longest caption, as in the board's stacks */
  .dl-strip .dl-polaroid { position: relative; display: block; height: 100%; padding: .5rem .5rem 0; color: inherit; text-decoration: none !important; box-shadow: var(--dl-shadow); }
  .dl-strip .dl-polaroid .cap { font-size: 1.15rem; }
  .dl-swipe { display: none; }
  .dl-js .dl-swipe { display: block; margin: 0 0 -.2rem; text-align: right; font: 700 1.15rem/1 var(--dl-hand); color: var(--st-primary); transition: opacity .4s; }
  .dl-swipe span { display: inline-block; animation: dl-swipe 1.6s ease-in-out infinite; }
  @keyframes dl-swipe { 50% { transform: translateX(5px); } }
  .dl-swipe.gone { opacity: 0; }
  .dl-dots { display: none; }
  .dl-js .dl-dots { display: flex; justify-content: center; gap: 7px; margin: -.3rem 0 1.1rem; }
  .dl-dots i { width: 7px; height: 7px; border-radius: 50%; background: #E9CDBB; transition: background .25s, transform .25s; }
  .dl-dots i.on { background: var(--st-primary); transform: scale(1.25); }
  .dl-phone-all { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: .2rem 0 1.4rem; padding: .85rem 1.2rem; border-radius: 999px; background: var(--st-primary); color: #fff !important; font: 600 1rem/1.2 var(--dl-sans); letter-spacing: .02em; text-decoration: none !important; }
  .dl-phone-all:hover, .dl-phone-all:focus-visible { background: var(--st-primary-dark, #8E2E4F); }
  .dl-phone-ig { margin: .2rem 0 0; }
  .dl-phone-ig a { display: inline-flex; align-items: center; gap: .55rem; color: var(--st-ink) !important; text-decoration: none !important; font: 700 1.2rem/1.25 var(--dl-hand); }
  .dl-phone-ig b { font: 600 .92rem var(--dl-sans); color: var(--st-primary); }
  .dl-phone-ig .dl-doodle { width: 1.9rem; color: #2B3A67; }
}

/* reduced motion: no turning, the sides fade */
/* tablets upright get the phone opening too (the board's poster-sized words would be too small), but
   at a phone's proportions: the little board and the button as wide as a large phone, about three
   cards in view, instead of everything stretched to the full width (Sean, 1 November) */
@media (min-width: 550px) and (max-width: 820px) {
  .dl-mini, .dl-phone-quote, .dl-phone-all, .dl-phone-ig { max-width: 560px; margin-left: auto; margin-right: auto; }
  ul.dl-strip li { flex-basis: min(56%, 260px); }
}

@media (prefers-reduced-motion: reduce) {
  .dl-js .dl-mini-flip { transform: none !important; transition: none; }
  .dl-swipe span { animation: none; }
  .dl-js .dl-mat { transform: none; }
  .dl-js .dl-felt, .dl-js .dl-mat { transition: opacity .35s, visibility .35s; }
  .dl-js .dl-mini-flip:not(.is-back) .dl-mat, .dl-js .dl-mini-flip.is-back .dl-felt { opacity: 0; visibility: hidden; }
  .dl-js .dl-lift, .dl-js .dl-flip { transform: none !important; transition: none; animation: none !important; }
  .dl-js .dl-back { transform: none; }
  .dl-js .dl-face { transition: opacity .35s, visibility .35s; }
  .dl-js .dl-flip:not(.is-back) .dl-back, .dl-js .dl-flip.is-back .dl-front { opacity: 0; visibility: hidden; }
  .dl-pin, .dl-front .dl-pin, .dl-js .dl-back.play .dl-pin { animation: none; }
}


/* ---------- the pieces: Flatsome's Portfolio (inc/pieces.php) ----------
   Where the pieces are listed (the collection's grid, .dl-showcase; a category's page; a piece's
   related ones): each piece one white card, the words padded under the photo, its category above
   its name, as the collection's cards were. Only there: a Portfolio element Carla adds to a page of
   her own looks as Flatsome made it. */
:is(.dl-showcase, .portfolio-archive .row) > .col { padding-bottom: 24px; }
:is(.dl-showcase, .portfolio-archive, .portfolio-related) .col-inner { height: 100%; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: var(--dl-shadow); }
:is(.dl-showcase, .portfolio-archive, .portfolio-related) .col-inner > a { color: inherit; text-decoration: none !important; }
:is(.dl-showcase, .portfolio-archive, .portfolio-related) .box-image img { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
:is(.dl-showcase, .portfolio-archive, .portfolio-related) a:hover .box-image img { transform: scale(1.05); }
:is(.dl-showcase, .portfolio-archive, .portfolio-related) .box-text { padding: 1.1rem 1.25rem 1.25rem; border-top: 1px solid var(--st-line); text-align: left; }
:is(.dl-showcase, .portfolio-archive, .portfolio-related) .box-text-inner { display: flex; flex-direction: column-reverse; }
:is(.dl-showcase, .portfolio-archive, .portfolio-related) .portfolio-box-category { margin: 0; font: 600 .75rem/1.4 var(--dl-sans); letter-spacing: .16em; color: var(--st-primary); opacity: 1; }
:is(.dl-showcase, .portfolio-archive, .portfolio-related) .portfolio-box-category .show-on-hover { opacity: 1; transform: none; }
:is(.dl-showcase, .portfolio-archive, .portfolio-related) .portfolio-box-title { margin: .3rem 0 0; font: 800 1.15rem/1.2 var(--dl-display); font-variation-settings: "SOFT" 100, "WONK" 1; text-transform: none; letter-spacing: 0; color: var(--st-ink); }
/* a category's page: its name as the other pages' headings */
.portfolio-archive .page-title-inner { padding-top: 40px; padding-bottom: 8px; }
.portfolio-archive .page-title h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; text-transform: none; }
/* every card one height, so the filter's layout (Isotope's masonry) keeps them in rows, and a piece's
   related ones line up in theirs: a set number of lines for a name (a longer one ends in "…"; its
   page has it in full). The collection's cards: two lines (a phone has one per row, so no need).
   The related ones are narrower: three lines, and four on a phone, where they're two across. */
.portfolio-related .portfolio-box-title { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; height: 4.8em; font-size: 1rem; line-height: 1.2; }   /* Flatsome's is 1.3: the heights are lines of 1.2 */
@media (min-width: 550px) {
  .dl-showcase .portfolio-box-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 2.4em; line-height: 1.2; }
  .portfolio-related .portfolio-box-title { -webkit-line-clamp: 3; height: 3.6em; font-size: 1.15rem; }
}
/* her categories to pick from (the collection's filter only): pills like the site's outline buttons, the chosen one filled */
.has-filtering:has(.dl-showcase) .filter-nav { gap: 8px; margin-bottom: 1.2rem; }
.has-filtering:has(.dl-showcase) .filter-nav > li { margin: 0; }
.has-filtering:has(.dl-showcase) .filter-nav > li > a { padding: .45em 1.1em; border: 2px solid var(--st-primary); border-radius: 999px; background: transparent; color: var(--st-primary); font: 600 15px/1.3 var(--dl-sans); letter-spacing: .02em; text-transform: none; text-decoration: none; }
.has-filtering:has(.dl-showcase) .filter-nav > li.active > a, .has-filtering:has(.dl-showcase) .filter-nav > li > a:hover { background: var(--st-primary); color: #fff; }

/* a piece's page: its photos on the left, Flatsome's Slider (one in the middle, the ones either side
   peeking in, dimmed; the Shadow style looked odd, Sean, 2 November); on the
   right its name, her line about it, Buy here, her words and the share icons (inc/pieces.php puts
   her words there); the related pieces under them. A phone has the photos first, then the rest. */
.portfolio-single-page .portfolio-top { padding-top: 40px; }
@media (min-width: 850px) {
  .portfolio-single-page .portfolio-top .large-3 { flex-basis: 40%; max-width: 40%; }
  .portfolio-single-page .portfolio-top .large-9 { flex-basis: 60%; max-width: 60%; }
  .portfolio-single-page .portfolio-summary { position: sticky; top: 120px; }
}
.portfolio-single-page .featured_item_cats { font: 600 .78rem/1.4 var(--dl-sans); letter-spacing: .18em; text-transform: uppercase; }
.portfolio-single-page .featured_item_cats a { color: var(--st-primary); }
.portfolio-single-page .portfolio-summary h1 { margin-bottom: .8rem; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.05; text-transform: none; }
.portfolio-single-page .portfolio-summary p { font-size: 1.1rem; }
.portfolio-single-page .portfolio-summary .dl-buy { margin: .4rem 0 1.4rem; }
.portfolio-single-page .portfolio-summary .dl-words p { font-size: 1rem; }
/* the share icons in the site's berry (grey looked switched off), with what they're for under them
   in her hand, as "turn it over" is */
.portfolio-single-page .portfolio-share { margin-top: .4rem; }
.portfolio-single-page .portfolio-share .social-icons a { color: var(--st-primary); opacity: 1; }
.portfolio-single-page .portfolio-share .social-icons a:hover { color: var(--st-primary-dark, #8E2E4F); }
.portfolio-single-page .next-prev-nav:not(:has(a)) { display: none; }   /* the only piece in its category: nothing either side */
.portfolio-single-page .portfolio-share::after { content: "Share on social media"; display: block; margin-top: .3rem; font: 700 1.4rem/1.1 var(--dl-hand); color: var(--st-primary); }
.portfolio-inner > .slider-wrapper .slider .img-inner { overflow: hidden; border-radius: 16px; background: #fff; }
.portfolio-inner > .slider-wrapper .slider .flickity-slider > * { padding: 0 6px; transition: opacity .3s; }   /* a gap between the photos */
.portfolio-inner > .slider-wrapper .slider .flickity-slider > :not(.is-selected) { opacity: .55; }   /* the ones either side, a step back */
.portfolio-inner > .slider-wrapper .slider .flickity-page-dots .dot { border: 0; background: #E9CDBB; opacity: 1; }   /* the phone's swipe row's dots */
.portfolio-inner > .slider-wrapper .slider .flickity-page-dots .dot.is-selected { background: var(--st-primary); }

/* ---------- page parts ---------- */
/* her promise, like a sewn-in care label */
.dl-promise { position: relative; margin-top: 1.6rem; padding: 1rem 1.3rem 1rem 1.5rem; background: #fff; border-radius: 4px; box-shadow: var(--dl-shadow); border-left: 6px solid var(--dl-pink); }
.dl-promise::before { content: ""; position: absolute; inset: 5px 5px 5px 0; border: 1.5px dashed #EAC3CF; border-left: 0; border-radius: 3px; pointer-events: none; }
.col-inner .dl-promise p { margin: 0; color: var(--st-ink); }
.dl-promise b { display: block; margin-bottom: .2rem; font: 700 .78rem var(--dl-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--st-primary); }
/* her letter on ruled paper: a line of words, the gap between paragraphs and the top margin are each one rule, so the
   words stay on the lines all the way down; the rules have soft edges, as a hard 1px line breaks into dashes on the tilted paper.
   Taped up at the top like the reviews (their tape, below) */
.dl-letter { --dl-rule: 2.1rem; position: relative; padding: var(--dl-rule) clamp(1.4rem, 3.5vw, 2.6rem) clamp(1.4rem, 3.5vw, 2.6rem); background: #fff repeating-linear-gradient(transparent 0 calc(var(--dl-rule) - 2px), #F6DCE3 calc(var(--dl-rule) - 1px), transparent var(--dl-rule)) 0 -.45rem; box-shadow: var(--dl-shadow); transform: rotate(-.6deg); }
.dl-letter p { margin: 0 0 var(--dl-rule); line-height: var(--dl-rule); }
.dl-polaroid-static { padding: .7rem .7rem 0; background: #fff; box-shadow: var(--dl-shadow); transform: rotate(3deg); }
.dl-polaroid-static .img { margin: 0 !important; }
.dl-polaroid-static p { margin: 0; padding: .4rem 0 .6rem; text-align: center; font: 700 1.4rem var(--dl-hand); color: var(--st-ink); }
.st-photo img { box-shadow: var(--dl-shadow); }
.section .col-inner > p.st-lede { max-width: 60ch; }

/* ---------- reviews (home): Flatsome's testimonials, as notes taped up beside each other ---------- */
.testimonial-box.dl-review { position: relative; width: auto; margin: 18px 4px 8px; padding: 2rem clamp(1.4rem, 3vw, 2.2rem) 1.3rem; background: #fff; box-shadow: var(--dl-shadow); transform: rotate(-.7deg); }
.col + .col .testimonial-box.dl-review { transform: rotate(.6deg); }
.dl-review::before, .dl-letter::before { content: ""; position: absolute; top: -12px; left: 50%; width: 30%; height: 24px; margin-left: -15%; background: rgba(255, 240, 200, .75); transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); clip-path: polygon(2% 0, 98% 4%, 100% 100%, 0 96%); }
.dl-review .icon-box-text { padding: 0; }
.dl-review .testimonial-text, .dl-review .testimonial-text p { font: italic 400 1.15rem/1.6 var(--dl-display); color: var(--st-ink); }
.dl-review .testimonial-text::before { content: "\201C"; display: block; height: .5em; margin-bottom: .2rem; font: 800 3.4rem/1 var(--dl-display); color: var(--dl-pink); }
.dl-review .testimonial-meta { padding-top: .8rem; text-align: right; }
.dl-review .testimonial-name { font: 700 1.5rem/1 var(--dl-hand); color: var(--st-primary); text-transform: none; letter-spacing: 0; }
.dl-review .testimonial-name::before { content: "\2014\00a0"; }

/* ---------- white boxes side by side (Stockists): one weight, one heading size ---------- */
.dl-box > .col-inner { height: 100%; display: flex; flex-direction: column; padding: 30px 32px 26px; background: #fff; border-radius: 16px; box-shadow: var(--dl-shadow); }
.dl-box h2, .dl-contact-page h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.dl-box .col-inner > p.dl-box-foot { margin: auto 0 0; padding-top: .6rem; }
.dl-box .button { margin: 0; }
.dl-box .dl-stamp { top: 26px; right: 24px; font-size: .72rem; }   /* "coming soon" on a stockist not selling yet, the board's stamp */
.dl-box ul.dl-stores { margin: 0; }
.dl-box ul.dl-stores li { padding: .7rem 0; color: var(--st-text); }
.dl-box ul.dl-stores li:first-child { padding-top: 0; }

/* ---------- contact: the form beside the direct ways ---------- */
.dl-form-card > .col-inner { padding: 30px 32px 22px; background: #fff; border-radius: 16px; box-shadow: var(--dl-shadow); }
/* the column may be narrower than the email address (iPad portrait, small phones): the boxes shrink
   and the address wraps, instead of running off the screen (Sean, 1 November) */
.dl-acts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 1.2rem; }
.dl-act > span:not(.dl-ar) { min-width: 0; }
.dl-act { display: flex; align-items: center; gap: 16px; padding: 14px 26px; border: 1px solid var(--st-line); border-radius: 999px; background: #fff; box-shadow: var(--dl-shadow); color: var(--st-ink) !important; text-decoration: none !important; transition: border-color .2s, transform .2s; }
.dl-act:hover { border-color: var(--st-primary); transform: translateY(-2px); }
.dl-act-i { width: 26px; height: 26px; flex: none; color: var(--st-primary); }
.dl-act b { display: block; font: 600 1rem/1.2 var(--dl-sans); }
.dl-act small { display: block; margin-top: 3px; font-size: .88rem; color: var(--st-muted); overflow-wrap: anywhere; }
.dl-act .dl-ar { margin-left: auto; color: var(--st-primary); }
/* WPForms in the site's type and colours */
.dl-form .wpforms-container { margin: 0; }
.dl-form .wpforms-field-label { font: 600 15px/1.3 var(--dl-sans) !important; color: var(--st-ink) !important; }
.dl-form .wpforms-field-label-inline { font-family: var(--dl-sans) !important; }
.dl-form input[type=text], .dl-form input[type=email], .dl-form textarea { border: 1px solid var(--st-line) !important; border-radius: 10px !important; box-shadow: none !important; font: 16px var(--dl-sans) !important; }
.dl-form input:focus, .dl-form textarea:focus { border-color: var(--st-primary) !important; }
.dl-form button[type=submit] { background: var(--st-primary) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important; font: 600 16px/1 var(--dl-sans) !important; letter-spacing: .02em; padding: 1em 1.35em !important; height: auto !important; }
.dl-form button[type=submit]:hover { background: var(--st-primary-dark, #8E2E4F) !important; transform: translateY(-2px) rotate(-1deg); }

/* ---------- the "Buy here" lightbox, from the header button ---------- */
.dl-lightbox { border-radius: 18px; overflow: hidden; box-shadow: var(--dl-shadow); }
.dl-lightbox-inner { padding: 34px 36px 26px; background: var(--st-paper); }
.dl-lightbox-inner h2 { font-size: 1.9rem; margin-bottom: .5rem; }
.dl-lightbox-inner h3 { font-size: 1.15rem; margin: 1.4rem 0 .4rem; }
.dl-lightbox-inner .button { margin: .4rem 0 0; }
.col-inner ul.dl-stores, ul.dl-stores { list-style: none; margin: 0 0 .8rem; padding: 0; }
ul.dl-stores li { margin: 0; padding: .35rem 0; border-top: 1px solid var(--st-line); }
ul.dl-stores li:first-child { border-top: 0; }
ul.dl-stores b { font-weight: 600; color: var(--st-ink); }

/* ---------- call to action (every page but Contact and Stockists) ---------- */
.dl-cta {
  /* the board's pink felt, so the band reads as its own surface next to the pale bands */
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.18) 0 1px, transparent 1.5px) 0 0 / 7px 7px,
    radial-gradient(circle at 70% 60%, rgba(176,61,98,.10) 0 1px, transparent 1.5px) 0 0 / 9px 9px,
    linear-gradient(160deg, #F7C3D1, #F2AFC2 60%, #EFA6BB) !important;
}
.dl-cta h2 { margin-bottom: .6rem; }
.dl-cta .col-inner > p { color: var(--st-ink); }
.section.dl-cta .col-inner > p.st-eyebrow { color: #8E2E4F; }
.dl-cta .button.is-outline { background: #FFF7F0; }
.dl-cta-acts .col-inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.dl-cta-acts .button { margin: 0; }

/* ---------- footer (the "site-footer" block) ---------- */
.st-footer .dl-footer-line { font: italic 400 1.1rem/1.45 var(--dl-display); color: #fff; max-width: 34ch; }
.st-footer .col-inner p.dl-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; font-size: 14px; }
.st-footer .dl-legal-row { border-top: 1px solid rgba(255, 255, 255, 0.1); }

/* ---------- every page fills the screen (the footer sits at the bottom of a short page) ---------- */
#wrapper { display: flex; flex-direction: column; min-height: 100vh; }
#main { flex: 1 0 auto; display: flex; flex-direction: column; }
#main > #content { flex: 1 0 auto; display: flex; flex-direction: column; }
#content > .section:last-child { flex: 1 0 auto; }

/* ---------- easing in (dl.js adds .dl-anim, so nothing is hidden without JavaScript) ---------- */
.dl-anim .dl-rise { opacity: 0; translate: 0 18px; transition: opacity .7s var(--st-ease, ease), translate .7s var(--st-ease, ease); }
.dl-anim .dl-rise.dl-in { opacity: 1; translate: none; }

/* ---------- small screens ---------- */
@media (max-width: 849px) {
  #logo .st-logo-img { height: 36px; }
  .dl-cta-acts .col-inner { justify-content: flex-start; }
  /* the tilted polaroid and review notes fill their columns, so their corners reached the screen's edge */
  .dl-polaroid-static, .testimonial-box.dl-review { margin-inline: .8rem; }
}
@media (max-width: 549px) {
  .dl-form-card > .col-inner { padding: 24px 18px 14px; }
  .dl-lightbox-inner { padding: 26px 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .dl-anim .dl-rise { opacity: 1; translate: none; transition: none; }
}
