/* A4. Każdy .page jest jedną stroną; nagłówki i stopki są częścią składu. */
@page { size: A4 portrait; margin: 0; }
:root {
  --ink: #21211d;
  --accent: #913e2d;
  --muted: #514c46;
  --rule: #8b847b;
  --tint: #f4eee7;
  --serif: "Liberation Serif", Georgia, "Times New Roman", serif;
  --sans: "Liberation Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: #e9e6e1; }
body { margin: 0; color: var(--ink); font: 12pt/1.3 var(--serif); }
h1, h2, h3, p, figure, blockquote { margin: 0; }
.page {
  width: 210mm; min-height: 297mm; margin: 8mm auto; padding: 11mm 13mm 10mm;
  display: flex; flex-direction: column; background: #fff; position: relative;
  box-shadow: 0 2px 14px #6b65562b;
}
img { display: block; width: 100%; object-fit: cover; background: var(--tint); }
.edition-strip, .index-strip, .running, footer, .byline, .label, .ticket-line {
  font-family: var(--sans); text-transform: uppercase;
}
.edition-strip, .index-strip, .running, footer, .ticket-line { display: flex; justify-content: space-between; align-items: baseline; gap: 3mm; }
.edition-strip, .running { padding-bottom: 2.2mm; border-bottom: .45mm solid var(--ink); }
.edition-strip, .index-strip { font-size: 7.7pt; font-weight: 600; letter-spacing: .09em; }
.masthead { margin: .2mm 0 .4mm; text-align: center; font-weight: bold; font-size: 56pt; letter-spacing: -.061em; line-height: 1.04; }
.index-strip { border-top: 1mm double var(--ink); border-bottom: .22mm solid var(--ink); padding: 2mm 0; }
.running { font-size: 8.2pt; letter-spacing: .1em; font-weight: bold; }
.running span:last-child { color: var(--accent); }
.label { font-weight: bold; font-size: 8.5pt; line-height: 1.25; letter-spacing: .115em; color: var(--accent); }
footer { margin-top: auto; padding-top: 2.4mm; border-top: .3mm solid var(--ink); font-size: 7.6pt; line-height: 1.1; font-weight: bold; letter-spacing: .09em; }
.cover-intro { padding: 6mm 0 5mm; }
.cover h1 { margin: 1mm 0; font-size: 55pt; letter-spacing: -.055em; line-height: 1; }
.standfirst { max-width: 178mm; font-size: 16pt; line-height: 1.15; }
.portrait img { height: 109mm; object-position: 50% 43%; }
.portrait figcaption { margin-top: 1.8mm; color: var(--muted); font: 8.5pt/1.25 var(--sans); }
.cover-teasers { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: .5mm solid var(--ink); padding-top: 3.5mm; margin: 6mm 0; }
.cover-teasers section { padding: 0 4mm; border-left: .23mm solid var(--rule); }
.cover-teasers section:first-child { border: 0; padding-left: 0; }
.cover-teasers section:last-child { padding-right: 0; }
.cover-teasers .label { font-size: 7.6pt; }
.cover-teasers .label span { color: var(--muted); }
.cover-teasers h2 { margin: 2.5mm 0; font-size: 20pt; line-height: .99; letter-spacing: -.035em; }
.cover-teasers p:not(.label) { font-size: 11.5pt; line-height: 1.22; }
.section-label { margin-top: 10mm; }
.page-title { margin: 2mm 0 4mm; font-size: 55pt; font-weight: bold; line-height: .91; letter-spacing: -.055em; }
.page-title em { font-weight: normal; }
.deck { font-size: 17pt; line-height: 1.17; max-width: 169mm; }
.byline { margin: 3mm 0 0; padding-top: 2.5mm; font-size: 8pt; letter-spacing: .09em; font-weight: bold; }
.story-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; margin: 4mm 0; padding-top: 4mm; border-top: .25mm solid var(--rule); }
.story-columns p { font-size: 13.8pt; line-height: 1.29; }
.story-columns p + p { text-indent: 5mm; margin-top: 1mm; }
.dropcap:first-letter { float: left; font-size: 41pt; line-height: .77; padding: .5mm 1.8mm 0 0; font-weight: bold; color: var(--accent); }
.pullquote { padding: 4mm 0 4mm 5mm; margin: auto 0 9mm; border-left: 1mm solid var(--accent); }
.pullquote blockquote { margin: 1.4mm 0; font-size: 36pt; font-style: italic; line-height: .99; letter-spacing: -.035em; }
.pullquote p { color: var(--muted); font: 9pt/1.2 var(--sans); }
.memories footer, .letters footer { margin-top: 0; }
.album-entries { margin: 9mm 0 5mm; display: grid; gap: 8mm; }
.album-entry { display: grid; grid-template-columns: 2.1fr 1fr; align-items: center; gap: 6mm; border-top: .33mm solid var(--ink); padding-top: 3mm; }
.album-entry img { height: 78mm; }
.album-entry.reverse { grid-template-columns: 1fr 2.1fr; }
.album-entry.reverse img { grid-column: 2; grid-row: 1; object-position: 68% center; }
.album-entry.reverse figcaption { grid-column: 1; grid-row: 1; }
.year { font: italic 30pt/.92 var(--serif); color: var(--accent); letter-spacing: -.06em; }
.album .label:not(.section-label) { color: var(--muted); margin: 2mm 0 3mm; font-size: 7.5pt; }
.album h3 { margin-bottom: 1.5mm; font-size: 20pt; line-height: 1; letter-spacing: -.035em; }
.album figcaption > p:last-child { font-size: 12pt; line-height: 1.22; }
.letters .page-title { margin-top: 4mm; font-size: 62pt; }
.lead-letter { max-width: 170mm; margin: 3mm 0 10mm; }
.lead-letter > p:first-child { font-size: 23pt; line-height: 1.21; }
.signature { margin-top: 2.5mm; font: italic 18pt/1.04 var(--serif); color: var(--accent); }
.short-letters { display: grid; gap: 7mm; grid-template-columns: 1fr 1fr; padding: 5mm 0; border-top: .35mm solid var(--ink); border-bottom: .25mm solid var(--rule); }
.short-letters section + section { border-left: .22mm solid var(--rule); padding-left: 6mm; }
.short-letters .label { margin-bottom: 2mm; }
.short-letters section > p:nth-child(2) { font-size: 15pt; line-height: 1.25; }
.ticket { border: .35mm solid var(--accent); border-left: 2mm solid var(--accent); padding: 8mm 7mm 5mm; margin: auto 0 10mm; background: var(--tint); }
.ticket h3 { margin: 1mm 0 2mm; font-size: 31pt; line-height: 1; letter-spacing: -.045em; }
.ticket > p:not(.label) { font-size: 13pt; line-height: 1.2; max-width: 145mm; }
.ticket-line { border-top: .25mm dashed var(--rule); margin-top: 3mm; padding-top: 2mm; font-size: 8pt; letter-spacing: .08em; }
@media print {
  html, body { background: white; }
  * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .page { margin: 0; height: 297mm; min-height: 0; box-shadow: none; break-after: page; }
  .page:last-child { break-after: auto; }
}
@media screen and (max-width: 790px) {
  .page { width: 100%; min-height: 0; margin: 0 0 14px; padding: 20px; }
  .masthead { font-size: clamp(27pt, 8vw, 52pt); }
  .edition-strip, .index-strip { font-size: 7pt; gap: 5px; letter-spacing: .02em; }
  .cover h1, .page-title, .letters .page-title { font-size: clamp(33pt, 8vw, 52pt); }
  .portrait img { height: auto; aspect-ratio: 1.86; }
  .cover-teasers { grid-template-columns: 1fr; }
  .cover-teasers section, .cover-teasers section:first-child { padding: 3mm 0; border: 0; }
  .cover-teasers h2 br { display: none; }
  .story-columns, .short-letters { grid-template-columns: 1fr; gap: 4mm; }
  .short-letters section + section { border: 0; padding-left: 0; }
  .album-entry, .album-entry.reverse { grid-template-columns: 1fr; gap: 3mm; }
  .album-entry img { height: auto; }
  .album-entry.reverse img, .album-entry.reverse figcaption { grid-column: auto; grid-row: auto; }
  .pullquote, .ticket { margin-top: 6mm; }
  footer { margin-top: 6mm; }
}
