/* "Everything": the index (all/index.html) and the bare single-item page (all/item.html).
   Built from the same parts as the rest of the site: contents rows (Magazine), cover tiles (Magazine),
   the staggered picture grid (Gatherings), the dark band (Home). One thing tilted 3° per composition. */

.sechead{display:flex;justify-content:space-between;align-items:baseline;gap:16px;flex-wrap:wrap;margin-bottom:clamp(20px,3vh,36px)}
.sechead .h2{margin:0}
.cap{display:flex;justify-content:space-between;gap:10px;margin-top:10px}
.go::after{content:" →"}
[dir=rtl] .go::after{content:" ←"}

/* 1. the site: contents rows */
.toc{list-style:none;margin:0;padding:0;border-top:1.5px solid currentColor}
.toc li{border-bottom:1.5px solid currentColor}
.toc a{display:grid;grid-template-columns:4.5em minmax(0,1.3fr) minmax(0,1.5fr) 7em;gap:16px;align-items:baseline;padding:16px 0;text-decoration:none;color:inherit}
.toc a:hover,.toc a:focus-visible{background:var(--type);color:#111;outline:0}
.toc .no{font-family:var(--disp);font-variation-settings:"wdth" 125;font-weight:900;font-size:clamp(28px,3.4vw,52px);line-height:.85}
.toc .nm{font-family:var(--disp);font-variation-settings:"wdth" 125;font-weight:900;text-transform:uppercase;letter-spacing:-.01em;font-size:clamp(18px,2.3vw,36px);line-height:1}
.toc .pt{opacity:.7;text-align:start;unicode-bidi:isolate}
.toc .st{text-align:end}
[dir=rtl] .toc .nm{letter-spacing:0;line-height:1.1}

/* 2. the product: one tile per Issue, in its own colours, then all four */
.covers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(14px,2vw,32px)}
.cov{display:block;background:var(--l);padding:clamp(10px,1.2vw,18px);color:var(--d);text-decoration:none;transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.cov img{width:100%;aspect-ratio:1/1;object-fit:cover;mix-blend-mode:multiply}
.cov:hover,.cov:focus-visible{transform:rotate(-2deg)}
.cov.tilt{box-shadow:0 14px 40px rgba(0,0,0,.18)}
.cov.tilt:hover,.cov.tilt:focus-visible{transform:rotate(0deg)}
.wide{display:block;margin-top:clamp(14px,2vw,32px);color:inherit;text-decoration:none}
.wide img{width:100%;aspect-ratio:16/7;object-fit:cover;object-position:50% 58%}
.wide:hover .cap,.gc:hover .cap,.film:hover .cap,.mk:hover .cap{color:var(--type)}

/* 3. pictures: dark band, staggered grid */
.band{background:var(--ink);color:var(--paper);--type:var(--volt)}
.gal{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,2.4vw,36px)}
.gc{display:block;color:inherit;text-decoration:none}
.gc img{width:100%;aspect-ratio:3/4;object-fit:cover}
.gc:nth-child(3n+2){margin-top:clamp(30px,8vh,110px)}
.gc.tilt img{box-shadow:0 14px 40px rgba(0,0,0,.4)}

/* 4. film and 5. drawings: two tiles side by side */
.pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(14px,2.4vw,36px)}
.film,.mk{display:block;color:inherit;text-decoration:none}
.vf{position:relative;aspect-ratio:4/3;background:#d9d8d4;overflow:hidden}
.vf video{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover}
.mk .pad{position:relative;aspect-ratio:4/3;display:grid;place-items:center;border:1.5px solid currentColor;overflow:hidden}
.mk .pad svg{position:absolute;top:8%;left:50%;width:auto;height:84%;max-height:none;transform:translateX(-50%);color:var(--type)}
.mk .pad img{width:26%;transform:rotate(3deg)}

/* one item on its own (all/item.html): nothing but the thing itself. No header, title, caption or footer. */
body.bare .hedot{display:none}
.solo{min-height:100vh;display:grid;place-items:center;padding:clamp(16px,3vw,48px)}
.solo>img,.solo>video{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100vh - 2*clamp(16px,3vw,48px));box-shadow:0 14px 40px rgba(0,0,0,.3)}
.solo>.svgmark{width:min(50vh,60vw);box-shadow:none}
.solo .rab{height:min(86vh,900px);color:var(--type)}
.solo .rab svg{display:block;width:auto;height:100%;max-height:none}
.solo.box{display:block;place-items:normal;padding-block:0 clamp(40px,8vh,100px)}
.solo.box .first{min-height:100vh;display:grid;place-items:center}
.faces{display:flex;justify-content:safe center;gap:clamp(10px,1.2vw,18px);align-items:flex-start;overflow-x:auto;padding-bottom:10px;direction:ltr;--fh:clamp(190px,42vh,400px)}
.faces figure{margin:0;flex:none}
.faces img{display:block;width:auto;max-width:none;height:var(--fh);box-shadow:0 10px 30px rgba(0,0,0,.12)}
.faces .flat img{height:calc(var(--fh)*.25)}
.solo.box>.photo{display:block;width:min(100%,640px);margin:clamp(40px,9vh,120px) auto 0;box-shadow:0 14px 40px rgba(0,0,0,.18)}

@media (max-width:1000px){.covers{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){
  .toc a{grid-template-columns:3.2em minmax(0,1fr);row-gap:4px}
  .toc .pt,.toc .st{grid-column:2;text-align:start}
  .gal{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gc:nth-child(3n+2){margin-top:0}
  .gc:nth-child(2n){margin-top:40px}
  .pair{grid-template-columns:1fr}
}
