/* Written by tm/frontend (claude-fable-5-2). The tabloid poster: a red top front page, pasted up like the rest
   of the wall. Loaded after page.css; every rule is scoped to .tabloid, the class on this poster's own
   article, so the shared rules are left alone. Sheet units as on the main page: 1000 wide, 1 unit = 0.1cqi;
   1220 tall on wide screens, where the whole page fits the first screen, and 1400 on phones, where the
   standfirst runs under the photo (--sheet-ar, at the foot of this file). Markup: tabloid.html. Generated
   art: newsprint.mjs. Body type is Tinos (Times's measure, so the fallback sets the same lines). */
@font-face{font-family:Tinos;font-weight:400;src:url(assets/fonts/Tinos-400.18505b57c8.woff2) format('woff2');font-display:swap}
@font-face{font-family:Tinos;font-weight:700;src:url(assets/fonts/Tinos-700.4132bff0c1.woff2) format('woff2');font-display:swap}
@font-face{font-family:Tinos;font-weight:700;font-style:italic;src:url(assets/fonts/Tinos-700i.6b199a846d.woff2) format('woff2');font-display:swap}
.tabloid{--paper:#ebe5d3;--serif:Tinos,'Times New Roman',Times,serif;
  /* the box every poster gives (design-v6.md, design-v9.md): where the icon sits. It sits in the photo. */
  --icon-l:9.38cqi;--icon-t:75.06cqi;--icon-w:32.22cqi}

/* ---------- pasted up ----------
   The bottom left corner came away with the last poster: the main page's cut corner, then a ragged walk
   (newsprint.mjs writes the points between the markers). */
.tabloid .sheet{clip-path:polygon(0 0,calc(100% - var(--corner)) 0,100% var(--corner),100% 100%,/*torn:start*/26.8% 100%,25.99% calc(100% - 0.15cqi),25.28% calc(100% - 0.66cqi),24.41% calc(100% - 0.57cqi),23.73% calc(100% - 1.18cqi),22.91% calc(100% - 1.28cqi),22.09% calc(100% - 1.36cqi),21.17% calc(100% - 1.12cqi),20.53% calc(100% - 1.87cqi),19.69% calc(100% - 1.92cqi),18.86% calc(100% - 1.98cqi),18.09% calc(100% - 2.26cqi),17.23% calc(100% - 2.22cqi),16.47% calc(100% - 2.52cqi),15.69% calc(100% - 2.76cqi),14.91% calc(100% - 3.01cqi),14.24% calc(100% - 3.69cqi),13.46% calc(100% - 3.92cqi),12.62% calc(100% - 3.95cqi),11.91% calc(100% - 4.43cqi),11.08% calc(100% - 4.52cqi),10.16% calc(100% - 4.27cqi),9.52% calc(100% - 5.01cqi),8.71% calc(100% - 5.16cqi),7.91% calc(100% - 5.32cqi),7.12% calc(100% - 5.53cqi),6.44% calc(100% - 6.13cqi),5.69% calc(100% - 6.51cqi),4.91% calc(100% - 6.75cqi),3.96% calc(100% - 6.39cqi),3.24% calc(100% - 6.85cqi),2.31% calc(100% - 6.54cqi),1.64% calc(100% - 7.21cqi),0.72% calc(100% - 6.95cqi),0% calc(100% - 7.4cqi)/*torn:end*/)}
/* newsprint yellows where the paste soaked through */
.tabloid .sheet::before{opacity:.42}
/* the creases catch more light on newsprint (the shared sheet holds them back over the icon) */
.tabloid .sheet::after{opacity:.56}
/* thin paper: the wall's blockwork shows through, in register with the mural. The side sheets' own .thru,
   placed from this sheet's spot on the wall: its middle is the wall's centre line, its top is --pad-t.
   Held back over the icon and the story, like the creases. */
.tabloid .sheet{--r:-.7deg;--thru:.44}
.tabloid .sheet>.thru{z-index:1;left:calc(50cqi - 720 * var(--u));top:calc(var(--ms,0px) - var(--pad-t));
  transform-origin:calc(720 * var(--u)) calc(var(--pad-t) - var(--ms,0px) + 50cqi * var(--sheet-ar));
  --hole:linear-gradient(rgba(0,0,0,.66),rgba(0,0,0,.66)) calc(720 * var(--u) - 50cqi + var(--icon-l)) calc(var(--pad-t) - var(--ms,0px) + var(--icon-t))/var(--icon-w) var(--icon-w) no-repeat,
    linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)) calc(720 * var(--u) - 50cqi + var(--read-l)) calc(var(--pad-t) - var(--ms,0px) + var(--read-t))/var(--read-w) var(--read-h) no-repeat,linear-gradient(#000,#000);
  -webkit-mask:var(--hole);-webkit-mask-composite:xor;mask:var(--hole);mask-composite:exclude}

/* ---------- the front page ---------- */
/* the red top. Anton's capitals sit in the middle of the line box, so a band's line height is its height */
.tabloid .mast{position:absolute;left:3.5cqi;right:3.5cqi;top:3.5cqi;height:7.8cqi;margin:0;padding-left:2.2cqi;overflow:hidden;
  background:var(--red);color:var(--paper);font:400 6.9cqi/7.8cqi Anton;text-transform:uppercase;letter-spacing:.01em;filter:url(#ink-flood)}
.tabloid .mast span{display:inline-block;transform:skewX(-11deg)}
/* the strap: the line above the splash */
.tabloid .strap{position:absolute;left:3.5cqi;right:3.5cqi;top:12.4cqi;height:5.8cqi;margin:0;white-space:nowrap;text-align:center;
  background:var(--ink);color:var(--paper);font:400 4.6cqi/5.8cqi Anton;text-transform:uppercase;letter-spacing:.1em;filter:url(#ink-flood)}
/* the splash: "Swift" over "justice". Anton is narrow and the words are short: set to the full measure they
   would be taller than the room between the strap and the photo. So the long word fills the measure and the
   short one, leaning like the masthead, has the height that is left; the streaks behind it fill its line.
   Capitals are .867em tall and start .056em below the line box top (line height 1), which is how the three
   gaps round the two lines are kept even at 3.1 units. */
.tabloid .splash span{position:absolute;left:0;right:0;display:block;text-align:center;white-space:nowrap;
  font-family:Anton;font-weight:400;text-transform:uppercase;line-height:1;color:var(--ink);filter:url(#ink-flood)}
.tabloid .splash .l1{left:3.5cqi;right:5.2cqi;top:20.25cqi;font-size:19.26cqi;text-align:right;transform:skewX(-11deg)}
.tabloid .splash .l1::before{content:"";position:absolute;left:1.8cqi;top:.056em;width:calc(100% - 2.2em - 1.8cqi);height:.867em;
  --streak:linear-gradient(var(--ink),var(--ink));
  background:var(--streak) 100% 5%/100% 17% no-repeat,var(--streak) 100% 37%/58% 10% no-repeat,var(--streak) 100% 63%/82% 14% no-repeat,var(--streak) 100% 93%/40% 9% no-repeat}
.tabloid .splash .l2{top:39.35cqi;font-size:32.3cqi}

/* the front page photo: the concert plate and its crowd, cropped to the pool of light; the icon (--icon-*) is printed over it */
.tabloid .photo{position:absolute;left:3.5cqi;top:72.3cqi;width:44cqi;height:41.4cqi;overflow:hidden;box-shadow:inset 0 0 0 .3cqi var(--ink)}
.tabloid :is(.stage,.crowd){left:-6.77cqi;top:-16.12cqi;width:57.54cqi;height:80.57cqi}
/* the standfirst: real words (copy.json), the one thing the page says in plain type: what this is, for a
   reader who has never hidden a menu bar. Bold serif, ragged right, beside the photo on wide screens and
   under it on phones. Its box is --read-*, which also tells the sheet where to hold its creases back. */
.tabloid .body{position:absolute;left:var(--read-l);top:var(--read-t);width:var(--read-w);max-height:var(--read-h);overflow:hidden;color:var(--ink);font-family:var(--serif);font-weight:700}
.tabloid .body p{margin:0}

/* the puff: the yellow flash a red top prints by its picture, in the sun's yellow. It is the call to
   action's words. One flood of yellow, then the ink; the paper's creases run on through it. */
.tabloid .get .words{display:flex;align-items:center;justify-content:center;
  background:#e8b53c;color:var(--ink);box-shadow:inset 0 0 0 .55cqi var(--ink);
  font-family:Anton;text-transform:uppercase;white-space:nowrap;line-height:1;filter:url(#ink-flood)}
.tabloid .get:hover .words{background:#f3c64e}
.tabloid .get:active .words{background:#d7a42e}

/* generated newsprint (newsprint.mjs): the masthead's ears, bars for words, and the fibre along the torn corner */
.tabloid .newsprint{position:absolute;left:0;width:100%;height:13cqi;fill:none;pointer-events:none}
.tabloid .newsprint.head{top:0}
.tabloid .newsprint.foot{bottom:0}
.tabloid .newsprint .ears{stroke:var(--paper);stroke-width:6.5;opacity:.74}
.tabloid .newsprint .fibre{stroke:#fbf8ee;stroke-width:9;stroke-linejoin:round;opacity:.74}

/* ---------- wide screens: the whole front page in the first screen ----------
   Photo on the left; beside it the standfirst, then the puff as a box that fills the rest of the photo's
   height. Nothing stands under that row, so the sheet is shorter (--sheet-ar) and the poster can be wider. */
@media (min-width:700px){
  .wall:has(.tabloid){--sheet-ar:1.22}
  .tabloid{--read-l:49.7cqi;--read-t:72.1cqi;--read-w:46.8cqi;--read-h:15cqi}
  .tabloid .body{font-size:4.2cqi;line-height:1.1}
  .tabloid .get .words{left:49.7cqi;top:88cqi;width:46.8cqi;height:25.7cqi;flex-direction:column;padding-top:.5cqi}
  .tabloid .get .lead{font-size:7.2cqi;letter-spacing:.1em;margin-right:-.1em}
  .tabloid .get .name{font-size:14.4cqi;letter-spacing:.01em;margin-right:-.01em}
}
/* ---------- phones ----------
   The puff stands beside the photo as a box the height of the photo; the standfirst runs the full measure under them. */
@media (max-width:699px){
  .wall:has(.tabloid){--sheet-ar:1.4}
  .tabloid .sheet{--r:-.5deg}
  .tabloid .get .words{left:49.7cqi;top:72.3cqi;width:46.8cqi;height:41.4cqi;flex-direction:column;padding-top:.6cqi}
  .tabloid .get .lead{font-size:9.9cqi;letter-spacing:.1em;margin-right:-.1em}
  .tabloid .get .name{font-size:15.76cqi;letter-spacing:.01em;margin-right:-.01em}
  .tabloid{--read-l:3.5cqi;--read-t:117.4cqi;--read-w:93cqi;--read-h:14cqi}
  .tabloid .body{font-size:5.9cqi;line-height:1.1}
}
