/* Where it lives, round 5 (John, 17 Oct): simple and minimal. Every mark in
   its own colour again (John, 17 Oct: "put the connectors back in colours"),
   its name only when you point at it (or press, on a phone). Five ways,
   ?where=1..5 (kit/where.js). */
.wm .wm-it { position: relative; display: inline-grid; place-items: center; outline: none; -webkit-tap-highlight-color: transparent; }
.wm .wm-ico { display: block; width: 26px; height: 26px; }
.wm .wm-l { position: absolute; top: calc(100% + 9px); left: 50%; translate: -50% 4px; font-size: 12px; line-height: 1; color: var(--muted); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 240ms ease, translate 360ms var(--expo); }
.wm .wm-it:hover .wm-l, .wm .wm-it:focus-visible .wm-l { opacity: 1; translate: -50% 0; }
.wm .wm-it:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 10px; }
.wm-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 760px; margin: clamp(30px, 4vw, 48px) auto 0; }

/* 1 · quiet tiles: hairline, no shadow until pointed at */
/* each tile at its own small angle (where.js TILT; John, 18 Oct), set
   level when pointed at, so its name reads straight */
.wm-tiles .wm-it { width: 58px; height: 58px; border-radius: 17px; background: #fff; box-shadow: 0 0 0 1px rgb(23 23 23 / 0.07); rotate: var(--tilt, 0deg); transition: box-shadow 300ms ease, translate 420ms var(--expo), rotate 420ms var(--expo); }
.wm-tiles .wm-it:hover, .wm-tiles .wm-it:focus-visible { z-index: 2; rotate: 0deg; }
.wm-tiles .wm-it:hover { translate: 0 -2px; box-shadow: 0 0 0 1px rgb(23 23 23 / 0.07), 0 10px 22px rgb(23 21 15 / 0.08); }
.wm-chats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: clamp(26px, 3.4vw, 40px); }
.wm-chat { display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px 9px 13px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgb(23 23 23 / 0.1); font-size: 15px; color: var(--ink); transition: box-shadow 300ms ease; }
.wm-chat:hover { box-shadow: inset 0 0 0 1px rgb(23 23 23 / 0.22); }
.wm-it--sm .wm-ico { width: 19px; height: 19px; }
.wm-it--sm .wm-l, .wm-it--in .wm-l { display: none; }

/* 2 · just the marks, a line of them */
.wm-bare { gap: clamp(22px, 3.2vw, 42px); margin-top: clamp(34px, 4.4vw, 54px); }
.wm-bare .wm-ico { width: 28px; height: 28px; }
.wm-text { margin: clamp(34px, 4.4vw, 52px) 0 0; font-size: 16px; color: var(--quiet); }
.wm-it--in { vertical-align: -0.16em; margin: 0 0.08em; }
.wm-it--in .wm-ico { width: 1.02em; height: 1.02em; }

/* 3 · one sentence */
.wm-sentence { max-width: 22em; margin: clamp(26px, 3vw, 40px) auto 0; font-size: clamp(21px, 2.3vw, 32px); line-height: 1.5; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
.wm-sentence .wm-it--in .wm-ico { width: 0.88em; height: 0.88em; }
.wm-nb { white-space: nowrap; }

/* 4 · the dock */
.wm-dock { display: flex; justify-content: center; margin-top: clamp(34px, 4.4vw, 56px); }
.wm-shelf { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 10px; max-width: 100%; padding: 12px 16px; border-radius: 26px; background: rgb(255 255 255 / 0.72); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); box-shadow: 0 0 0 1px rgb(23 23 23 / 0.07), 0 16px 40px rgb(23 21 15 / 0.08); }
.wm-shelf .wm-it { width: 46px; height: 46px; border-radius: 13px; background: #fff; box-shadow: 0 0 0 1px rgb(23 23 23 / 0.06); scale: var(--sw, 1); transform-origin: 50% 100%; transition: scale 160ms ease-out; }
.wm-shelf .wm-ico { width: 22px; height: 22px; }
.wm-shelf .wm-l { top: auto; bottom: calc(100% + 12px); }
.wm-sep { width: 1px; align-self: stretch; margin: 6px 4px; background: rgb(23 23 23 / 0.12); }
.wm-note { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

/* 5 · two lines, a quiet table */
.wm-table { width: min(100%, 720px); margin: clamp(30px, 4vw, 48px) auto 0; text-align: left; }
.wm-tr { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: center; gap: 20px; padding: 20px 0; border-top: 1px solid rgb(23 23 23 / 0.08); }
.wm-tr:last-child { border-bottom: 1px solid rgb(23 23 23 / 0.08); }
.wm-th { font-size: 14px; color: var(--muted); }
.wm-td { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.wm-pair { display: inline-flex; align-items: center; gap: 10px; }
.wm-pair b { font-weight: 400; font-size: 16px; color: var(--ink); }
.wm-pair .wm-l { display: none; }

@media (max-width: 640px) {
  .wm-bare { gap: 22px 26px; }
  .wm-tr { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .wm-td { gap: 20px; }
  .wm-shelf { padding: 10px 12px; gap: 8px; }
  .wm-shelf .wm-it { width: 40px; height: 40px; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) { .wm .wm-l, .wm-tiles .wm-it, .wm-shelf .wm-it { transition: none; } }

/* on a phone the tiles are a lot smaller and overlap a little, one loose
   row, so the section reads light and roomy (John, 18 Oct: "a lot smaller
   so that it feels way lighter ... with a bit of an overlap") */
@media (max-width: 640px) {
  .wm-tiles { flex-wrap: nowrap; gap: 0; max-width: 100%; margin-top: 30px; }
  .wm-tiles .wm-it { width: clamp(28px, 9vw, 36px); height: clamp(28px, 9vw, 36px); border-radius: 30%; box-shadow: 0 0 0 1px rgb(23 23 23 / 0.07), 0 3px 8px rgb(23 21 15 / 0.08); }
  .wm-tiles .wm-it + .wm-it { margin-left: -5px; }
  .wm-tiles .wm-ico { width: 52%; height: 52%; }
}

/* the two places to talk to them, a size up (John, 17 Oct) */
.wm-chats--big { gap: 14px; }
.wm-chats--big .wm-chat { gap: 11px; padding: 13px 24px 13px 17px; font-size: 17px; }
.wm-chats--big .wm-it--sm .wm-ico { width: 24px; height: 24px; }
