/* THE ATTIC'S SKIN: the dollhouse (her pick, 2026-10-24, night). Madame Gidget's cabinet wears it here.
   ONE STRUCTURE, MANY SKINS: style.css is the structure (the machine, the doors, the ticket) and never changes for a look.
   A skin is a file like this one, loaded after it on a page whose <html> carries data-skin, that only recolours and
   decorates. Her finished picture of the machine stays exactly as art.js hangs it; the skin dresses the room round it.
   This skin: everything is a miniature seen close. The wallpaper is a real scrap with a print far too big for the room,
   torn off short of the right wall where the bare plywood shows and the paste squeezed out. The floor is plywood with
   grain the size of your hand and a bead of glue along the baseboard. The lamp is a thimble over a matchstick. The rug
   under the doors is a scrap of felt. One giant pin holds the wallpaper down, so you know how small the room is.
   The sister file for the pie and the chart room is sophist/site/skin-dollhouse.css; keep the shared parts the same. */

[data-skin="dollhouse"] { --ply: #d8b887; --ply-dark: #a9793f; --paste: #fff3d2; --felt: #86a082; --pewter: #9c9ca8; }

/* THE WALLPAPER: plum ground, printed with roses as big as plates, offset row by row, a seam every two tiles. The body
   goes clear so the paper shows through everything that stands in front of it. */
[data-skin="dollhouse"] { background-color: #2a1530;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 598px, #00000026 598px 600px),
    radial-gradient(circle at 150px 150px, #f2c9d6b3 0 10px, #e39ab6b3 11px 30px, #c9608fb3 31px 50px, #a8406fb3 51px 64px, #7a2a52b3 65px 72px, transparent 73px),
    radial-gradient(ellipse 54px 22px at 64px 214px, #8fae8bb3 0 98%, transparent 100%),
    radial-gradient(ellipse 54px 22px at 236px 214px, #7f9c7bb3 0 98%, transparent 100%),
    radial-gradient(ellipse 22px 50px at 150px 48px, #86a082b3 0 98%, transparent 100%),
    radial-gradient(circle at 0 0, #e39ab6b3 0 18px, #c9608fb3 19px 34px, #7a2a52b3 35px 40px, transparent 41px),
    radial-gradient(circle at 300px 0, #e39ab6b3 0 18px, #c9608fb3 19px 34px, #7a2a52b3 35px 40px, transparent 41px),
    radial-gradient(circle at 0 300px, #e39ab6b3 0 18px, #c9608fb3 19px 34px, #7a2a52b3 35px 40px, transparent 41px),
    radial-gradient(circle at 300px 300px, #e39ab6b3 0 18px, #c9608fb3 19px 34px, #7a2a52b3 35px 40px, transparent 41px),
    repeating-linear-gradient(0deg, transparent 0 3px, #ffffff06 3px 4px);
  background-size: 100% 100%, 300px 300px, 300px 300px, 300px 300px, 300px 300px, 300px 300px, 300px 300px, 300px 300px, 300px 300px, 100% 100%;
  background-attachment: fixed; }
[data-skin="dollhouse"] body, [data-skin="dollhouse"].walled body { background: transparent !important; }

/* THE FLOOR: plywood boards a hand wide, the grain drawn in arcs the size of a saucer, a painted baseboard where it
   meets the wall and the glue that squeezed out when the baseboard went on. It stays at the foot of the view, so the
   room is always stood in, and it lies behind everything in the room. */
[data-skin="dollhouse"] body::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 78px; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, #f3e6cf 0, #efe0c4 9px, #cdb68f 12px, #5a3a1c 13px, #fff3d2c4 14px, #fff3d2c4 17px, #fff3d24d 19px, #0000 21px, #00000040 21px, transparent 30px),
    repeating-radial-gradient(ellipse 760px 130px at 34% 130%, transparent 0 24px, #00000016 24px 30px),
    repeating-radial-gradient(ellipse 520px 100px at 82% -50%, transparent 0 19px, #0000001c 19px 24px),
    repeating-linear-gradient(90deg, #c08a52 0 150px, #7a4e26 150px 155px, #fff3d266 155px 157px, #b27b45 157px 312px, #7a4e26 312px 318px, #fff3d266 318px 320px);
  box-shadow: 0 -6px 18px #00000055; }

/* THE TORN EDGE: the wallpaper scrap stops short of the right wall. Bare plywood shows, with the paste smeared along
   the edge and one drip that ran before it dried. */
[data-skin="dollhouse"]::after { content: ""; position: fixed; top: 0; right: 0; bottom: 0; width: 56px; z-index: -1; pointer-events: none;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 6px 94%, 16px 86%, 3px 74%, 15px 61%, 7px 50%, 18px 38%, 4px 27%, 13px 16%, 5px 7%);
  background:
    radial-gradient(ellipse 9px 22px at 15px 44%, #fff3d2c4 0 60%, transparent 62%),
    linear-gradient(90deg, #fff3d2b8 0 12px, #fff3d255 20px, transparent 30px),
    repeating-linear-gradient(0deg, transparent 0 34px, #00000012 34px 40px),
    linear-gradient(90deg, #cfae7c, #ddbf8f 50%, #c6a271); }

/* THE PIN: one giant pin through the paper near its torn edge, a teal glass head, a steel shaft, leaning in. It is the
   thing that says how small the room is. It stands on the wall, behind whatever is in the room. */
[data-skin="dollhouse"]::before { content: ""; position: fixed; top: 54px; right: 26px; width: 46px; height: 250px; z-index: -1; pointer-events: none;
  transform: rotate(16deg); transform-origin: 23px 23px;
  clip-path: polygon(0 0, 100% 0, 100% 232px, 26px 232px, 23px 250px, 20px 232px, 0 232px);
  background:
    radial-gradient(circle at 15px 15px, #ffffffd9 0 4px, #ffffff00 9px),
    radial-gradient(circle at 23px 23px, #b8f0e8 0 7px, #4fb3a9 8px 18px, #1f6b64 19px 22px, transparent 23px),
    linear-gradient(90deg, transparent 0 20px, #f2f2f6 20px 22px, #a9a9b6 22px 25px, #5b5b66 25px 26px, transparent 26px);
  background-size: 46px 46px, 46px 46px, 46px 100%; background-repeat: no-repeat; background-position: 0 0, 0 0, 0 40px;
  filter: drop-shadow(5px 8px 5px #00000099); }

/* THE LAMP: a thimble for a shade, dimpled pewter, over a matchstick whose head is the bulb. It stands on the floor in
   the corner, to the left of the purse, and throws its light up the wall. */
[data-skin="dollhouse"] body::before { content: ""; position: fixed; right: 156px; bottom: 132px; width: 60px; height: 64px; pointer-events: none;
  border-radius: 30px 30px 7px 7px;
  background:
    radial-gradient(circle at 3px 3px, #00000038 0 1.2px, #ffffff40 1.7px 2.3px, transparent 2.8px) 0 0 / 7px 7px,
    linear-gradient(90deg, #5e5e68, #d7d7df 38%, #8f8f9c 72%, #4e4e58);
  box-shadow: inset 0 -9px 0 #b8b8c2, inset 0 -11px 0 #55555f, 0 0 70px 26px #ffc96a3d, 0 0 22px 6px #ffc96a66;
  animation: dollhouse-lamp 4.2s ease-in-out infinite alternate; }
[data-skin="dollhouse"] main::before { content: ""; position: fixed; right: 180px; bottom: 76px; width: 12px; height: 70px; pointer-events: none;
  border-radius: 6px 6px 1px 1px;
  background:
    radial-gradient(ellipse 7px 10px at 50% 9px, #ff9a4a 0 40%, #b2302f 60% 98%, transparent 100%),
    linear-gradient(180deg, transparent 0 17px, #e9d3a4 17px, #c7a56f 100%),
    linear-gradient(90deg, #fff3d2 0 30%, #e9d3a4 30% 70%, #b58f5b 70%);
  box-shadow: 0 0 14px 4px #ffb25a77, 3px 0 0 -0px transparent; }
@keyframes dollhouse-lamp { 0% { filter: brightness(.96); } 100% { filter: brightness(1.08); } }

/* THE RUG: a scrap of felt under the doors, cut with scissors, a blanket stitch round the edge, the fuzz showing. */
[data-skin="dollhouse"] .doors { position: relative; }
[data-skin="dollhouse"] .doors::before { content: ""; position: absolute; left: -44px; right: -44px; top: -16px; bottom: -14px; z-index: -1; pointer-events: none;
  border-radius: 46% 54% 48% 52% / 58% 42% 58% 42%; border: 3px dashed #f6e3dacc;
  background:
    repeating-linear-gradient(47deg, transparent 0 2px, #ffffff0d 2px 3px),
    repeating-linear-gradient(-43deg, transparent 0 3px, #0000000d 3px 4px),
    var(--felt);
  box-shadow: 0 0 0 3px #86a08288, 0 0 0 5px #86a08233, 0 6px 10px #00000066; }

/* THE DOORS: dollhouse doors, balsa with grain too coarse for their size, a dark frame, a glass bead for a knob, and the
   glue that squeezed out at both hinges and never got wiped. */
[data-skin="dollhouse"] .door { border-color: #6b4423;
  background: repeating-linear-gradient(180deg, transparent 0 9px, #00000012 9px 12px), repeating-radial-gradient(ellipse 140px 40px at 20% 30%, transparent 0 10px, #0000000f 10px 13px), linear-gradient(90deg, #c69a5c, #e6c48c 42%, #b8884d);
  box-shadow: inset 0 0 0 2px #fff3d255, 0 4px 0 #6b4423, 0 8px 10px #00000066; }
[data-skin="dollhouse"] #door-b { background: repeating-linear-gradient(180deg, transparent 0 9px, #00000014 9px 12px), repeating-radial-gradient(ellipse 140px 40px at 70% 60%, transparent 0 10px, #00000012 10px 13px), linear-gradient(90deg, #8a5a3a, #a9774f 45%, #7a4a2e); }
[data-skin="dollhouse"] .door:hover, [data-skin="dollhouse"] .door:focus-visible { box-shadow: inset 0 0 0 2px #fff3d255, 0 4px 0 #6b4423, 0 0 28px #ffc96a88; }
[data-skin="dollhouse"] .knob { background: radial-gradient(circle at 35% 30%, #fff 0 15%, #4fb3a9 40%, #1f6b64 100%); box-shadow: 0 0 0 1px #0006; }
[data-skin="dollhouse"] .door::before, [data-skin="dollhouse"] .door::after { content: ""; position: absolute; left: -9px; width: 13px; height: 18px; pointer-events: none;
  border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
  background: radial-gradient(circle at 35% 28%, #ffffff 0 2px, #fff3d2d9 3px, #e9d59ab3 100%); box-shadow: 0 1px 2px #0005; }
[data-skin="dollhouse"] .door::before { top: 17%; }
[data-skin="dollhouse"] .door::after { bottom: 15%; height: 24px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; }
[data-skin="dollhouse"] .door.wears::before, [data-skin="dollhouse"] .door.wears::after { display: none; }

/* THE QUESTION on the floor: the same words, written on a strip of masking tape. */
[data-skin="dollhouse"] .who { color: #2a0a14; background: #e6d7a7d9; box-shadow: 0 0 0 7px #e6d7a7d9, 0 3px 6px #0006; transform: rotate(-1.2deg); }

/* THE TICKET'S TRAY and the plain machine, for the day the picture is not under it: the plain shapes wear balsa too. */
[data-skin="dollhouse"] .cabinet:not(.under) { background: repeating-linear-gradient(180deg, transparent 0 11px, #00000012 11px 14px), linear-gradient(180deg, #a9774f, #7a4a2e); border-color: #6b4423; }
[data-skin="dollhouse"] .cabinet:not(.under) .window { border-color: #6b4423; }

/* phones: the torn edge and the pin pull in so the doors beside her keep their room; the lamp steps closer to the purse */
@media (max-width: 600px) {
  [data-skin="dollhouse"]::after { width: 26px; clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 3px 94%, 9px 86%, 1px 74%, 8px 61%, 4px 50%, 10px 38%, 2px 27%, 7px 16%, 3px 7%); }
  [data-skin="dollhouse"]::before { top: 40px; right: 6px; transform: rotate(16deg) scale(.7); }
  [data-skin="dollhouse"] body::before { right: 128px; bottom: 126px; width: 48px; height: 52px; border-radius: 24px 24px 6px 6px; }
  [data-skin="dollhouse"] main::before { right: 146px; bottom: 76px; height: 56px; }
  [data-skin="dollhouse"] .doors::before { left: -14px; right: -14px; }
}
@media (prefers-reduced-motion: reduce) { [data-skin="dollhouse"] body::before { animation: none; } }
