/* The breeze (11-13, Ivy): the closing's breeze moment, the loader's wind, and the potted tree in layers */

/* the potted orange tree, three layers cut from the same picture: the pot never moves, the trunk sways from where it meets
   the soil, the canopy rustles a little more from the top of the trunk. The cuts sit where the trunk is thin, so no seam shows */
.pot-tree{aspect-ratio:557/1026}
.pot-tree img{position:absolute;inset:0;width:100%;height:100%;display:block}
.pot-tree .pt-sway{position:absolute;inset:0;transform-origin:51.2% 77%}
.pot-tree .pt-canopy{clip-path:inset(0 0 36.6% 0);transform-origin:51.4% 62%}
.pot-tree .pt-trunk{clip-path:inset(62.4% 0 23.6% 0)}
.pot-tree .pt-pot{clip-path:inset(75.4% 0 0 0)}

/* the breeze layer: the wind lines and the chimney smoke, above the flowers and the house, below the bees */
.breeze{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden}
.breeze svg{will-change:transform,opacity}

/* the newt who slips in at the upper window: small, crisp, with a tiny contact shadow. He lives in the house's layer,
   above the house and below the potted tree (z-index 2), so the pot hides him until he crawls out */
.bnewt{position:absolute;left:0;top:0;z-index:1;height:auto;pointer-events:none;will-change:transform,opacity;
  filter:drop-shadow(0 1px .6px rgba(40,34,20,.45)) drop-shadow(0 2px 2px rgba(40,34,20,.18))}

/* a cloud with no room above the roof passes in front of the house, never half behind its edge */
.cloud.pass{z-index:1}

/* the loader's wind: drawn round the tree, from the same studies */
.loader-in{position:relative}
.loader-wind{position:absolute;left:0;top:0;width:0;height:0;overflow:visible;pointer-events:none}

/* review aid (?breeze): a small clock in the corner */
.breeze-clock{position:fixed;right:10px;bottom:10px;z-index:99;font:11px/1 var(--mono, monospace);letter-spacing:.06em;
  color:#26292a;background:rgba(241,242,227,.9);padding:6px 8px;border-radius:6px;pointer-events:none}

/* on the dark page the graphite turns to a pale pencil, so the lines read on black the way they read on paper */
/* 11-15: the pale lines come from *-light.png copies chosen as each line is drawn (breeze/scribble.js), no filter */

/* 11-14 (Ivy): no house newt on phones; the footer has enough going on */
@media (max-width:759px){.bnewt{display:none!important}}

/* the hand-drawn "copied" mark (breeze/copied.js): fills its host's width; plain strokes on WebKit, pencil PNG elsewhere */
.pb-copied{display:block;width:100%;height:auto;overflow:visible}
.pb-copied .pc{stroke:#2c2c2f}
html[data-page="dark"] .pb-copied .pc{stroke:#ECEBDF}
html[data-page="dark"] .pb-copied image{filter:invert(1) brightness(.95)}
.pb-copied{opacity:.72}   /* 11-14 (Ivy): a little lighter */
.copied .pb-copied{opacity:.6}   /* the ✓ copied, lighter still */
/* 11-17 (Ivy): the ✓ copied in her code-drawn Rising hand (breeze/hand.js); the stroke opacity is in the drawing */
.pb-copied .pf{fill:#2c2c2f}
html[data-page="dark"] .pb-copied .pf{fill:#ECEBDF}
.copied.in-hand{width:2.2em}
.copied.in-hand .pb-copied{opacity:.92}   /* 11-18 (Ivy): "too clean": the ink is lighter in the drawing itself (a body at .62, a pressure core over it), ~.75 of before */

/* the pencil smiley after "Don't be a stranger.": the period is its left eye (breeze/copied.js draws the rest) */
.smile-at{position:relative;display:inline-block}
.smiley{position:absolute;left:0;top:0;width:1.6em;pointer-events:auto;visibility:hidden}   /* hover or tap it: it pulls a face */   /* placed by copied.js from the period's baseline */
.smiley .pb-copied{opacity:.78}

/* 11-14 (Ivy): WebKit (Safari, every iPhone browser) paints filters and promoted layers on moving things as hot pink lines
   and boxes. html.wk (set in the head) takes every filter off the closing and the roaming newt, lets go of will-change,
   and fakes the cutouts' shadows with soft gradients instead */
.wk .closing :is(.cloud img,.flip,.dahlia-top,.cottage,.pot-tree,.cbee img,.flip .perch img,.bnewt,.trail,.breeze svg,.studio .pen img),
.wk :is(.newt,.trail){filter:none!important}
.wk .closing :is(.cloud,.cbee,.flip .perch,.breeze svg,.bnewt,.trail){will-change:auto}
.wk .closing .cloud img{opacity:.92}
.wk .closing .cloud.far img{opacity:.72}
.wk .closing :is(.flip,.dahlia-top)::before{content:"";position:absolute;left:10%;right:10%;top:16%;bottom:-6%;z-index:-1;border-radius:50%;
  background:radial-gradient(closest-side,rgba(40,34,20,.16),rgba(40,34,20,.07) 60%,rgba(40,34,20,0))}
.wk .closing .dahlia-top{isolation:isolate}
.wk .closing .home::before{content:"";position:absolute;left:4%;right:-2%;bottom:-1%;height:9%;
  background:radial-gradient(closest-side,rgba(40,34,20,.26),rgba(40,34,20,.1) 55%,rgba(40,34,20,0))}
.wk .closing .cottage{position:relative}
/* and the hero's moving cutouts (sun, flowers, bees, the slider's sun): no filters on WebKit either */
.wk :is(.shadow,.bee-fly img,.cap-bee img,.reg,.pbs .psun){filter:none!important}
.wk :is(.sun .jit,.bee-fly,.cap-bee,.newt){will-change:auto}
