:root {
  --poster-accent: #d94a27;
  --poster-highlight: #d9ef8a;
  --poster-bg-image: url("../assets/sandwich-grid-fast.jpg");
  color: #fffaf2;
  background: #dcd4ca;
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; }
body { margin: 0; padding: 92px 24px 42px; background: #dcd4ca; -webkit-font-smoothing: antialiased; }
button, a { font: inherit; }

.print-toolbar { position: fixed; z-index: 20; top: 0; right: 0; left: 0; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 28px; border-bottom: 1px solid rgba(29,28,24,.12); background: rgba(255,250,242,.94); color: #1d1c18; backdrop-filter: blur(18px); }
.print-toolbar a { font-size: 12px; font-weight: 800; text-decoration: none; }
.print-toolbar a:hover { color: #d94a27; }
.print-toolbar > div { display: flex; align-items: center; gap: 16px; }
.print-toolbar span { color: #746e65; font-size: 10px; font-weight: 800; }
.print-toolbar button { min-height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--poster-accent); color: white; font-size: 11px; font-weight: 900; cursor: pointer; }
.print-toolbar button:hover { background: #1d1c18; }

.poster { position: relative; isolation: isolate; width: min(210mm, 100%); min-height: 297mm; display: flex; overflow: hidden; flex-direction: column; margin: 0 auto; padding: 19mm 18mm 15mm; background: #1d1c18; color: #fffaf2; box-shadow: 0 30px 90px rgba(45,35,25,.24); }
.poster::before { content: ""; position: absolute; z-index: -3; inset: 0; opacity: .2; background: var(--poster-bg-image) center / cover; filter: grayscale(.65) contrast(1.1); }
.poster::after { content: ""; position: absolute; z-index: -2; inset: 0; background: linear-gradient(155deg, rgba(29,28,24,.5), #1d1c18 59%); }
.poster-orbit { position: absolute; z-index: -1; border: .4mm solid rgba(255,255,255,.09); border-radius: 50%; }
.orbit-one { width: 145mm; height: 145mm; top: -78mm; right: -75mm; }
.orbit-two { width: 205mm; height: 205mm; top: -108mm; right: -105mm; }

.poster-header { display: flex; align-items: center; justify-content: space-between; gap: 10mm; }
.poster-brand { display: flex; align-items: center; gap: 3.2mm; }
.poster-brand i { width: 11mm; height: 11mm; display: grid; overflow: hidden; place-items: center; border-radius: 50% 50% 44% 44%; background: var(--poster-accent); color: white; font-family: Georgia, serif; font-size: 6mm; transform: rotate(-7deg); }
.poster-brand i.has-custom-avatar { background-position: center; background-size: cover; background-repeat: no-repeat; color: transparent; font-size: 0; }
.poster-brand strong { max-width: 70mm; overflow: hidden; font-size: 3.2mm; letter-spacing: .13em; text-overflow: ellipsis; white-space: nowrap; }
.poster-header > span { color: #aaa49b; font-size: 2.5mm; font-weight: 900; letter-spacing: .15em; }

.poster-copy { margin-top: 18mm; }
.poster-copy > p { margin: 0 0 4mm; color: var(--poster-highlight); font-size: 2.8mm; font-weight: 900; letter-spacing: .2em; }
.poster-copy h1 { margin: 0; font-family: Georgia, serif; font-size: 20mm; font-weight: 400; letter-spacing: -.055em; line-height: .77; }
.poster-copy h1 em { color: #f06a43; font-weight: 400; }
.poster-copy > span { display: block; width: 99mm; margin-top: 7mm; color: rgba(255,255,255,.62); font-size: 3.4mm; line-height: 1.55; }

.poster-qr-area { display: flex; align-items: center; gap: 10mm; margin-top: auto; }
.poster-qr { width: 68mm; height: 68mm; flex: 0 0 auto; padding: 4mm; border-radius: 5mm; background: #fffaf2; box-shadow: 0 7mm 18mm rgba(0,0,0,.2); }
.poster-qr img { display: block; width: 100%; height: 100%; }
.scan-copy { display: grid; gap: 2.5mm; }
.scan-copy b { color: var(--poster-highlight); font-size: 3mm; letter-spacing: .15em; }
.scan-copy span { max-width: 55mm; color: rgba(255,255,255,.63); font-size: 3.3mm; line-height: 1.5; }

.poster-footer { display: flex; align-items: center; justify-content: space-between; gap: 8mm; margin-top: 13mm; padding-top: 6mm; border-top: .35mm solid rgba(255,255,255,.15); }
.poster-footer span { color: white; font-family: Georgia, serif; font-size: 4.4mm; }
.poster-footer strong { color: #8d8881; font-size: 2.25mm; letter-spacing: .12em; text-align: right; }

@media (max-width: 680px) {
  body { padding: 76px 0 0; background: #1d1c18; }
  .print-toolbar { min-height: 60px; padding: 9px 14px; }
  .print-toolbar span { display: none; }
  .print-toolbar button { min-height: 39px; padding: 0 15px; }
  .poster { width: 100%; min-height: calc(100vw * 1.414); padding: 9vw 8vw 7vw; box-shadow: none; }
  .poster-brand i { width: 10vw; height: 10vw; font-size: 5.5vw; }
  .poster-brand strong { max-width: 40vw; font-size: 2.9vw; }
  .poster-header > span { font-size: 2.2vw; }
  .poster-copy { margin-top: 8vw; }
  .poster-copy > p { margin-bottom: 2.5vw; font-size: 2.5vw; }
  .poster-copy h1 { font-size: 18vw; }
  .poster-copy > span { width: 65vw; margin-top: 5vw; font-size: 3vw; }
  .poster-qr-area { gap: 5vw; }
  .poster-qr { width: 35vw; height: 35vw; padding: 2vw; border-radius: 2.5vw; }
  .scan-copy b { font-size: 2.5vw; }
  .scan-copy span { font-size: 2.8vw; }
  .poster-footer { margin-top: 6vw; padding-top: 3.5vw; }
  .poster-footer span { font-size: 3.8vw; }
  .poster-footer strong { font-size: 1.9vw; }
}

@page { size: A4 portrait; margin: 0; }

@media print {
  html, body { width: 210mm; height: 297mm; margin: 0; padding: 0; background: #1d1c18; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .print-toolbar { display: none; }
  .poster { width: 210mm; height: 297mm; min-height: 297mm; margin: 0; box-shadow: none; break-inside: avoid; }
}
