/* =========================================================================
   The flash binder.

   Char already sells an ARTY CHAR BUDGET BINDER - the physical folder clients
   flip through in the studio - so this is not a metaphor imposed on the site.
   It is the object the page is already about, and the Flash page already names
   it in her price notes.

   WHAT IT IS MADE OF, since 27 September 2026: the folder itself. Char's is a
   black wire-bound book of black card, and her flash is printed on white
   paper, cut out by hand and laid on the pages (her Instagram,
   jellycat-flash-in-hand.jpg and fan-and-peony-photographed.jpg). So the
   pages are black card, the binding is twin-loop wire through punched holes,
   the cover is black board with her name on a paper label, the dividers are
   pale card, and every drawing is a white paper cut-out with its own shape
   (binder.js, "the cut-outs"), its number on a small label beside it. The
   three materials are tiles from content/build-binder-textures.py.

   Loaded only on the page carrying [artychar_flash]. Every colour and typeface
   comes from theme.json, so a change made in the Site Editor reaches the
   binder too; there is no second palette to keep in step.

   Two structural notes that are load-bearing, both learned the hard way:

   1. The leaves are direct children of .ac-binder, the element holding
      `perspective`. They used to sit inside a preserve-3d wrapper, and
      preserve-3d establishes a stacking context - so no leaf z-index could
      ever beat the rings sitting outside it, and the ring circles painted
      straight over the turning page. Nothing may be reintroduced between
      .ac-binder and .ac-leaf.

   2. .ac-stage must NOT have overflow:hidden. A turning leaf legitimately
      sweeps outside the board, and overflow:hidden flattens
      transform-style:preserve-3d, which kills the turn entirely. The padding
      is what gives the lifted corner somewhere to go.
   ====================================================================== */

.ac-flash-views {
  display: flex;
  border: 1px solid var(--wp--preset--color--rule);
  border-radius: 2px;
  overflow: hidden;
  background-color: var(--wp--preset--color--paper);
  width: fit-content;
  margin-block: var(--wp--preset--spacing--30) 0;
}
.ac-flash-views button {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--wp--preset--color--rule);
  padding: 0.62rem 0.95rem;
  cursor: pointer;
  color: var(--wp--preset--color--pencil);
}
.ac-flash-views button:last-child { border-right: 0; }
.ac-flash-views button[aria-pressed="true"] {
  background-color: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--paper);
}

/* Hide the view the visitor is not in. The attribute is set by an inline
   script in the head, before the grid is laid out, so a hidden grid never
   starts fetching tile images it will not show. */
[data-ac-flash-view="binder"] #ac-flash-grid { display: none; }
[data-ac-flash-view="grid"] .ac-stage { display: none; }
/* No JavaScript, no attribute: the grid stands alone and the binder is never
   built. That is the intended experience, not a fallback. */
html:not([data-ac-flash-view]) .ac-stage { display: none; }

/* ---------------- stage ---------------- */
.ac-stage {
  /* 1300ms, up from 900. The spring front-loads the motion - 90% of the way
     round at 37% of the clock - so at 900ms the part of the turn where the
     sheet visibly bends was over in about a third of a second, which is too
     quick to see the bend at all. */
  --ac-turn: 1300ms;
  /* Fallback for anything without linear(). The spring below replaces it
     wherever it is understood - see the @supports block after this rule. */
  --ac-ease: cubic-bezier(.35, .02, .28, 1);
  /* The folder's materials. Relative to this file: the tiles sit beside it. */
  --ac-card-tex: url("binder-card.webp");
  --ac-board-tex: url("binder-board.webp");
  --ac-kraft-tex: url("binder-kraft.webp");
  --ac-board: #171614;
  --ac-card-black: #1d1b19;
  --ac-gutter: rgba(0, 0, 0, .62);
  /* A cut-out's shadow on the card: a hairline where the paper edge sits on
     it, and a soft fall a few millimetres further out. */
  --ac-cut-shadow: drop-shadow(0 .6px .5px rgba(0, 0, 0, .7)) drop-shadow(0 7px 9px rgba(0, 0, 0, .5));
  margin-block: var(--wp--preset--spacing--40);
  padding: 46px 0 10px;
}

/* The turn's easing is a damped spring, sampled into linear() stops.

   Ozzy's note after using it: "flick looks ok - still a bit stiff, think it
   needs more motion". Stiff is the right word for what a single cubic-bezier
   does here - it arrives and stops dead, and paper does not. A real sheet
   swung about a binding goes slightly past flat and settles back.

   These numbers are not taste. They are the position of an underdamped
   harmonic oscillator, x(t) = 1 - e^-zwt (cos wd t + (zw/wd) sin wd t),
   sampled at 30 points: damping ratio 0.70, and enough settling time that it
   converges by the end rather than being clipped to 1 and snapping. That
   gives a 4.6% overshoot - about 8 degrees past flat on a 180-degree turn -
   peaking at 57% of the way through, and it reaches 90% of the turn at 37%
   of the clock where the old curve was still most of a quarter-turn behind.
   That earlier arrival is what removes the stiffness; the overshoot is what
   makes it read as paper.

   THE DIAL, if this is judged too much or too little ON A DEVICE: damping
   0.78 gives a 2.0% overshoot and 0.62 gives 8.2%. 0.62 is too loose for
   paper to my eye, but that is an eye on a desktop, which is the wrong place
   to settle it.

   In its own @supports block on purpose. --ac-ease is substituted into
   `transition: transform var(--ac-turn) var(--ac-ease)`, and a value the
   browser cannot parse makes that whole declaration invalid at
   computed-value time - the turn would not transition at all. The fallback
   above stays for those. binder.js reads this same property for the Web
   Animation, so the script and the stylesheet still cannot disagree. */
@supports (animation-timing-function: linear(0, 1)) {
  .ac-stage {
    --ac-ease: linear(0, 0.0303, 0.1067, 0.2106, 0.3277, 0.4472, 0.5616,
      0.666, 0.7573, 0.8345, 0.8974, 0.9469, 0.9842, 1.011, 1.0289, 1.0397,
      1.0449, 1.0459, 1.044, 1.0402, 1.0352, 1.0298, 1.0243, 1.0191, 1.0145,
      1.0104, 1.007, 1.0042, 1.002, 1.0004, 1);
  }
}

.ac-binder {
  position: relative;
  /* Sized off the viewport height as well as the column: at full width the
     spread stood 790px tall and ran off the bottom of a laptop screen, so the
     first thing anyone saw was a cropped book. */
  width: min(calc(100% - 56px), 88vh);
  margin-inline: auto;
  aspect-ratio: 1.44 / 1;
  /* Flatter than feels right at first. A stronger perspective makes the
     lifted corner sweep much further out for very little extra depth. */
  perspective: 3600px;
  perspective-origin: 50% 50%;
  -webkit-user-select: none;
  user-select: none;
  /* Vertical swipes still scroll the page; horizontal ones are ours. Without
     this a touchscreen claimed every sideways swipe as a pan and cancelled
     the drag after its first few pixels. */
  touch-action: pan-y;
  /* The give at the ends of the book. Kept on the independent `translate`
     property rather than folded into transform, so it cannot collide with the
     angle the shut binder rests at - binder.js writes --ac-pull during a drag
     that has no page to turn, and clears it to let this transition spring the
     book back. */
  translate: var(--ac-pull, 0px);
  transition: transform var(--ac-turn) var(--ac-ease), translate 520ms var(--ac-out);
}

/* ---------------- closed ----------------
   Before this the first impression was a binder already lying open on a blank
   left page with a dark slab on the right, which reads as a broken spread
   rather than a book about to be opened. Closed means: one board, no gutter,
   no rings across the middle, and the block of sheet edges showing. Opening
   animates all of it as a single movement. */
/* A closed book rests; it does not float. The degree and a half of tilt and
   the deeper shadow are what tell the eye this is an object on a table rather
   than a dark rectangle in a layout - which is how it read before, and why
   nobody clicked it. Hover lifts it: the cover is about to come up. */
.ac-binder.is-closed {
  transform: translateX(-25%) rotate(-1.5deg);
  transition: transform 460ms var(--ac-out), translate 520ms var(--ac-out);
}
.ac-binder.is-closed:hover {
  transform: translateX(-25%) rotate(-0.5deg) translateY(-5px);
}
/* Once per visit, the resting book stirs - a cover lifting a few degrees and
   settling back. It runs after the page has landed, plays once, and is the
   only rehearsed moment on the site. binder.js adds the class. */
@keyframes ac-nudge {
  0%   { transform: translateX(-25%) rotate(-1.5deg); }
  38%  { transform: translateX(-25%) rotate(-0.4deg) translateY(-6px); }
  100% { transform: translateX(-25%) rotate(-1.5deg); }
}
.ac-binder.is-closed.is-nudging {
  animation: ac-nudge 1500ms var(--ac-out) 900ms 1 both;
}

/* The back cover. It lies under the right-hand pages and never moves: the
   front cover is the first leaf, and it carries its own board edge round
   the pages (see "cover" below), so opening the book is the cover swinging
   over and nothing else. This used to be one board spanning both halves
   that shrank to the right half to look shut - a transition on `left`, so
   every frame of opening the binder was a layout and a repaint of the whole
   board. Twin-loop wire leaves a gap at the spine where the covers meet,
   which is what the square inner edge is. */
.ac-board {
  position: absolute;
  top: -1.6%; bottom: -1.6%; left: 50%; right: -1.4%;
  background-color: var(--ac-board);
  background-image:
    radial-gradient(60% 40% at 100% 0%, rgba(255, 255, 255, .045), rgba(255, 255, 255, 0) 60%),
    radial-gradient(60% 40% at 100% 100%, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0) 60%),
    var(--ac-board-tex);
  background-size: auto, auto, 384px 384px;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 26px 60px -22px rgba(0, 0, 0, .6), 0 2px 5px rgba(0, 0, 0, .35), inset -1px 0 0 rgba(255, 255, 255, .05);
}

/* The book's own shadow deepens as a pointer lifts the shut cover: a second
   shadow faded in on opacity, which the compositor does for free, where
   animating box-shadow repainted the board on every frame. */
.ac-board::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 40px 70px -24px rgba(0, 0, 0, .55);
  transition: opacity 360ms var(--ac-out);
}
@media (hover: hover) and (pointer: fine) {
  .ac-binder.is-closed:hover .ac-board::after { opacity: 1; }
}
/* The left-hand page appears once the cover has come down over it, and goes
   before the cover lifts off it: it is under the cover whenever the book is
   open, so neither is seen. It used to fade over 260ms from the click, which
   showed as a grey slab growing out of the table beside the shut book while
   the cover was still on its way over, and fading there again as it shut
   (25 November 2026). The cover has landed by two fifths of the turn. */
.ac-page-left { transition: opacity 1ms linear calc(var(--ac-turn) * 0.42); }
.ac-binder.is-closed .ac-page-left { opacity: 0; transition: none; }

/* The book's thickness, seen past the shut cover's fore-edge because the book
   is tilted: black card edges in a block, darker where they meet the board. */
.ac-foreedge {
  position: absolute;
  top: 0.4%; bottom: 0.4%; right: -2.2%;
  width: 7px;
  z-index: 6;
  border-radius: 0 3px 3px 0;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .05) 70%),
    repeating-linear-gradient(180deg, #2b2926 0 1px, #151413 1px 3px);
  box-shadow: 1px 1px 3px rgba(0, 0, 0, .45);
  opacity: 0;
  transition: opacity 240ms ease;
}
/* Shutting, it waits for the cover to come over: it is the edge of the block
   seen past the shut cover, and it used to show beside a book still open. */
.ac-binder.is-closed .ac-foreedge { opacity: 1; transition-delay: calc(var(--ac-turn) * 0.26); }

/* ---------------- pages ---------------- */
.ac-page {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  z-index: 1;
  background-color: var(--ac-card-black);
  background-image: var(--ac-card-tex);
  background-size: 384px 384px;
  overflow: hidden;
}
.ac-page-left { left: 0; box-shadow: inset -22px 0 34px -22px var(--ac-gutter); }
.ac-page-right { right: 0; box-shadow: inset 22px 0 34px -22px var(--ac-gutter); }

.ac-leaf {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 50%;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform var(--ac-turn) var(--ac-ease);
}
.ac-leaf.is-turned { transform: rotateY(-180deg); }
/* A leaf nowhere near the open spread is not drawn at all - binder.js
   decides which, see isNear(). They are all hidden under the spread anyway,
   but hidden is not free: each face was still a layer the browser kept
   painted. A divider keeps its tab, which is in view wherever the book is
   open, and loses only its faces. */
.ac-leaf.is-far { display: none; }
.ac-leaf.is-far.has-tab { display: block; }
.ac-leaf.is-far.has-tab > .ac-face { display: none; }
/* ---------------- turn lighting ----------------
   binder.js publishes two numbers on any leaf that is mid-turn:

     --ac-frac   0..1, how far round the leaf is. 0 rests on the right, 1 rests
                 on the left, 0.5 is edge-on to the viewer.
     --ac-lift   the same number as a bell peaking at 0.5, when the sheet
                 stands furthest off the page.

   Everything below is a function of those two, which is why a clicked turn, a
   dragged turn and a flick all light identically - to the CSS they are the same
   fraction arriving at different speeds. A resting page has neither property
   set, and the fallbacks flatten all of it to nothing. */

/* A page in the air casts a shadow, and it casts most of one at the instant it
   stands on its edge. This was an on/off box-shadow, so a leaf barely lifted
   off the spread was already throwing its full shadow. Only while moving, so a
   settled spread stays flat and clean. */
/* A steady shadow now, not one that swells with --ac-lift: a box-shadow that
   changes every frame repaints the whole face every frame, and only the cover
   and the dividers use it (a bending sheet shows its strips instead).
   .is-lifted is on the face, not the leaf: see setLifted() in binder.js for
   why no rule here is keyed on a class of the leaf's. */
.ac-face.is-lifted {
  box-shadow: 0 16px 38px -6px rgba(0, 0, 0, .42);
}

/* Light catching the paper as it bends: one diagonal band, on a strip three
   times the width of the page, slid across by --ac-frac so it crosses the
   sheet once per turn. Because the band sits at the middle of a strip three
   times too wide, it only reaches the page between frac .25 and .75 - which
   is the half of the turn the sheet is actually tilted into the light. The
   face's overflow:hidden keeps the rest of the strip off the page.
   z-index 5 puts it over the drawing and under the divider tab.

   Slid by transform, not background-position (28 September 2026): a clicked
   turn now runs this as a Web Animation on the compositor, the same timing
   as the leaf (animateTurn() in binder.js), and a background-position moved
   every frame repainted the whole face every frame. -66.667% of the strip is
   two page widths, the same travel the background made. A drag still writes
   --ac-frac, which this reads. */
.ac-face::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 300%;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  /* Black card and board take the light as a dull sheen, not a glare. */
  background-image: linear-gradient(115deg,
    rgba(255, 255, 255, 0) 34%,
    rgba(255, 255, 255, .11) 50%,
    rgba(255, 255, 255, 0) 66%);
  transform: translateX(calc(var(--ac-frac, 0) * -66.667%));
  transition: opacity 200ms ease;
}
.ac-face.is-lifted::before { opacity: 1; }

/* Grain stays a BACKGROUND blend. An overlay element using mix-blend-mode was
   tried so the grain would run across the drawings too: inside a preserve-3d /
   backface-visibility subtree the recto faces never resolved a backdrop and
   painted the grain as a flat grey slab. The drawings are graded to exactly
   --paper by content/build-media.py, which is what stops them reading as
   pasted rectangles. */
.ac-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background-color: var(--ac-card-black);
  background-image: var(--ac-card-tex);
  background-size: 384px 384px;
  overflow: hidden;
}
.ac-face-recto { box-shadow: inset 20px 0 30px -20px var(--ac-gutter); }
.ac-face-verso { transform: rotateY(180deg); box-shadow: inset -20px 0 30px -20px var(--ac-gutter); }
/* The card's cut edge down the fore-edge, catching the light. */
.ac-face::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background-color: rgba(255, 255, 255, .08);
}
.ac-face-recto::after { right: 0; }
.ac-face-verso::after { left: 0; }
.ac-face[data-kind="cover"]::after,
.ac-face[data-kind="inside"]::after { display: none; }

/* The punched holes, down the spine edge of every face, at the wire's pitch:
   34 to the page, the same 100% / 34 that binder.js spaces the loops by, so
   each hole sits under its loop wherever the page is. What shows through a
   hole is the dark of the page beneath, with the cut edge of the card as a
   faint rim. */
.ac-stage { --ac-hole-r: 3.1px; --ac-hole-w: 24px; }
.ac-holes {
  position: absolute;
  top: 0; bottom: 0;
  width: var(--ac-hole-w);
  z-index: 3;
  pointer-events: none;
  background-image: radial-gradient(circle at 50% 50%,
    rgba(4, 4, 4, .96) 0 var(--ac-hole-r),
    rgba(255, 255, 255, .12) calc(var(--ac-hole-r) + .5px),
    rgba(255, 255, 255, 0) calc(var(--ac-hole-r) + 1.4px));
  background-size: 100% calc(100% / 34);
  background-repeat: repeat-y;
}
.ac-face-recto > .ac-holes { left: 0; }
.ac-face-verso > .ac-holes { right: 0; }

/* ---------------- the wire ----------------
   Above everything: the two resting pages, because they are holding them, and
   a leaf in flight as well.

   THIS REVERSES AN EARLIER DECISION and the reasoning is worth keeping. A leaf
   in flight used to outrank the rings, so that a page could be seen passing
   over them. The rings straddle the spine, so the half of every ring lying
   under the paper was occluded the instant a turn began and returned the
   instant it ended - two hard pops per turn. Ozzy found it by using the thing:
   "the inner binding marks ... flash away when page turns and only reappear
   when it settles". Every check we had run looked at the leaf's geometry,
   timing and lighting, and none of them looked at what the rings did while it
   moved.

   Rings on top is also the better model of the object. A page in a ring binder
   is threaded THROUGH the rings: the front of each ring is in front of the
   paper wherever the paper is. The same is true of the twin-loop wire that
   replaced the rings on 27 September, and all of this still holds for it. Drawn as one flat circle, "always in front" is
   right for the front arc and wrong only for the back arc, which is the
   subtler error of the two - and the binding never disappears, which is what
   makes it read as a binder at all.

   A depth that follows the turn was tried and dropped: swapping at edge-on
   removes the pop at the start of a turn and leaves the one at the end, since
   a page lying flat on the left is under the rings again. It moved the defect
   rather than fixing it.

   See note 1 at the top of this file for why this ordering is controllable at
   all. That note records the structural fix; this is the aesthetic call the
   structure made possible, and it has now been made the other way. */
.ac-rings {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 0;
  pointer-events: none;
  /* Above Z_FLIGHT in binder.js (5000 and up), the height lift() gives a
     leaf in flight. Resting leaves sit at 10..10+MAX, far below both. This
     was 110, just above a flight at 100, and it failed once the book passed
     ninety leaves: see "Stacking" in binder.js. */
  z-index: 9000;
}
/* The wire. binder.js lays 34 loops down the gutter twice over: the open
   set, a pair of wires standing up out of the gutter and dropping into a
   hole on each page, and the shut set, the same pair curling round the
   spine edge of the cover. One set shows at a time; see the end of this
   block. Black wire on black card reads by its light, so each wire is dark
   with a sheen along its crest and a shadow under it on the card.

   (It replaced four silver D-rings, which were a generic office binder; the
   folder this is a picture of is wire-bound.) */
.ac-wire {
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 2px 1.3px rgba(0, 0, 0, .6));
  /* The two sets change over as the cover stands edge-on, a tenth of the way
     into the turn's clock and for a sixth of it after, when its spine edge is
     all there is to see. From the click, the shut book wore the open book's
     wire, and the open book the shut one's, for the first part of the swing. */
  transition: opacity 220ms ease calc(var(--ac-turn) * 0.1);
}
.ac-loop {
  position: absolute;
  left: calc(var(--ac-hole-w) / -2);
  width: var(--ac-hole-w);
  height: 5.4px;
  margin-top: -2.7px;
}
.ac-loop::before,
.ac-loop::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  border-radius: 2px;
  /* Darkest where it drops into the holes, a sheen across the crest. */
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%),
    linear-gradient(90deg, #030303 0%, #2c2a28 24%, #5b5853 50%, #2c2a28 76%, #030303 100%);
}
.ac-loop::before { top: 0; }
.ac-loop::after { bottom: 0; }
/* Shut: the pair runs from its hole in the cover to the spine edge and round
   it, so the loop starts at the hole and ends in a curl beyond the edge. */
.ac-wire-shut .ac-loop {
  left: -8px;
  width: calc(var(--ac-hole-w) / 2 + 8px);
}
.ac-wire-shut .ac-loop::before,
.ac-wire-shut .ac-loop::after {
  border-radius: 3px 1px 1px 3px;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 55%),
    linear-gradient(90deg, #030303 0%, #4a4743 22%, #2c2a28 58%, #050505 100%);
}
.ac-wire-shut { opacity: 0; }
.ac-binder.is-closed .ac-wire-shut { opacity: 1; }
.ac-binder.is-closed .ac-wire-open { opacity: 0; }

/* ---------------- the cast shadow ----------------
   What a sheet in the air throws on the page either side of it: binder.js,
   "the cast shadow". One box over each page, clipped to it, above every
   resting leaf (10 and up) and under a leaf in flight (5000 and up). The
   band inside is drawn once, black fading out, and binder.js moves it to the
   sheet's edge, stretches it and fades it: transform and opacity only, so it
   costs no paint while a page turns. Nothing at rest. */
.ac-cast {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  z-index: 4000;
  overflow: hidden;
  pointer-events: none;
}
.ac-cast-right { left: 50%; }
.ac-cast-left { left: 0; }
.ac-cast-s {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform-origin: left center;
  background-image: linear-gradient(90deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, .62) 14%,
    rgba(0, 0, 0, .28) 42%,
    rgba(0, 0, 0, .08) 74%,
    rgba(0, 0, 0, 0) 100%);
}
.ac-cast-left .ac-cast-s {
  transform-origin: right center;
  background-image: linear-gradient(270deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, .62) 14%,
    rgba(0, 0, 0, .28) 42%,
    rgba(0, 0, 0, .08) 74%,
    rgba(0, 0, 0, 0) 100%);
}
/* A block of pages going over together (binder.js, jump()): the two faces
   inside the block. On the face, never the leaf. */
.ac-face.is-under { visibility: hidden; }

/* ---------------- the bend ----------------
   While a leaf turns, binder.js hides its two faces behind a chain of strips,
   each a slice of both faces, nested so that each is hinged to the one before
   it. See "the bend" in binder.js for the model.

   binder.js sets each strip's angle and each shade's opacity itself - as
   Web Animations for a clicked turn, by hand for a drag - from the same lift
   bell that lights the turn, so there is still only one number describing
   it. They were CSS reading an inherited --ac-lift, and restyling every copy
   of the page every frame is what made the turn labour; see "the bend" in
   binder.js. --ac-bend below stays the dial: 64deg is how far the free edge
   runs ahead of the spine at the moment the sheet stands edge-on.

   No overflow:hidden on a strip - it would flatten preserve-3d and the chain
   would collapse into one plane. The clipping lives on the slices, which have
   no 3D children to flatten. */
/* On the stage with the turn's timing, where binder.js reads all three at
   the start of a turn. The leaves inherit it. */
.ac-stage { --ac-bend: 64deg; }
.ac-face.is-bent { visibility: hidden; }
/* Built ahead of a turn (binder.js, prepare()) and kept out of the way until
   one starts, shrunk to nothing rather than hidden. display:none left all
   350 or so of its elements to be styled and laid out in the click's own
   frame, and visibility:hidden was no better: it is inherited, so showing it
   restyled every one of them again (measured: 581 elements in the click).
   A transform is not inherited. Parked at scale(0) the bend is styled and
   laid out already, and a turn changes one property on one element. */
.ac-strips.is-idle { transform: scale(0); }
.ac-strips {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: calc(100% / var(--n));
  transform-style: preserve-3d;
  pointer-events: none;
}
.ac-strip {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 100%;
  transform-style: preserve-3d;
  transform-origin: left center;
}
.ac-strip > .ac-strip { left: 100%; }
/* One pixel wider than the strip, so the seams between neighbours at slightly
   different angles never open into a hairline of whatever is behind. */
.ac-slice {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: calc(100% + 1px);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.ac-slice-verso { transform: rotateY(180deg); }
/* The copy of the full face, slid so this slice shows its own part of it.
   The selector is heavy on purpose: it has to beat the leaf's own
   `.ac-face.is-lifted` shadow and the verso face's rotation. */
.ac-leaf .ac-slice > .ac-face.ac-face {
  inset: 0 auto 0 auto;
  width: calc((100% - 1px) * var(--n));
  left: calc((100% - 1px) * var(--at) * -1);
  transform: none;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}
.ac-leaf .ac-slice > .ac-face-recto.ac-face-recto { box-shadow: inset 20px 0 30px -24px var(--ac-gutter); }
.ac-leaf .ac-slice > .ac-face-verso.ac-face-verso { box-shadow: inset -20px 0 30px -24px var(--ac-gutter); }
/* The travelling glare is sized to a whole page; cut into strips it would
   repeat once per strip. The shading below replaces it while the sheet bends. */
.ac-slice > .ac-face::before { display: none; }
/* Light on a curved sheet: darker where it curls away towards the edge, a
   highlight across the shoulder of the curve. Each slice draws its own stretch
   of one continuous profile, from values binder.js computes per strip. Drawn
   once at full strength and faded with the bend (binder.js animates the
   opacity), so it is never repainted while the sheet moves. */
.ac-shade {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  background-image:
    linear-gradient(90deg,
      rgba(255, 255, 255, var(--l0, 0)),
      rgba(255, 255, 255, var(--l1, 0))),
    linear-gradient(90deg,
      rgba(20, 17, 15, var(--d0, 0)),
      rgba(20, 17, 15, var(--d1, 0)));
}

/* ---------------- page content ---------------- */
.ac-sheet {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 6.5% 7%;
}
/* Clear of the holes on whichever side the spine is. */
.ac-face-recto .ac-sheet { padding-left: calc(var(--ac-hole-w) + 6%); }
.ac-face-verso .ac-sheet { padding-right: calc(var(--ac-hole-w) + 6%); }
/* The cut-out. binder.js swaps each drawing for a piece of paper cut to its
   own shape, with its shadow on the card drawn in, so a cut piece needs no
   filter at all (see pieceOf() in binder-cut.js for why that matters in a
   turn). Where a drawing is not on white paper, or cannot be cut, it wears a
   hand trim (a clip-path) and the shadow comes from a filter here, on the
   wrapper, because a filter on the image would be cut away by the trim.
   Laid on at a slight angle, --ac-tilt, set per design. */
.ac-art {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2% 0 5%;
  rotate: var(--ac-tilt, 0deg);
  filter: var(--ac-cut-shadow);
  transition: opacity 320ms ease;
}
.ac-art.is-cut { filter: none; }
/* In the bend's copies of a page, never a filter: two dozen of them would be
   re-rendered as the sheet lifts. A trimmed drawing loses its shadow for the
   length of a turn, which nobody sees on a sheet in the air. */
.ac-slice .ac-art { filter: none; transition: none; }
/* Not shown until its piece is cut, then laid on with a short fade. It used
   to show at once as the rectangle it arrives in, and visibly shrank when the
   piece - paper margin and shadow included - took its place. */
.ac-art.is-pending { opacity: 0; }
.ac-art img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}
/* A piece fills the room on its page, as the drawing does. Left at its own
   size, a small drawing's piece sat at its pixel size in the middle of the
   page (Cookie Monster, 238 px tall in a 359 px box): a srcset picture is
   scaled by its density, a piece has none. */
.ac-art img.is-cut {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* The label: the same white paper, a small strip stuck on below the drawing
   with its number, name and how it stands. */
.ac-label {
  align-self: flex-start;
  max-width: 100%;
  padding: 0.55rem 0.8rem 0.6rem;
  background-color: var(--wp--preset--color--paper);
  background-image: var(--ac-grain);
  background-size: 128px 128px;
  background-blend-mode: soft-light;
  rotate: var(--ac-tilt, 0deg);
  box-shadow: 0 .6px .5px rgba(0, 0, 0, .7), 0 6px 10px -4px rgba(0, 0, 0, .55);
}
.ac-caption {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.ac-caption > * { margin: 0; }
.ac-no {
  font-family: var(--wp--preset--font-family--mono);
  font-weight: 500;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: var(--wp--preset--color--ink);
  flex: none;
}
.ac-nm {
  font-size: 0.95rem;
  color: var(--wp--preset--color--ink-soft);
  flex: 1 1 auto;
  min-width: 0;
}
.ac-st {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--wp--preset--color--pencil);
  border: 1px solid var(--wp--preset--color--rule);
  padding: 0.16rem 0.45rem;
  flex: none;
}
.ac-claim { margin: 0.35rem 0 0; }
.ac-claim a {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--wp--preset--color--pencil);
  border-bottom: 1px solid var(--wp--preset--color--rule);
  padding-bottom: 1px;
}
.ac-claim a:hover,
.ac-claim a:focus-visible {
  color: var(--wp--preset--color--red);
  border-bottom-color: var(--wp--preset--color--red);
}

/* ---------------- dividers ----------------
   One sheet of card per section, filed in front of its designs. The front
   names the section; the back is plain, as a real divider's is. Card, not
   paper: a shade darker and warmer than the pages, so a divider reads as a
   different material the moment it comes into view - and it does not bend
   as it turns (binder.js leaves card out of the curl). */
.ac-stage { --ac-card: color-mix(in srgb, var(--wp--preset--color--paper-shade) 78%, #c9ab7d); }
.ac-divider {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12%;
  background-color: var(--ac-card);
  background-image: var(--ac-kraft-tex);
  background-size: 384px 384px;
}
.ac-divider-kicker,
.ac-divider-count {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--pencil);
  margin: 0;
}
.ac-divider-name {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  line-height: 1.1;
  text-wrap: balance;
  color: var(--wp--preset--color--ink);
  margin: 0.7rem 0 0;
}
.ac-divider .ac-cover-rule { background-color: var(--wp--preset--color--rule); }

/* The divider's tab. It hangs off the leaf's fore-edge, outside the page, so
   it shows whichever pages lie on top of it - see dividerTab() in binder.js.
   Wider than the board's overhang, or the board would hide it.

   Two faces, each hiding its back. The front is the tab seen while the
   divider is still ahead of you, on the right; the back is the same tab once
   the divider has been turned and lies on the left. Each face rounds its own
   OUTER edge, which for the back is its left in its own mirrored frame. */
.ac-divtab {
  position: absolute;
  left: 100%;
  width: 26px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform-style: preserve-3d;
  /* Leaves that are not the live spread have pointer-events off; a tab on
     one of them is still in plain view and must still be clickable. */
  pointer-events: auto;
}
.ac-divtab-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  writing-mode: vertical-rl;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.52rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--wp--preset--color--ink-soft);
  background-color: var(--ac-card);
  background-image: var(--ac-kraft-tex);
  background-size: 384px 384px;
  border: 1px solid rgba(20, 17, 15, .16);
  box-shadow: 1px 1px 2px rgba(20, 17, 15, .22);
  transition: background-color 160ms ease, color 160ms ease;
}
.ac-divtab-front { border-left: 0; border-radius: 0 4px 4px 0; }
.ac-divtab-back { border-right: 0; border-radius: 4px 0 0 4px; transform: rotateY(180deg); }
.ac-divtab:hover .ac-divtab-face {
  background-color: var(--wp--preset--color--paper);
  color: var(--wp--preset--color--ink);
}
.ac-divtab:focus { outline: none; }
.ac-divtab:focus-visible .ac-divtab-face {
  outline: 2px solid var(--wp--preset--color--ink);
  outline-offset: 1px;
}

/* The same jump, as a plain select, where the tabs have no room. */
.ac-section-pick {
  display: none;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--ink);
  background-color: var(--wp--preset--color--paper);
  border: 1px solid var(--wp--preset--color--rule);
  border-radius: 2px;
  padding: 0.4rem 0.5rem;
}

/* Depth on a resting spread. The drawing and its caption counter-shift by two
   or three pixels as the pointer moves - enough to say the page has thickness,
   little enough that nobody consciously sees it happen. binder.js writes the
   offsets onto the two faces in view only, so every other drawing sits at
   zero and nothing else in the book is restyled as the pointer moves. */
@media (hover: hover) and (pointer: fine) {
  .ac-face .ac-art img {
    transform: translate(calc(var(--ac-px, 0) * 3px), calc(var(--ac-py, 0) * 2px));
    transition: transform 220ms var(--ac-out);
  }
  .ac-face .ac-label {
    transform: translate(calc(var(--ac-px, 0) * -2px), calc(var(--ac-py, 0) * -1.5px));
    transition: transform 220ms var(--ac-out);
  }
}

/* ---------------- cover, inside cover, end card ----------------
   inset:0 matters. As plain flow children these sized to their content and
   covered only the top fifth of the page. */
.ac-cover,
.ac-endcard {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* The front cover is board, a little bigger than the pages, so it reaches
   past them on three sides as the back cover does: the leaf carries that
   overhang with it as it swings, which is what lets the back cover (.ac-board)
   stay still. Top and bottom are the board's 1.6% of the binder's height;
   the fore-edge is its 1.4% of the binder's width, 2.8% of a leaf. The spine
   side has none: that is the hinge. The verso turns about its own centre,
   so the overhang lands on the outer edge of the left-hand side. */
.ac-face[data-kind="cover"],
.ac-face[data-kind="inside"] {
  inset: -1.6% -2.8% -1.6% 0;
  background-color: var(--ac-board);
  background-image: var(--ac-board-tex);
  border-radius: 0 6px 6px 0;
}
.ac-face-verso[data-kind="inside"] { border-radius: 6px 0 0 6px; }
.ac-face[data-kind="cover"] > .ac-holes,
.ac-face[data-kind="inside"] > .ac-holes { top: 1.55%; bottom: 1.55%; }
.ac-cover {
  padding: 10% 12% 10% calc(var(--ac-hole-w) + 10%);
  color: var(--wp--preset--color--paper);
  /* Board edges and corners rubbed pale by handling. */
  background-image:
    radial-gradient(30% 22% at 100% 0%, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 70%),
    radial-gradient(30% 22% at 100% 100%, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 70%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 -1px 0 rgba(0, 0, 0, .5);
}
/* Cursor gloss on the shut cover: a soft sheen on the board that follows the
   pointer (--ac-mx/--ac-my, written onto this face by binder.js, measured
   across the cover itself). */
.ac-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background-image: radial-gradient(circle at var(--ac-mx, 50%) var(--ac-my, 50%),
    rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 42%);
  transition: opacity 240ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .ac-binder.is-closed:hover .ac-cover::before { opacity: 1; }
}
/* Her name, on a paper label stuck to the board, a little off straight. */
.ac-cover-label {
  position: relative;
  margin-top: -14%;
  padding: 1.5rem 1.9rem 1.35rem;
  background-color: var(--wp--preset--color--paper);
  background-image: var(--ac-grain);
  background-size: 128px 128px;
  background-blend-mode: soft-light;
  rotate: -1.4deg;
  box-shadow: 0 .8px .6px rgba(0, 0, 0, .7), 0 14px 22px -12px rgba(0, 0, 0, .75);
}
.ac-cover-mark {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ink);
  margin: 0;
}
.ac-cover-rule {
  display: block;
  width: 52px;
  height: 1px;
  margin: 14px auto;
  background-color: var(--wp--preset--color--rule);
}
.ac-cover-sub {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--pencil);
  margin: 0;
}
/* Inside of the front cover. A binder does not open onto a drawing, it opens
   onto the back of its own cover, and getting that one page right is most of
   what makes the opening feel like a book. */
.ac-cover-inside {
  padding: 10% calc(var(--ac-hole-w) + 10%) 10% 12%;
  background-image: none;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .06);
}
.ac-cover-inside::before { display: none; }
.ac-cover-inside .ac-cover-sub { color: rgba(250, 247, 242, .5); }

.ac-endcard { padding: 12% 12% 12% calc(var(--ac-hole-w) + 10%); }
.ac-endcard-note {
  padding: 1.6rem 1.7rem 1.5rem;
  max-width: 30ch;
  background-color: var(--wp--preset--color--paper);
  background-image: var(--ac-grain);
  background-size: 128px 128px;
  background-blend-mode: soft-light;
  rotate: 1.2deg;
  box-shadow: 0 .8px .6px rgba(0, 0, 0, .7), 0 14px 22px -12px rgba(0, 0, 0, .75);
}
.ac-endcard h2 {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.5rem;
  color: var(--wp--preset--color--ink);
  margin: 0 0 0.5rem;
}
.ac-endcard p {
  color: var(--wp--preset--color--ink-soft);
  font-size: 0.95rem;
  margin: 0 0 1.1rem;
}
.ac-endcard .ac-btn {
  display: inline-block;
  background-color: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.3rem;
  border-radius: 2px;
}
.ac-endcard .ac-btn:hover { background-color: var(--wp--preset--color--ink-soft); }

/* ---------------- controls ---------------- */
/* Shut, the left half of the box is empty space beside the book - and a
   disabled button sitting over it silently swallows clicks rather than letting
   them reach the handler that opens the cover. */
.ac-binder.is-closed .ac-hit-prev { display: none; }

.ac-hit {
  position: absolute;
  top: 0; bottom: 0;
  width: 16%;
  /* Over everything, the rings included, to catch the turn. */
  z-index: 9100;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.ac-hit-prev { left: 0; }
.ac-hit-next { right: 0; }
.ac-hit::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border-radius: 50%;
  background-color: rgba(250, 247, 242, .86);
  border: 1px solid var(--wp--preset--color--rule);
  opacity: 0;
  transition: opacity 180ms ease;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 9px;
}
.ac-hit-next::before {
  right: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14'%3E%3Cpath d='M1 1l6 6-6 6' fill='none' stroke='%2314110F' stroke-width='1.6'/%3E%3C/svg%3E");
}
.ac-hit-prev::before {
  left: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14'%3E%3Cpath d='M7 1L1 7l6 6' fill='none' stroke='%2314110F' stroke-width='1.6'/%3E%3C/svg%3E");
}
.ac-binder:hover .ac-hit:not([disabled])::before,
.ac-hit:focus-visible::before { opacity: 1; }
.ac-hit[disabled] { cursor: default; }
/* An open page can be taken hold of, and the cursor says so. */
@media (hover: hover) and (pointer: fine) {
  .ac-binder:not(.is-closed) .ac-leaf.is-live,
  .ac-binder:not(.is-closed) .ac-hit:not([disabled]) { cursor: grab; }
  /* The binder only. `.is-dragging *` restyled every element in the book as
     a drag began, and so did the narrower `.ac-leaf, .ac-hit`: cursor is
     inherited, so a leaf's change reaches everything inside it, bends and
     all (measured at about 100 ms of the drag's first frame on a slowed
     CPU). The binder holds the pointer while a page is in hand. */
  .ac-binder.is-dragging { cursor: grabbing; }
}
/* Focus ring on the ARROW, not on the button.
   The button is an invisible strip 16% of the binder wide and the full height
   of it, so an outline on the button itself is a 2px rectangle straight down
   the page - which reads as a printing fault, not as focus.
   :focus, not just :focus-visible. WordPress core's global stylesheet emits
   `:where(.wp-site-blocks :focus){outline-width:2px;outline-style:solid}`,
   which fires on a mouse click as well as on keyboard focus. It is zero
   specificity thanks to :where(), so .ac-hit:focus overrides it - but nothing
   scoped to :focus-visible ever would, which is why the ring survived the
   first attempt at this. */
.ac-hit:focus,
.ac-hit:focus-visible { outline: none; }
.ac-hit:focus-visible::before {
  opacity: 1;
  /* Paper ring inside an ink ring. The arrow sits over the dark cover when
     the book is closed and over paper once it is open; a single ink outline
     was invisible against the cover, which is where keyboard users meet it
     first. */
  outline: 2px solid var(--wp--preset--color--paper);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--wp--preset--color--ink);
}

/* "Open the binder": the one control a first-time visitor needs and could
   not see. It lives in the meter row, outside .ac-binder, for the same
   stacking reason as Enlarge. Hidden once the book is open. */
.ac-open-btn {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--paper);
  background-color: var(--wp--preset--color--ink);
  border: 1px solid var(--wp--preset--color--ink);
  border-radius: 2px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: transform 120ms var(--ac-out), background-color 160ms ease;
}
.ac-open-btn:hover { background-color: var(--wp--preset--color--ink-soft); }
.ac-open-btn:active { transform: translateY(1px) scale(0.985); }
.ac-open-btn:focus-visible {
  outline: 2px solid var(--wp--preset--color--ink);
  outline-offset: 2px;
}
.ac-open-btn[hidden] { display: none; }

.ac-meter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}
.ac-meter p { margin: 0; }
/* A fixed measure. Left to fill the row it was one line beside a divider and
   two beside a design, where the counter is longer and Enlarge joins it, so
   the row changed height under the book at the click of a turn and
   everything below it on the page moved. Two even lines, always. */
.ac-hint {
  font-size: 0.85rem;
  color: var(--wp--preset--color--pencil);
  max-width: 40ch;
  text-wrap: balance;
}
.ac-count {
  white-space: nowrap;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--pencil);
}

.ac-sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------------- responsive ---------------- */
@media (max-width: 860px) {
  .ac-binder { aspect-ratio: 1.3 / 1; }
  .ac-section-pick { display: block; }
  .ac-sheet { padding: 6% 7%; }
  .ac-stage { --ac-hole-r: 2.4px; --ac-hole-w: 18px; }
  .ac-loop { height: 4.4px; margin-top: -2.2px; }
  .ac-loop::before, .ac-loop::after { height: 1.6px; }
  .ac-foreedge { width: 6px; }
  .ac-cover-label { padding: 1.1rem 1.3rem 1rem; }
  .ac-cover-mark { font-size: 1rem; }
  .ac-caption { gap: 0.45rem; }
  .ac-no, .ac-nm { font-size: 0.82rem; }
  .ac-st { font-size: 0.56rem; }
}
@media (max-width: 620px) {
  .ac-stage { padding-top: 34px; }
  /* No room beside the book for tabs at this width; the select in the meter
     row does the same job. */
  .ac-divtab { display: none; }
  .ac-binder { width: 100%; }
  .ac-binder { aspect-ratio: 1.08 / 1; }
  .ac-art { padding-bottom: 6%; }
  .ac-stage { --ac-hole-r: 1.8px; --ac-hole-w: 13px; }
  .ac-loop { height: 3.6px; margin-top: -1.8px; }
  .ac-loop::before, .ac-loop::after { height: 1.3px; }
  .ac-label { padding: 0.4rem 0.55rem 0.45rem; }
  .ac-cover-mark { font-size: 0.82rem; letter-spacing: 0.12em; }
  .ac-cover-sub { font-size: 0.56rem; }
  .ac-nm { display: none; }
  .ac-hit { width: 22%; }
  .ac-hit::before { opacity: 1; }
  .ac-meter { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .ac-binder, .ac-board, .ac-board::after, .ac-leaf, .ac-wire, .ac-page-left, .ac-foreedge, .ac-art,
  .ac-binder.is-closed .ac-foreedge {
    transition: none;
  }
  .ac-cast { display: none; }
  .ac-binder.is-closed.is-nudging { animation: none; }
  .ac-binder.is-closed:hover { transform: translateX(-25%) rotate(-1.5deg); }
  .ac-open-btn { transition: none; }
  .ac-open-btn:active { transform: none; }
  /* Everything the motion pass added is decoration on top of a book that
     already works. The turn itself stays - instant, per the rule above - and
     the glare, the gloss, the parallax, the dynamic shadow and the end-stop
     give all go. binder.js makes the matching decision for the JavaScript
     half, so neither side can be left running on its own. */
  .ac-face::before,
  .ac-cover::before,
  .ac-board::after { display: none; }
  .ac-face.is-lifted { box-shadow: none; }
  .ac-binder { translate: none; }
  .ac-art img,
  .ac-label { transform: none; transition: none; }
}
