.bio {
  position: relative;
  isolation: isolate;
}

.marker-layer {
  display: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.marker-row {
  position: absolute;
  opacity: 0;
}

.marker-row.is-active { opacity: 1; }

.marker-stroke {
  position: absolute;
  left: 4px;
  top: 4px;
  display: block;
  overflow: visible;
  color: var(--marker);
  opacity: var(--marker-opacity);
}

@media (min-width: 49rem) and (hover: hover) and (pointer: fine) {
  .marker-layer { display: block; }

  [data-highlight], .phrase-motion {
    display: inline-block;
    vertical-align: baseline;
  }

  .phrase-motion {
    color: var(--secondary);
    -webkit-text-stroke: 0 transparent;
  }

  /* Ink and marker appear in the same paint, with no delayed color fade. */
  [data-highlight].is-active .phrase-motion {
    color: var(--marker-ink);
    -webkit-text-stroke: var(--ink-weight) var(--marker-ink);
  }
}
