/* Josh Baltzell: the rules only WordPress needs.
   bundle.css is the design system's stylesheet and is not edited. This file maps WordPress's own markup onto it
   and undoes a few core block styles that fight it. Every value is a token. */

/* ───────── Dark mode ─────────
   Each color in theme.json that differs between themes is written light-dark(light, dark). That only switches
   when the root says both schemes are offered. The theme follows the visitor's device; there is no switch. */
:root{color-scheme:light dark}

/* ───────── Spacing the design system set inline ───────── */
.jb-spine-count{margin:0 0 var(--space-3)}
.jb-spine-name{margin:0 0 var(--space-2)}
.jb-more-line{margin:var(--space-8) 0 0}
.jb-lost-row{margin-top:var(--space-5)}
.jb-lost{max-width:var(--measure)}
/* a picture in a page's spine never grows past the spine's own width, including on a phone */
.jb-spine-picture{max-width:var(--spine);height:auto}

/* ───────── The Button block: primary by default, with Secondary and Play as block styles ─────────
   Selectors are long on purpose: inside an article they must outrank the text-link rules. */
.jb .wp-block-button a.wp-block-button__link{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);min-height:var(--size-tap);white-space:nowrap;background:var(--primary);color:var(--on-primary);text-decoration:none;transform:translateY(0);transition:transform var(--dur-press) var(--ease-out),box-shadow var(--dur-press) var(--ease-out)}
.jb .wp-block-button a.wp-block-button__link:hover{transform:translateY(calc(-1 * var(--outline-hair)));box-shadow:var(--edge-lift)}
.jb .wp-block-button a.wp-block-button__link:active{transform:translateY(calc(var(--space-1) - var(--outline-hair)));box-shadow:var(--edge-press)}
.jb .wp-block-button a.wp-block-button__link:focus-visible{border-radius:var(--radius-md);box-shadow:var(--focus-ring),var(--edge-rest)}
.jb .wp-block-button.is-style-secondary a.wp-block-button__link{background:var(--ground-raised);color:var(--ink)}
.jb .wp-block-button.is-style-play a.wp-block-button__link{min-height:calc(var(--size-tap) + var(--space-3));padding:var(--space-3) var(--space-6) var(--space-3) var(--space-5);font-size:var(--text-lead);font-weight:var(--weight-heavy);letter-spacing:var(--track-tile);box-shadow:var(--edge-deep)}
.jb .wp-block-button.is-style-play a.wp-block-button__link:hover{box-shadow:0 calc(var(--space-2) - var(--outline-hair)) 0 var(--ink)}
.jb .wp-block-button.is-style-play a.wp-block-button__link:active{transform:translateY(var(--space-1));box-shadow:var(--edge-press)}
.jb .wp-block-button.is-style-play a.wp-block-button__link:focus-visible{box-shadow:var(--focus-ring),var(--edge-deep)}
.jb .wp-block-button.is-style-play a.wp-block-button__link::before{content:"";flex:none;width:0;height:0;border-style:solid;border-width:calc(var(--space-2) - var(--outline-hair)) 0 calc(var(--space-2) - var(--outline-hair)) var(--space-3);border-color:transparent transparent transparent currentColor}

/* ───────── Core block styles that fight the article styles ───────── */
/* The Gallery block is a flex row sized by its own rules; here it is an even grid and each picture fills its cell. */
.jb .prose figure.wp-block-gallery.has-nested-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-3);align-items:start}
.jb .prose .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image){width:100%;margin:0}
.jb .prose .wp-block-gallery.has-nested-images figure.wp-block-image img{width:100%;height:auto;aspect-ratio:4 / 3;object-fit:cover}
.jb .prose .wp-block-gallery.has-nested-images>figcaption{grid-column:1 / -1;flex-basis:auto;margin:0;text-align:left;font-size:var(--text-small);line-height:var(--leading-small);color:var(--ink-muted)}
@media (min-width:600px){.jb .prose figure.wp-block-gallery.has-nested-images.columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* The Table block draws a box round every cell; the design has rules between rows only. */
.jb .prose .wp-block-table td,.jb .prose .wp-block-table th{border-width:0 0 var(--outline-hair);border-style:solid;border-color:var(--line)}
.jb .prose .wp-block-table thead{border-bottom:0}
.jb .prose .wp-block-table thead th,.jb .prose .wp-block-table tbody tr:last-child td{border-bottom:var(--outline-part) solid var(--ink)}
/* The Code block wraps long lines; here a long line scrolls inside the block. */
.jb .prose pre.wp-block-code code{display:block;white-space:pre;overflow-wrap:normal}
/* The Pullquote block centers its text. */
.jb .prose .wp-block-pullquote{text-align:left}
/* A picture's link should not pick up the text-link hover. */
.jb .prose figure>a:hover{background:none}
/* Embeds keep to the reading column and take the outline. */
.jb .prose .wp-block-embed iframe{display:block;max-width:100%;border:var(--outline-part) solid var(--ink);border-radius:var(--radius-sm)}
/* A toy's artwork, placed by WordPress, is fitted to its mat like any other. */
.art-stage>img{height:100%}

/* ───────── Comments, in WordPress's own markup ───────── */
.comments .children{display:grid;gap:var(--space-4);margin:0;padding:0;list-style:none}
.comment__text>*{margin:0}
.comment__text>*+*{margin-top:var(--space-3)}
.comment__reply{margin:var(--space-2) 0 0;font-size:var(--text-small);line-height:var(--leading-small)}
.comment-reply-link,#cancel-comment-reply-link{color:inherit;text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:var(--outline-part);text-underline-offset:var(--underline-offset)}
.comment-reply-link:hover,#cancel-comment-reply-link:hover{background:var(--part-straw);color:var(--on-straw)}
.comment-respond{margin-top:var(--space-8)}
.comment-respond #reply-title{margin:0}
#cancel-comment-reply-link{display:inline-block;margin-bottom:var(--space-3)}
.comment .comment-respond{margin-top:var(--space-4)}

/* ───────── The admin bar, when signed in ───────── */
.jb.admin-bar .skip{top:calc(var(--space-2) + var(--wp-admin--admin-bar--height,0px))}

/* ───────── Departures from the design system ─────────
   The home page's opening. In the design system it is the line with one paragraph under it. Here the paragraph
   says what the site is for and sits beside the line from 900px, with two ways in underneath. */
.home-hero__intro{display:grid;gap:var(--space-4);max-width:var(--measure)}
.home-hero__ways{display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-8);margin:0}
@media (min-width:900px){
  .home-hero{grid-template-columns:auto minmax(0,1fr);align-items:end;column-gap:var(--space-16)}
  .home-hero__intro{padding-bottom:var(--space-2)}
}

/* Depth on blocks. In the design system a block is flat. Here it is a shallow box you look into: the cover and
   the words are on the back wall, the four inner walls slope back to meet it, and the front is a pane of glass
   with a glare across it. You are looking in from slightly above and to the right, so the floor and the left
   wall show more than the ceiling and the right wall. Each wall is one flat step of the block's own color;
   the glare is two hard-edged bands. No blur, and nothing fades. */
/* Proportions: picture each block as an object 4 inches wide and 1 inch deep, held about ten inches away.
   At that distance the back wall looks about a tenth smaller than the front frame, so the walls take up a
   tenth of the block's width between them, split unevenly because you are looking in from above and right.
   The widths are in cqw (hundredths of the block's own width), so a wide block is deeper in pixels than a
   narrow one and every block keeps the same shape. */
.blk{container-type:inline-size;--wall-t:1.4cqw;--wall-r:2.2cqw;--wall-b:2.7cqw;--wall-l:4.2cqw;
  --wall-floor:color-mix(in srgb,var(--c,var(--part-olive)) 70%,var(--part-paper));
  --wall-right:color-mix(in srgb,var(--c,var(--part-olive)) 86%,var(--part-paper));
  --wall-left:color-mix(in srgb,var(--c,var(--part-olive)) 74%,var(--part-night));
  --wall-ceiling:color-mix(in srgb,var(--c,var(--part-olive)) 58%,var(--part-night));
  padding:0}
/* a box cannot size its own padding from its own width, so its two children carry the inset as margins */
.blk__link>.cov{margin:var(--wall-t) var(--wall-r) 0 var(--wall-l)}
.blk__link>.det{margin:0 var(--wall-r) var(--wall-b) var(--wall-l)}
/* the four inner walls: one thick border, mitred at the corners, and an ink line where they meet the back wall */
.blk::before{content:"";position:absolute;inset:0;z-index:1;box-sizing:border-box;border-style:solid;border-width:var(--wall-t) var(--wall-r) var(--wall-b) var(--wall-l);border-color:var(--wall-ceiling) var(--wall-right) var(--wall-floor) var(--wall-left);box-shadow:inset 0 0 0 var(--outline-fine) var(--ink);pointer-events:none}
/* the glass: the glare falls across the picture, with only a faint band over the whole pane so the words stay easy to read */
.blk::after{content:"";position:absolute;inset:0;z-index:2;background:linear-gradient(112deg,transparent 0 14%,rgb(255 255 255 / .05) 14% 22%,transparent 22% 81%,rgb(255 255 255 / .05) 81% 84%,transparent 84%);background-size:150% 100%;background-repeat:no-repeat;background-position:var(--glare-x,18%) 0;pointer-events:none}
.blk .cov::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(112deg,transparent 0 14%,rgb(255 255 255 / .16) 14% 22%,transparent 22% 25%,rgb(255 255 255 / .09) 25% 28%,transparent 28%);background-size:150% 100%;background-repeat:no-repeat;background-position:var(--glare-x,18%) 0;pointer-events:none}
.blk .cov{border-radius:0}
/* a white or near-black block steps its walls the other way so they stay visible */
.blk[data-kind="writing"]{--wall-floor:var(--part-paper);--wall-right:color-mix(in srgb,var(--part-paper) 90%,var(--part-night));--wall-left:color-mix(in srgb,var(--part-paper) 78%,var(--part-night));--wall-ceiling:color-mix(in srgb,var(--part-paper) 66%,var(--part-night))}
.blk[data-kind="photo"]{--wall-floor:color-mix(in srgb,var(--part-night) 66%,var(--part-paper));--wall-right:color-mix(in srgb,var(--part-night) 76%,var(--part-paper));--wall-left:color-mix(in srgb,var(--part-night) 86%,var(--part-paper));--wall-ceiling:color-mix(in srgb,var(--part-night) 93%,var(--part-paper))}
/* on a pale block a white band would not show, so the faint one is dark */
.blk[data-kind="writing"]::after,.blk[data-kind="design"]::after{background-image:linear-gradient(112deg,transparent 0 14%,rgb(20 24 16 / .05) 14% 22%,transparent 22%)}

/* The well has depth too. It is a cabinet a little deeper than the blocks standing in it: two inner side
   walls and a floor slope back to the dotted back wall, and each block casts a hard-edged shadow onto that
   back wall, offset further than before because the wall is further away. The side walls, the dots and the
   shadows all shift a little with where you are looking from (set by site.js), and stay put without it. */
.well{--well-l:var(--space-3);--well-r:var(--space-2);background-position:calc(var(--space-3) + var(--bgx,0px)) calc(var(--space-3) + var(--bgy,0px)),var(--bgx,0px) 0}
.well::before{content:"";position:absolute;inset:0;z-index:0;box-sizing:border-box;border-style:solid;border-width:0 var(--well-r) var(--space-3) var(--well-l);border-color:transparent color-mix(in srgb,var(--ground-raised) 55%,var(--line)) color-mix(in srgb,var(--ground-raised) 30%,var(--line)) color-mix(in srgb,var(--ground-raised) 10%,var(--line));box-shadow:inset 0 0 0 var(--outline-hair) var(--line);pointer-events:none}
.well--empty::before{display:none}
.rack--live .blk,.rack--live .blk:hover,.rack--live .blk:active{box-shadow:calc(var(--sx,var(--size-drop-x)) * 1.8 + var(--cast-x,0px)) calc(var(--sy,var(--size-drop-y)) * 1.8 + var(--cast-y,0px)) 0 rgb(0 0 0 / .34)}
.rack--live .blk:focus-visible{box-shadow:var(--focus-ring),calc(var(--sx,var(--size-drop-x)) * 1.8 + var(--cast-x,0px)) calc(var(--sy,var(--size-drop-y)) * 1.8 + var(--cast-y,0px)) 0 rgb(0 0 0 / .34)}

/* The pile as a toy: a landed block can be picked up and thrown. */
@media (pointer:fine){.rack--live .blk{cursor:grab}}
.rack--held,.rack--held .blk{cursor:grabbing;user-select:none}
/* on a touch screen a block is picked up by pressing and holding, so holding must not select text or open a menu */
.rack--live .blk{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}

/* A block's own design, set per post in WordPress (Block design in the post editor). These are the general
   pieces; a post picks from them, and its custom CSS can go further. Colors come in as --c (face), --on (text)
   and --title-color, and the box walls are worked out from --c as for any block. */
@font-face{font-family:"Rubik Dirt";font-weight:400;font-style:normal;font-display:swap;src:url("../fonts/RubikDirt-latin.woff2") format("woff2")}
.det__title{color:var(--title-color,inherit);font-family:var(--title-font,var(--font-display))}
.blk[data-font="mono"]{--title-font:var(--font-mono)}
.blk[data-font="text"]{--title-font:var(--font-text)}
.blk[data-font="dirt"]{--title-font:"Rubik Dirt",var(--font-display)}
.blk[data-font="dirt"] .det__title,.blk[data-font="custom"] .det__title{font-weight:400;font-size:calc(var(--text-tile) * 1.12);letter-spacing:.01em}
.blk--upper .det__title{text-transform:uppercase}
/* Knocked about: an uneven outline for dents, and hard-edged scratches and scuffs. Still no blur. */
.blk--worn{border-radius:var(--space-half) var(--space-3) var(--space-1) var(--space-2) / var(--space-2) var(--space-1) var(--space-3) var(--space-half)}
.blk--worn .det{position:relative;background-image:
  linear-gradient(118deg,transparent 0 21%,rgb(255 255 255 / .16) 21% 21.7%,transparent 21.7% 23.4%,rgb(255 255 255 / .1) 23.4% 23.8%,transparent 23.8%),
  linear-gradient(64deg,transparent 0 67%,rgb(0 0 0 / .28) 67% 68.2%,transparent 68.2% 71%,rgb(0 0 0 / .2) 71% 71.5%,transparent 71.5%),
  linear-gradient(171deg,transparent 0 78%,rgb(255 255 255 / .12) 78% 79%,transparent 79%),
  linear-gradient(to right,rgb(0 0 0 / .22) 0 var(--space-2),transparent var(--space-2)),
  linear-gradient(to top,rgb(0 0 0 / .18) 0 var(--space-1),transparent var(--space-1))}
/* A moving cover (a looping video, or a live cover) sits over the still picture and shows once it is running. */
.cov__media{position:absolute;inset:0;width:100%;height:100%;border:0;object-fit:cover;pointer-events:none;opacity:0;transition:opacity var(--dur-settle) var(--ease-out)}
.cov__media.is-on{opacity:1}


/* ───────── The block as a box with two links in it ─────────
   The main link fills the box; Play sits on top of the cover. They never nest. */
.blk__link{display:flex;flex-direction:column;flex:1;min-height:0;color:inherit;text-decoration:none;-webkit-user-drag:none}
.blk__link:focus-visible{box-shadow:none}
.blk:has(.blk__link:focus-visible){box-shadow:var(--focus-ring),var(--drop)}
.rack--live .blk:has(.blk__link:focus-visible){box-shadow:var(--focus-ring),calc(var(--sx,var(--size-drop-x)) * 2.4) calc(var(--sy,var(--size-drop-y)) * 2.4) 0 rgb(0 0 0 / .34)}

/* Look through the glass: on hover or keyboard focus, the cover shows the one-line pitch and Play.
   On a touch screen there is no hover, so only a small Play corner shows, on toys, all the time. */
.blk__peek{position:absolute;z-index:3;top:var(--wall-t);left:var(--wall-l);right:var(--wall-r);height:var(--cover,var(--size-cover-m));display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;gap:var(--space-2);padding:var(--space-3);background:rgb(20 24 16 / .84);color:var(--on-night);opacity:0;pointer-events:none;transition:opacity var(--dur-quick) var(--ease-out)}
.blk__pitch{font-size:var(--text-small);line-height:var(--leading-small);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.blk__play{pointer-events:auto}
@media (hover:hover){.blk:hover .blk__peek,.blk:focus-within .blk__peek{opacity:1}}
.blk:focus-within .blk__peek{opacity:1}
@media (hover:none){
  .blk__peek{opacity:1;background:none;padding:var(--space-2);align-items:flex-end;justify-content:flex-start}
  .blk__pitch{display:none}
  .blk__peek:not(:has(.blk__play)){display:none}
}
.rack--held .blk__peek{opacity:0!important}

/* Older things sit further back: their shadow on the back wall is shorter and they are a little dimmer.
   Size does not change, so what you see always matches what the physics is doing. */
.blk{filter:brightness(calc(1 - var(--age,0) * .16))}
.rack--live .blk,.rack--live .blk:hover,.rack--live .blk:active{box-shadow:calc((var(--sx,var(--size-drop-x)) * 1.8 + var(--cast-x,0px)) * (1 - var(--age,0) * .55)) calc((var(--sy,var(--size-drop-y)) * 1.8 + var(--cast-y,0px)) * (1 - var(--age,0) * .55)) 0 rgb(0 0 0 / .34)}

/* Filters open the floor: while blocks drop out, the floor shows a gap in the middle. */
.rack--open .floor{background:linear-gradient(to right,var(--part-moss) 0 36%,var(--part-night) 36% 64%,var(--part-moss) 64%)}

/* More, and Pile or shelf */
.rack__more{display:flex;justify-content:center;margin:var(--space-5) 0 0}
.rack__more:has(> [hidden]){display:none}
.rack__view{display:inline-flex;gap:var(--space-1)}
/* The controls sit above the well, where the blocks come in. */
.rack__bar{margin:0 0 var(--space-3)}

/* The shelf: the same blocks, square to the page, each row standing on a visible shelf. A board runs under
   every block and reaches across the gap to the next, so a row reads as one shelf. Blocks slide down onto it
   one after another; under reduced motion they are simply there. */
.rack--shelf .pile{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--size-card-min)),1fr));align-items:end;gap:var(--space-10) var(--space-4);padding:var(--space-8) var(--space-4) var(--space-6);overflow:hidden}
.rack--shelf .pile>li,.rack--shelf .pile>li:nth-child(n){position:relative;grid-column:auto;--cover:var(--size-cover-m)}
/* the block slides down onto its shelf; the shelf itself stays where it is */
.rack--shelf .pile>li>.blk{animation:jb-shelve var(--dur-settle) var(--ease-spring) both;animation-delay:calc(var(--i,0) * 45ms)}
.rack--shelf .pile>li::after{content:"";position:absolute;z-index:0;left:calc(-1 * var(--space-4));right:calc(-1 * var(--space-4));bottom:calc(-1 * var(--size-floor));height:var(--size-floor);background:var(--part-moss);border-block:var(--outline-part) solid var(--ink);box-shadow:0 var(--space-1) 0 var(--ink)}
.rack--shelf .pile>li[hidden]{display:none}
.rack--shelf .blk{height:100%;z-index:1}
.rack--shelf .well__fx{display:none}
@keyframes jb-shelve{from{opacity:0;transform:translateY(calc(-1 * var(--space-6)))}to{opacity:1;transform:none}}
.btn:disabled[data-stack-shake],.btn:disabled[data-stack-motion]{display:none}

/* ───────── The game parts: all optional ─────────
   Clicking a block, Play, the filters and More are always there. These sit alongside them. */


/* The machine panel above the well: a tilt handle on the left, a lever for More on the right. */
.rack__machine{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);margin:0 0 var(--space-3);padding:var(--space-2) var(--space-3);border:var(--outline-part) solid var(--ink);border-radius:var(--radius-md);background:var(--ground-raised);box-shadow:var(--edge-rest)}
.tilt{--tilt:0;position:relative;flex:0 1 14rem;height:var(--size-tap);touch-action:none;cursor:grab;border-radius:var(--radius-md)}
.tilt.is-held{cursor:grabbing}
.tilt__track{position:absolute;left:var(--space-3);right:var(--space-3);top:50%;height:var(--space-2);translate:0 -50%;border:var(--outline-part) solid var(--ink);border-radius:var(--radius-full);background:var(--ground-sunk)}
.tilt__knob{position:absolute;top:50%;left:50%;width:var(--size-check);height:var(--size-check);translate:calc(-50% + var(--tilt) * (7rem - var(--space-5))) -50%;border:var(--outline-part) solid var(--ink);border-radius:var(--radius-full);background:var(--part-olive);box-shadow:0 2px 0 var(--ink);transition:translate var(--dur-settle) var(--ease-spring)}
.tilt.is-held .tilt__knob{transition:none}
.tilt__label{position:absolute;left:50%;bottom:calc(-1 * var(--space-1));translate:-50% 0;font-family:var(--font-mono);font-size:var(--text-tag);letter-spacing:var(--track-tag);text-transform:uppercase;color:var(--ink-muted)}
.lever{appearance:none;display:inline-flex;align-items:center;gap:var(--space-3);min-height:var(--size-tap);padding:0 var(--space-2);border:0;background:none;color:var(--ink);font-family:var(--font-display);font-size:var(--text-ui);font-weight:var(--weight-bold);cursor:pointer}
.lever:disabled{color:var(--ink-muted);cursor:default}
.lever__slot{position:relative;width:var(--space-3);height:calc(var(--size-tap) - var(--space-1));border:var(--outline-part) solid var(--ink);border-radius:var(--radius-full);background:var(--ground-sunk)}
.lever__arm{position:absolute;left:50%;top:var(--space-half);width:var(--size-check);height:var(--size-check);translate:-50% 0;border:var(--outline-part) solid var(--ink);border-radius:var(--radius-full);background:var(--primary);box-shadow:0 2px 0 var(--ink)}
.lever:disabled .lever__arm{top:auto;bottom:var(--space-half);background:var(--ground-sunk)}
.lever:hover:not(:disabled) .lever__arm{translate:-50% var(--space-half)}
.lever.is-pulled .lever__arm{animation:jb-lever var(--dur-light) var(--ease-out)}
@keyframes jb-lever{0%{top:var(--space-half)}25%{top:calc(100% - var(--size-check) - var(--space-half))}100%{top:var(--space-half)}}
.lever:focus-visible{box-shadow:var(--focus-ring);border-radius:var(--radius-md)}
.tilt:focus-visible{box-shadow:var(--focus-ring)}
.shaft{transition:rotate var(--dur-settle) var(--ease-out)}

/* The pile floats up. Blocks rise into the well and settle against its top, so the newest stay at the top of
   the page. The floor bar is above the well as a ceiling, and the rails hang from it with their open ends at
   the bottom, where blocks come in. */
.rail{top:calc(-1 * var(--outline-part));bottom:calc(-1 * var(--space-2));border-radius:0 0 var(--radius-sm) var(--radius-sm)}

/* The lever docks on the well's right edge instead of in the machine panel. The dock is the lever's height, laid over
   the bottom of the well (so it never rides up past the top of the well onto the panel above), and sticks
   to the bottom of the screen while the well scrolls past, so the lever stays in reach and ends up at the
   bottom of the well, where the blocks it brings come in. */
.lever-dock{position:sticky;z-index:3;bottom:var(--space-4);height:calc(var(--size-tap) + var(--space-6));margin-top:calc(-1 * (var(--size-tap) + var(--space-6)));pointer-events:none}
.lever-dock[hidden]{display:none}
.lever-dock .lever{position:absolute;right:calc(var(--size-rail) + var(--space-3));bottom:var(--space-3);pointer-events:auto;padding:var(--space-1) var(--space-3) var(--space-1) var(--space-2);border:var(--outline-part) solid var(--ink);border-radius:var(--radius-md);background:var(--ground-raised);box-shadow:var(--edge-rest)}
.lever-dock .lever:disabled{box-shadow:none}
.lever-dock .lever:focus-visible{box-shadow:var(--focus-ring),var(--edge-rest)}
/* on a phone the lever is compact, just the handle and a count, and sits at the left so it never covers a block's Play button (top right) */
@media (max-width:599.98px){.lever-dock .lever{right:auto;left:calc(var(--size-rail) + var(--space-3));gap:var(--space-1);padding:var(--space-1) var(--space-2)}.lever-dock .lever__label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.lever-dock .lever::after{content:"+" attr(data-left);font-family:var(--font-mono);font-size:var(--text-small)}}

/* Layered covers (Block design → Layered picture). Each layer sits at a depth --z between the back wall (0)
   and the glass (1). As the eye moves (--look-x, --look-y from site.js) a nearer layer shifts more against the
   ones behind it, the opposite way to the eye; when the well is tilted (--lean from stack.js) the near layers
   slide toward the low side. With reduced motion none of those are set and the picture sits still. */
.cov__layers{position:absolute;inset:0;overflow:hidden}
.blk .cov .cov__layer{position:absolute;inset:auto;width:auto;object-fit:fill;transform:translate(calc((var(--look-x,0) * -4cqw + var(--lean,0) * 6cqw) * var(--z)),calc(var(--look-y,0) * 2.6cqw * var(--z)));will-change:transform}
.blk .cov .cov__layer--fill{inset:0;width:100%;height:100%;object-fit:cover}

/* the kind link at the top of a post is small type; give it a finger-sized target without moving anything */
a.kind{padding-block:var(--space-1);margin-block:calc(-1 * var(--space-1))}

/* The status line above the pile changes length as it goes (rising, settled, loose). It gets a fixed starting
   width instead of its text's width, so a longer message never pushes the buttons onto another row; text that
   doesn't fit is trimmed, and the whole line is in its tooltip. */
.rack__bar>[data-stack-status]{flex:1 1 14rem;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rack__bar>.l-row{margin-left:auto}

/* Phones: the pile should be on the first screen. The view and motion buttons and the tilt handle roll up behind one
   Controls button, the status line is kept for screen readers only, the home page's kind list (the Menu has the
   same links) steps aside, and the opening line is a size smaller. */
.rack__tools{display:none}
@media (max-width:599.98px){
  .rack__tools{display:inline-flex;order:-1}
  .rack__tools[hidden]{display:none}
  .rack__bar>[data-stack-status]{position:absolute;flex:none;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .rack__bar:not(.is-open)>.l-row{display:none}
  .rack__bar:not(.is-open)+.rack .rack__machine{display:none}
  .home .l-shell>.l-spine{display:none}
  .home-hero .t-shout{font-size:var(--text-title)}
  .home-hero{padding-block:0 var(--space-8)}
}
/* the lever stays out of sight until the pile has risen into place */
.rack--rising .lever-dock{visibility:hidden}

/* Posts and pages are one column: text runs the same width as toys, pictures and embeds, so every block in a post
   shares one edge. (The design system holds text to a 40rem reading measure and lets wide blocks run past it; Josh
   chose one edge over the shorter lines.) */
.single .prose>*,.page .prose>*,.single .post-head .t-lead,.page .post-head .t-lead,.single .prose pre,.page .prose pre,.single .comments,.single .comment-form,.toy-hero{max-width:var(--wide)}

/* "Open full page" opens the game in a sheet over the article (site.js), nearly the whole screen, with a bar to
   close it. The page behind doesn't scroll while it is open. */
.has-sheet{overflow:hidden}
.game-sheet{width:calc(100vw - 2 * var(--space-4));height:calc(100dvh - 2 * var(--space-4));max-width:none;max-height:none;margin:auto;padding:0;display:flex;flex-direction:column;border:var(--outline-part) solid var(--ink);border-radius:var(--radius-lg);background:var(--ground-raised);color:var(--ink);overflow:hidden;box-shadow:var(--edge-rest)}
.game-sheet:not([open]){display:none}
.game-sheet::backdrop{background:color-mix(in srgb,var(--part-night) 70%,transparent)}
.game-sheet__bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-1) var(--space-4);padding:var(--space-2) var(--space-4);border-bottom:var(--outline-part) solid var(--ink)}
.game-sheet__bar .l-row{align-items:center;gap:var(--space-4)}
.game-sheet__screen{flex:1;display:block;width:100%;min-height:0;border:0;background:var(--part-night)}
@media (max-width:599.98px){
  .game-sheet{width:100vw;height:100dvh;border:0;border-radius:0}
  .game-sheet__tab{display:none}
}

/* A toy post's cover takes the shape of its own picture (covers are 9:4), instead of sitting letterboxed in the
   design system's 16:9 stage with bands above and below. Other stages keep 16:9. */
.toy-hero .art-stage{aspect-ratio:auto}
.toy-hero .art-stage>img{height:auto}

/* A timeline in a page (the Work page). Markup, newest first:
   <div class="timeline-wrap"><button data-timeline-all>Open all</button>
   <ol class="timeline">
     <li class="timeline__era" data-era="ai">Applied AI <span>2022 to now</span></li>
     <li class="timeline__stop is-now" data-era="ai"><details open><summary>
       <span class="timeline__when">…</span><span class="timeline__what">…</span><span class="timeline__gist">…</span></summary>
       <div class="timeline__body"><p>…</p><div class="timeline__story"><p class="timeline__story-title">…</p><p>…</p></div>
       <ul class="timeline__tools"><li>…</li></ul><p class="timeline__links">…</p></div></details></li>
     <li class="timeline__stop" data-era="start"><button class="timeline__hat">(svg)</button>…</li>
   </ol></div>
   A rule runs down the left; each stop hangs a square marker on it in its era's colour, and the current one pulses.
   Stops open and close (site.js adds Open all / Close all). The hat on a marker tips when pressed. Motion is off
   under reduced motion. */
.timeline-wrap{margin:var(--space-6) 0}
.timeline-wrap>.btn{margin:0 0 var(--space-4)}
.prose .timeline{position:relative;list-style:none;margin:0;padding:0 0 0 var(--space-8)}
.prose .timeline::before{content:"";position:absolute;left:calc(var(--space-2) + .3rem);top:var(--space-2);bottom:var(--space-2);width:var(--outline-part);background:var(--ink)}
.timeline [data-era=ai]{--era:var(--part-ember)}
.timeline [data-era=market]{--era:var(--part-moss)}
.timeline [data-era=custom]{--era:var(--part-straw)}
.timeline [data-era=start]{--era:var(--part-paper)}
.timeline__era{position:relative;display:flex;flex-wrap:wrap;align-items:baseline;gap:0 var(--space-2);margin:var(--space-8) 0 var(--space-4) calc(-1 * var(--space-8));padding:0}
.timeline__era:first-child{margin-top:0}
.timeline__era b{display:inline-block;padding:var(--space-half) var(--space-2);border:var(--outline-part) solid var(--ink);border-radius:var(--radius-sm);background:var(--era);color:var(--part-night);font-family:var(--font-mono);font-size:var(--text-tag);letter-spacing:var(--track-tag);text-transform:uppercase}
.timeline__era span{font-family:var(--font-mono);font-size:var(--text-tag);color:var(--ink-muted)}
.timeline__stop{position:relative;margin:0 0 var(--space-5);padding:0}
.timeline__stop::before{content:"";position:absolute;left:calc(-1 * var(--space-8) + var(--space-2) - .05rem);top:.3rem;width:.9rem;height:.9rem;border:var(--outline-part) solid var(--ink);border-radius:var(--radius-sm);background:var(--era,var(--part-olive));box-sizing:border-box;z-index:1}
.timeline__stop.is-now::after{content:"";position:absolute;left:calc(-1 * var(--space-8) + var(--space-2) - .05rem);top:.3rem;width:.9rem;height:.9rem;border-radius:var(--radius-sm);background:var(--era)}
.timeline__stop>details>summary{display:block;list-style:none;cursor:pointer;border-radius:var(--radius-md);padding:0 var(--space-6) 0 0;position:relative}
.timeline__stop>details>summary::-webkit-details-marker{display:none}
.timeline__stop>details>summary::after{content:"+";position:absolute;right:0;top:0;width:1.6rem;height:1.6rem;display:grid;place-items:center;border:var(--outline-part) solid var(--ink);border-radius:var(--radius-full);background:var(--ground-raised);font-family:var(--font-mono);font-weight:var(--weight-semi);color:var(--ink);transition:transform var(--dur-quick) var(--ease-out),background-color var(--dur-quick) var(--ease-out)}
.timeline__stop>details>summary:hover::after{background:var(--era)}
.timeline__stop>details[open]>summary::after{transform:rotate(45deg)}
.timeline__stop>details>summary:hover .timeline__what{text-decoration:underline;text-decoration-color:var(--era);text-decoration-thickness:3px;text-underline-offset:4px}
.timeline__when{display:block;font-family:var(--font-mono);font-size:var(--text-tag);letter-spacing:var(--track-tag);text-transform:uppercase;color:var(--ink-muted)}
.timeline__what{display:block;font-family:var(--font-display);font-size:var(--text-subhead);font-weight:var(--weight-semi);line-height:1.25;margin:var(--space-half) 0 var(--space-half)}
.timeline__gist{display:block;color:var(--ink-muted)}
.timeline__stop p{margin:0}
.timeline__body{display:grid;gap:var(--space-3);margin:var(--space-3) 0 0;padding:var(--space-4);border:var(--outline-hair) solid var(--line);border-left:4px solid var(--era);border-radius:var(--radius-md);background:var(--ground-raised)}
.timeline__story{display:grid;gap:var(--space-1);border-radius:var(--radius-sm);background:var(--ground-sunk);padding:var(--space-3)}
.timeline__story-title{font-weight:var(--weight-semi)}
.prose .timeline__list{margin:0;padding-left:var(--space-5)}
.prose .timeline__list li{margin:0 0 var(--space-1)}
.prose .timeline__tools{display:flex;flex-wrap:wrap;gap:var(--space-1);list-style:none;margin:0;padding:0}
.prose .timeline__tools li{margin:0;padding:var(--space-half) var(--space-2);border:var(--outline-hair) solid var(--line);border-radius:var(--radius-full);font-family:var(--font-mono);font-size:var(--text-tag)}
.prose .timeline__tools li::before{content:none}
.timeline__links{font-size:var(--text-small)}
.timeline__hat{position:absolute;left:calc(-1 * var(--space-8) + var(--space-2) - 1.25rem);top:-.78rem;width:2.8rem;padding:0;border:0;background:none;cursor:pointer;transform:rotate(-14deg);transform-origin:50% 90%;z-index:2}
.timeline__hat svg{display:block;width:100%;height:auto}
.timeline__hat .brim,.timeline__hat .crown{fill:var(--part-straw);stroke:var(--ink);stroke-width:1.4}
.timeline__hat .band{fill:var(--part-ember)}
.timeline__hat .stitch{fill:none;stroke:var(--part-ember);stroke-width:1.2;stroke-linecap:round}
.timeline__hat:focus-visible{outline:var(--outline-part) solid var(--part-ember);outline-offset:2px;border-radius:var(--radius-sm)}
@media (prefers-reduced-motion:no-preference){
  .timeline__stop:hover .timeline__hat{animation:jb-hat-wobble var(--dur-settle) var(--ease-spring)}
  .timeline__hat.is-tipping{animation:jb-hat-tip .9s var(--ease-spring)}
  .timeline__stop.is-now::after{animation:jb-now 2.4s var(--ease-out) infinite}
}
@keyframes jb-hat-wobble{0%{transform:rotate(-14deg)}30%{transform:rotate(8deg) translateY(-3px)}60%{transform:rotate(-20deg)}100%{transform:rotate(-14deg)}}
@keyframes jb-hat-tip{0%{transform:rotate(-14deg)}35%{transform:translateY(-14px) rotate(-40deg)}70%{transform:translateY(-6px) rotate(10deg)}100%{transform:rotate(-14deg)}}
@keyframes jb-now{0%{transform:scale(1);opacity:.7}100%{transform:scale(2.4);opacity:0}}
