/* The jewelry box. One color scheme, no dark mode switch (her standing rule). Plain shapes until her pictures arrive. */
:root { --wall: #2a0a14; --velvet: #4e1230; --gold: #c9a24b; --cream: #f2e2c4; --ink: #2a1c2e; --pink: #c4477a; --teal: #4fb3a9; --foxglove: #d8508f; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--wall); color: var(--cream); font-family: 'Crimson Pro',Georgia,serif; }
main { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 28px 16px 120px; max-width: 980px; margin: 0 auto; }
.quiet { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.back { position: fixed; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--gold); background: var(--velvet); z-index: 5; }
.back::after { content: ""; position: absolute; left: 12px; top: 10px; width: 9px; height: 9px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); }
.back:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* the box */
.jbox { position: relative; width: min(100%, 560px); padding: 150px 18px 18px; border-radius: 10px 10px 14px 14px; background: linear-gradient(180deg, #8d2353, var(--velvet)); border: 4px solid var(--gold); box-shadow: 0 24px 50px #000c; }
.lid { position: absolute; left: -4px; right: -4px; top: -118px; height: 150px; border: 4px solid var(--gold); border-bottom: 0; border-radius: 12px 12px 0 0; background: linear-gradient(180deg, #c4477a, #8d2353); transform-origin: 50% 100%; transform: perspective(700px) rotateX(-28deg); }
.lid .mirror { position: absolute; left: 10%; right: 10%; top: 18px; bottom: 16px; border-radius: 8px; background: linear-gradient(160deg, #e8f1f3, #b9d3d9 60%, #8fb3bb); border: 3px solid var(--gold); }
.dancer { position: absolute; left: 50%; top: 44px; width: 44px; height: 96px; margin-left: -22px; transform-origin: 50% 100%; animation: turn 6s linear infinite; }
.dancer i { position: absolute; display: block; }
.dancer .head { left: 12px; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #f2c9a3; border: 2px solid var(--ink); }
.dancer .tutu { left: 0; top: 26px; width: 44px; height: 30px; border-radius: 50% 50% 60% 60% / 30% 30% 70% 70%; background: #fffdf6; border: 2px solid var(--ink); }
.dancer .legs { left: 17px; top: 54px; width: 10px; height: 42px; background: #f2c9a3; border: 2px solid var(--ink); border-top: 0; }
@keyframes turn { to { transform: rotateY(360deg); } }
.drawers { display: flex; flex-direction: column; gap: 10px; }
.drawer { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 14px 8px 54px; border: 3px solid var(--gold); border-radius: 6px; background: linear-gradient(180deg, #5e1a3a, #3a0e24); color: var(--cream); font: italic 15px Lora,Georgia,serif; text-align: left; cursor: pointer; transition: transform .25s cubic-bezier(.2, 1.3, .4, 1); }
.drawer::before { content: ""; position: absolute; left: 18px; top: 50%; width: 22px; height: 8px; margin-top: -4px; border-radius: 4px; background: var(--gold); box-shadow: 0 2px 2px #0008; }
.drawer .mark { display: inline-block; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--gold); background: var(--mark, var(--pink)); }
.drawer .mark.parcel { border-radius: 3px; background: repeating-linear-gradient(45deg, #e2b06a 0 5px, #c4477a 5px 10px); }
.drawer .mark.file { border-radius: 3px 3px 6px 6px; background: var(--cream); }
.drawer .mark.other { background: var(--teal); }
.drawer:hover, .drawer:focus-visible { transform: translateX(10px); outline: none; }
.drawer:focus-visible { box-shadow: 0 0 0 3px var(--teal); }
.drawer[aria-expanded="true"] { transform: translateX(26px); background: linear-gradient(180deg, #8d2353, #5e1a3a); }
.drawer .count { margin-left: auto; opacity: .7; font-style: normal; font-size: 13px; }
.drawer .word { font: italic 15px Lora,Georgia,serif; color: #ffe9a8; letter-spacing: .02em; }
.wheel .car.other i { display: grid; place-items: center; background: var(--teal); color: var(--ink); font: bold 22px 'Crimson Pro',Georgia,serif; }

/* the tray that slides out under the box, with the wheels in it */
.tray { width: min(100%, 560px); padding: 18px 10px 24px; border-radius: 0 0 14px 14px; background: #1a0610; border: 4px solid var(--gold); border-top: 0; margin-top: -26px; }
.tray[hidden] { display: none; }
.drawers .tray { width: 100%; margin: -4px 0 6px; padding: 14px 6px 18px; border: 3px solid var(--gold); border-top: 0; border-radius: 0 0 10px 10px; }   /* opened right under its own drawer */
.wheels { display: flex; flex-direction: column; gap: 26px; }
.wheel .cars { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--turn, 0deg)); transition: transform .5s cubic-bezier(.2, 1.1, .4, 1); }
.wheel .car:hover i, .wheel .car:focus-visible i { transform: scale(1.18); outline: none; }
.wheel .car:focus-visible i { box-shadow: 0 0 0 3px var(--teal), 0 6px 10px #000a; }
.wheel .car.parcel i { border-radius: 4px; background: repeating-linear-gradient(45deg, #e2b06a 0 6px, #c4477a 6px 12px); }
.wheel .car.parcel i::after { content: ""; display: block; width: 100%; height: 100%; background: linear-gradient(90deg, transparent 44%, #2a0a14 44% 56%, transparent 56%), linear-gradient(180deg, transparent 44%, #2a0a14 44% 56%, transparent 56%); }
.wheel .car.file i { border-radius: 4px 4px 8px 8px; }
.wheel .turnbtn:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.tray .links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 6px 4px 0; }
.tray .links a { color: var(--cream); background: #3a0e24; border: 2px solid var(--gold); border-radius: 6px; padding: 6px 10px; font: 14px 'Crimson Pro',Georgia,serif; text-decoration: none; }
.tray .links a:hover, .tray .links a:focus-visible { background: var(--velvet); outline: none; box-shadow: 0 0 0 3px var(--teal); }

/* the card that pops up when a trinket is touched */
.card-veil { position: fixed; inset: 0; z-index: 70; background: #0d0710cc; display: grid; place-items: center; padding: 14px; }
.card { position: relative; width: min(520px, 100%); max-height: 92vh; overflow: auto; padding: 16px 16px 18px; border-radius: 12px; background: var(--cream); color: var(--ink); border: 3px solid var(--gold); box-shadow: 0 18px 40px #000c; transform: rotate(-.6deg); }
.card .x { position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink); background: var(--cream); color: var(--ink); font: bold 20px/1 'Crimson Pro',Georgia,serif; cursor: pointer; }
.card .x:focus-visible { outline: 3px solid var(--teal); }
.card > img { display: block; width: auto; max-width: 100%; max-height: 46vh; margin: 0 auto; border: 3px solid var(--ink); border-radius: 4px; box-shadow: 0 8px 18px #0006; }   /* the frame hugs the picture, whatever its shape */
.card .shots { display: flex; gap: 6px; overflow-x: auto; padding: 8px 2px 2px; scrollbar-width: thin; }
.card .shot { flex: 0 0 auto; width: 58px; height: 58px; padding: 0; border: 2px solid transparent; border-radius: 4px; background: #1a0610; cursor: pointer; overflow: hidden; }
.card .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .shot.on, .card .shot:focus-visible { border-color: var(--teal); outline: none; }
.card h2 { margin: 12px 0 2px; font: bold 22px 'Crimson Pro',Georgia,serif; }
.card .made { margin: 0 0 8px; font: italic 14px Lora,Georgia,serif; opacity: .8; }
.card .story { margin: 0 0 12px; font: 15px/1.45 'Crimson Pro',Georgia,serif; }
.card .choose { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.card .choose button { padding: 6px 10px; border: 2px solid var(--ink); border-radius: 6px; background: #fffdf6; color: var(--ink); font: 14px 'Crimson Pro',Georgia,serif; cursor: pointer; }
.card .choose button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.card .choose button:focus-visible { outline: 3px solid var(--teal); }
.card .plain { margin: 8px 0; padding: 10px 12px; border-left: 4px solid var(--gold); background: #fffdf6; font: 15px/1.45 'Crimson Pro',Georgia,serif; }
.card .plain b { color: #7a2e55; }
.card .till { display: block; width: 100%; margin: 10px 0 6px; padding: 12px; border: 3px solid var(--ink); border-radius: 8px; background: var(--ink); color: #ffe9a8; font: bold 17px 'Crimson Pro',Georgia,serif; cursor: pointer; }
.card .till:hover, .card .till:focus-visible { background: var(--velvet); outline: none; box-shadow: 0 0 0 3px var(--teal); }
.card .elsewhere { margin: 0; font: 13px/1.5 'Crimson Pro',Georgia,serif; opacity: .85; }
.card .elsewhere a { color: #7a2e55; }
.card .got { font: bold 17px 'Crimson Pro',Georgia,serif; color: #7a2e55; }

.doors { display: flex; gap: 34px; }
.door { position: relative; display: block; width: 46px; height: 72px; border-radius: 23px 23px 3px 3px; border: 3px solid var(--gold); background: linear-gradient(180deg, #c4501f, #6a2509); transition: transform .3s ease, box-shadow .3s ease; }
.door:hover, .door:focus-visible { transform: translateY(-4px) rotate(-1.5deg); box-shadow: 0 0 28px #c9a24b66; outline: none; }
.knob { position: absolute; right: 7px; top: 58%; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

@media (prefers-reduced-motion: reduce) { .dancer { animation: none; } .wheel .cars, .wheel .car, .drawer { transition: none; } }
/* phones: bigger words and numbers (her finding, 2026-10-08), the wheel a little tighter */
@media (max-width: 480px) {
  .wheel { --r: 124px; --c: 62px; }
  .drawer { min-height: 60px; } .drawer .word { font-size: 18px; } .drawer .count { font-size: 16px; }
  .wheel .sign .name { font-size: 16px; }
  .card h2 { font-size: 24px; } .card .story, .card .plain { font-size: 17px; } .card .choose button { font-size: 16px; padding: 8px 12px; } .card .elsewhere { font-size: 15px; } .card .till { font-size: 19px; }
}
.etsy { position: relative; z-index: 2; margin: 0 0 10px; text-align: center; font: italic 15px/1.3 Lora,Georgia,serif; }
.etsy a { color: var(--ink); text-underline-offset: 3px; }
.etsy a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
@media (max-width: 520px) { .etsy { padding-top: 48px; font-size: 14px; } }

/* the bag (2026-10-12): a drawstring pouch, bottom left, across from the purse; a count when something is in it */
.bag { position: fixed; left: 16px; bottom: 16px; z-index: 40; width: 60px; height: 96px; padding: 0; border: 0; cursor: pointer; filter: drop-shadow(0 6px 8px #000a);
  background: url(art/purse/bag-1.webp) center bottom / contain no-repeat; }
/* 2026-10-31, her new bag (her yes): her own flowered shopping bag with its rope handle, cut out, in place of the drawn one (art/purse/bag-1.webp, beside this file on each site that has the box) */
.bag .n { position: absolute; right: 0; top: 4px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: var(--pink); color: #fff; font: bold 15px/26px 'Crimson Pro',Georgia,serif; display: none; }
.bag.full .n { display: block; }
.bag:not(.full) { opacity: .6; }
.bag:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 10px; }
.bag.plop { animation: plop .45s ease; }
@keyframes plop { 30% { transform: translateY(-10px) scale(1.08); } 60% { transform: translateY(2px) scale(.96); } }

/* what you will pay, on every card */
.card .bagrow { margin: 10px 0 4px; }
.card .bagrow label { display: flex; align-items: center; gap: 2px; font: bold 18px 'Crimson Pro',Georgia,serif; }
.card .bagrow input { width: 7.5em; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 6px; background: #fffdf6; color: var(--ink); font: bold 20px 'Crimson Pro',Georgia,serif; }
.card .bagrow input:focus-visible { outline: 3px solid var(--teal); }
.card .bagrow .least { margin: 4px 0 0; font: italic 14px Lora,Georgia,serif; opacity: .8; }
.card .bagrow .least.no { color: #a01c4a; opacity: 1; font-weight: bold; }

/* the bag, opened */
.bagcard .baglist { list-style: none; margin: 8px 0; padding: 0; }
.bagcard .baglist li { display: grid; grid-template-columns: 48px 1fr auto 40px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed #2a1c2e55; }
.bagcard .baglist img, .bagcard .baglist .nopic { width: 48px; height: 48px; object-fit: cover; border: 2px solid var(--ink); border-radius: 4px; display: grid; place-items: center; font: bold 20px 'Crimson Pro',Georgia,serif; background: #e9d6b4; }
.bagcard .what { font: 16px/1.3 'Crimson Pro',Georgia,serif; }
.bagcard .amt { font: bold 17px 'Crimson Pro',Georgia,serif; color: #7a2e55; }
.bagcard .out { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: #fffdf6; color: var(--ink); font: bold 20px/1 'Crimson Pro',Georgia,serif; cursor: pointer; }
.bagcard .out:focus-visible { outline: 3px solid var(--teal); }
.bagcard .total { margin: 10px 0 0; text-align: right; font: bold 19px 'Crimson Pro',Georgia,serif; }
@media (prefers-reduced-motion: reduce) { .bag.plop { animation: none; } }

/* THE WHEEL, second layout (her ask, 2026-10-12): bigger, so the pictures come first; the name of whatever is at the top sits
   INSIDE the ring with what the drawer holds over it; a little gold flipper at the top points at that one, and it lifts and
   glows; the turning buttons sit in the bottom corners; no tags on the trinkets themselves. */
.wheel { --r: 140px; --c: 66px; position: relative; width: 100%; height: calc(var(--r) * 2 + var(--c) + 34px); }
.wheel .ring { position: absolute; left: 50%; top: 50%; width: calc(var(--r) * 2); height: calc(var(--r) * 2); margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1); border: 5px double var(--gold); border-radius: 50%; }
.wheel .legs { position: absolute; left: 50%; top: 50%; width: calc(var(--r) * 1.6); height: calc(var(--r) + var(--c) / 2 + 12px); margin-left: calc(var(--r) * -.8); clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%); background: linear-gradient(90deg, var(--gold) 0 5px, transparent 5px calc(100% - 5px), var(--gold) calc(100% - 5px)); opacity: .4; }
.wheel .car { position: absolute; left: 0; top: 0; width: var(--c); height: var(--c); margin: calc(var(--c) / -2) 0 0 calc(var(--c) / -2); padding: 0; border: 0; background: none; cursor: pointer; transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1 - var(--turn, 0deg))); transition: transform .5s cubic-bezier(.2, 1.1, .4, 1); }
.wheel .car i { display: block; width: var(--c); height: var(--c); border-radius: 50%; border: 3px solid var(--gold); background-size: cover; background-position: center; box-shadow: 0 6px 10px #000a; transition: transform .2s ease, box-shadow .2s ease; }
.wheel .car.up i { transform: scale(1.22); box-shadow: 0 0 0 3px var(--cream), 0 0 16px 4px #ffe9a8aa, 0 6px 10px #000a; }
.wheel .flipper { position: absolute; left: 50%; top: calc(50% - var(--r) - var(--c) / 2 - 26px); width: 0; height: 0; margin-left: -11px; border-left: 11px solid transparent; border-right: 11px solid transparent; border-top: 18px solid var(--gold); filter: drop-shadow(0 2px 2px #000a); z-index: 2; }
.wheel .sign { position: absolute; left: 50%; top: 50%; width: calc(var(--r) * 2 - var(--c) - 30px); transform: translate(-50%, -50%); padding: 10px 12px; border-radius: 50%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; background: radial-gradient(circle, #3a0e24, #1a0610 75%); color: var(--cream); pointer-events: none; }
.wheel .sign .kind { font: 12px/1.25 'Crimson Pro',Georgia,serif; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.wheel .sign .name { font: italic 15px/1.3 Lora,Georgia,serif; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.wheel .turnbtn { position: absolute; bottom: 2px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold); background: var(--velvet); color: var(--gold); font: bold 20px 'Crimson Pro',Georgia,serif; cursor: pointer; z-index: 3; }
.wheel .turnbtn.l { left: 2px; } .wheel .turnbtn.r { right: 2px; }
@media (max-width: 360px) { .wheel { --r: 112px; --c: 56px; } }
@media (prefers-reduced-motion: reduce) { .wheel .car i { transition: none; } }
/* A READING'S CARD (2026-10-14, the Sophist's shop uses this same file): what comes back, and her questions before the bag */
.card ul.back { margin: 0 0 10px; padding-left: 20px; font: 15px/1.4 'Crimson Pro',Georgia,serif; }
.card .asks { display: grid; gap: 10px; margin: 10px 0 4px; }
.card .asks label { display: grid; gap: 3px; font: 15px 'Crimson Pro',Georgia,serif; }
.card .asks .q { font-weight: bold; }
.card .asks .help { font: italic 13px/1.35 Lora,Georgia,serif; opacity: .8; }
.card .asks textarea, .card .asks select { width: 100%; box-sizing: border-box; padding: 8px; border: 2px solid var(--ink); border-radius: 6px; background: #fffdf6; color: var(--ink); font: 16px 'Crimson Pro',Georgia,serif; }
.card .asks textarea:focus-visible, .card .asks select:focus-visible { outline: 3px solid var(--teal); }
.card .asks .no { border-color: #b3261e; box-shadow: 0 0 0 2px #b3261e55; }

/* subscriptions in the bag (2026-10-14) */
.bagcard .subsadd { margin: 10px 0 4px; }
.bagcard .subsopen { padding: 8px 12px; border: 2px dashed var(--ink); border-radius: 8px; background: transparent; color: var(--ink); font: 16px 'Crimson Pro',Georgia,serif; cursor: pointer; }
.bagcard .subsopen:hover, .bagcard .subsopen:focus-visible { background: #2a1c2e14; outline: none; box-shadow: 0 0 0 3px var(--teal); }
.bagcard .subrow { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; padding: 8px 0; border-bottom: 1px dashed #2a1c2e55; }
.bagcard .subrow .every { grid-column: 1 / 3; font: italic 14px 'Crimson Pro',Georgia,serif; opacity: .8; }
.bagcard .subrow input { width: 92px; padding: 6px 8px; border: 2px solid var(--ink); border-radius: 6px; font: 16px 'Crimson Pro',Georgia,serif; background: #fff; color: var(--ink); }
.bagcard .subrow .subin { padding: 6px 10px; border: 2px solid var(--ink); border-radius: 6px; background: var(--ink); color: #ffe9a8; font: 15px 'Crimson Pro',Georgia,serif; cursor: pointer; }
.bagcard .subrow .subin:disabled { opacity: .5; cursor: default; }
