/* Printed flashcards. The art scales independently of the surrounding hero text. */
.hero-art {
  width: 100%;
  min-width: 0;
  align-self: center;
  container-type: inline-size;
  pointer-events: none;
}
.hero-art-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1.58;
  max-width: 410px;
  margin: auto;
  isolation: isolate;
  --print: #26352e;
  --stroke: clamp(1px, .52cqw, 2px);
}
.hero-art-stage > * { position: absolute; box-sizing: border-box; }
.hero-art-back, .hero-art-middle, .hero-art-front {
  width: 69%;
  height: 67%;
  left: 14%;
  top: 17%;
  border: var(--stroke) solid var(--print);
  border-radius: 5% / 8%;
}
.hero-art-back {
  background: repeating-linear-gradient(45deg, #233c34 0 2%, #395a4d 2% 3%);
  transform: translate(8%, 0) rotate(12deg);
}
.hero-art-middle { background: #f9cf66; transform: translate(-4%, -2%) rotate(-13deg); }
.hero-art-front {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 4% 5%;
  background: #fff9df;
  box-shadow: .75cqw .9cqw 0 var(--print);
  color: #23382e;
  transform: rotate(-6deg);
  overflow: hidden;
}
.hero-art-marker {
  display: flex;
  align-items: center;
  gap: .45em;
  margin-bottom: auto;
  font: 700 clamp(7px, 2.8cqw, 11px)/1 ui-monospace, monospace;
  letter-spacing: .09em;
}
.hero-art-marker i {
  display: inline-block;
  width: .7em;
  height: .7em;
  border-radius: 50%;
  background: #ea672e;
}
.hero-art-marker span { color: #947d57; }
.hero-art-front strong {
  max-width: 100%;
  font-size: clamp(13px, 8.5cqw, 34px);
  line-height: 1.1;
  letter-spacing: -.055em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-art-definition {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.5;
  font-size: clamp(9px, 3.8cqw, 16px);
}
.hero-art-rule { width: 100%; margin-top: auto; border-top: 1px dashed #ad9d76; }
.hero-art-lines {
  left: 1%; bottom: 12%; width: 14%; height: 15%;
  background: repeating-linear-gradient(to bottom, transparent 0 20%, #713d29 20% 25%);
  transform: rotate(-10deg) skewX(-18deg);
}
.hero-art-spark {
  top: 2%; right: 5%; width: 11%; aspect-ratio: 1;
  background: #fff5d1;
  clip-path: polygon(50% 0, 59% 36%, 88% 12%, 69% 43%, 100% 50%, 67% 57%, 88% 87%, 58% 67%, 50% 100%, 43% 68%, 12% 88%, 34% 57%, 0 50%, 34% 43%, 13% 13%, 43% 35%);
}

/* Small spot illustrations used by both the library and the dashboard. */
.deck-art {
  width: 3.4rem;
  height: 3.4rem;
  flex: 0 0 auto;
  position: relative;
  display: inline-grid;
  place-items: center;
  border-radius: .9rem;
  background-color: var(--tile, #e9ebe3);
  color: var(--drawing, #425843);
  overflow: hidden;
  isolation: isolate;
}
.deck-art-object, .deck-art-object > *, .deck-art-object::before, .deck-art-object::after {
  position: absolute;
  box-sizing: border-box;
}
.art-conversation { --tile: #fce4c6; --drawing: #753d21; }
.art-briefcase { --tile: #dce8d9; --drawing: #2d5142; }
.art-suitcase { --tile: #e6e4f8; --drawing: #48406e; }
.art-conversation .deck-art-object {
  width: 50%; height: 35%; top: 26%; left: 18%;
  border: 2px solid; border-radius: 34%;
  background: #ffbd77;
  transform: rotate(-8deg);
  box-shadow: 5px 7px 0 -1px #fff8ec, 5px 7px 0 1px currentColor;
}
.art-conversation .deck-art-object::before {
  content: ''; width: 23%; height: 34%; bottom: -19%; left: 12%;
  transform: skewY(-30deg); background: #ffbd77;
  border: solid currentColor; border-width: 0 0 2px 2px;
}
.art-conversation .deck-art-object i {
  top: 40%; left: 31%; width: 3px; height: 3px;
  background: currentColor; border-radius: 50%;
  box-shadow: 6px 0 0 currentColor;
}
.art-briefcase .deck-art-object {
  width: 59%; height: 39%; top: 35%;
  border: 2px solid; border-radius: 3px 3px 5px 5px;
  background: #85a888; transform: rotate(-9deg);
  box-shadow: 2px 2px currentColor;
}
.art-briefcase .deck-art-object::before, .art-suitcase .deck-art-object::before {
  content: ''; width: 42%; height: 39%; bottom: 100%; left: 29%;
  border: 2px solid; border-bottom: 0; border-radius: 4px 4px 0 0;
}
.art-briefcase .deck-art-object i {
  inset: 0 0 41%; background: #b3cea6;
  border-bottom: 2px solid; border-radius: 0 0 4px 4px;
}
.art-briefcase .deck-art-object b {
  inset: 43% 40% 26%; background: #fce3a8; border: 1px solid; border-radius: 1px;
}
.art-suitcase .deck-art-object {
  width: 44%; height: 53%; top: 26%;
  border: 2px solid; border-radius: 4px; background: #afa3db;
  transform: rotate(9deg); box-shadow: 2px 2px currentColor;
}
.art-suitcase .deck-art-object::before { height: 23%; }
.art-suitcase .deck-art-object i { inset: 0 16%; border-inline: 2px solid currentColor; }
.art-suitcase .deck-art-object b {
  top: 48%; left: 36%; width: 53%; height: 26%;
  background: #fff0bd; border: 1px solid; transform: rotate(-23deg);
}
.art-notebook .deck-art-object {
  width: 45%; height: 55%; background: #bdcfac; border: 2px solid;
  border-left-width: 5px; border-radius: 3px; transform: rotate(-8deg);
  box-shadow: 2px 2px #faf4d9, 3px 3px currentColor;
}
.art-notebook .deck-art-object i { inset: 22% 15% 54%; border-block: 1px solid; }
