@media print {
  @page { size: 160mm 200mm; margin: 0; }
  .maker-page:has(.proof-sheet) > :not([data-print-proof]) { display: none !important; }
  .maker-page { margin: 0; padding: 0; }
  [data-print-proof] { color: #302b26; font-family: var(--serif); print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .proof-sheet {
    position: relative; display: grid; width: 160mm; height: 200mm;
    margin: 0; overflow: hidden; break-inside: avoid; break-after: page;
    background: #f6eddf; box-sizing: border-box;
  }
  .proof-sheet:last-child { break-after: auto; }
  .proof-cover {
    grid-template-rows: minmax(0, 1fr) auto; align-items: center;
    background: var(--cloth, #806e5b); color: #fff4e4; padding: 24mm 20mm 18mm 24mm; gap: 8mm;
  }
  .proof-cover img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 50% 47%; }
  .proof-cover h1 { align-self: end; font: 500 22pt/1.1 var(--serif); text-align: center; overflow-wrap: anywhere; }
  .proof-page .maker-leaf {
    box-sizing: border-box; display: grid; width: 100%; height: 100%; min-height: 0;
    grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; padding: 18mm 18mm 20mm;
    aspect-ratio: auto; border-radius: 0; background: #f6eddf;
  }
  .proof-page .maker-leaf img { width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; object-fit: contain; }
  .proof-page .maker-leaf figcaption { display: block; -webkit-line-clamp: unset; position: static; color: #302b26; font: 400 13pt/1.25 var(--serif); margin: 4mm 0 0; text-align: center; overflow-wrap: anywhere; }
  .proof-page .maker-leaf figcaption:empty { display: none; }
  .proof-page .maker-leaf[data-layout="bleed"] { padding: 0; }
  .proof-page .maker-leaf[data-layout="bleed"] img { object-fit: cover; }
  .proof-page .maker-leaf[data-layout="bleed"] figcaption:not(:empty) { margin: 0; padding: 4mm 12mm 5mm; background: #f6eddf; }
  .proof-page .maker-leaf .maker-page-number { inset: auto 4mm 3mm auto; color: #51463b; padding: 0 1mm; background: #f6eddf; font: 500 8pt/1.2 var(--sans); }
}

@media print {
  .proof-note { align-content: center; justify-items: start; gap: 8mm; padding: 16mm; }
  .proof-note p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 14pt/1.45 var(--serif); }
  .proof-note .proof-signature { justify-self: end; font-style: italic; }
}
