/* ============================================================
   poster-styles.css
   Shared styling for the standalone poster files (poster-1/2/3.html)
   Depends on colors_and_type.css for the design tokens.
   ============================================================ */

* { box-sizing: border-box; }
img { display: block; }

/* ---- standalone page layout ---- */
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 450;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 26px;
  padding: 40px 20px 64px;
}
.poster-stage { display: flex; justify-content: center; }

/* print bar (single Print button under the poster) */
.print-bar { display: flex; justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: var(--r-pill); font-family: var(--font-body); font-weight: 700; cursor: pointer; white-space: nowrap; text-decoration: none; transition: transform var(--dur) var(--ease-spring), background var(--dur), box-shadow var(--dur); }
.btn-lg { padding: 15px 28px; font-size: 1.06rem; }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: var(--sh-green); }
.btn-primary:hover { background: var(--green-800); transform: translateY(-2px); }
.btn-primary:active { transform: scale(.97); box-shadow: none; }

/* ---- embedded (inside the gallery iframe): show only the poster ---- */
body.embed { background: transparent; padding: 0; gap: 0; align-items: flex-start; justify-content: flex-start; min-height: 0; }
body.embed .print-bar { display: none; }
body.embed .poster { box-shadow: none; border-radius: 0; }

/* ============================================================
   The A4 poster (794 x 1123 @ 96dpi)
   ============================================================ */
.poster {
  width: 794px; height: 1123px; position: relative; overflow: hidden;
  border-radius: 14px; box-shadow: var(--sh-pop);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
  display: flex; flex-direction: column;
}
.poster h2 { font-family: var(--font-display); letter-spacing: -.02em; margin: 0; }
.poster .p-logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -.03em; }
.poster .p-logo img { width: 38px; height: 38px; }
.poster .qr { background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 6px 18px rgba(19,51,36,.18); }
.poster .qr svg { display: block; width: 132px; height: 132px; }
.poster .qr-row { display: flex; align-items: center; gap: 18px; }
.poster .qr-cap { line-height: 1.25; }
.poster .qr-cap .scan { font-family: var(--font-display); font-weight: 800; font-size: 26px; }
.poster .qr-cap .url { font-weight: 700; font-size: 20px; opacity: .85; }
.poster .deadline { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 800; font-size: 22px; padding: 11px 20px; border-radius: 999px; }
.poster .qr-cap .scan, .poster .qr-cap .url { white-space: nowrap; }
.poster .p-sticker { position: absolute; font-family: var(--font-accent); font-weight: 700; line-height: .92; text-align: center; padding: 18px 22px; border-radius: 14px 26px 16px 28px; box-shadow: var(--sh-pop); }
.poster .p-sticker small { display: block; font-family: var(--font-body); font-weight: 700; font-size: 16px; letter-spacing: .03em; margin-top: 4px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--green-600); }

/* POSTER 1 — forest, bold */
.poster-1 { background: var(--green-900); color: var(--fg-on-green); padding: 64px 60px; }
.poster-1 .p-logo { color: #fff; }
.poster-1 .p-logo b { color: var(--lime); }
.poster-1 .p-blob { position: absolute; width: 520px; height: 520px; border-radius: var(--r-blob); background: radial-gradient(circle, rgba(199,226,92,.18), transparent 70%); bottom: -180px; left: -120px; }
.poster-1 .p1-kick { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: 18px; color: var(--lime); margin-top: 48px; }
.poster-1 .p1-h { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 800; font-size: 96px; line-height: .98; letter-spacing: -.03em; margin: 18px 0 0; }
.poster-1 .p1-h .hl { color: var(--lime); }
.poster-1 .p1-emoji { font-size: 130px; line-height: 1; margin: 26px 0 8px; }
.poster-1 .p1-sub { position: relative; z-index: 1; font-size: 27px; font-weight: 600; color: var(--green-200); max-width: 17em; line-height: 1.35; }
.poster-1 .p1-foot { position: relative; z-index: 1; margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.poster-1 .deadline { background: var(--lime); color: var(--green-900); margin-bottom: 18px; }
.poster-1 .qr-cap { color: #fff; }
.poster-1 .p-sticker { background: var(--sun); color: var(--green-900); font-size: 44px; right: 56px; top: 150px; transform: rotate(6deg); }

/* POSTER 2 — before/after, cream */
.poster-2 { background: #fff; color: var(--ink); padding: 60px 58px; }
.poster-2 .p-logo { color: var(--green-700); }
.poster-2 .p-logo b { color: var(--green-500); }
.poster-2 .p2-top { display: flex; align-items: center; justify-content: space-between; }
.poster-2 .p2-h { font-family: var(--font-display); font-weight: 800; font-size: 86px; line-height: .98; letter-spacing: -.03em; margin: 8px 0 28px; text-align: center; }
.poster-2 .p2-h .hl { position: relative; white-space: nowrap; }
.poster-2 .p2-h .hl::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: .08em; height: .3em; background: var(--lime); border-radius: 8px; z-index: 0; opacity: .9; }
.poster-2 .p2-h .hl span { position: relative; z-index: 1; }
.poster-2 .ba { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.poster-2 .ba figure { margin: 0; }
.poster-2 .ba .ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 16px; border: 5px solid var(--paper); box-shadow: var(--sh-lg); }
.poster-2 .ba figcaption { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 12px; font-weight: 800; font-size: 22px; }
.poster-2 .ba .now i { color: var(--clay); }
.poster-2 .ba .next i { color: var(--green-600); }
.poster-2 .p2-foot { margin-top: auto; margin-bottom: 108px; display: flex; align-items: flex-end; justify-content: center; gap: 24px; padding-top: 22px; }
.poster-2 .p2-foot > div { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.poster-2 .p2-foot .qr-row { flex-direction: column; gap: 14px; }
.poster-2 .p2-foot .qr-cap { text-align: center; }
.poster-2 .p2-foot .qr svg { width: 200px; height: 200px; }
.poster-2 .p2-foot .deadline { font-size: 26px; padding: 13px 24px; }
.poster-2 .p2-foot .qr-cap .scan { font-size: 31px; }
.poster-2 .p2-foot .qr-cap .url { font-size: 24px; }
.poster-2 .p2-foot .qr { padding: 17px; }
.poster-2 .deadline { background: var(--green-700); color: #fff; }
.poster-2 .qr-cap .url { color: var(--green-700); opacity: 1; }
.poster-2 .p-sticker { position: static; align-self: center; margin: 22px auto 0; background: var(--sun); color: var(--green-900); font-size: 31px; line-height: 1.04; max-width: 380px; padding: 14px 20px; transform: rotate(-3deg); }

/* POSTER 3 — friendly, paper */
.poster-3 { background: var(--paper); color: var(--ink); padding: 64px 58px; text-align: center; align-items: center; }
.poster-3 .p-band { position: absolute; left: 0; right: 0; top: 0; height: 22px; background: var(--lime); }
.poster-3 .p-logo { color: var(--green-700); margin-top: 22px; }
.poster-3 .p-logo b { color: var(--green-500); }
.poster-3 .p3-emoji { font-size: 150px; line-height: 1; margin: 60px 0 6px; }
.poster-3 .p3-h { font-family: var(--font-display); font-weight: 800; font-size: 76px; line-height: .98; letter-spacing: -.03em; }
.poster-3 .p3-sub { font-size: 30px; font-weight: 600; color: var(--ink-2); max-width: 16em; line-height: 1.3; margin: 22px auto 0; }
.poster-3 .p3-sub .hl { color: var(--green-600); font-weight: 800; }
.poster-3 .p3-foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.poster-3 .deadline { background: var(--clay); color: #fff; }
.poster-3 .qr-row { flex-direction: column; gap: 12px; }
.poster-3 .qr-cap { text-align: center; }

/* ============================================================
   POSTER (B&W) — large QR, plain black & white, photocopy-friendly
   Used by sign.html (A4). Reuses the .poster 794x1123 frame.
   ============================================================ */
.poster-bw { background: #fff; color: #000; padding: 66px 60px 58px; align-items: center; justify-content: center; text-align: center; }
.poster-bw.invert { background: #000; color: #fff; }
.poster-bw .bw-brand { display: inline-flex; align-items: center; gap: 16px; font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: -.03em; line-height: 1; }
.poster-bw .bw-brand svg { width: 52px; height: 52px; fill: currentColor; }
.poster-bw .bw-scan { margin-top: 30px; font-family: var(--font-body); font-weight: 800; text-transform: uppercase; letter-spacing: .26em; font-size: 22px; }
.poster-bw .qr { background: #fff; border-radius: 18px; padding: 22px; box-shadow: none; margin-top: 0; }
.poster-bw .qr svg { width: 360px; height: 360px; }
.poster-bw .bw-url { margin-top: 20px; font-family: var(--font-display); font-weight: 600; font-size: 36px; letter-spacing: -.01em; }
.poster-bw .bw-url b { font-weight: 800; }
.poster-bw .bw-tag { margin: 34px 0 0; font-family: var(--font-display); letter-spacing: -.04em; line-height: .92; text-wrap: balance; }
.poster-bw .bw-tag .l1 { display: block; font-weight: 600; font-size: 82px; }
.poster-bw .bw-tag .q { display: block; font-weight: 800; font-size: 82px; }
.poster-bw .bw-foot { position: absolute; left: 60px; right: 60px; bottom: 50px; font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -.01em; }

/* ============================================================
   PRINT — one A4 poster per page
   ============================================================ */
@page { size: A4 portrait; margin: 0; }
@media print {
  body { background: #fff; padding: 0; gap: 0; display: block; }
  .print-bar, .noprint { display: none !important; }
  .poster-stage { display: block; }
  .poster { transform: none; width: 210mm; height: 297mm; box-shadow: none; border-radius: 0; }
  .poster-bw { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
