/* Card reference pages (/cards/…). Layered on style.css, which supplies the
   background, typography, and the .lang switcher. These pages are documents
   rather than the interactive draw, so they read left-aligned and scroll. */

body.card-page {
  justify-content: flex-start;
  text-align: left;
}

body.card-page main {
  max-width: 44rem;
  padding-bottom: 2rem;
}

.crumbs {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-bottom: 1.5rem;
}

.crumbs a {
  color: #c4a5ff;
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
}

body.card-page h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  margin: 0 0 0.3rem;
  color: #e9d8ff;
  text-shadow: 0 0 20px rgba(180, 139, 240, 0.45);
}

body.card-page h2 {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 1.8rem 0 0.4rem;
}

body.card-page p {
  line-height: 1.65;
  margin: 0.4rem 0;
}

.card-meta {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
  margin: 0 0 1.2rem;
}

/* The reference pages show a still card — no draw animation, no flip. */
.card-frame--static {
  height: auto;
  max-width: 200px;
  margin: 0 0 1.5rem;
  float: right;
  margin-left: 1.5rem;
}

.card-frame--static .card-img {
  opacity: 1;
  height: auto;
}

.keywords {
  font-size: 0.95rem;
  opacity: 0.85;
  padding: 0.6rem 0.8rem;
  border-left: 3px solid #9d7bff;
  background: rgba(157, 123, 255, 0.08);
}

.index-intro {
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.card-list {
  columns: 2;
  column-gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.card-list li {
  break-inside: avoid;
  margin: 0.25rem 0;
}

.card-list a {
  color: #c4a5ff;
  text-decoration: none;
  font-size: 0.95rem;
}

.card-list a:hover {
  text-decoration: underline;
}

.cta {
  clear: both;
  margin-top: 2rem;
}

.cta a {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  color: #f3ecff;
  background: linear-gradient(135deg, #6d4bd6, #a06be0);
  border: 1px solid #b48bf0;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(160, 107, 224, 0.35);
}

@media (max-width: 560px) {
  .card-frame--static {
    float: none;
    margin: 0 auto 1.5rem;
  }
  .card-list {
    columns: 1;
  }
}
