/* Lore (widgets/lore/lore.js): a heading and a 3 × 2 grid of cards that turn over slowly. */
.lr { display: flex; flex-direction: column; gap: 10px; padding: 14px; color: var(--ink); }
.lr__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 4px; }
.lr__head h3 { margin: 0; font-size: 20px; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; }
.lr__head span { font-size: 12px; color: var(--muted); }
.lr__grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 8px; }
.lr__card { position: relative; min-height: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; perspective: 1000px; }
.lr__face { position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform 1.6s cubic-bezier(.45,.05,.3,1); }
.lr__front { align-items: center; justify-content: flex-end; gap: 6px; padding: 10px 10px 12px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.lr__front b { font-size: 14px; font-weight: 600; line-height: 1.15; text-align: center; }
.lr__art { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.lr__art .art { max-width: 78%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lr__back { justify-content: center; gap: 5px; padding: 12px 14px; background: #f3efe9; color: #141210; transform: rotateY(180deg); }
.lr__back b { font-size: 14px; line-height: 1.15; }
.lr__tag { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: #6d655c; }
.lr__text { font-size: 12.5px; line-height: 1.38; }
.lr__card.is-over .lr__front { transform: rotateY(-180deg); }
.lr__card.is-over .lr__back { transform: rotateY(0); }
.lr__card:hover .lr__front, .lr__card:focus-visible .lr__front { background: rgba(255,255,255,.08); }
.lr__card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 12px; }
.is-vertical .lr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(210px, auto); }
@media (prefers-reduced-motion: reduce) { .lr__face { transition: none; } }
