/* The shelf: a wall in one colour, every pot standing on its own paper, turning under the cursor. */
.shelf-page { background: var(--ground); min-height: 100svh; }
html:has(.shelf-page) { background: var(--ground); }
.shelf-nav { position: sticky; top: 0; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(12px); pointer-events: auto; }
.shelf-nav .tabs a { position: relative; padding: 6px 0; font-size: calc(14 * var(--u)); color: var(--ink-2); text-decoration: none; transition: color .25s; }
.shelf-nav .tabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.shelf-nav .tabs a:hover, .shelf-nav .tabs a[aria-current="page"] { color: var(--ink); }
.shelf-nav .tabs a:hover::after, .shelf-nav .tabs a[aria-current="page"]::after { transform: scaleX(1); }
.walls { gap: 10px; }
.walls > span { font-size: calc(12 * var(--u)); color: var(--ink-2); }
#walls { display: flex; gap: 6px; }
.wall { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--hair); transition: transform .25s var(--ease), box-shadow .2s; }
.wall:hover { transform: scale(1.15); }
.wall[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ground), 0 0 0 3.5px var(--ink); }

.shelf { padding-top: calc(60 * var(--u)); padding-bottom: calc(120 * var(--u)); row-gap: 0; }
.shelf-head { grid-column: 1 / 13; display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: calc(28 * var(--u)); margin-bottom: calc(36 * var(--u)); border-bottom: 1px solid var(--hair); }
.shelf-head h1 { font-size: calc(96 * var(--u)); line-height: .92; }
.shelf-head p { max-width: 34ch; color: var(--ink-2); font-size: calc(15 * var(--u)); }
.tiles { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(40 * var(--u)) var(--gutter); }
.tile { display: flex; flex-direction: column; gap: 12px; }
.tile-pic { position: relative; aspect-ratio: 4 / 5; border-radius: calc(16 * var(--u)); overflow: hidden; cursor: ew-resize; translate: 0 0; transition: translate .4s var(--ease); touch-action: pan-y; }
.tile-pic:hover { translate: 0 -4px; }
.tile-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.tile-pic .dial { position: absolute; left: 50%; bottom: 12px; translate: -50% 0; width: 56px; height: 1.5px; background: rgba(0,0,0,.14); opacity: 0; transition: opacity .3s; }
.tile-pic .dial i { position: absolute; top: 0; bottom: 0; left: 0; width: 22%; background: rgba(0,0,0,.6); translate: calc(var(--p, 0) * 355%) 0; }
.tile-pic:hover .dial { opacity: 1; }
.tile-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tile-meta b { font-family: var(--serif); font-weight: 400; font-size: calc(26 * var(--u)); line-height: 1.05; letter-spacing: -.01em; }
.tile-meta span { color: var(--ink-2); font-size: calc(12 * var(--u)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile-acts { display: flex; gap: 14px; font-size: calc(13 * var(--u)); }
.tile-acts button, .tile-acts a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair); }
.tile-acts button:hover, .tile-acts a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.tile-acts .sure { color: #c0261b; text-decoration-color: currentColor; }
.tile.leaving { animation: leave .45s var(--ease) forwards; }
@keyframes leave { to { opacity: 0; transform: scale(.94); } }
.empty { grid-column: 1 / 13; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: calc(80 * var(--u)) 0; }
.empty[hidden] { display: none; }
.empty .serif { font-size: calc(48 * var(--u)); line-height: 1; }
.empty p { color: var(--ink-2); }

@media (max-width: 1199px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .shelf-nav .tabs { position: static; grid-column: 1 / 13; grid-row: 2; justify-content: flex-start; gap: 20px; padding: 0 0 10px; background: none; border: 0; backdrop-filter: none; }
  .shelf-nav { height: auto; padding-top: 14px; row-gap: 6px; }
  .walls > span { display: none; }
  .shelf-head { flex-direction: column; align-items: flex-start; }
  .shelf-head h1 { font-size: 56px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .tile-meta { flex-direction: column; gap: 2px; }
  .tile-meta b { font-size: 22px; }
  .tile-acts { font-size: 13px; gap: 12px; flex-wrap: wrap; }
}

.tile-pic .bloom { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.head-r { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
@media (max-width: 860px) { .head-r { align-items: flex-start; } }

/* ---------------- arrange: the vase full screen on its own paper, a tray of flowers on the right */
.arrange { position: fixed; inset: 0; z-index: 30; background: var(--paper, var(--ground)); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: calc(28 * var(--u)) var(--margin); align-items: center;
  opacity: 0; transform: scale(.985); transition: opacity .42s var(--ease), transform .42s var(--ease); --ground: var(--paper); }
.arrange.open { opacity: 1; transform: none; }
.arrange[hidden] { display: none; }
.arrange.on-dark { --ink: #f6f1ea; --ink-2: rgba(246,241,234,.66); --ink-3: rgba(246,241,234,.42); --hair: rgba(246,241,234,.2); color: var(--ink); }
.arr-head { grid-column: 1 / 4; display: flex; flex-direction: column; gap: 12px; }
.arr-kicker { font-size: calc(11 * var(--u)); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.arr-head h2 { font-size: calc(64 * var(--u)); line-height: .95; }
.arr-hint { color: var(--ink-2); font-size: calc(13.5 * var(--u)); max-width: 30ch; }
.arr-count { font-size: calc(12.5 * var(--u)); font-variant-numeric: tabular-nums; }
.arr-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.arr-stage { grid-column: 4 / 10; display: grid; place-items: center; height: calc(100svh - 56 * var(--u)); }
.arr-pic { position: relative; height: 100%; max-width: 100%; aspect-ratio: 4 / 5; border-radius: calc(18 * var(--u)); overflow: hidden; }
.arr-pic img, .arr-pic canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.arr-pic img { object-fit: cover; user-select: none; }
.arr-pic canvas { cursor: crosshair; touch-action: none; }
.arr-tray { grid-column: 10 / 13; display: flex; flex-direction: column; gap: 12px; align-self: center; }
.arr-tray h3 { font: 500 calc(11 * var(--u))/1 var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); padding-bottom: 8px; border-bottom: 1px solid var(--hair); margin-top: 8px; }
.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kind { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: calc(10.5 * var(--u)); color: var(--ink-2); padding: 6px 2px; border-radius: 10px; transition: background-color .2s, translate .3s var(--ease); }
.kind canvas { width: 64px; height: 64px; }
.kind:hover { translate: 0 -2px; }
.kind[aria-pressed="true"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.fcols { display: flex; flex-wrap: wrap; gap: 8px; }
.fcol { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: translate .3s var(--ease); }
.fcol:hover { translate: 0 -2px; }
.fcol[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.2px var(--ink); }
.arr-tray .row output { display: none; }
.arr-tray .row { grid-template-columns: 50px 1fr; }
@media (max-width: 860px) {
  .arrange { grid-template-columns: 1fr; align-content: start; overflow: auto; padding: 16px 20px 32px; row-gap: 16px; }
  .arr-head, .arr-stage, .arr-tray { grid-column: 1; }
  .arr-head h2 { font-size: 40px; }
  .arr-stage { height: auto; }
  .arr-pic { height: auto; width: 100%; }
  .kinds { grid-template-columns: repeat(6, 1fr); }
  .kind canvas { width: 48px; height: 48px; }
}
