/* Each illustrated cover takes its title from the product and its drawing from
   a documented note. Compact comparison thumbnails have a separate text label. */
.story-note-art {
  --cover-paper:#f4f0e9;
  --cover-ink:#403628;
  position:relative;
  display:grid;
  grid-template-rows:minmax(0,1fr) auto;
  gap:.32rem;
  width:100%;
  min-width:0;
  aspect-ratio:1;
  margin:0;
  padding:clamp(.65rem,1.4vw,1.15rem);
  overflow:hidden;
  border-radius:5px;
  container-type:inline-size;
  background:var(--cover-paper);
  color:var(--cover-ink);
  text-align:left;
}
.story-note-art[data-family="woody"] { --cover-paper:#ede5d8; --cover-ink:#453c2c; }
.story-note-art[data-family="floral"] { --cover-paper:#f3e6e8; --cover-ink:#593648; }
.story-note-art[data-family="citrus"] { --cover-paper:#f5edce; --cover-ink:#534320; }
.story-note-art[data-family="green"] { --cover-paper:#e6ecdc; --cover-ink:#354833; }
.story-note-art[data-family="musk"] { --cover-paper:#ece6ed; --cover-ink:#47384d; }
.story-note-art[data-family="amber"] { --cover-paper:#f1e2d6; --cover-ink:#583a2d; }
.story-note-art[data-family="aquatic"] { --cover-paper:#e1edec; --cover-ink:#284546; }
.story-note-art[data-family="gourmand"] { --cover-paper:#f1e5dc; --cover-ink:#50372e; }
.story-note-art > img {
  display:block;
  align-self:center;
  justify-self:end;
  width:auto;
  height:100%;
  min-height:0;
  max-width:100%;
  aspect-ratio:1;
  border-radius:50%;
  object-fit:contain;
  mix-blend-mode:multiply;
}
.story-note-art[data-visual="note-photo"] > img { object-fit:cover; mix-blend-mode:normal; }
.note-cover-mini { display:none; }
.story-note-art figcaption { min-width:0; font-family:var(--sans, sans-serif); line-height:1.25; }
.note-cover-identity { display:grid; gap:.2rem; }
.note-cover-brand {
  font-size:clamp(.69rem,4.2cqi,.83rem);
  font-weight:650;
  letter-spacing:.065em;
  overflow-wrap:anywhere;
}
.note-cover-title {
  font-family:Georgia,var(--display,serif);
  font-size:clamp(.96rem,8.4cqi,1.85rem);
  line-height:1.06;
  font-weight:500;
  overflow-wrap:anywhere;
  text-wrap:balance;
}
.note-cover-caption {
  display:block;
  padding-top:.38rem;
  margin-top:.45rem;
  border-top:1px solid currentColor;
  font-size:clamp(.71rem,4.1cqi,.84rem);
  line-height:1.35;
  word-break:keep-all;
  overflow-wrap:anywhere;
}
.card-art > .story-note-art { height:100%; aspect-ratio:auto; border-radius:0; }
.detail-visual > .story-note-art { height:clamp(175px,35vw,325px); aspect-ratio:auto; }
.compare-product > .story-note-art { height:175px; aspect-ratio:auto; margin-bottom:15px; }
.story-note-art.is-compact,.comparison-thumb .story-note-art {
  height:100%; padding:0; gap:0; border-radius:inherit;
}
.story-note-art.is-compact > img,.comparison-thumb .story-note-art > img {
  width:100%; height:100%; border-radius:0;
}
.story-note-art.is-compact .note-cover-caption,
.comparison-thumb .note-cover-caption,.comparison-thumb .note-cover-identity { display:none; }
.story-note-art.is-compact .note-cover-mini,.comparison-thumb .note-cover-mini {
  display:block; padding:2px; text-align:center; font-size:.7rem; line-height:1.35;
}
@container (max-width:155px) {
  .note-cover-brand { font-size:.65rem; letter-spacing:.025em; }
  .note-cover-title {
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
    font-size:.89rem; line-height:1.08;
  }
  .note-cover-caption { margin-top:.3rem; padding-top:.25rem; }
}
@container (max-width:104px) {
  /* Product details are also printed alongside the miniature in the timeline. */
  .note-cover-identity { display:none; }
  .note-cover-caption { font-size:.7rem; }
}
