/* Character art and character cards, shared by the character pages, /example/, /characters/ and /examples/
   (docs/tickets/showcase-pages-2026-11-15.md). Split out of characters.css so /examples/ can show the cards without the
   character-page template rules. Tokens only; the two art-frame backgrounds are the art direction's. */

/* Showcase art: the ink version in the light theme, the firelight version in the dark theme. Both images are lazy, so the
   hidden one is not fetched until the theme changes. Width and height are each file's real size; the frame's aspect
   ratio reserves the box. */
.art { margin:0;width:100%;max-width:360px; }
.art-frame { aspect-ratio:1 / 1;overflow:hidden;border-radius:var(--r-lg);border:1px solid var(--line-strong);background:#F5EFE4; }
.art-frame img { display:block;width:100%;height:100%;object-fit:cover; }
body[data-theme="dark"] .art-frame { background:#110C17;border-color:var(--line); }
body[data-theme="dark"] .art-light,
body:not([data-theme="dark"]) .art-dark { display:none; }
/* A scene instead of a portrait: the 3:2 picture, as wide as its column. */
.art-wide { max-width:none; }
.art-wide .art-frame { aspect-ratio:3 / 2; }
.art-cap { font-family:var(--mono);font-size:0.6875rem;line-height:1.5;color:var(--ink-3);margin:10px 0 0; }

/* Character cards on /characters/: the examples page's teaser card with the 4:3 art in place of its accent bar. */
.char-cards { list-style:none;margin:28px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:20px; }
.char-card { border:1px solid var(--line);border-radius:var(--r-lg);background:var(--paper);overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow-sm); }
.char-card .art { max-width:none; }
.char-card .art-frame { aspect-ratio:4 / 3;border:0;border-bottom:1px solid var(--line);border-radius:0; }
.char-card-body { padding:18px 20px 20px;display:flex;flex-direction:column;flex:1; }
.char-card-hook { font-family:var(--mono);font-size:0.6875rem;letter-spacing:0.1em;text-transform:uppercase;color:var(--accent-ink); }
.char-card-name { font-family:var(--display);font-weight:600;font-size:1.5rem;margin:4px 0 6px; }
.char-card-name a { text-decoration:none; }
.char-card-name a:hover { text-decoration:underline;text-underline-offset:3px; }
.char-card-line { font-family:var(--display);font-style:italic;color:var(--ink-2);margin:0 0 8px; }
.char-card-does { font-size:0.9375rem;line-height:1.55;color:var(--ink-2);margin:0 0 12px;flex:1; }
.char-card .art-cap { margin:0 0 14px; }
.char-card-actions { display:flex;gap:10px;align-items:center;flex-wrap:wrap; }
.char-view-link { text-decoration:none;font-weight:600;font-size:0.875rem;color:var(--ink);border:1px solid var(--line-strong);padding:9px 14px;border-radius:var(--pill);min-height:44px;display:inline-flex;align-items:center; }
