@page {
  size: A4 portrait;
  margin: 12mm;
}

:root {
  --text: #1f1a16;
  --muted: #5f564c;
  --brand: #b65435;
  --accent: #0f766e;
  --paper: #ffffff;
  --line: #d8cdc0;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: #f4eee6;
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.sheet {
  width: 210mm;
  min-height: 297mm;
  padding: 14mm;
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(31, 26, 22, 0.12);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 9mm;
}

.sheet-header {
  display: grid;
  grid-template-columns: 26mm 1fr;
  gap: 7mm;
  align-items: center;
}

.sheet-header img {
  width: 100%;
  height: auto;
}

.eyebrow {
  margin: 0 0 2mm;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 9pt;
  font-weight: 700;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  font-family: "Alegreya", "Palatino Linotype", serif;
}

h1 {
  font-size: 25pt;
  line-height: 1.05;
}

.lead {
  font-size: 12.5pt;
  line-height: 1.5;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8mm;
}

.card {
  border: 1px solid var(--line);
  border-radius: 7mm;
  padding: 8mm;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 5mm;
}

.card h2 {
  font-size: 19pt;
  line-height: 1.1;
}

.card--paypal h2 {
  color: var(--brand);
}

.card--bank h2 {
  color: var(--accent);
}

.qr {
  width: 76mm;
  max-width: 100%;
  justify-self: center;
}

.meta {
  display: grid;
  gap: 2.5mm;
  font-size: 10.5pt;
  line-height: 1.35;
}

.meta strong {
  color: var(--muted);
}

.notice {
  border-top: 1px solid var(--line);
  padding-top: 4mm;
  font-size: 10.5pt;
  line-height: 1.45;
}

.sheet-footer {
  border-top: 1px solid var(--line);
  padding-top: 4mm;
  display: grid;
  gap: 1.5mm;
  font-size: 9.5pt;
  color: var(--muted);
}

.screen-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.print-button {
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 900px) {
  body {
    padding: 10px;
  }

  .sheet {
    width: 100%;
    min-height: auto;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

@media print {
  html,
  body {
    background: #fff;
  }

  body {
    display: block;
    padding: 0;
  }

  .sheet {
    width: 100%;
    min-height: auto;
    padding: 0;
    box-shadow: none;
    gap: 8mm;
  }

  .sheet-header {
    grid-template-columns: 26mm 1fr;
  }

  .lead {
    line-height: 1.42;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 7mm;
  }

  .card {
    padding: 7mm;
    gap: 4mm;
  }

  .notice,
  .sheet-footer {
    padding-top: 3mm;
  }

  .sheet-footer {
    gap: 1mm;
    font-size: 9pt;
  }

  .screen-actions {
    display: none;
  }
}
