@font-face {
  font-family: PostcardSerif;
  src: url('assets/card-serif.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: PostcardSans;
  src: url('assets/nunito.ttf') format('truetype');
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

/* The artwork owns its composition. UI text-size controls do not distort it. */
.card-preview.postcard-art {
  width: min(100%, 820px);
  max-width: 820px;
  min-height: 0;
  aspect-ratio: 3 / 4;
  margin: 30px auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 25px;
  background: #fff4e4;
  box-shadow: 0 24px 65px #5d533625, 0 5px 12px #7d654018;
  isolation: isolate;
}
.card-preview.postcard-art > .postcard-art-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.postcard-art-svg .postcard-serif { font-family: PostcardSerif, Georgia, 'Times New Roman', serif; }
.postcard-art-svg .postcard-sans { font-family: PostcardSans, Nunito, 'Trebuchet MS', sans-serif; }

@media (max-width: 560px) {
  .card-preview.postcard-art { margin: 24px auto; border-radius: 17px; }
}

@media print {
  .card-preview.postcard-art {
    width: 168mm;
    max-width: 168mm;
    height: 224mm;
    min-height: 0;
    margin: 8mm auto 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    break-inside: avoid;
    page-break-inside: avoid;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .card-preview.postcard-art > .postcard-art-svg {
    width: 168mm;
    height: 224mm;
    max-width: none;
  }
}
