[data-home-section] .encyclopedia-feature {
  --tile-ink: #362c51;
  --tile-wash: #eae3f5;
  --tile-edge: #ded2e8;
  background: #fffdfb;
  border: 1px solid var(--tile-edge);
  border-radius: 1.15rem;
  overflow: hidden;
}
[data-home-section] [data-tile-tone="1"] { --tile-ink: #784051; --tile-wash: #f5e0e4; --tile-edge: #ecd3d9; }
[data-home-section] [data-tile-tone="2"] { --tile-ink: #1e5c4e; --tile-wash: #dceee3; --tile-edge: #c8e2d3; }
[data-home-section] [data-tile-tone="3"] { --tile-ink: #274f78; --tile-wash: #dfe9f6; --tile-edge: #c9dbee; }
[data-home-section] [data-tile-tone="4"] { --tile-ink: #6f461b; --tile-wash: #f7e9c9; --tile-edge: #edddbd; }
[data-home-section] [data-tile-tone="5"] { --tile-ink: #713962; --tile-wash: #f0e1ec; --tile-edge: #e6d1df; }
[data-home-section] .encyclopedia-feature > a { height: 100%; display: flex; flex-direction: column; }
[data-home-section] .encyclopedia-feature > a:focus-visible { outline: 3px solid #7045ac; outline-offset: -4px; }
[data-home-section] .encyclopedia-tile-art {
  position: relative; isolation: isolate;
  display: grid; grid-template-rows: minmax(0, 1fr) auto; align-items: end;
  min-height: clamp(155px, 19vw, 245px);
  margin: 0;
  border-bottom: 1px solid var(--tile-edge);
  background: radial-gradient(circle at 52% 35%, #fffefa 8%, transparent 60%), var(--tile-wash);
}
[data-home-section] .encyclopedia-tile-art::before {
  position: absolute; z-index: -1; content: ""; pointer-events: none;
  inset: 14% 19%; border: 1px solid color-mix(in srgb, var(--tile-edge), var(--tile-ink) 15%); border-radius: 48%;
  transform: rotate(-17deg);
}
[data-tile-topic="sets"] .encyclopedia-tile-art::before { border-radius: 1rem; transform: rotate(-7deg); }
[data-tile-topic="worlds"] .encyclopedia-tile-art::before { border-style: dashed; inset: 20% 12%; }
[data-home-section] .encyclopedia-tile-art > img {
  height: clamp(145px, 16vw, 212px); width: 100%; max-height: none;
  padding: .9rem 1.1rem .35rem; object-fit: contain;
}
[data-home-section] :is([data-tile-topic="people"],[data-tile-topic="worlds"]) .encyclopedia-tile-art > img { padding-inline: .5rem; }
[data-home-section] .encyclopedia-tile-art figcaption { padding: .35rem .75rem .55rem; font-size: .67rem; color: #4f4457; }
[data-home-section] .encyclopedia-feature-copy { padding: clamp(.8rem, 2vw, 1.4rem); flex: 1; }
[data-home-section] .encyclopedia-feature h3 { color: var(--tile-ink); line-height: 1.2; }
[data-home-section] .encyclopedia-feature h3 span { font: 650 .75em system-ui,sans-serif; }
[data-home-section] .encyclopedia-feature-copy p { color: #54485b; font-size: .91rem; line-height: 1.5; }
@media (min-width: 1000px) {
  [data-home-section="acces"] .encyclopedia-feature > a { display: grid; grid-template-columns: minmax(0,.43fr) minmax(0,.57fr); }
  [data-home-section="acces"] .encyclopedia-tile-art { border-bottom: 0; border-inline-end: 1px solid var(--tile-edge); }
  [data-home-section="acces"] .encyclopedia-feature-copy { align-self: center; }
}
@media (max-width: 545px) {
  [data-home-section] .encyclopedia-tile-art { min-height: 132px; }
  [data-home-section] .encyclopedia-tile-art > img { height: 124px; padding: .45rem .65rem 0; }
  [data-home-section] .encyclopedia-tile-art figcaption { font-size: .62rem; padding: .35rem .45rem; }
  [data-home-section] .encyclopedia-feature-copy p { font-size: .81rem; }
  [data-home-section] .encyclopedia-feature-copy { padding: .75rem; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  [data-home-section] .encyclopedia-feature { transition: border-color .18s, box-shadow .18s, transform .18s; }
  [data-home-section] .encyclopedia-feature:hover { transform: translateY(-3px); box-shadow: 0 10px 26px #34263a15; }
}

/* Shared card profiles sit inside themes that also recolor ordinary links. */
.encyclopedia-site-header ~ main .lc-profile .lc-actions > a.lc-button,
.encyclopedia-site-header ~ main .lc-profile .lc-actions > a.lc-button:visited {
  background: #553789;
  color: #fff;
  text-decoration: none;
}
.encyclopedia-site-header ~ main .lc-profile .lc-actions > a.lc-button:hover {
  background: #3e246a;
  color: #fff;
}
.encyclopedia-site-header ~ main .lc-profile .lc-actions > a.lc-button:focus-visible {
  outline: 3px solid #714bb9;
  outline-offset: 3px;
}
