/* Show the work: say (work-show/say.js; tokens.css, --work-show). Under the status line (Keyan's own, left as it is) go
   the six projects by name, each a link chip that glides to its project; the chevron becomes a chip that says what is
   down there (--work-say-chip). Both take the bar links' jelly (links.js). */
html[data-work-show="say"] .hero .down {
  display: none;
}

/* Just under the status line, however many rows it takes (say.js sets --ws-say-top), centred as it is. */
html[data-work-show="say"] .ws-say {
  position: absolute;
  top: var(--ws-say-top, 80px);
  left: 50%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: min(560px, 100% - 32px);
  margin: 0;
  padding: 0;
  translate: -50% 0;
}

html[data-work-show="say"] .ws-chip,
html[data-work-show="say"] .ws-down button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  font-size: 13.5px;
  letter-spacing: -0.135px;
  line-height: normal;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--jot-hover-fade, 150ms) ease;
}

html[data-work-show="say"] .ws-chip {
  padding: 6px 10px;
  color: #979393;
}

html[data-work-show="say"] .ws-chip-text {
  display: block;
}

html[data-work-show="say"] :is(.ws-chip, .ws-down button) .jelly {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--link-bg);
  opacity: 0;
  pointer-events: none;
}

html[data-work-show="say"] :is(.ws-chip, .ws-down button):active .jelly {
  background: var(--link-bg-press);
}

html[data-work-show="say"] :is(.ws-chip, .ws-down button):focus-visible {
  outline: none;
  box-shadow: 0 0 0 1.5px var(--ink-nav);
}

@media (hover: hover) and (pointer: fine) {
  html[data-work-show="say"] :is(.ws-chip, .ws-down button):hover {
    color: var(--ink-nav);
  }
}

/* The chevron's chip: where the chevron was, its middle where the 24px picture's was. */
html[data-work-show="say"] .ws-down {
  position: absolute;
  top: calc(100% - var(--down-bottom) + 12px);
  left: 50%;
  padding: 0;
  opacity: var(--down-fade);
  translate: -50% -50%;
}

html[data-work-show="say"] .ws-down button {
  width: auto;
  height: 32px;
  padding: 0 6px 0 12px;
  color: var(--down-ink);
}

html[data-work-show="say"] .ws-down-in {
  display: flex;
  align-items: center;
  gap: 2px;
}

html[data-work-show="say"] .ws-down svg {
  display: block;
  width: 20px;
  height: 20px;
  translate: 0 0.5px;
}

@media (max-width: 560px) {
  html[data-work-show="say"] .ws-say {
    width: min(300px, 100% - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-work-show="say"] :is(.ws-chip, .ws-down button) {
    transition: none;
  }
}
