/* read/zine/zine.css -- shared by every one-sheet zine (read/zine.php, read/zine-essence.php).
   A zine is 8 panels in a .sheet. In the page source the panels come in PRINT order
   (5 4 3 2 upside down, then 6 7 8 1), each with style="--n:<page number>"; on screen
   `order` puts them back in reading order. Everything inside a panel is sized in em, so
   one font-size per medium scales the whole page: print 10pt on a 2.75in x 4.25in panel,
   screen 16.6px on a 330px x 510px card (the same page, 1.25 times larger).
   The fold (Tom's picture, 2026-11-28): fold in half three times, unfold, fold in half the
   long way, cut the centre fold across the two middle panels, push the ends together. */
@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&family=Charis+SIL:wght@400;700&display=swap');
body { margin: 0; color: #111; background: #f4f1ea; font-family: "Patrick Hand", "Comic Sans MS", sans-serif; }
.ipa { font-family: "Charis SIL", "Doulos SIL", Georgia, serif; font-weight: bold; white-space: nowrap; }
.pg { box-sizing: border-box; color: inherit; text-decoration: none; position: relative; overflow: hidden;
      display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
      width: 27.5em; height: 42.5em; padding: 2.6em 2.6em 4.2em; background: #fff; line-height: 1.25; }   /* 2.6em = 0.26in in print, clear of a printer's unprintable edge; the bottom also clears the page number */
.pg > * { font-size: 1.45em; margin: 0; }                 /* body words: 14.5pt in print */
.pg .num { position: absolute; bottom: 2.7em; left: 0; right: 0; font-size: 1em; color: #999; }   /* 3em = 0.3in in print: a printer cannot print nearer the paper edge than about a quarter inch */
.pg h2 { font-size: 2.2em; font-weight: normal; line-height: 1.05; margin: 0 0 .35em; }
.pg .huge { font-size: 5.2em; line-height: 1.1; }
.pg .big  { font-size: 3em; line-height: 1.15; }
.pg .small { font-size: 1.15em; color: #444; }
.pg img { display: block; }
.pg .qr { width: 9em; height: 9em; font-size: 1em; }
.pg .row { display: flex; align-items: center; gap: .5em; text-align: left; width: 100%; margin: .25em 0; }
.pg .row img { flex: none; }
.gap { height: .6em; font-size: 1em !important; }
@media screen {
  .how { max-width: 46em; margin: 1.2em auto 0; padding: 0 1em; font: 15px/1.4 sans-serif; color: #555; }
  .how a { color: #06c; }
  .sheet { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; max-width: 1480px; margin: 1.2em auto 3em; padding: 0 12px; }
  .pg { font-size: 12px; order: var(--n); border: 1px solid #bbb; box-shadow: 2px 3px 8px rgba(0,0,0,.18); }
  a.pg:hover { background: #fff8d8; }
  .cut { display: none; }
}
@media print {
  @page { size: letter landscape; margin: 0; }
  body { background: #fff; }
  .how { display: none; }
  .sheet { display: grid; grid-template-columns: repeat(4, 2.75in); grid-template-rows: repeat(2, 4.25in);
           width: 11in; height: 8.5in; position: relative; }
  .pg { font-size: 7.2pt; width: 2.75in; height: 4.25in; }     /* 27.5em x 42.5em at 7.2pt = 2.75in x 4.25in */
  .pg.flip { transform: rotate(180deg); }
  .cut { position: absolute; left: 2.75in; width: 5.5in; top: 4.25in; border-top: 1px dashed #999; }
}
