/* Written by tm/frontend (claude-fable-5-2). GENERATED by build.mjs from src/css/: edit the source, not this file. */
/* ---------- the wall ----------
   One painted mural on a canvas of 1440 x 1500 wall px, anchored top centre and scaled to cover (--u is
   one wall px). Phones: the poster, then a band where the side sheets hang. Asset paths are written as
   seen from a built folder: the build copies src/assets/ into it as assets/, so every built folder is whole.
   --sheet-ar is the centre poster's height over its width; a poster may change it (the tabloid does, on phones). */
@font-face{font-family:Anton;src:url(assets/fonts/Anton-400.23aab0b269.woff2) format('woff2');font-display:swap}

:root{--ink:#191613;--red:#d1281b;--paper:#f5eedc;--glue:rgba(78,60,28,.22)}
*{box-sizing:border-box;margin:0;padding:0}
html{background:#6f6a62;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{min-height:100svh;overflow-x:hidden;color:var(--ink)}
.defs{position:absolute} /* the svg that holds the filters: it takes no room */

.wall{position:relative;overflow:hidden;isolation:isolate;background:#3f7d86;
  --sheet-ar:1.3;--pad-t:clamp(56px,7vw,104px);--pad-b:64px;--row1:calc(76vw + 26px);--band:calc(var(--row1) + 75vw + 36px);
  --band-top:calc(var(--pad-t) + min(100vw - 32px,640px) * var(--sheet-ar));
  --wall-h:calc(var(--band-top) + var(--band) + var(--pad-b));
  --u:max(100vw / 1440,var(--wall-h) / 1500);
  padding:var(--pad-t) 16px 0;min-height:var(--wall-h)}
.mural{position:absolute;top:0;left:calc(50% - 720 * var(--u));width:calc(1440 * var(--u));height:calc(1500 * var(--u));z-index:0;
  background:url(assets/img/mural-1440.3c8fc1e669.webp) 0 0/100% 100%;
  background-image:image-set(url(assets/img/mural-1440.f902fb3dfe.avif) type("image/avif") 1x,url(assets/img/mural-2880.f44351ab6a.avif) type("image/avif") 2x,url(assets/img/mural-1440.3c8fc1e669.webp) type("image/webp") 1x,url(assets/img/mural-2880.e1b4e33027.webp) type("image/webp") 2x)}
/* the daylight: the mural's own, so it stops where the bare wall under it starts */
.relief{position:absolute;left:0;right:0;top:0;height:var(--wall-h);z-index:3;pointer-events:none;mix-blend-mode:soft-light;
  background:radial-gradient(120% 80% at 18% 0%,rgba(255,248,226,.28),transparent 60%),radial-gradient(140% 120% at 50% 40%,transparent 55%,rgba(0,0,0,.28))}

/* ---------- wide screens: the whole poster fits the first screen ----------
   The poster sits in the middle of the first screen, --gap of wall above and below. The mural is the one
   repainted with its sun at y 450 (assets/img/mural-sun450-*, tools/art.sh); where the screen
   is short for its width the mural slides up by --ms so the sun stays behind the middle of the poster.
   A poster with small type to be read may ask to stay --pw-keep wide: on a short screen the gap then gives,
   down to 44px, before the poster gets any narrower than that. */
@media (min-width:700px){
  .wall{--gap:max(44px,10svh);--pw-keep:0px;
    --pw:min(100vw - 32px,720px,max((100svh - 2 * var(--gap)) / var(--sheet-ar),min(var(--pw-keep),(100svh - 88px) / var(--sheet-ar))));
    --pad-t:calc((100svh - var(--pw) * var(--sheet-ar)) / 2);
    --mh:max(100svh,1500px,104.1667vw);--u:calc(var(--mh) / 1500);--ms:min(0px,50svh - 450 * var(--u));--wall-h:max(100svh,var(--mh) + var(--ms) - 72 * var(--u))} /* the page stops 72 wall px short of the mural's foot, above its strip of bare block (design-v13.md) */
  .mural{top:var(--ms);background-image:url(assets/img/mural-sun450-1440.3795668066.webp);
    background-image:image-set(url(assets/img/mural-sun450-1440.8dcf922ca9.avif) type("image/avif") 1x,url(assets/img/mural-sun450-2880.0e55f521a4.avif) type("image/avif") 2x,url(assets/img/mural-sun450-1440.3795668066.webp) type("image/webp") 1x,url(assets/img/mural-sun450-2880.ec277bfa18.webp) type("image/webp") 2x)}
}

/* ---------- the side sheets ----------
   Each sheet is placed in wall px (--x --y --w --h). --L is its left edge measured from the wall's
   centre line and --T its top, so the same sheet can be re-hung in screen px on phones. Torn by
   clip-path (inner: --clip, cut by the build, parts/torn.mjs, and written after these rules), then roughened and aged (outer).
   A poster takes a sheet off the wall by naming it on its article: data-hide="cyan". */
.sheets{position:absolute;inset:0;z-index:1}
.po,.stain{position:absolute;--L:calc((var(--x) - 720) * var(--u));--T:calc(var(--y) * var(--u));--Wd:calc(var(--w) * var(--u));--Ht:calc(var(--h) * var(--u));
  left:calc(50% + var(--L));top:var(--T);width:var(--Wd);height:var(--Ht);transform:rotate(var(--r,0deg))}
.po{filter:url(#tear) var(--age,)}
.d3{--age:saturate(.82)}
.d4{--age:saturate(.94)}
.po>.in{position:absolute;inset:0;container-type:size;overflow:hidden;clip-path:var(--clip,none);background:var(--bg);color:var(--fg,var(--ink))}
.po>.in::before{content:"";position:absolute;inset:0;background:url(assets/img/grime.0f19c3772f.webp) 0 0/600px 600px;mix-blend-mode:multiply;opacity:.5;pointer-events:none}
.po h2,.po h2>span{display:block;font:inherit;font-weight:400}
/* paste: a damp halo round each sheet */
.stain::before{content:"";position:absolute;inset:-1.8% -1.4%;background:var(--glue);filter:blur(3px)}
/* pasted for real: the wall's own relief (assets/img/wall-relief.945d03e6d7.webp, in register with the mural) runs on through
   the paper, and the brush left a few wrinkles, lit from the top left */
.thru,.wrinkle{position:absolute;pointer-events:none;mix-blend-mode:hard-light}
.thru{left:calc(-720 * var(--u) - var(--L));top:calc(var(--ms,0px) - var(--T));width:calc(1440 * var(--u));height:calc(1500 * var(--u));
  transform-origin:calc(720 * var(--u) + var(--L) + var(--Wd) / 2) calc(var(--T) + var(--Ht) / 2);transform:rotate(calc(var(--r,0deg) * -1));
  background:url(assets/img/wall-relief.945d03e6d7.webp) 0 0/100% 100%;opacity:var(--thru,.8)}
.wrinkle{inset:0;background:#808080;filter:url(#wrinkle);opacity:var(--wr,.5)}
.wall:has(.flyer[data-hide~="cyan"]) .cyan,.wall:has(.flyer[data-hide~="bw"]) .bw,.wall:has(.flyer[data-hide~="lost"]) .lost{display:none}

.cyan{--bg:#5fa9bd;--fg:#f3efe4;--thru:.66;--x:1028;--y:8;--w:252;--h:470;--r:.6deg}
.cyan .in{padding:8% 5% 4% 7%;font-family:Anton;text-transform:uppercase}
.cyan h2>span{font-size:22cqw;line-height:.9;filter:url(#ink-wall)}
.cyan h2>.sm{position:relative;z-index:1;color:#14272e;font-size:12.6cqw;line-height:.96;letter-spacing:.015em;margin-bottom:3.4cqw;opacity:.9;filter:url(#press)}
.cyan img{display:block;width:64%;height:auto;margin:1cqw 0 0 38%;mix-blend-mode:multiply;opacity:.85}

.bw{--bg:#ece7dc;--x:20;--y:985;--w:230;--h:400;--r:-1.2deg;--thru:.6}
.bw .in{padding:5% 6% 0;font-family:Anton;text-transform:uppercase;text-align:center}
.bw img{display:block;width:100%;height:68cqh;object-fit:contain;mix-blend-mode:multiply}
.bw h2{font-size:15.6cqw;line-height:.94;margin-top:2.5cqw;filter:url(#ink)}

/* the lost notice: a photocopy on white bond, the missing bar an empty frame */
.lost{--bg:#edece7;--fg:#2a2623;--x:776;--y:1086;--w:204;--h:262;--r:1.6deg;--thru:.6}
.lost .in{padding:8% 8% 0;font-family:Anton;text-transform:uppercase;text-align:center}
.lost h2>.big{font-size:41cqw;line-height:.84;letter-spacing:.03em}
.lost h2>.what{font-size:17.4cqw;line-height:.9;white-space:nowrap}
.lost .frame{display:block;height:15cqw;margin:6cqw 0 5cqw;border:1.2cqw solid currentColor;border-radius:1.6cqw;
  background:radial-gradient(circle,rgba(42,38,35,.5) 0 28%,transparent 32%) 0 0/2.4cqw 2.4cqw}
.lost p{font-family:'Courier New',Courier,monospace;font-weight:700;text-transform:none;font-size:8cqw;line-height:1.16;margin-top:5cqw}

@media (min-width:700px){
  .bw,.lost{--T:calc(var(--y) * var(--u) + var(--ms))} /* the two low sheets ride with the mural; the high one keeps its place on the screen */
  .cyan{--x:1068;--y:42;--w:216;--h:403} /* clear of the sun's ring */
  .bw{--x:1080;--y:178;--w:200;--h:348} /* in the first screen, between the sun's ring and the tall figure: the sheet GitHub's banner repeats (design-v13.md) */
}
/* phones: the sheets re-hung in the band under the poster. Row one is the cyan sheet alone; when a poster
   hides it the row closes up (--row1) */
@media (max-width:699px){
  .wall:has(.flyer[data-hide~="cyan"]){--row1:0px}
  .po,.stain{--L:var(--mx);--T:calc(var(--band-top) + var(--my));--Wd:var(--mw);--Ht:var(--mh)}
  .cyan{--mx:3vw;--my:34px;--mw:43vw;--mh:76vw}
  .bw{--mx:-45vw;--my:calc(var(--row1) + 26px);--mw:42vw;--mh:73vw}
  .bw,.lost{--wr:.3}
  .lost{--mx:4vw;--my:calc(var(--row1) + 40px);--mw:41vw;--mh:54vw}
}

/* ---------- the centre poster: the sheet every variant is printed on ----------
   A variant (src/variants/<name>/) places things on this sheet and adds what is its own. It gives, on its
   article, as cqi lengths: --icon-l --icon-t --icon-w (where the icon sits). Sheet units: 1000 wide and
   1000 x --sheet-ar tall (1300 unless the poster says otherwise), 1 unit = 0.1cqi. */
.post{position:relative;z-index:2;width:min(100%,640px);margin:0 auto;container-type:inline-size}
.flyer{position:relative;z-index:2;transform:rotate(-.7deg);--corner:clamp(50px,15.5cqi,108px)}
.halo{position:absolute;inset:-34px -40px -22px -32px;z-index:1;mix-blend-mode:multiply;pointer-events:none;
  background:
    repeating-linear-gradient(96deg,transparent 0 6px,rgba(70,50,20,.10) 6px 9px,transparent 9px 17px,rgba(70,50,20,.06) 17px 19px,transparent 19px 31px),
    rgba(118,96,62,.30);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent),linear-gradient(180deg,transparent,#000 4%,#000 96%,transparent);
  -webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent),linear-gradient(180deg,transparent,#000 4%,#000 96%,transparent);mask-composite:intersect}
.sheet{position:relative;container-type:inline-size;background:var(--paper);aspect-ratio:1/var(--sheet-ar);overflow:hidden;
  filter:url(#warp-flyer) drop-shadow(0 1px 1px rgba(0,0,0,.25));
  clip-path:polygon(0 0,calc(100% - var(--corner)) 0,100% var(--corner),100% 100%,0 100%)}
.sheet::before{content:"";position:absolute;inset:0;pointer-events:none;mix-blend-mode:multiply;
  background:
    radial-gradient(40% 18% at 12% 96%,rgba(120,90,40,.20),transparent 70%),
    radial-gradient(30% 12% at 86% 3%,rgba(120,90,40,.16),transparent 70%),
    radial-gradient(22% 30% at 98% 60%,rgba(120,90,40,.14),transparent 70%),
    url(assets/img/grime.0f19c3772f.webp) 0 0/600px 600px;opacity:.3}
/* the paper's creases, as light: everywhere but on the icon, which is a fresh pass of red laid on last, and
   held back where a poster sets small type to be read (--read-l --read-t --read-w --read-h, cqi; none by default) */
.sheet::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;mix-blend-mode:hard-light;opacity:.5;
  background:url(assets/img/crease-flyer.6ffac7622c.webp) 0 0/100% 100%;
  --calm:linear-gradient(rgba(0,0,0,.72),rgba(0,0,0,.72)) var(--icon-l) var(--icon-t)/var(--icon-w) var(--icon-w) no-repeat,
    linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)) var(--read-l,0) var(--read-t,0)/var(--read-w,0) var(--read-h,0) no-repeat,linear-gradient(#000,#000);
  -webkit-mask:var(--calm);-webkit-mask-composite:xor;mask:var(--calm);mask-composite:exclude}
/* the concert plate and its crowd, in their own 1000 x 1400 frame, slid up 2 units */
.stage,.crowd{position:absolute;left:0;top:-2cqi;width:100%;height:140cqi}
.stage{background:url(assets/img/plate.80b622ae8a.webp) 0 0/100% 100%;mix-blend-mode:multiply;filter:url(#ink-flood)}
.crowd{clip-path:inset(0 0 28.6% 0)}
.crowd .rows{fill:var(--ink);filter:url(#ink-flood)}
.crowd .screens{fill:var(--paper)}
.crowd .tiny{fill:var(--red)}
.spot h1{font:inherit}

/* the call to action: one link to the repo (parts/get.html) holding two printed things, the icon and its
   words. The link has no box of its own: both are placed on the sheet, the icon here (--icon-*), the words
   by the poster. Nothing moves; the hover and the press are a change of ink. */
.get{color:inherit;text-decoration:none;outline:0;-webkit-tap-highlight-color:transparent}
.get .words{position:absolute}
.get:focus-visible .words{outline:3px solid var(--red);outline-offset:3px}
/* the icon: the app icon (red tile, the bar, the arrow) in a solid pass of red: no worn ink. White prints as
   bare paper under the multiply blend, so the focus ring is a knocked out line inside the tile. */
.star{position:absolute;z-index:2;display:block;left:var(--icon-l);top:var(--icon-t);width:var(--icon-w);height:var(--icon-w);
  background:var(--red);border-radius:calc(var(--icon-w) * .2245);mix-blend-mode:multiply;filter:url(#press)}
.get:hover .star{background:#dc3122}
.get:active .star{background:#b92217}
.get:focus-visible .star{outline:calc(var(--icon-w) * .02) solid #fff;outline-offset:calc(var(--icon-w) * -.06)}
.star .slot{position:absolute;left:22.82%;top:27.91%;width:54.37%;height:13.59%;border-radius:99cqi;background:#fff}
.star .arrow{position:absolute;left:26.7%;top:47.33%;width:46.6%;height:27.18%;
  overflow:visible;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* the peeled corner: the sheet is cut on the fold, the curl turns its pale back over the print */
.curl{position:absolute;z-index:3;top:0;right:0;width:var(--corner);height:var(--corner);overflow:visible;pointer-events:none}

@media (min-width:700px){
  .post{width:var(--pw)}
  .halo{right:-16px}
}
@media (max-width:699px){
  .flyer{transform:rotate(-.5deg)}
}
.cyan>.in{--clip:polygon(0.00% 0.00%,100.00% 0.00%,100.00% 100.00%,97.80% 98.57%,95.60% 98.56%,93.40% 98.61%,91.20% 99.78%,89.00% 100.34%,86.80% 101.34%,84.60% 101.91%,82.40% 99.73%,80.20% 100.42%,78.00% 101.22%,75.80% 100.25%,73.60% 100.66%,71.40% 101.82%,69.20% 100.41%,67.00% 98.88%,64.80% 99.23%,62.60% 98.53%,60.40% 98.70%,58.20% 97.94%,56.00% 100.00%,53.45% 100.10%,51.74% 98.52%,50.07% 96.86%,48.60% 94.80%,46.99% 93.02%,45.03% 91.95%,42.70% 91.60%,41.05% 89.90%,39.25% 88.51%,36.00% 90.00%,34.06% 89.02%,32.42% 87.31%,29.63% 88.40%,27.81% 87.11%,25.69% 86.59%,24.10% 84.75%,22.12% 83.88%,20.38% 82.42%,18.80% 80.59%,16.51% 80.45%,14.68% 79.21%,12.00% 80.00%,10.16% 79.04%,8.76% 77.44%,7.38% 75.78%,5.52% 74.86%,3.30% 74.47%,1.18% 73.95%,0.00% 72.00%)}
.bw>.in{--clip:polygon(14.00% 0.00%,100.00% 0.00%,100.00% 100.00%,0.00% 100.00%,-1.57% 97.77%,-2.39% 95.54%,0.11% 93.31%,1.13% 91.09%,1.04% 88.86%,-0.98% 86.63%,-0.16% 84.40%,0.22% 82.17%,0.81% 79.94%,2.03% 77.71%,0.41% 75.49%,1.78% 73.26%,1.46% 71.03%,1.78% 68.80%,1.38% 66.57%,1.81% 64.34%,-0.16% 62.11%,1.49% 59.89%,0.84% 57.66%,0.68% 55.43%,-0.71% 53.20%,-0.72% 50.97%,-1.32% 48.74%,0.28% 46.51%,1.31% 44.29%,1.47% 42.06%,1.32% 39.83%,2.29% 37.60%,1.61% 35.37%,1.64% 33.14%,2.36% 30.91%,1.26% 28.69%,-0.17% 26.46%,0.18% 24.23%,0.00% 22.00%,1.96% 20.67%,3.73% 19.22%,3.43% 16.46%,4.78% 14.74%,5.83% 12.83%,7.07% 11.04%,7.34% 8.64%,8.21% 6.62%,9.72% 5.00%,11.17% 3.35%,11.67% 1.10%)}
.lost>.in{--clip:polygon(0.00% 0.00%,100.00% 0.00%,100.00% 100.00%,97.82% 101.59%,95.65% 101.92%,93.47% 102.58%,91.29% 102.68%,89.12% 100.27%,86.94% 98.60%,84.76% 100.64%,82.59% 101.39%,80.41% 101.07%,78.24% 100.59%,76.06% 99.58%,73.88% 100.19%,71.71% 100.55%,69.53% 99.37%,67.35% 98.98%,65.18% 98.48%,63.00% 99.07%,60.82% 98.53%,58.65% 99.47%,56.47% 99.51%,54.29% 100.39%,52.12% 100.13%,49.94% 99.19%,47.76% 100.90%,45.59% 101.29%,43.41% 99.66%,41.24% 98.77%,39.06% 98.44%,36.88% 99.37%,34.71% 100.11%,32.53% 98.72%,30.35% 100.09%,28.18% 100.49%,26.00% 100.00%,23.97% 99.22%,22.40% 97.37%,20.10% 97.23%,18.65% 95.09%,16.42% 94.78%,14.15% 94.57%,11.88% 94.36%,9.98% 93.28%,7.73% 93.02%,6.33% 90.75%,4.27% 90.05%,2.76% 88.06%,0.00% 89.00%)}
