/* The portrait above the stereo, up close (Words chat, 30 October): notes.html. Her wall fills the room's space like
   every other close up, between the crown and the skirting (walls.css), nothing else on it. The view is the room from
   where you stand (art/portrait/room.jpg tall for a phone, room-wide.jpg for a desk, cut by private/tools/portrait.py);
   sitter.js picks one, covers the space with it, and fits her still and her clips into the gilt frame's opening. The
   brass plate and the card of questions are the page's, so they stay sharp, can be touched, and can be reworded without a clip. */
body.sitting { overflow: hidden; margin: 0; }
.sitting .quiet { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sitter { position: fixed; left: 0; right: 0; top: var(--crown, 0px); bottom: var(--skirt, 0px); overflow: hidden;
  background: #3a2a22; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.sitter .scene { position: absolute; left: 0; top: 0; background: #3a2a22 center / 100% 100% no-repeat; }
.sitter .her { position: absolute; left: 0; top: 0; width: 300px; height: 400px; transform-origin: 0 0; display: block;
  object-fit: fill; cursor: pointer; border: 0; }
/* her edges fade into the room's own copy of her underneath (the same picture, hung by Room in the faces), so the gilt's
   uneven lip and the room's angle never show a hard seam (her walk, 30 October) */
.sitter .her { -webkit-mask-image: linear-gradient(90deg, transparent, #000 3.5%, #000 96.5%, transparent), linear-gradient(180deg, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 3.5%, #000 96.5%, transparent), linear-gradient(180deg, transparent, #000 3%, #000 97%, transparent);
  mask-composite: intersect; }
.sitter video.her { pointer-events: none; }
.sitter video.her[hidden] { display: none; }
.sitter.knocked .her { cursor: default; }
@keyframes rap { 0%, 100% { translate: 0 0; } 30% { translate: -2px 1px; } 60% { translate: 2px -1px; } }
.sitter .scene.rap { animation: rap .18s; }

/* the brass plate on the frame's bottom rail (placed by sitter.js under the opening) */
.sitter .plate { position: absolute; transform: translate(-50%, -50%) rotate(var(--lean, 0deg));
  padding: .28em .8em; font: italic 600 var(--plate, 12px) / 1.1 Lora, Georgia, serif; letter-spacing: .02em;
  color: #3b2606; background: linear-gradient(180deg, #f3d98c, #c79a3e 55%, #a77a26); border: 1px solid #6e4b12;
  border-radius: 2px; box-shadow: inset 0 1px 0 #fff6, 0 1px 2px #0008; cursor: pointer; white-space: nowrap; }
.sitter .plate::before, .sitter .plate::after { content: ""; position: absolute; top: 50%; width: 3px; height: 3px;
  margin-top: -1.5px; border-radius: 50%; background: #6e4b12; }
.sitter .plate::before { left: 3px; } .sitter .plate::after { right: 3px; }
.sitter.knocked .plate { cursor: default; }

/* the way back (her walk, 30 October: there was no way out): the room's own turn arrow, to the bedroom facing the stereo */
.sitter .away { position: absolute; left: 10px; bottom: 12px; z-index: 3; display: flex; align-items: center; gap: 6px;
  text-decoration: none; color: #c9a24b; }
.sitter:has(.card:not([hidden])) .away { display: none; }
.sitter .away span { width: 46px; height: 46px; display: grid; place-items: center; border: 2px solid #c9a24b; border-radius: 50%;
  background: #2a0a14cc; font: bold 30px / 1 "Crimson Pro", Georgia, serif; padding-bottom: 4px; box-sizing: border-box; }
.sitter .away b { font: italic 600 14px / 1 Lora, Georgia, serif; background: #2a0a14cc; color: #f3d98c; padding: 5px 9px; border-radius: 3px; }
.sitter .away:focus-visible span, .sitter .away:hover span { background: #4e1230; box-shadow: 0 0 0 3px #4fb3a9; }
.sitter .away:focus-visible { outline: none; }

/* the stereo goes where it goes from the room */
.sitter .stereo { position: absolute; }

/* the card of her questions: small, and it comes out small and grows to its size (her words, 31 October: "it needs to
   come out small and then make it big, if anything") */
.sitter .card { position: absolute; left: 50%; bottom: 14px; width: min(84%, 300px); transform: translate(-50%, 0) rotate(-1deg); z-index: 2;
  background: #fbf4e2; color: #2a0a14; padding: 9px 13px 7px; box-shadow: 2px 5px 12px #000a; border-top: 5px solid #4e1230;
  transform-origin: 50% 100%; animation: card-grow .45s cubic-bezier(.3, .8, .4, 1); }
@keyframes card-grow { from { transform: translate(-50%, 0) rotate(-1deg) scale(.3); opacity: 0; } 35% { opacity: 1; } }
.sitter .card[hidden] { display: none; }
.sitter .card h2 { margin: 0 0 6px; font-size: 18px; color: #4e1230; }
.sitter .card ol { margin: 0; padding: 0 0 0 1.4em; }
.sitter .card li { margin: 0; border-bottom: 1px solid #e9a0a0; }
.sitter .card li button { all: unset; display: block; width: 100%; padding: 4px 0; cursor: pointer; font: 400 15px / 1.25 "Crimson Pro", Georgia, serif; color: #2a0a14; }
.sitter .card li button:hover, .sitter .card li button:focus-visible { color: #7a2e55; outline: none; }
.sitter .card .quick { margin: 0 0 6px; font: 400 14px / 1.2 "Crimson Pro", Georgia, serif; color: #4e1230; }   /* her quick answer until the clip is recorded, 4 November */
.sitter .card .quick[hidden] { display: none; }
.sitter .card .heard button { text-decoration: line-through; text-decoration-color: #7a2e55; color: #6a4a52; }
.sitter .card .shut { position: absolute; right: 6px; top: 2px; padding: 4px 8px; font: 24px / 1 Georgia, serif; color: #4e1230; cursor: pointer; background: none; border: 0; }
@media (max-width: 420px) { .sitter .card li button { font-size: 15px; padding: 4px 0; } .sitter .card h2 { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .sitter .card { animation: none; } }
