/* The flash machine (mu-plugins/artychar-flash-machine.php).

   0.2.0, 24 Nov 2026 (David: "needs dressing up in her stylised tattoo artwork
   look ... high end"). It is made of her flash binder's own things, nothing
   new: the black board of its cover (binder.css .ac-board), the paper page a
   drawing sits on, the strip of paper stuck on under it with the design's
   number (.ac-label), the kraft of the dividers. And the drawings are hers:
   each word shows the design it was named after.

   Measured. On paper #FAF7F2: ink #14110F 17.6:1, ink-soft #4A423C 9.0:1,
   pencil #6E645C 5.4:1. On the board #171614: paper #FAF7F2 16.9:1.
   Red #C1272D only as the slip's ruled lines. */

.ac-machine {
  --m-paper: var(--wp--preset--color--paper, #FAF7F2);
  --m-shade: var(--wp--preset--color--paper-shade, #F1EBE2);
  --m-ink: var(--wp--preset--color--ink, #14110F);
  --m-soft: var(--wp--preset--color--ink-soft, #4A423C);
  --m-pencil: var(--wp--preset--color--pencil, #6E645C);
  --m-rule: var(--wp--preset--color--rule, #DED5C9);
  --m-red: var(--wp--preset--color--red, #C1272D);
  --m-board: #171614;
  --m-out: var(--ac-out, cubic-bezier(.16, 1, .3, 1));
  --m-grain: url("../paper-grain.png");
  /* A sheet lying on the board: a hairline where its edge sits, and a soft fall further out. */
  --m-lift: 0 .8px .6px rgba(0, 0, 0, .7), 0 14px 22px -12px rgba(0, 0, 0, .75);
  max-width: 58rem;
  margin: 0 auto var(--wp--preset--spacing--40, 3rem);
}

/* This page's heading stands on the board's left edge, not the reading column's. */
.ac-page-flash-machine .ac-page-head > * { max-width: 58rem; }
/* Less air under it while the tabs are there: they take that room. */
.ac-page-flash-machine .ac-page-head:has(+ .ac-machine .ac-m-tabs) { padding-bottom: .85rem !important; }

/* ---- the looks, as tabs on the board's top edge ------------------------
   Only while she chooses. Cut like the binder's divider tabs (binder.css
   .ac-divtab-face): kraft, mono capitals, a hairline edge. The one showing is
   the board's own black, so it reads as part of the board. They are links. */
.ac-m-tabs {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: .4rem 1.5rem;
  padding: 0 clamp(.5rem, 1.6vw, 1.25rem);
}
.ac-m-tabs ul { display: flex; align-items: flex-end; gap: .3rem; margin: 0; padding: 0; list-style: none; }
.ac-m-tabs a {
  display: flex; align-items: center; justify-content: center;
  min-height: 2.5rem;
  padding: 0 .95rem;
  font-family: var(--wp--preset--font-family--mono);
  font-size: .72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--m-soft);
  background-color: color-mix(in srgb, var(--m-shade) 78%, #c9ab7d);
  background-image: url("../binder-kraft.webp");
  background-size: 384px 384px;
  border: 1px solid rgba(20, 17, 15, .16);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  transition: background-color 160ms ease, color 160ms ease, min-height 160ms var(--m-out);
}
.ac-m-tabs a:hover { background-color: var(--m-paper); background-image: none; color: var(--m-ink); min-height: 2.75rem; }
.ac-m-tabs a[aria-current] {
  min-height: 2.9rem;
  font-weight: 500;
  color: var(--m-paper);
  background-color: var(--m-board);
  background-image: url("../binder-board.webp");
  border-color: var(--m-board);
}
.ac-m-tabs a:focus-visible { outline: 2px solid var(--m-ink); outline-offset: 2px; }
.ac-m-tabs-note {
  margin: 0; padding-bottom: .7rem;
  font-family: var(--wp--preset--font-family--mono);
  font-size: .75rem;
  text-align: right;
  color: var(--m-pencil);
}
@media (min-width: 62rem) {
  .ac-page-flash-machine .ac-page-head > p { box-sizing: border-box; padding-inline-end: 20rem; }
}

.ac-m-skip { position: absolute; left: -999rem; }
.ac-m-skip:focus { left: 1rem; top: 1rem; z-index: 10; padding: .5rem .75rem; background: #14110F; color: #FAF7F2; }

/* ---- the board ------------------------------------------------------ */
.ac-m-board {
  padding: clamp(.75rem, 2.6vw, 2rem);
  border-radius: 6px;
  color: var(--m-paper);
  background-color: var(--m-board);
  /* Corners rubbed pale by handling, as on the binder's cover. */
  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 0% 100%, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0) 60%),
    url("../binder-board.webp");
  background-size: auto, auto, 384px 384px;
  box-shadow: 0 26px 60px -22px rgba(0, 0, 0, .6), 0 2px 5px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.ac-m-board ::selection { background-color: var(--m-paper); color: var(--m-ink); }
.ac-m-board :where(a, button):focus-visible { outline: 2px solid var(--m-paper); outline-offset: 3px; border-radius: 2px; }

/* ---- three pages, each one of her drawings --------------------------- */
.ac-m-reels,
.ac-m-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.5rem, 2vw, 1.5rem);
}
.ac-m-slot { position: relative; padding-bottom: 1.15rem; min-width: 0; }
.ac-m-window {
  position: relative;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  border-radius: 1px;
  /* Flat paper, no grain: her drawings are normalised to exactly this colour, so they sit flush. */
  background-color: var(--m-paper);
  box-shadow: var(--m-lift);
}
.ac-m-strip {
  --at: 0;
  display: flex; flex-direction: column;
  height: 100%;
  transform: translateY(calc(var(--at) * -100%));
  will-change: transform;
}
.ac-m-plate {
  flex: 0 0 100%;
  box-sizing: border-box;
  min-height: 0;
  height: 100%;
  padding: 8% 9% 15%;
  /* One cell of a fixed size, so a tall drawing is held to the page's height as well as its width. */
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center;
  overflow: hidden;
}
/* The picture is its own size inside the page, never stretched to the box, so
   the fade below lands on the scan's real edges. A scan keeps a faint band of
   its own paper there, which drew its rectangle on the page (as on the home
   page's drawing, style.css .ac-hero-art). */
.ac-m-plate img,
.ac-m-thumb img {
  display: block;
  width: auto; height: auto;
  min-width: 0; min-height: 0;
  max-width: 100%; max-height: 100%;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 5%, #000 96%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 5%, #000 96%, transparent 100%);
  mask-composite: intersect;
}
/* As a reel lands its drawing drops the last hair's breadth and rests. */
.ac-m-plate.is-landed img { animation: ac-m-settle 460ms var(--m-out) both; }
@keyframes ac-m-settle {
  from { translate: 0 -3.5%; }
  to { translate: 0 0; }
}

/* Her word in place of a drawing that would not load. */
.ac-m-plate.is-word, .ac-m-thumb.is-word {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(1rem, 2vw, 1.5rem);
  line-height: 1.1;
  text-align: center;
  color: var(--m-ink);
}

/* The label: a strip of the same paper stuck on under the drawing, with its
   number in the binder and the word. Each sits at its own slight angle. */
.ac-m-tag {
  position: absolute; left: 6%; bottom: 0; z-index: 2;
  box-sizing: border-box;
  max-width: 88%;
  margin: 0;
  padding: .5rem .8rem .55rem;
  display: flex; align-items: baseline; gap: .6rem;
  color: var(--m-ink);
  background-color: var(--m-paper);
  background-image: var(--m-grain);
  background-size: 128px 128px;
  background-blend-mode: soft-light;
  box-shadow: 0 .6px .5px rgba(0, 0, 0, .7), 0 6px 10px -4px rgba(0, 0, 0, .55);
  rotate: var(--tilt, -1.3deg);
  /* Pressed on: it comes down a little hard and gives. */
  transition: opacity 160ms ease, translate 380ms var(--m-out), scale 420ms cubic-bezier(.3, 1.7, .5, 1);
}
.ac-m-slot:nth-child(2) .ac-m-tag { --tilt: .9deg; }
.ac-m-slot:nth-child(3) .ac-m-tag { --tilt: -.5deg; }
/* Lifted off while the page behind it changes; pressed back on when it lands. */
.ac-m-tag.is-off { opacity: 0; translate: 0 -10px; scale: 1.16; transition-duration: 120ms; }
.ac-m-no {
  flex: none;
  font-family: var(--wp--preset--font-family--mono);
  font-weight: 500;
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
  color: var(--m-soft);
}
.ac-m-nm {
  min-width: 0;
  font-family: var(--wp--preset--font-family--display);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 40;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
}

/* ---- 0.4.0: a reel is a drum, and a picture is a button ----------------
   Char: "Love the reels / cards one". David: "lets focus on refining and
   improving reels and cards", "make the animations really engaging".

   A reel's window falls into shade at its top and bottom, as a drum's face
   does where it turns away, so at rest it is a reel and not a card. While it
   runs fast its pages smear a little; machine.js winds it back, runs it a
   hair past and lets it come to rest. */
.ac-m-reels .ac-m-window::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(20, 17, 15, .3) 0, rgba(20, 17, 15, .08) 7%, rgba(20, 17, 15, 0) 17%,
    rgba(20, 17, 15, 0) 83%, rgba(20, 17, 15, .08) 93%, rgba(20, 17, 15, .3) 100%);
}
.ac-m-reels .ac-m-plate img { transition: scale 220ms ease, opacity 220ms ease; }
.ac-m-reels .ac-m-slot.is-running .ac-m-plate img { scale: 1 1.12; opacity: .7; }

/* Tap a picture to change just that one: a button over each, made by
   machine.js, so without it there is nothing to press that does nothing. */
.ac-m-swap {
  position: absolute; inset: 0 0 1.15rem; z-index: 1;
  margin: 0; padding: 0;
  border: 0; border-radius: 2px;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ac-machine.is-busy .ac-m-swap { cursor: default; }
/* The theme rings whatever has focus; a picture that was clicked or tapped is
   not ringed, one reached with the keyboard is, in the board's paper. */
.ac-m-board .ac-m-swap:focus:not(:focus-visible) { outline: none; }
.ac-m-board .ac-m-swap:focus-visible { outline: 2px solid var(--m-paper); outline-offset: 3px; }
.ac-m-tag { pointer-events: none; }
@media (hover: hover) {
  .ac-m-reels .ac-m-window { transition: translate 200ms var(--m-out); }
  .ac-machine:not(.is-busy) .ac-m-reels .ac-m-slot:hover .ac-m-window { translate: 0 -3px; }
}

/* The sentence, written in a word at a time. */
.ac-m-w { display: inline-block; animation: ac-m-write 480ms var(--m-out) both; animation-delay: calc(var(--i) * 55ms + 40ms); }
@keyframes ac-m-write { from { opacity: 0; translate: 0 .45em; } }

/* ---- cards: tarot-shaped, dealt and turned over ------------------------
   Narrower than a reel's window and as tall, with a card's corners, and each
   set down at its own slight angle (--lean; machine.js deals a new one with
   each card). machine.js moves the card (.ac-m-flip: gathered, cut, dealt,
   lifted); the turn itself is here. */
.ac-m-flip {
  position: relative;
  width: 90%; margin-inline: auto;
  aspect-ratio: 3 / 4;
  perspective: 1100px;
  rotate: var(--lean, 0deg);
  transition: rotate 420ms var(--m-out), translate 220ms var(--m-out);
}
.ac-m-cards .ac-m-slot:nth-child(1) { --lean: -1.1deg; }
.ac-m-cards .ac-m-slot:nth-child(2) { --lean: .6deg; }
.ac-m-cards .ac-m-slot:nth-child(3) { --lean: 1.3deg; }
.ac-m-flip-in {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 560ms cubic-bezier(.45, 0, .2, 1);
}
.ac-m-slot.is-back .ac-m-flip-in { transform: rotateY(180deg); }
.ac-m-face {
  position: absolute; inset: 0; aspect-ratio: auto;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  border-radius: clamp(4px, .9vw, 9px);
}
/* The face: a hairline inside the edge, as a tarot card has. */
.ac-m-cards .ac-m-window::after {
  content: ""; position: absolute; inset: 4.5%; pointer-events: none;
  border: 1px solid rgba(20, 17, 15, .5);
  border-radius: clamp(2px, .5vw, 5px);
}
.ac-m-cards .ac-m-plate { padding: 12% 12% 17%; }
/* The back (David: "something brand fitting - perhaps a little tarot like in
   Chars art design styles"): her sun face between two of her crescent moons,
   the lower one turned round so the card reads the same either way up, inside
   a beaded border, in ink on the binder's kraft. Her drawings, flash 137 and
   138; content/build-card-back.py makes the file. */
.ac-m-back {
  transform: rotateY(180deg);
  background: #e4d6c0 url("card-back.webp") center / 100% 100% no-repeat;
  box-shadow: var(--m-lift);
}
/* Its label sits in the middle of the foot, as a card's title does. */
.ac-m-cards .ac-m-tag { left: 0; right: 0; width: fit-content; max-width: 96%; margin-inline: auto; }
@media (hover: hover) {
  .ac-machine:not(.is-busy) .ac-m-cards .ac-m-slot:hover .ac-m-flip { translate: 0 -5px; rotate: 0deg; }
}

/* ---- slip: one sheet, filled in --------------------------------------- */
.ac-m-slip { display: grid; justify-items: center; padding: clamp(.1rem, .8vw, .5rem) 0 clamp(.25rem, 1vw, .5rem); }
.ac-m-sheet {
  box-sizing: border-box;
  width: 100%; max-width: 42rem;
  padding: clamp(1.1rem, 3vw, 2rem) clamp(1.1rem, 3.5vw, 2.25rem) clamp(1.4rem, 3.5vw, 2.25rem);
  color: var(--m-ink);
  background-color: var(--m-paper);
  background-image: var(--m-grain);
  background-size: 128px 128px;
  background-blend-mode: soft-light;
  box-shadow: var(--m-lift);
  rotate: -.5deg;
}
.ac-m-slip-head {
  margin: 0 0 .5rem;
  padding-bottom: .75rem;
  border-bottom: 1.5px solid var(--m-ink);
  font-family: var(--wp--preset--font-family--mono);
  font-size: .8125rem;
  color: var(--m-soft);
}
.ac-m-slip dl { margin: 0; }
.ac-m-line {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) clamp(3.75rem, 8vw, 4.75rem);
  align-items: end;
  gap: .75rem;
  padding-top: .5rem;
}
.ac-m-line dt {
  padding-bottom: .55rem;
  font-family: var(--wp--preset--font-family--mono);
  font-size: .8125rem;
  color: var(--m-pencil);
}
.ac-m-words {
  margin: 0;
  padding: 0 .1rem .3rem;
  border-bottom: 2px solid var(--m-red);
  font-family: var(--wp--preset--font-family--display);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 72;
  font-style: italic;
  font-size: clamp(1.35rem, 4.4vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 160ms ease;
}
.ac-m-words.is-rolling { color: var(--m-pencil); }
/* Her drawing of it, at the line's end. The sheet's grain shows through it. */
.ac-m-thumb { margin: 0; aspect-ratio: 1; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; overflow: hidden; }
.ac-m-thumb img { transition: opacity 220ms ease; }
.ac-m-thumb.is-off img { opacity: 0; }

/* ---- what came up, and what to do with it --------------------------- */
.ac-m-readout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(.9rem, 2vw, 1.4rem);
}
.ac-m-result {
  margin: 0;
  min-height: 2.4em;
  display: flex; align-items: flex-end;
  font-family: var(--wp--preset--font-family--display);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 72;
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.014em;
  text-wrap: balance;
  transition: opacity 240ms ease;
}
.ac-machine.is-busy .ac-m-result { opacity: 0; transition-duration: 120ms; }
/* The slip, the book and the sheet already read as the sentence. */
.ac-m-says .ac-m-result {
  position: absolute; width: 1px; height: 1px; min-height: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.ac-m-says .ac-m-readout { grid-template-columns: 1fr; justify-items: end; }
.ac-m-actions { display: flex; align-items: center; gap: 1.5rem; }
.ac-m-spin {
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box;
  min-width: 9.5rem; min-height: 52px;
  padding: 0 1.75rem;
  border: 0; border-radius: 2px;
  background-color: var(--m-paper);
  color: var(--m-ink);
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--medium, 1.0625rem);
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms var(--m-out), background-color 160ms ease, opacity 160ms ease;
}
.ac-m-spin:hover { background-color: #fff; transform: translateY(-1px); }
.ac-m-spin:active { transform: translateY(1px) scale(.985); }
.ac-m-spin[aria-disabled="true"] { opacity: .6; cursor: default; transform: none; }
.ac-m-ask {
  padding: .7rem 0;
  font-weight: 500;
  color: var(--m-paper);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: text-decoration-thickness 160ms ease, opacity 200ms ease;
}
.ac-m-ask:hover { color: #fff; text-decoration-thickness: 2px; }
.ac-machine.is-busy .ac-m-ask { opacity: 0; pointer-events: none; }
/* "Send to a friend": quieter than the other two, a button because it acts. */
.ac-m-share {
  padding: .7rem 0;
  border: 0; background: none;
  font: inherit;
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--small, .875rem);
  color: rgba(250, 247, 242, .78);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  cursor: pointer;
  transition: color 160ms ease, opacity 200ms ease;
}
.ac-m-share:hover { color: #fff; }
.ac-machine.is-busy .ac-m-share { opacity: 0; pointer-events: none; }

.ac-m-foot {
  margin: clamp(1.25rem, 3vw, 1.75rem) 0 0;
  font-size: var(--wp--preset--font-size--small, .875rem);
  color: var(--m-soft);
}

/* ---- phones: still three across, the word in the sentence below ------- */
@media (max-width: 640px) {
  .ac-m-window, .ac-m-flip { aspect-ratio: 3 / 4; }
  .ac-m-flip { width: 94%; }
  .ac-m-plate { padding: 9% 8% 20%; }
  .ac-m-cards .ac-m-plate { padding: 13% 11% 22%; }
  .ac-m-slot { padding-bottom: .7rem; }
  .ac-m-swap { inset: 0 0 .7rem; }
  .ac-m-tag { left: 8%; padding: .25rem .5rem .3rem; }
  .ac-m-no { font-size: .8rem; color: var(--m-ink); }
  :is(.ac-m-reels, .ac-m-cards) .ac-m-nm { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ac-m-readout { grid-template-columns: 1fr; gap: .9rem; }
  .ac-m-result { min-height: 3.6em; font-size: 1.4rem; }
  .ac-m-actions { flex-direction: column-reverse; align-items: stretch; gap: .25rem; text-align: center; }
  .ac-m-spin { width: 100%; }
  .ac-m-sheet { rotate: none; }
  .ac-m-line { grid-template-columns: 2.6rem minmax(0, 1fr) 3.5rem; gap: .5rem; }
  /* A long one ("a death's-head moth") takes a second line here, never an ellipsis. */
  .ac-m-words { font-size: 1.3rem; white-space: normal; overflow: visible; text-wrap: balance; }
  .ac-m-says .ac-m-readout { justify-items: stretch; }
  /* Six tabs in two rows of three, the note above them. */
  .ac-m-tabs { flex-direction: column; align-items: stretch; gap: 0; padding: 0 .4rem; }
  .ac-m-tabs-note { order: -1; padding-bottom: .5rem; text-align: left; }
  .ac-m-tabs ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem; align-items: end; }
  .ac-m-tabs a, .ac-m-tabs a:hover { min-height: 2.6rem; padding: 0 .2rem; font-size: .68rem; letter-spacing: 0.03em; }
  .ac-m-tabs a[aria-current] { min-height: 2.6rem; }
  /* An upper row, when there is a lower one (more than three tabs), stands clear of the board. */
  .ac-m-tabs ul:has(li:nth-child(4)) li:nth-child(-n+3) a { border-radius: 4px; border-bottom: 1px solid rgba(20, 17, 15, .16); }
  .ac-m-tabs ul:has(li:nth-child(4)) li:nth-child(-n+3) a[aria-current] { border-bottom-color: var(--m-board); }
}

@media (prefers-reduced-motion: reduce) {
  .ac-m-tabs a { transition: none; }
  .ac-m-flip-in, .ac-m-result, .ac-m-words, .ac-m-tag, .ac-m-thumb img, .ac-m-spin, .ac-m-ask, .ac-m-share, .ac-m-layer, .ac-m-figno { transition: none; }
  .ac-m-flip, .ac-m-reels .ac-m-window, .ac-m-reels .ac-m-plate img { transition: none; }
  .ac-m-w { animation: none; }
  .ac-m-plate.is-landed img { animation: none; }
}

/* ====================================================================
   0.3.0: three more looks, of the same binder things.
   ==================================================================== */

/* ---- book: a mix-and-match flip book ---------------------------------
   Three punched strips, one over another. Each turns its own page, and the
   three read down as the sentence. */
.ac-m-book {
  --leaf: clamp(5.25rem, 12.5vw, 8.25rem);
  display: grid; gap: clamp(.4rem, 1vw, .6rem);
  width: 100%; max-width: 46rem;
  margin: 0 auto;
  perspective: 1800px;
}
.ac-m-leaf { position: relative; }
.ac-m-page {
  position: relative;
  display: grid;
  grid-template-columns: clamp(1.75rem, 4vw, 2.5rem) calc(var(--leaf) * 1.25) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 clamp(.5rem, 1.6vw, 1.1rem);
  height: var(--leaf);
  padding-right: clamp(.75rem, 2vw, 1.4rem);
  border-radius: 1px;
  background-color: var(--m-paper);
  box-shadow: var(--m-lift);
}
/* The holes the binder's wire goes through: the board shows through them. */
.ac-m-holes {
  align-self: stretch;
  background-image: radial-gradient(circle at 50% 50%, var(--m-board) 0 5px, rgba(20, 17, 15, .18) 5.6px, rgba(20, 17, 15, 0) 6.6px);
  background-size: 100% 50%;
  background-repeat: repeat-y;
}
.ac-m-page .ac-m-plate { height: var(--leaf); padding: 7% 4%; }
.ac-m-leafwords {
  margin: 0;
  min-width: 0;
  font-family: var(--wp--preset--font-family--display);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 96;
  font-style: italic;
  font-size: clamp(1.35rem, 4.6vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--m-ink);
}
.ac-m-page > .ac-m-no { align-self: end; padding-bottom: .6rem; }
/* The page that was showing, turned away on the holes' side until it is edge-on. */
.ac-m-turn {
  position: absolute; inset: 0; z-index: 3;
  transform-origin: 0 50%;
  backface-visibility: hidden;
  transition: transform 600ms cubic-bezier(.5, 0, .75, .3), filter 600ms ease-in;
}
.ac-m-turn.is-turning { transform: rotateY(-91deg); filter: brightness(.82); }

/* ---- sheet: one flash sheet, as flash is sold ------------------------
   The three drawings set out on a ruled sheet with their numbers, the idea
   lettered beneath and her wordmark at the foot. A spin deals it off the pile. */
.ac-m-sheetlook { display: grid; justify-items: center; }
.ac-machine[data-look="sheet"] .ac-m-board { overflow: hidden; }
.ac-m-pile { position: relative; width: 100%; max-width: 40rem; }
/* The next sheets in the pile, a little out of square under the top one. */
.ac-m-pile::before,
.ac-m-pile::after {
  content: "";
  position: absolute; inset: 0;
  background-color: var(--m-shade);
  box-shadow: var(--m-lift);
  rotate: 1.1deg;
}
.ac-m-pile::after { rotate: -.7deg; background-color: color-mix(in srgb, var(--m-paper) 60%, var(--m-shade)); }
.ac-m-flash {
  position: relative; z-index: 1;
  box-sizing: border-box;
  padding: clamp(1rem, 2.6vw, 1.75rem) clamp(1rem, 2.6vw, 1.75rem) clamp(.75rem, 2vw, 1.1rem);
  border-radius: 1px;
  color: var(--m-ink);
  background-color: var(--m-paper);
  box-shadow: var(--m-lift);
  /* The border ruled inside a flash sheet's edge. */
  outline: 1px solid var(--m-ink);
  outline-offset: calc(-1 * clamp(.4rem, 1.1vw, .7rem));
}
.ac-m-flash-art {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(.25rem, 1vw, .75rem) clamp(.5rem, 1.6vw, 1.25rem);
  aspect-ratio: 16 / 7.7;
}
.ac-m-fig { margin: 0; min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.ac-m-fig:first-child { grid-row: 1 / span 2; }
.ac-m-fig .ac-m-plate { height: auto; padding: 2% 4% 0; }
.ac-m-figno {
  display: flex; justify-content: center; align-items: baseline; gap: .5rem;
  padding-top: .2rem;
  transition: opacity 200ms ease;
}
.ac-m-figno.is-off { opacity: 0; }
.ac-m-figno .ac-m-nm { font-size: clamp(.9rem, 1.5vw, 1.05rem); color: var(--m-soft); }
.ac-m-flash-title {
  margin: clamp(.6rem, 1.6vw, 1rem) 0 0;
  padding-top: clamp(.6rem, 1.6vw, 1rem);
  border-top: 1px solid var(--m-ink);
  min-height: 1.2em;
  font-family: var(--wp--preset--font-family--display);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 96;
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.016em;
  text-align: center;
  text-wrap: balance;
}
/* The wordmark she already uses, as a sheet is signed. */
.ac-m-flash-mark {
  margin: clamp(.4rem, 1vw, .65rem) 0 0;
  font-family: var(--wp--preset--font-family--display);
  font-variation-settings: "SOFT" 20, "WONK" 0, "opsz" 40;
  font-weight: 600;
  font-size: .66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: var(--m-soft);
}
.ac-m-flash.is-leaving {
  position: absolute; inset: 0; z-index: 3;
  transition: translate 640ms cubic-bezier(.5, 0, .8, .45), rotate 640ms cubic-bezier(.5, 0, .8, .45), opacity 260ms ease 400ms;
}
.ac-m-flash.is-leaving.is-gone { translate: 82% -7%; rotate: 8deg; opacity: 0; }

/* ---- trace: three tracings on a light table --------------------------
   Laid over each other the way a piece is worked out: the setting first, a
   subject either side.

   0.3.1: NOTHING IS MERGED. Her drawings are finished pieces (a street scene
   is 30% ink), and two laid line over line go to mud. So the setting lies
   underneath as a ghost, fainter the more ink it carries (--ghost, set by
   machine.js; .5 without it), and each subject sits on its own sheet, which
   veils what is under it as tracing paper does. A subject's lines are only
   ever drawn on its own sheet. */
.ac-m-table {
  position: relative;
  aspect-ratio: 2.6 / 1;
  border-radius: 1px;
  /* The glass of a light table: lit from under, brightest in the middle. */
  background-color: #fff;
  background-image: radial-gradient(90% 120% at 50% 50%, #fff 0 55%, var(--m-paper) 100%);
  box-shadow: var(--m-lift);
  overflow: hidden;
}
.ac-m-layer {
  --rot: 0deg; --out: 0 40%;
  position: absolute; top: 6%;
  height: 88%; aspect-ratio: 4 / 5;
  /* Tracing paper: it veils most of what lies under it. */
  background-color: rgba(250, 247, 242, .8);
  box-shadow: 0 0 0 1px rgba(20, 17, 15, .07), 0 8px 16px -10px rgba(20, 17, 15, .35);
  rotate: var(--rot);
  transition: translate 640ms var(--m-out), rotate 640ms var(--m-out), opacity 220ms ease;
}
.ac-m-layer .ac-m-plate { padding: 7%; }
/* The scan's own paper goes, so only its lines are on the sheet: lifted the
   last 3% to white first, or multiplying it would leave the scan's rectangle
   a shade darker than the sheet round it. */
.ac-m-layer .ac-m-plate img { filter: brightness(1.035); mix-blend-mode: multiply; }
.ac-m-layer:nth-child(1) { left: 17%; --rot: -4deg; --out: -70% 12%; z-index: 2; }
.ac-m-layer:nth-child(2) { right: 17%; --rot: 3.5deg; --out: 70% -10%; z-index: 3; }
/* The setting: square, a little bigger, centred under the other two (half its
   own width back, as a share of the table's: 96% of the height, over 2.6). */
.ac-m-layer:nth-child(3) {
  top: 2%; height: 96%; aspect-ratio: 1;
  left: 50%; margin-left: -18.46%;
  --rot: -.6deg; --out: 0 70%; z-index: 1;
  background-color: rgba(250, 247, 242, .5);
}
.ac-m-layer:nth-child(3) .ac-m-plate { padding: 4%; }
.ac-m-layer:nth-child(3) .ac-m-plate img { opacity: var(--ghost, .5); transition: opacity 300ms ease; }
.ac-m-layer.is-out { translate: var(--out); rotate: calc(var(--rot) * 3); opacity: 0; transition: translate 360ms cubic-bezier(.5, 0, .8, .4), rotate 360ms cubic-bezier(.5, 0, .8, .4), opacity 200ms ease 160ms; }
.ac-m-tags { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-top: clamp(.75rem, 1.8vw, 1.1rem); }
.ac-m-tags .ac-m-tag { position: static; max-width: 100%; }
.ac-m-tags .ac-m-tag:nth-child(2) { --tilt: .9deg; }
.ac-m-tags .ac-m-tag:nth-child(3) { --tilt: -.5deg; }

@media (max-width: 640px) {
  .ac-m-page { grid-template-columns: 1.5rem var(--leaf) minmax(0, 1fr); padding-right: .6rem; }
  .ac-m-page > .ac-m-no { display: none; }
  .ac-m-leafwords { font-size: clamp(1.2rem, 6vw, 1.6rem); }
  .ac-m-holes { background-image: radial-gradient(circle at 50% 50%, var(--m-board) 0 4px, rgba(20, 17, 15, .18) 4.6px, rgba(20, 17, 15, 0) 5.4px); }
  /* The sheet stands upright here: the first drawing across the top, the other two under it. */
  .ac-m-flash-art { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr); aspect-ratio: 4 / 4.6; }
  .ac-m-fig:first-child { grid-row: auto; grid-column: 1 / span 2; }
  .ac-m-figno .ac-m-nm { font-size: .85rem; }
  /* The table too: the setting below, a subject at each top corner. */
  .ac-m-table { aspect-ratio: 4 / 4.7; }
  .ac-m-layer { top: 3%; height: 52%; }
  .ac-m-layer:nth-child(1) { left: 3%; }
  .ac-m-layer:nth-child(2) { right: 3%; top: 8%; }
  /* The setting: wider, low and centred, its top third under the two subjects. */
  .ac-m-layer:nth-child(3) { top: 36%; height: 62%; aspect-ratio: 1; margin-left: 0; left: 13.5%; }
  .ac-m-tags { gap: .4rem .6rem; }
  .ac-m-tags .ac-m-nm { font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ac-m-turn, .ac-m-flash.is-leaving { transition: none; }
}
