/*
 * The starter kit page (Dashboard::StarterKitsController, Einstieg 32) in the
 * marketing hub: the choice of a code reuses the template cards
 * (.mk-templates), the three motifs are tiles with the real PNG at 40 % as
 * preview, the texts sit in tiles with a copy button. Tokens only, so dark
 * mode follows by itself; the motifs themselves are pictures and stay light.
 */
@layer components {
  .sk-motifs {
    display: grid;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;

    @media (min-width: 800px) {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  .sk-motif {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .sk-motif__size {
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
  }

  /* The preview keeps the motif's proportions; a light rule marks the paper's edge in dark mode. */
  .sk-motif__preview {
    background-color: #F8F5ED;
    block-size: auto;
    border: 1px solid var(--color-ink-lighter);
    border-radius: var(--radius-card);
    display: block;
    inline-size: 100%;
    max-inline-size: 432px;
  }

  .sk-captions {
    display: grid;
    gap: 12px;

    @media (min-width: 800px) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  .sk-caption {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .sk-caption__text {
    background-color: var(--color-ink-lightest);
    border-radius: var(--radius-card);
    color: var(--color-ink);
    font: inherit;
    font-size: var(--text-small);
    inline-size: 100%;
    line-height: 1.5;
    margin: 0;
    overflow-wrap: anywhere;
    padding: 12px;
    white-space: pre-wrap;
  }
}
