/* About: a pegboard of AJ's things on a dotted desk (load after neo-home.css, which holds the type, colors,
   the cursor pill, the listening card and tabs, and the page-load reveal).
   Everything on the board is drawn in board units: --u is 1px when the board fits at full size (one seamless
   1120 x 400 board, with room either side for the title) and shrinks with the screen below that, so the whole
   board scales as one piece. The board is two 560 x 400 halves laid edge to edge (stacked on phones); positions
   are half-local: --x/--y/--w/--h in units, from the half's top-left corner.
   The slots sit on a 40-unit grid that runs straight across the seam: one row at x 30 + 40k, y 31 + 40j, the
   staggered row at x 50 + 40k, y 51 + 40j.
   Hooks and clips are mounted on real slots. */
:root { --pop: cubic-bezier(.34, 1.56, .64, 1); --win-spring: cubic-bezier(.22, 1, .36, 1); }
/* windows open on a soft spring: damping .82, about 1% overshoot over 750 ms (the site --spring overshoots ~5%) */
@supports (transition-timing-function: linear(0, 1)) {
  :root { --win-spring: linear(0, 0.0160, 0.0578, 0.1171, 0.1876, 0.2641, 0.3427, 0.4204, 0.4951, 0.5653, 0.6301, 0.6890, 0.7416, 0.7882, 0.8288, 0.8638, 0.8937, 0.9189, 0.9398, 0.9570, 0.9710, 0.9821, 0.9908, 0.9975, 1.0024, 1.0060, 1.0085, 1.0100, 1.0108, 1.0111, 1.0110, 1.0105, 1.0099, 1.0091, 1.0083, 1.0074, 1.0065, 1.0057, 1.0049, 1.0042, 1.0035, 1.0029, 1.0024, 1.0020, 1.0016, 1.0012, 1.0009, 1.0007, 1.0005, 1.0003, 1); }
}
html { background: #f4f4f4; }
body.about {
  background: #f4f4f4 radial-gradient(circle at 1px 1px, #d2d3d6 1px, transparent 1.3px) 0 0 / 20px 20px;
}
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); transition: color .2s ease; }
.back:hover, .back:focus-visible { color: var(--ink); }

.desk {
  --u: min(1px, (100vw - 64px) / 1232);
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 32px 72px;
}
.board { position: relative; }
/* Back sits just above the board's top-right corner */
.board__back { position: absolute; z-index: 8; right: calc(4 * var(--u)); bottom: calc(100% + 14px); }
/* AJ's pixel "About me!" sticker (188 x 34 cells with its white edge; her 2 px cells blown up 4x to 8 px by
   ~/.aki/tmp/about/title2.py, so the browser only ever scales it down). It floats over the board's top-left corner:
   the shadow sits on the unrotated h1, so it falls straight down while the sticker tilts. */
.board__title {
  position: absolute; z-index: 7; left: calc(-47 * var(--u)); top: calc(-23 * var(--u)); margin: 0; line-height: 0;
  filter: drop-shadow(0 calc(2 * var(--u)) calc(2 * var(--u)) rgba(17, 17, 17, .12))
    drop-shadow(0 calc(12 * var(--u)) calc(14 * var(--u)) rgba(17, 17, 17, .16));
}
.board__title img {
  display: block; width: calc(282 * var(--u)); height: auto;
  transform: rotate(-9deg); transform-origin: 0 100%;
}

/* SKADIS board: one white board, with the slots as a repeating tile kept inside a 20-unit margin. The two halves
   are just position frames for what hangs on them (no gap, so the slot grid stays on its 40-unit rhythm). */
.pegs {
  position: relative; display: flex; flex: none;
  border-radius: calc(14 * var(--u)); background: linear-gradient(#fff, #fbfbfb);
  box-shadow:
    inset 0 0 0 1px rgba(17, 17, 17, .035), inset 0 calc(-2 * var(--u)) 0 rgba(17, 17, 17, .025),
    0 1px 2px rgba(17, 17, 17, .05), 0 calc(14 * var(--u)) calc(36 * var(--u)) calc(-10 * var(--u)) rgba(17, 17, 17, .16);
}
.pegs::before {
  content: ""; position: absolute; inset: calc(20 * var(--u)); pointer-events: none;
  background: url("/assets/neo/about/board/slots.svg") 0 0 / calc(40 * var(--u)) calc(40 * var(--u)) repeat;
}
.peg { position: relative; flex: none; width: calc(560 * var(--u)); height: calc(400 * var(--u)); }

/* Shelf: a lit top face, then the front lip with its label */
.shelf {  /* no layer of its own: face and lip sit at 2, contact shadows at 3, the label at 5 */
  position: absolute; pointer-events: none;
  left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u)); height: calc(30 * var(--u));
}
.shelf::before {
  content: ""; position: absolute; z-index: 2; left: calc(4 * var(--u)); right: calc(4 * var(--u)); top: 0; height: calc(8 * var(--u));
  border-radius: calc(3 * var(--u)) calc(3 * var(--u)) 0 0; background: linear-gradient(#ececed, #f6f6f6);
}
.shelf__front {
  position: absolute; z-index: 2; left: 0; right: 0; top: calc(6 * var(--u)); bottom: 0;
  border-radius: calc(5 * var(--u)); background: linear-gradient(#fff, #f5f5f5);
  box-shadow: inset 0 -1px 0 rgba(17, 17, 17, .05), 0 1px 1px rgba(17, 17, 17, .07),
    0 calc(12 * var(--u)) calc(16 * var(--u)) calc(-8 * var(--u)) rgba(17, 17, 17, .22);
}
/* The label: centered on the lip's top edge so it pokes up past it, with a 4-unit white outline and a soft shadow.
   The outline is a white copy of the text behind it (an 8-unit stroke, half of it outside the letters). */
.shelf__label {
  position: absolute; z-index: 5; left: 50%; top: calc(6 * var(--u)); translate: -50% -50%;
  font: italic calc(23 * var(--u))/1 "Redaction 50", Georgia, serif; font-synthesis: none; letter-spacing: 0;
  white-space: nowrap; color: var(--ink);
  filter: drop-shadow(0 calc(1.5 * var(--u)) calc(1.5 * var(--u)) rgba(17, 17, 17, .3));
}
.shelf__label::before {
  content: attr(data-label); position: absolute; z-index: -1; left: 0; top: 0;
  color: #fff; -webkit-text-stroke: calc(8 * var(--u)) #fff; -webkit-text-stroke-width: calc(8 * var(--u));
}

/* Hooks and clips: mounted on a slot (--cx/--cy, the slot's center) */
.hook, .clip { position: absolute; z-index: 6; pointer-events: none; }
.hook {
  left: calc((var(--cx) - 4) * var(--u)); top: calc((var(--cy) - 9) * var(--u));
  width: calc(8 * var(--u)); height: calc(22 * var(--u)); border-radius: calc(4 * var(--u));
  background: linear-gradient(90deg, #e6e7e9, #fff 40%, #fff 60%, #e2e3e5);
  box-shadow: 0 calc(2 * var(--u)) calc(3 * var(--u)) rgba(17, 17, 17, .2), 0 0 0 .5px rgba(17, 17, 17, .08);
}
.hook::after {  /* the tip, bent toward you */
  content: ""; position: absolute; left: calc(-1 * var(--u)); right: calc(-1 * var(--u)); bottom: calc(-1 * var(--u));
  height: calc(9 * var(--u)); border-radius: calc(5 * var(--u));
  background: linear-gradient(#fff, #f0f1f2); box-shadow: 0 calc(1.5 * var(--u)) calc(2 * var(--u)) rgba(17, 17, 17, .18);
}
.clip {
  left: calc((var(--cx) - 11) * var(--u)); top: calc((var(--cy) - 12) * var(--u));
  width: calc(22 * var(--u)); height: calc(78 * var(--u)); border-radius: calc(11 * var(--u));
  background: linear-gradient(90deg, #e9eaec, #fff 32%, #fff 62%, #e6e7e9);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 .5px rgba(17, 17, 17, .07),
    0 calc(3 * var(--u)) calc(5 * var(--u)) rgba(17, 17, 17, .16), 0 calc(10 * var(--u)) calc(14 * var(--u)) calc(-6 * var(--u)) rgba(17, 17, 17, .2);
}
.clip::before {  /* where the jaws meet */
  content: ""; position: absolute; left: calc(4 * var(--u)); right: calc(4 * var(--u)); bottom: calc(22 * var(--u));
  height: 1px; background: rgba(17, 17, 17, .09);
}
.clip::after {  /* the peg in the slot */
  content: ""; position: absolute; left: 50%; top: calc(8 * var(--u)); width: calc(6 * var(--u)); height: calc(6 * var(--u));
  margin-left: calc(-3 * var(--u)); border-radius: 50%; background: #f3f3f4; box-shadow: inset 0 calc(1 * var(--u)) calc(1.5 * var(--u)) rgba(17, 17, 17, .18);
}

/* Items: each one is a button. The button stays put as the hit area; its inside moves. */
.item {
  position: absolute; z-index: 1; display: block;
  left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u));
  -webkit-tap-highlight-color: transparent;
}
.item:hover, .item:focus-visible { z-index: 4; }
/* Shelf things (and the CD player) leave the button without a stacking layer, so the soft contact shadow
   under each one can sit on the shelf's top face, above the shelf, while the thing itself stays behind the lip */
.item--shelf, .item--cd { z-index: auto; }
.item--shelf .item__in, .item--cd .item__in { z-index: 1; }
.item--shelf:hover .item__in, .item--shelf:focus-visible .item__in,
.item--cd:hover .item__in, .item--cd:focus-visible .item__in { z-index: 4; }
.item--shelf::after, .item--cd::after {
  content: ""; position: absolute; z-index: 3; pointer-events: none;
  left: 4%; right: 4%; top: calc(100% - 4 * var(--u)); height: calc(10 * var(--u));
  background: radial-gradient(50% 50% at 50% 35%, rgba(17, 17, 17, .2), rgba(17, 17, 17, .07) 60%, transparent);
  transition: opacity .4s ease, scale .55s var(--pop);
}
.item--cd::after { left: 9%; right: 9%; }
.item--shelf:hover::after, .item--shelf:focus-visible::after,
.item--cd:hover::after, .item--cd:focus-visible::after { opacity: .45; scale: .85 1; }
.item:focus-visible { outline: none; }
.item:focus-visible .item__in { outline: 1px solid var(--ink); outline-offset: calc(5 * var(--u)); }
.item__in {
  position: absolute; inset: 0; display: block;
  transform-origin: var(--ox, 50%) var(--oy, 50%);
  transition: scale .55s var(--pop), translate .55s var(--pop), rotate .55s var(--pop), filter .4s ease, box-shadow .4s ease;
}
.item[data-swing] .item__in { transition: scale .55s var(--pop), filter .4s ease, box-shadow .4s ease; }  /* the page script swings them */
.item__in > img { width: 100%; height: 100%; }
.item:hover .item__in, .item:focus-visible .item__in { scale: 1.07; }

/* Shelf things lift off the shelf and tip a little */
.item--shelf .item__in {
  --ox: 50%; --oy: 100%; border-radius: calc(3 * var(--u)); overflow: hidden; background: #ececec;
  box-shadow: 0 1px 1px rgba(17, 17, 17, .1), 0 calc(4 * var(--u)) calc(8 * var(--u)) rgba(17, 17, 17, .12);
}
.item--shelf .item__in > img { object-fit: cover; }
.item--shelf:hover .item__in, .item--shelf:focus-visible .item__in {
  translate: 0 calc(-9 * var(--u)); rotate: var(--t, -2deg);
  box-shadow: 0 1px 1px rgba(17, 17, 17, .06), 0 calc(16 * var(--u)) calc(22 * var(--u)) rgba(17, 17, 17, .18);
}

/* Hanging things: a key ring on a hook, or a clip. They swing from the top (--ox/--oy). */
.item--hang .item__in > img, .item--tag .item__in > img {
  position: absolute; left: 0; top: calc(var(--it, 0) * var(--u)); height: auto;
  filter: drop-shadow(0 calc(3 * var(--u)) calc(3 * var(--u)) rgba(17, 17, 17, .22));
  transition: filter .4s ease;
}
.item--hang:hover .item__in > img, .item--hang:focus-visible .item__in > img,
.item--tag:hover .item__in > img, .item--tag:focus-visible .item__in > img {
  filter: drop-shadow(0 calc(9 * var(--u)) calc(10 * var(--u)) rgba(17, 17, 17, .2));
}
.item--hang .item__in { --ox: 50%; --oy: 0%; }
.ring {
  position: absolute; z-index: -1; left: 50%; top: 0;
  width: calc(18 * var(--u)); height: calc(18 * var(--u)); margin-left: calc(-9 * var(--u)); border-radius: 50%;
  border: calc(2.2 * var(--u)) solid; border-color: #dfe2e6 #a9aeb5 #969ca4 #c7cbd0;
  box-shadow: 0 calc(1 * var(--u)) calc(1.5 * var(--u)) rgba(17, 17, 17, .2);
}
.item--hang .item__in { isolation: isolate; }

/* The photo, on a white print border */
.item--photo .item__in {
  --ox: 50%; --oy: 8%; padding: calc(4 * var(--u)); border-radius: calc(6 * var(--u)); background: #fff;
  box-shadow: 0 0 0 .5px rgba(17, 17, 17, .06), 0 calc(3 * var(--u)) calc(6 * var(--u)) rgba(17, 17, 17, .14);
}
.item--photo .item__in > img { object-fit: cover; border-radius: calc(2.5 * var(--u)); }
.item--photo:hover .item__in, .item--photo:focus-visible .item__in {
  box-shadow: 0 0 0 .5px rgba(17, 17, 17, .04), 0 calc(14 * var(--u)) calc(22 * var(--u)) rgba(17, 17, 17, .18);
}

/* Sticky notes: paper with a curled corner, a strip of tape, a shadow that follows the cut corner */
.item--note .item__in {
  rotate: var(--r, 0deg);
  filter: drop-shadow(0 calc(2 * var(--u)) calc(2.5 * var(--u)) rgba(17, 17, 17, .14));
}
.item--note .item__in, .item--note:hover .item__in, .item--note:focus-visible .item__in { scale: none; }  /* no scale-up (AJ) */
/* hover: it straightens a little and its shadow lifts, as if it's peeling off the board */
.item--note:hover .item__in, .item--note:focus-visible .item__in {
  rotate: calc(var(--r, 0deg) * .3);
  filter: drop-shadow(0 calc(8 * var(--u)) calc(9 * var(--u)) rgba(17, 17, 17, .17));
}
.note__paper {
  position: absolute; inset: 0; display: block; text-align: left;
  padding: calc(20 * var(--u)) calc(12 * var(--u)) calc(10 * var(--u)) calc(13 * var(--u));
  background: linear-gradient(165deg, #fff5ae 0%, #ffeb86 55%, #ffe372 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18 * var(--u)), calc(100% - 18 * var(--u)) 100%, 0 100%);
  font: italic calc(15 * var(--u))/calc(18 * var(--u)) "Redaction 50", Georgia, serif; font-synthesis: none; letter-spacing: 0; color: #2a2a2a;
}
.note__fold {
  position: absolute; right: 0; bottom: 0; width: calc(18 * var(--u)); height: calc(18 * var(--u));
  background: linear-gradient(315deg, transparent 50%, #f0cf50 50%, #fdeb98 100%);
}
.note__tape {
  position: absolute; left: 50%; top: calc(-7 * var(--u)); width: calc(46 * var(--u)); height: calc(15 * var(--u));
  margin-left: calc(-23 * var(--u)); transform: rotate(-4deg);
  background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 .5px rgba(17, 17, 17, .05);
}

/* Passport: a navy US passport hung from a clip, its gold foil drawn as SVG in cover units (88 x 124) */
.item--passport .item__in { --ox: 50%; --oy: 4%; }
.passport {
  border-radius: calc(6 * var(--u)); overflow: hidden;
  background: radial-gradient(130% 90% at 28% 18%, #283864, #1b2747 55%, #131b34);
  box-shadow: inset 0 0 0 calc(.6 * var(--u)) rgba(255, 255, 255, .05), inset 0 calc(-1.5 * var(--u)) 0 rgba(0, 0, 0, .25),
    0 1px 1px rgba(17, 17, 17, .12), 0 calc(3 * var(--u)) calc(6 * var(--u)) rgba(17, 17, 17, .2);
}
.item--passport:hover .passport, .item--passport:focus-visible .passport {
  box-shadow: inset 0 0 0 calc(.6 * var(--u)) rgba(255, 255, 255, .05), inset 0 calc(-1.5 * var(--u)) 0 rgba(0, 0, 0, .25),
    0 1px 1px rgba(17, 17, 17, .06), 0 calc(14 * var(--u)) calc(22 * var(--u)) rgba(17, 17, 17, .22);
}
.passport::before {  /* the hinge crease by the spine */
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(6 * var(--u)); width: calc(2 * var(--u));
  background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(255, 255, 255, .07));
}
.passport__art {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 calc(.5 * var(--u)) 0 rgba(0, 0, 0, .45));  /* pressed into the cover */
}
.passport__art text { stroke: none; text-anchor: middle; font-family: "Times New Roman", Times, serif; }
.passport__word { font-size: 9.6px; letter-spacing: 1.7px; }
.passport__land { font-size: 6.2px; letter-spacing: 1px; }
.eagle path, .eagle ellipse { stroke: none; }
.eagle .cut { fill: none; stroke: #1b2747; stroke-width: .7px; }
.eagle .line { fill: none; stroke: url(#pp-gold); stroke-width: .8px; }
.passport__chip { fill: none; stroke-width: .8px; }

/* CD player: a wall CD player with a speaker grille, a clear cover and a disc that shows what AJ is playing.
   The disc spins while she's listening (and while you point at it). */
.item--cd .item__in { --ox: 50%; --oy: 100%; }
.item--cd:hover .item__in, .item--cd:focus-visible .item__in { scale: 1.04; }
.cd {
  border-radius: calc(46 * var(--u)); background: linear-gradient(160deg, #fbdcd4, #f5cabe);
  box-shadow: inset 0 calc(2 * var(--u)) 0 rgba(255, 255, 255, .55), inset 0 calc(-3 * var(--u)) calc(6 * var(--u)) rgba(120, 40, 20, .06),
    0 1px 2px rgba(17, 17, 17, .08), 0 calc(16 * var(--u)) calc(22 * var(--u)) calc(-12 * var(--u)) rgba(17, 17, 17, .3);
}
.cd__grille {
  position: absolute; inset: calc(14 * var(--u)); border-radius: calc(34 * var(--u));
  background: radial-gradient(circle, rgba(120, 50, 35, .2) calc(1 * var(--u)), transparent calc(1.3 * var(--u))) 0 0 / calc(7 * var(--u)) calc(7 * var(--u));
}
.cd__disc {
  position: absolute; left: calc(42 * var(--u)); top: calc(42 * var(--u)); width: calc(156 * var(--u)); height: calc(156 * var(--u));
  border-radius: 50%; overflow: hidden;
  background: conic-gradient(from 20deg, #e6e8ec, #f9f9fb, #cfd4dc, #eef0f3, #dfe4ea, #fafafa, #d3d8df, #e6e8ec);
  box-shadow: 0 0 0 calc(1 * var(--u)) rgba(17, 17, 17, .06), 0 calc(2 * var(--u)) calc(4 * var(--u)) rgba(17, 17, 17, .14);
  animation: cd-spin 2.4s linear infinite; animation-play-state: paused;
}
.cd__label {
  position: absolute; inset: calc(5 * var(--u)); border-radius: 50%;
  background: radial-gradient(circle, #fff 0 30%, #ffd9cf 30% 34%, #fff 34% 58%, #d9f2e4 58% 62%, #fff 62%);
  background-size: cover; background-position: center;
}
.cd__hub {
  position: absolute; left: 50%; top: 50%; width: calc(44 * var(--u)); height: calc(44 * var(--u));
  margin: calc(-22 * var(--u)) 0 0 calc(-22 * var(--u)); border-radius: 50%;
  background: radial-gradient(circle, #e9e9eb 0 calc(6 * var(--u)), #f5cabe calc(6.5 * var(--u)) calc(9 * var(--u)), rgba(240, 242, 245, .9) calc(9.5 * var(--u)) calc(21 * var(--u)), rgba(17, 17, 17, .08) calc(21.5 * var(--u)));
}
.cd__cover {
  position: absolute; left: calc(36 * var(--u)); top: calc(36 * var(--u)); width: calc(168 * var(--u)); height: calc(168 * var(--u));
  border-radius: 50%; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, .22));
  box-shadow: inset 0 0 0 calc(1.5 * var(--u)) rgba(255, 255, 255, .7), 0 0 0 calc(1 * var(--u)) rgba(120, 50, 35, .08);
}
.cd__keys { position: absolute; right: calc(18 * var(--u)); top: calc(96 * var(--u)); display: flex; flex-direction: column; gap: calc(8 * var(--u)); }
.cd__keys i { width: calc(8 * var(--u)); height: calc(16 * var(--u)); border-radius: calc(4 * var(--u)); background: #3a3433; box-shadow: inset 0 calc(1 * var(--u)) 0 rgba(255, 255, 255, .18); }
.cd__led {
  position: absolute; left: 50%; bottom: calc(18 * var(--u)); width: calc(6 * var(--u)); height: calc(6 * var(--u));
  margin-left: calc(-3 * var(--u)); border-radius: 50%; background: #dcb3a8; transition: background-color .4s ease, box-shadow .4s ease;
}
.cd.is-live .cd__led { background: #7be35a; box-shadow: 0 0 calc(6 * var(--u)) rgba(123, 227, 90, .9); }
.cd.is-live .cd__disc, .item--cd:hover .cd__disc { animation-play-state: running; }
@keyframes cd-spin { to { transform: rotate(1turn); } }

/* Window: macOS style. Several can be open; drag them by the title bar, double-click it to zoom. */
.win {
  position: fixed; left: 0; top: 0; z-index: 100;
  display: flex; flex-direction: column;
  width: 620px; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
  border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, .08), 0 2px 6px rgba(17, 17, 17, .05), 0 24px 64px -8px rgba(17, 17, 17, .22);
}
.win[hidden] { display: none; }
.win:focus { outline: none; }
.win.is-zoomed { max-width: none; max-height: none; }
.win--wide { width: 820px; }
.win--bar { width: 600px; }
.win--cd { width: 820px; }
/* words only: about-board.js fit() picks the width (--fit-w) that makes the window closest to a square */
.win--square { width: var(--fit-w, 320px); min-height: var(--fit-h, 0px); }
.win__bar {
  position: relative; flex: none; height: 40px; display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid #efefef; cursor: default; user-select: none; -webkit-user-select: none; touch-action: none;
}
.win__lights { position: absolute; left: 14px; top: 14px; display: flex; gap: 8px; }
.win__light { position: relative; display: grid; place-items: center; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .14); }
.win__light::before { content: ""; position: absolute; inset: -4px; }  /* a bigger target */
.win__light--close { background: #ff5f57; color: #8a1e17; }
.win__light--min { background: #febc2e; color: #8f5a00; }
.win__light--zoom { background: #28c840; color: #0b6516; }
.win__light svg { display: block; opacity: 0; transition: opacity .12s ease; }
.win__lights:hover svg, .win__light:focus-visible svg { opacity: 1; }
.win__light:focus-visible { outline-offset: 2px; }
.win:not(.is-front) .win__lights:not(:hover) .win__light { background: #dedfe1; }
.win__title { margin: 0; max-width: calc(100% - 160px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font: 500 13px/20px var(--text); letter-spacing: -0.01em; color: var(--ink); transition: color .2s ease; }
.win:not(.is-front) .win__title { color: var(--faint); }
/* Below the bar: the heading ("About <title>" unless the item says otherwise, Redaction 50) and the content, which
   scrolls on its own. Split windows (pictures) put the heading on the left with a 1px gray rule between, like Notes;
   square ones (words only) put it on top. The Hot 100 window has only its content (its name is in the bar). */
.win__split { flex: 1; min-height: 0; display: flex; }
.win__side { flex: 0 0 30%; min-width: 0; padding: 24px 20px 24px 24px; border-right: 1px solid #ededed; }
.win--square .win__split { flex-direction: column; }
.win--square .win__side { flex: none; padding: 22px 28px 16px; border-right: 0; border-bottom: 1px solid #ededed; }
.win--square .win__body { flex: 1 1 auto; }
/* a side bar on the right (data-aside): words beside the content, after a 1px rule (the CD player) */
.win__side--end { padding: 0; border-right: 0; border-left: 1px solid #ededed; overflow: auto; }
.win__side--end .say { padding: 26px 24px 28px; }
.win--off .win__side--end { display: none; }  /* stats.fm couldn't be reached: nothing live to talk about */
.win__about {
  margin: 0; font: italic 24px/28px "Redaction 50", Georgia, serif; font-synthesis: none; letter-spacing: 0;
  color: var(--ink); text-wrap: balance; overflow-wrap: break-word;
}
.win__body {
  flex: 1 1 70%; min-width: 0; min-height: 0; display: flex; flex-direction: column;
  overflow: auto; overscroll-behavior: contain; container-type: inline-size;
}
.win__wip { flex: 1; display: flex; align-items: center; justify-content: center; margin: 0; padding: 24px; text-align: center; color: var(--muted); font-family: var(--text); }
.hot { padding: 24px; }
/* Window copy: a short note, with a picture beside it on wide windows */
.say { padding: 26px 28px 28px; font: 400 15px/24px var(--text); letter-spacing: -0.005em; color: var(--ink); }
.say p { margin: 0; text-wrap: pretty; }
.say p + p { margin-top: 12px; }
.say a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; text-decoration-color: rgba(17, 17, 17, .35); transition: text-decoration-color .2s ease; }
.say a:hover, .say a:focus-visible { text-decoration-color: currentColor; }
/* a heading that links out (Mariah's video): same quiet underline, a touch lower for the bigger italic */
.win__about a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(17, 17, 17, .35); transition: text-decoration-color .2s ease; }
.win__about a:hover, .win__about a:focus-visible { text-decoration-color: currentColor; }
.say--pic { display: grid; grid-template-columns: minmax(0, 1fr) 216px; gap: 24px; align-items: start; }
.say__pic { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; background: var(--tile, #f5f5f5); }
/* a wide picture, a video or the map goes above the words, at its own shape (set on it) */
.say--wide { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.say--wide .say__pic, .say--wide .say__map { order: -1; }
/* The passport's map: the dotted land, the rainbow string (an SVG over it, the same size) and the pins, which keep
   their size at any map size. A pin waits hidden (is-wait) until about-board.js draws the string to it. */
.map { position: relative; overflow: hidden; border-radius: 10px; background: var(--tile, #f5f5f5); }
.map__land, .map__strings { position: absolute; left: 0; top: 0; display: block; width: 100%; height: 100%; }
.map__string { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.map__pin { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.map__pin.is-wait { visibility: hidden; }
.map__pin i {
  position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .85) 0 1.2px, rgba(255, 255, 255, 0) 2.8px), var(--c);
  box-shadow: inset 0 -1px 2px rgba(17, 17, 17, .25), 0 0 0 1.5px #fff, 0 1.5px 3px rgba(17, 17, 17, .32);
}
.map__pin b {
  position: absolute; left: 0; translate: -50% 0; white-space: nowrap; font: 500 10.5px/14px var(--mono); letter-spacing: 0; color: var(--ink);
  text-shadow: 0 0 2px #f5f5f5, 0 0 2px #f5f5f5, 0 0 4px #f5f5f5;
}
.map__pin--below b { top: 9px; }
.map__pin--above b { bottom: 9px; }
.hot .win__wip { min-height: 200px; }
/* The CD player's window, everything centered: the heading, then the cover (--cv square) with the disc behind it,
   its middle on the cover's right edge so half of it shows, in the cover's main color (--disc, set by
   about-board.js). The song sits on the cover's bottom edge. Notes float out from behind the cover and disc. */
.spin {
  --cv: min(232px, 54cqi); position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; padding: 30px 24px 28px; overflow: hidden;
}
.spin.is-off { padding: 0; min-height: 240px; }
.win--cd.win--off { width: 280px; }
.spin.is-off .spin__stage, .spin.is-off .spin__say { display: none; }
.spin__say { position: relative; z-index: 4; max-width: 100%; text-align: center; }
.spin .spin__say { font-size: 32px; line-height: 38px; }
/* the song and artist, in the heading's face, centered under the cover and disc (long titles wrap) */
.spin__song {
  max-width: calc(100cqi - 48px); margin: 0; font: italic 24px/28px "Redaction 50", Georgia, serif; font-synthesis: none; letter-spacing: 0;
  color: var(--ink); text-align: center; text-wrap: balance; overflow-wrap: break-word;
}
.spin__song:empty { display: none; }
/* the cover and its disc are centered together, and the heading and song share their center line */
.spin__stage { position: relative; width: calc(var(--cv) * 1.45); height: var(--cv); }
.spin__notes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.spin__note { position: absolute; left: 0; top: 0; width: 22px; height: 22px; color: var(--note, #9aa0a8); opacity: 0; will-change: transform, opacity; }
.spin__note svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.spin__disc {
  position: absolute; z-index: 1; left: calc(var(--cv) * .55); top: calc(var(--cv) * .05); width: calc(var(--cv) * .9); height: calc(var(--cv) * .9);
  filter: drop-shadow(0 1px 1px rgba(17, 17, 17, .12)) drop-shadow(0 6px 10px rgba(17, 17, 17, .16));
}
.spin__disc i {  /* a printed disc: the clear hub with its stacking ring, the face, a bright rim, a sheen that turns with it */
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, .62) 0 27%, rgba(17, 17, 17, .14) 27.6% 29.4%, transparent 30% 96.6%, rgba(255, 255, 255, .4) 97.4%),
    conic-gradient(from 25deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 11%, rgba(0, 0, 0, .1) 24%, rgba(255, 255, 255, 0) 37%,
      rgba(255, 255, 255, .34) 50%, rgba(255, 255, 255, 0) 61%, rgba(0, 0, 0, .08) 75%, rgba(255, 255, 255, 0) 88%, rgba(255, 255, 255, .3)),
    var(--disc, #d3d8df);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, .07);
  -webkit-mask: radial-gradient(closest-side, transparent 12.5%, #000 13.2%); mask: radial-gradient(closest-side, transparent 12.5%, #000 13.2%);
  animation: cd-spin 2.4s linear infinite; animation-play-state: paused;
}
.spin.is-live .spin__disc i { animation-play-state: running; }
.spin__sleeve {
  position: absolute; z-index: 2; left: 0; top: 0; width: var(--cv); height: var(--cv); overflow: hidden;
  border-radius: 6px; background: #f2f2f3;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, .06), 0 1px 2px rgba(17, 17, 17, .1), 0 12px 24px -10px rgba(17, 17, 17, .35);
}
.spin__cover { display: block; width: 100%; height: 100%; object-fit: cover; }
.spin__cover:not([src]) { visibility: hidden; }

/* a narrow body puts the picture above the words */
@container (max-width: 500px) {
  .say--pic { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .say--pic .say__pic { order: -1; max-height: 46vh; max-height: 46svh; }
  .map__string { stroke-width: 3; }  /* the map is drawn smaller here */
}

@media (hover: none) {
  .win__light svg { opacity: 1; }
}
@media (max-width: 900px) {
  .desk { --u: min(1px, (100vw - 32px) / 560); align-items: flex-start; padding: 84px 16px 48px; }
  .pegs { flex-direction: column; }
  .peg + .peg { margin-top: calc(-40 * var(--u)); }  /* stacked, the halves share one empty slot row (a whole row, so the grid stays even) */
  .board__title { left: calc(-10 * var(--u)); }
}
@media (max-width: 600px) {
  .hot { padding: 16px; }
  .say { padding: 20px 20px 22px; }
  .spin { gap: 18px; padding: 24px 20px 24px; }
  .spin__song { font-size: 21px; line-height: 25px; max-width: calc(100cqi - 40px); }
  /* phones: the side becomes a header over the content */
  .win__split { flex-direction: column; min-height: 0; }
  .win__side, .win--square .win__side { flex: none; padding: 18px 20px 14px; border-right: 0; border-bottom: 1px solid #ededed; }
  .win__about { font-size: 21px; line-height: 25px; }
  .win__side--end { padding: 0; border-left: 0; border-bottom: 0; border-top: 1px solid #ededed; }  /* the right side bar goes under the content */
  .win__side--end .say { padding: 18px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .item__in, .item--hang .item__in > img, .item--tag .item__in > img { transition: none; }
  .cd__disc, .spin__disc i { animation: none; }
}
