.story-icon {
  --icon-stroke: clamp(1.5px, 0.02em, 3px);
  position: relative;
  inline-size: 1em;
  block-size: 1em;
  font-size: clamp(4.5rem, 11vw, 9.5rem);
  color: var(--story-accent, #d8d5ff);
  color: color-mix(in srgb, var(--story-accent, #d8d5ff) 88%, transparent);
  pointer-events: none;
}

.story-icon > span,
.story-icon > span::before,
.story-icon > span::after {
  position: absolute;
  box-sizing: border-box;
}

/* A clock with a return arrow. */
.story-icon--review > span:nth-child(1) {
  inset: 16%;
  border: var(--icon-stroke) solid;
  border-left-color: transparent;
  border-radius: 50%;
}

.story-icon--review > span:nth-child(2) {
  top: 11%;
  left: 24%;
  width: 16%;
  height: 16%;
  border-left: var(--icon-stroke) solid;
  border-bottom: var(--icon-stroke) solid;
  border-bottom-left-radius: 0.02em;
}

.story-icon--review > span:nth-child(3) {
  top: 30%;
  left: 49%;
  width: 17%;
  height: 22%;
  border-left: var(--icon-stroke) solid;
  border-bottom: var(--icon-stroke) solid;
  border-bottom-left-radius: 0.02em;
}

/* The curve, stem and dot of a question mark. */
.story-icon--questions {
  --icon-stroke: clamp(6px, 0.072em, 11px);
}

.story-icon--questions > path {
  stroke-width: var(--icon-stroke);
}

/* A pencil tilted over a line of writing. */
.story-icon--writing > span:nth-child(-n+2) {
  inset: 0;
  transform: rotate(-45deg);
}

.story-icon--writing > span:nth-child(1)::before {
  content: "";
  top: 42%;
  left: 25%;
  width: 64%;
  height: 16%;
  border: var(--icon-stroke) solid;
  border-left: 0;
  border-radius: 0 0.03em 0.03em 0;
}

.story-icon--writing > span:nth-child(1)::after {
  content: "";
  top: 42%;
  left: 74%;
  height: 16%;
  border-left: var(--icon-stroke) solid;
}

.story-icon--writing > span:nth-child(2)::before {
  content: "";
  top: 44.35%;
  left: 19.35%;
  width: 11.3%;
  height: 11.3%;
  border-left: var(--icon-stroke) solid;
  border-bottom: var(--icon-stroke) solid;
  transform: rotate(45deg);
}

.story-icon--writing > span:nth-child(3) {
  top: 82%;
  left: 14%;
  width: 60%;
  height: var(--icon-stroke);
  border-radius: 1em;
  background: currentColor;
}

/* Two overlapping speech bubbles. */
.story-icon--feedback > span:nth-child(1),
.story-icon--feedback > span:nth-child(2) {
  border: var(--icon-stroke) solid;
  border-radius: 0.09em;
}

.story-icon--feedback > span:nth-child(1) {
  inset: 15% 33% 45% 9%;
}

.story-icon--feedback > span:nth-child(1)::before {
  content: "";
  top: 43%;
  left: 27%;
  width: max(3px, 0.036em);
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0.09em 0 currentColor, 0.18em 0 currentColor;
}

.story-icon--feedback > span:nth-child(1)::after {
  content: "";
  top: calc(100% + var(--icon-stroke) * 0.5);
  left: 17%;
  width: 15%;
  height: 27%;
}

.story-icon--feedback > span:nth-child(2) {
  inset: 38% 9% 23% 37%;
  clip-path: polygon(55% 0, 100% 0, 100% 100%, 0 100%, 0 46%, 55% 46%);
}

.story-icon--feedback > span:nth-child(3) {
  top: 76%;
  right: 19%;
  width: 8%;
  height: 10%;
  transform: scaleX(-1);
}

.story-icon--feedback > span:nth-child(1)::after,
.story-icon--feedback > span:nth-child(3) {
  background: currentColor;
  clip-path: polygon(0 0, 22% 0, 22% 60%, 77% 0, 100% 0, 0 100%);
}

/* A forward arrow crosses an open doorway. */
.story-icon--march > span:nth-child(1) {
  inset: 13% 14% 13% 43%;
  border: var(--icon-stroke) solid;
  border-left: 0;
  border-radius: 0.035em;
  background: linear-gradient(currentColor 35%, transparent 35% 65%, currentColor 65%) left / var(--icon-stroke) 100% no-repeat;
}

.story-icon--march > span:nth-child(2) {
  top: 50%;
  left: 12%;
  width: 54%;
  height: var(--icon-stroke);
  border-radius: 1em;
  background: currentColor;
  transform: translateY(-50%);
}

.story-icon--march > span:nth-child(3) {
  top: 50%;
  left: 46%;
  width: 17%;
  height: 17%;
  border-top: var(--icon-stroke) solid;
  border-right: var(--icon-stroke) solid;
  border-top-right-radius: 0.02em;
  transform: translateY(-50%) rotate(45deg);
}
