/* Maxtapes: a tape unspooling down a yellow poster.
 *
 * The palette is the app icon's, sampled from the shipping PNG. The type is
 * Press Start 2P (the app's pixel type) for anything that shouts and Print Char
 * 21, the Apple II's own text face, for anything that has to be read. (Paul,
 * 2026-09-21, of the pixel face it replaced: "HARD to read". Its 5 looked like
 * an S, so "45 minutes" read as "4S minutes".) Everything hard-edged: no blur,
 * no gradients, shadows one square down and across, the way the icon casts them.
 */

@font-face{font-family:'Press Start 2P';font-weight:400;font-style:normal;font-display:block;src:url(../fonts/PressStart2P.woff2) format('woff2')}
/* Print Char 21 by Kreative Korporation, served exactly as they publish it: their
   licence (fonts/LICENSE-printchar21.txt) allows embedding and forbids modifying,
   so no subsetting and no conversion, hence the 490 KB TrueType file. Its pixels
   are an eighth of an em: 16px is 2px a pixel, which lands on whole device pixels
   at any density, and 20px is 2.5px, which does on a 2x screen. */
@font-face{font-family:'Print Char 21';font-weight:400;font-style:normal;font-display:swap;src:url(../fonts/PrintChar21.ttf) format('truetype')}

:root{
  color-scheme:light;
  --yellow:#FFD438; --pink:#FF298F; --cyan:#14E0E5; --purple:#6E2BDE; --teal:#00D6A8;
  --orange:#FF8F61; --navy:#120830; --cream:#FFF5DE; --ink:#0F0A19; --pastel:#FF9EC7;
  --display:'Press Start 2P',ui-monospace,Menlo,monospace;
  --body:'Print Char 21',ui-monospace,Menlo,monospace;

  /* The size of one square. The script sets --px and --sq to whole pixels for
     the window it is in; these are what a page with no script gets. */
  --px:12px; --sq:4px;
  --b:4px;      /* an outline */
  --n:12px;     /* the corner a card gives up, one square */
  --sh:12px;    /* how far a card's shadow falls */
  --gut:clamp(16px,5vw,48px);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;overflow-x:hidden;overflow-x:clip}
body{margin:0;position:relative;background:var(--yellow);color:var(--ink);
  font-family:var(--body);font-size:16px;line-height:1.5;font-synthesis:none;font-kerning:none;
  overflow-x:hidden;overflow-x:clip;min-height:100svh}
/* Bigger where there is room and the pixels stay whole: 2.5 CSS px a pixel is 5 on a 2x screen. */
@media (min-width:900px) and (min-resolution:1.5dppx){body{font-size:20px}}
img,canvas,svg{display:block;max-width:100%}
a{color:inherit}
:focus-visible{outline:4px solid var(--ink);outline-offset:4px;box-shadow:0 0 0 8px var(--yellow)}

.skip{position:absolute;left:8px;top:-80px;z-index:20;background:var(--ink);color:var(--cream);
  font:16px var(--display);padding:12px 16px;text-decoration:none}
.skip:focus{top:8px}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation:none!important;transition:none!important}
}

/* ------------------------------------------------------------------ the tape */
/* One canvas behind everything, the height of the whole page. It is scaled up
   from a few dozen squares across, and nearest-neighbour is the point. */
.tape-layer{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}
.tape-layer canvas{position:absolute;left:0;top:0;image-rendering:pixelated;image-rendering:crisp-edges;image-rendering:pixelated}

/* ------------------------------------------------- a counter, like a deck's */
.hud{position:fixed;right:max(12px,env(safe-area-inset-right));top:var(--hud-top,max(12px,env(safe-area-inset-top)));z-index:10;
  display:flex;align-items:center;gap:10px;pointer-events:none;
  background:var(--ink);color:var(--cyan);font:16px/1 var(--display);padding:10px 12px;
  box-shadow:6px 6px 0 var(--purple)}
.hud i{font-style:normal;color:var(--pink)}
.hud.b i{color:var(--cyan)}
/* Turning the tape over: the counter squashes flat and comes back, in steps. */
.hud.flip{animation:hudflip .32s steps(4)}
@keyframes hudflip{35%,65%{transform:scaleY(.12)}}
.hud b{font-weight:400;min-width:5ch;text-align:right;color:var(--cream)}

/* ---------------------------------------------------------------- the poster */
/* Shapes on the field, all hard-edged: the icon's teal corner, its orange
   disc and its rows of dots, and the rest of the Memphis kit. Sized in
   squares, so they grow and shrink with the tape. */
.m{position:absolute;z-index:0;pointer-events:none;
  width:calc(var(--px) * var(--w,8));height:calc(var(--px) * var(--h,var(--w,8)));
  background:var(--c,var(--pink))}
.m.tri{clip-path:polygon(0 0,100% 100%,0 100%)}
.m.tri-r{clip-path:polygon(100% 0,100% 100%,0 100%)}
.m.tri-up{clip-path:polygon(50% 0,100% 100%,0 100%)}
.m.disc{border-radius:50%}
.m.ring{border-radius:50%;background:none;border:calc(var(--px) * 1.2) solid var(--c,var(--pink))}
.m.dots{background:radial-gradient(circle,var(--c,var(--ink)) 36%,transparent 39%) 0 0/calc(var(--px) * 3) calc(var(--px) * 3)}
.m.plus{clip-path:polygon(35% 0,65% 0,65% 35%,100% 35%,100% 65%,65% 65%,65% 100%,35% 100%,35% 65%,0 65%,0 35%,35% 35%)}
.m.check{background:conic-gradient(var(--c,var(--ink)) 25%,transparent 0 50%,var(--c,var(--ink)) 0 75%,transparent 0) 0 0/calc(var(--px) * 2) calc(var(--px) * 2)}
.m.stripes{background:repeating-linear-gradient(135deg,var(--c,var(--ink)) 0 calc(var(--px) * .7),transparent 0 calc(var(--px) * 1.6))}
.m.squig{background:var(--c,var(--ink));height:calc(var(--px) * 2);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16' shape-rendering='crispEdges'%3E%3Cpath d='M0 10h4V6h4V2h4v4h4v4h4v4h4v-4h4V6h4' fill='none' stroke='%23000' stroke-width='4'/%3E%3C/svg%3E") 0 50%/calc(var(--px) * 2) calc(var(--px) * 2) repeat-x;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16' shape-rendering='crispEdges'%3E%3Cpath d='M0 10h4V6h4V2h4v4h4v4h4v4h4v-4h4V6h4' fill='none' stroke='%23000' stroke-width='4'/%3E%3C/svg%3E") 0 50%/calc(var(--px) * 2) calc(var(--px) * 2) repeat-x}

/* ------------------------------------------------ the shapes drift, and are quiet */
/* Pixel confetti (drawn by shapes.js) and the big smooth shapes above. They move
   only as you scroll (the script sets `translate` for the parallax) and never on
   their own. Paul, 2026-09-21: "keep them ALL in that muted not 100% opaque view
   and don't do the 'animation' bouncing" - he had caught one confetti heart at
   the bottom of a twinkle, and that was the look he wanted all of them to have.
   The whole sprite, shadow included, is one see-through group. Then the big smooth
   shapes too: "more large non 8bit geometric shapes... but they all should be that
   muted opacity". */
.confetti{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.cf{position:absolute;display:block;opacity:var(--cf-opacity,.25);will-change:translate}
.m{opacity:var(--cf-opacity,.25);will-change:translate}

/* ---------------------------------------------------------------------- hero */
.hero{position:relative;text-align:center;overflow-x:clip;
  padding:clamp(24px,5vh,48px) var(--gut) 0;min-height:max(66svh,calc(var(--px) * 42))}   /* Paul, 09-21: the scroll from the start to Track 01 "feels too long... 25% shorter"; the gaps between the cards were right. It was max(94svh, 60 squares). */

/* The icon's own composition, enlarged: a teal corner bottom left, an orange
   disc bottom right, a block of dots top left. Positions live here, not inline,
   so a phone can move them off the title. */
.hd-dots{left:5%;top:6%;--w:12;--h:6}
.hd-tri{left:0;bottom:0;--w:22;--c:var(--teal)}
.hd-disc{right:-6%;bottom:-8%;--w:20;--c:var(--orange)}
.hd-squig{right:8%;top:9%;--w:12;--c:var(--pink)}
.hd-plus{left:16%;top:46%;--w:3;--c:var(--purple)}
.hd-ring{right:14%;top:48%;--w:6;--c:var(--cyan)}
.wordmark{margin:0;font:400 min(64px,calc(var(--px) * 4),10.4vw)/1 var(--display);color:var(--ink);
  letter-spacing:0;text-shadow:.125em .125em 0 var(--purple);position:relative;z-index:2}
.tagline{display:inline-block;margin:clamp(18px,3vh,28px) 0 0;position:relative;z-index:2;
  background:var(--pink);color:var(--ink);font:16px/1.2 var(--display);padding:12px 14px 10px;
  box-shadow:6px 6px 0 var(--ink)}
.cassette-slot{width:calc(var(--px) * 28);height:calc(var(--px) * 18);margin:clamp(20px,3.6vh,36px) auto 0;
  position:relative;z-index:2}
.cassette-slot img{width:100%;height:auto;image-rendering:pixelated}
/* The realistic cassette: as wide as the icon's cassette was and then some (it has
   more to look at), never wider than the screen, in a real cassette's proportions. */
.cassette-slot.real{width:min(calc(var(--px) * 38),calc(100vw - 2 * var(--gut)));height:auto;aspect-ratio:100/63.5}
/* With scripting on, the slot is the realistic cassette's size from the first paint (js/tape.js
   adds .real a moment later and, if that cassette cannot be drawn, .plain to go back to the
   icon's). Waiting for the script to resize it moved everything below the hero. */
.js .cassette-slot{width:min(calc(var(--px) * 38),calc(100vw - 2 * var(--gut)));height:auto;aspect-ratio:100/63.5}
.js .cassette-slot.plain{width:calc(var(--px) * 28);height:calc(var(--px) * 18);aspect-ratio:auto}
/* The square size the script picks for the window (js/tape.js pickArt: the page's width times
   .86, at most 448, over 28 squares, whole pixels between 8 and 16). The same choices here, so
   the page is already that size when the script arrives and nothing below the hero moves. */
html.js.home{--px:8px;--sq:3px}
@media (min-width:294px){html.js.home{--px:9px}}
@media (min-width:326px){html.js.home{--px:10px;--sq:4px}}
@media (min-width:359px){html.js.home{--px:11px}}
@media (min-width:391px){html.js.home{--px:12px}}
@media (min-width:424px){html.js.home{--px:13px;--sq:5px}}
@media (min-width:456px){html.js.home{--px:14px}}
@media (min-width:489px){html.js.home{--px:15px;--sq:6px}}
@media (min-width:521px){html.js.home{--px:16px}}
.hint{position:fixed;left:0;right:0;bottom:max(14px,env(safe-area-inset-bottom));z-index:9;text-align:center;
  font:16px/1 var(--display);pointer-events:none;transition:opacity .2s steps(3)}
.hint span{display:inline-block;background:var(--ink);color:var(--cream);padding:10px 12px;
  box-shadow:6px 6px 0 var(--purple);animation:bob 1s steps(2) infinite}
.hint.gone{opacity:0}
@keyframes bob{50%{transform:translateY(6px)}}

/* ------------------------------------------------------------------- stops */
main{position:relative}
.stop{position:relative;min-height:112svh;display:flex;align-items:center;overflow-x:clip;padding:clamp(48px,10vh,96px) var(--gut)}
.stop .wrap{width:100%;max-width:74rem;margin:0 auto;position:relative}
.slot{width:min(100%,37rem);position:relative;z-index:2}
.stop:nth-child(even) .slot{margin-left:auto}

/* A card is a big cassette label: cream paper, a window with the pink block
   on one side and the cyan on the other, a yellow stripe under it. Its
   corners are the cassette's: one square missing. Two clipped layers make the
   outline and the shadow follows the notched shape. */
.card{--notch:polygon(var(--n) 0,calc(100% - var(--n)) 0,calc(100% - var(--n)) var(--n),100% var(--n),100% calc(100% - var(--n)),calc(100% - var(--n)) calc(100% - var(--n)),calc(100% - var(--n)) 100%,var(--n) 100%,var(--n) calc(100% - var(--n)),0 calc(100% - var(--n)),0 var(--n),var(--n) var(--n));
  --inner:calc(var(--n) - var(--b));
  --notch-in:polygon(var(--inner) 0,calc(100% - var(--inner)) 0,calc(100% - var(--inner)) var(--inner),100% var(--inner),100% calc(100% - var(--inner)),calc(100% - var(--inner)) calc(100% - var(--inner)),calc(100% - var(--inner)) 100%,var(--inner) 100%,var(--inner) calc(100% - var(--inner)),0 calc(100% - var(--inner)),0 var(--inner),var(--inner) var(--inner));
  position:relative;z-index:2;filter:drop-shadow(var(--sh) var(--sh) 0 var(--purple))}
.card::before{content:"";position:absolute;inset:0;background:var(--ink);clip-path:var(--notch)}
.card::after{content:"";position:absolute;inset:var(--b);background:var(--cream);clip-path:var(--notch-in)}
.card > .in{position:relative;z-index:1;padding:calc(var(--b) + clamp(18px,3vw,28px)) calc(var(--b) + clamp(16px,3vw,28px)) calc(var(--b) + clamp(14px,2.4vw,22px))}

.tag{display:inline-block;background:var(--ink);color:var(--cream);font:16px/1 var(--display);padding:9px 10px 7px;letter-spacing:.02em}
.tag.pink{background:var(--pink);color:var(--ink)}
.card h1,.card h2{margin:clamp(14px,2.4vw,20px) 0 0;font:400 clamp(16px,2.4vw,24px)/1.5 var(--display);color:var(--ink);
  text-wrap:balance;letter-spacing:0}
.card h2 mark{background:none;color:inherit;box-shadow:inset 0 -.32em 0 var(--cyan)}
.nb{white-space:nowrap}
.card p{margin:.85em 0 0;max-width:34rem;font-size:1em;line-height:1.5;text-wrap:pretty}

/* The window: what the tape is looking at. */
.window{display:grid;grid-template-columns:calc(var(--px) * 2.5) 1fr calc(var(--px) * 2.5);
  margin-top:clamp(16px,2.6vw,24px);border:var(--b) solid var(--ink);background:var(--win,var(--navy))}
.window .blk{display:block}
.window .blk.pink{background:var(--pink)}
.window .blk.cyan{background:var(--cyan)}
.scene{display:flex;align-items:center;justify-content:center;padding:calc(var(--sq) * 3) calc(var(--sq) * 2);min-height:calc(var(--sq) * 30)}
.art{image-rendering:pixelated;image-rendering:crisp-edges;image-rendering:pixelated;
  width:calc(var(--sq) * var(--cw));height:calc(var(--sq) * var(--ch));max-width:100%;height:auto;aspect-ratio:var(--cw)/var(--ch)}
.stripe{height:calc(var(--px) * .9);background:var(--yellow);border:var(--b) solid var(--ink);border-top:0}

/* ------------------------------------------------------------------ finale */
.finale{position:relative;overflow-x:clip;padding:0 var(--gut) clamp(28px,6vh,56px)}
/* Room under the last card for the sunset, which sits on the page's horizon. */
.js .finale{padding-bottom:calc(var(--px) * 20)}
.finale .wrap{max-width:46rem;margin:0 auto;position:relative}
/* Where the last of the tape ends: a box ABOVE the last card, at every width, so the little
   cassette always parks over the card it leads to. (On a wide screen it used to sit off to the
   side, in the margin, and looked like it had wandered off: Paul, 09-21, "in ALL viewports and
   browser widths the cassette ends up being the final card".) The script measures this box; it
   is tall enough for the cassette, hung below the tape's end, and the curl under it. */
.tape-end{height:calc(var(--px) * 18);position:relative}
.card.end{text-align:center}
.card.end .in{display:flex;flex-direction:column;align-items:center;gap:clamp(12px,2vw,18px)}
.card.end h2{margin:0;font-size:clamp(20px,3.4vw,32px)}
.card.end p{margin:0;max-width:30rem}
.icon{width:calc(var(--px) * 8);height:calc(var(--px) * 8);border-radius:22%;border:var(--b) solid var(--ink);
  box-shadow:calc(var(--px) * .5) calc(var(--px) * .5) 0 var(--purple)}
.appstore{display:inline-block;line-height:0;margin-top:4px}
.appstore img{height:clamp(60px,8vw,84px);width:auto;aspect-ratio:119.66/40}
/* The hero's badge sits beside the tagline (a row on a wide screen, a stack on a phone),
   as tall as the tagline so the two read as a pair. */
.cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:16px 28px;
  margin:clamp(18px,3vh,28px) 0 0;position:relative;z-index:2}
.cta .tagline{margin:0}
.hero-appstore{margin:0}
.appstore.hero-appstore img{height:52px}
@media (min-width:900px){.appstore.hero-appstore img{height:56px}}
.appstore:focus-visible{box-shadow:0 0 0 4px var(--cream),0 0 0 8px var(--ink)}
.fine{opacity:.85}
.card ul.plats{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px 18px;font-size:12px;line-height:1.3}
.card ul.plats li{display:inline-flex;align-items:center;gap:8px;margin:0;padding:0}
.card ul.plats li span{display:inline;margin:0}
.plats svg{flex:none;display:block}
.btn{display:inline-flex;align-items:center;gap:12px;background:var(--ink);color:var(--cream);border:0;cursor:pointer;
  font:16px/1 var(--display);padding:14px 16px 12px;box-shadow:6px 6px 0 var(--purple);transition:transform .15s steps(2)}
.btn:hover{transform:translate(-2px,-2px)}
.btn:active{transform:translate(4px,4px);box-shadow:2px 2px 0 var(--purple)}
.btn .art{width:calc(var(--sq) * 4);height:auto;aspect-ratio:11/9}

footer{position:relative;padding:0 var(--gut) clamp(28px,5vw,44px);text-align:center;
  font:clamp(12px,3.2vw,16px)/1.8 var(--display)}
footer small{font:inherit}
/* The links under the copyright: the same on every page (tools/check-site.mjs checks it). */
footer .links{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 24px;margin-top:10px}
footer .links a{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px}
footer .links a:hover{background:var(--ink);color:var(--cream);text-decoration:none}

/* --------------------------------------------------------------- the 404 page */
/* ---------------------------------------- the pages that are not the tape */
/* About, and Help, Privacy and Terms to come: a poster with one card on it, the
   footer's links under it. The 404 is one too. */
.page{min-height:100svh;display:flex;flex-direction:column;overflow-x:clip}
.page main{flex:1;width:min(100%,46rem);margin:0 auto;position:relative;z-index:2;
  padding:clamp(28px,7vh,72px) var(--gut) clamp(28px,6vh,56px)}
.lost main{flex:none;width:min(100%,32rem);margin:auto}
.brand{display:inline-block;margin:0 0 clamp(18px,3vh,28px);font:16px/1 var(--display);color:var(--ink);
  text-decoration:none;text-shadow:2px 2px 0 var(--purple)}
.brand:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px}
/* The DJ page's MAXTAPES as the apps' label-maker strip (DeckWordmark.swift, Paul 10-21):
   square-cut glossy plastic, a raised rim along both long edges, lying flat, tilted the
   apps' standard 1.6 degrees rising to the right. Its colours come with the page. */
.brand.label{position:relative;padding:6px 10px 6px;color:var(--ink);text-shadow:2px 2px 0 var(--shade,var(--purple));
  background:linear-gradient(rgba(255,255,255,.34),rgba(255,255,255,0) 50%),var(--plate,var(--cyan));
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.3),.5px 2px 3px rgba(0,0,0,.45);transform:rotate(-1.6deg)}
.brand.label::before,.brand.label::after{content:"";position:absolute;left:1px;right:1px;height:2px;
  background:linear-gradient(rgba(255,255,255,.42) 50%,rgba(0,0,0,.22) 50%)}
.brand.label::before{top:2px}
.brand.label::after{bottom:2px}
.brand.label:hover{text-decoration:none;filter:brightness(1.06)}
/* The credits are small print: one line for the licence that asks for credit, the rest folded away. */
.card h2.small{font-size:clamp(11px,1.9vw,15px);margin-top:clamp(24px,3.6vw,34px)}
.credit{opacity:.8}
details.more{margin:.6em 0 1.4em;opacity:.8}
details.more summary{cursor:pointer}
.credits{margin:.6em 0 0;padding:0;list-style:none;max-width:34rem}
.credits li{margin:.5em 0}
/* Privacy and Terms: long text, so a wider card, smaller headings, lists that read. */
.page main.legal{width:min(100%,54rem)}
/* Long reading text stays 16px; the 20px body size on wide, sharp screens made it huge (Paul, 11-18). */
.page main.legal{font-size:16px}
.legal .card p,.legal .card ul{max-width:none}
.legal .card h2{font-size:clamp(11px,1.9vw,15px);margin-top:clamp(24px,3.6vw,34px)}
.card ul:not(.credits){margin:.85em 0 0;padding-left:1.3em}
.card ul:not(.credits) li{margin:.6em 0}
.stamp{opacity:.75}
.card p + .btn,.card ul + .btn{margin-top:1.3em}
.card.end h1{margin:0;font:400 clamp(20px,3.4vw,32px)/1.5 var(--display);text-wrap:balance}
a.btn{text-decoration:none}

/* ------------------------------------------------------------- a DJ's page */
/* maxtapes.app/dj/<djname>, drawn by functions/dj/[name].js: the DJ's name big, then
   each tape they put on the page as a cassette label - the window carries the
   tape's title - its tracklist folded away, and GRAB (the tape's gift link). */
.page.dj main{width:min(100%,54rem)}
.dj-head{position:relative;z-index:2;margin:0 0 clamp(28px,5vh,48px)}
.dj-head .dj-name{display:inline-block;margin:0;font:16px/1 var(--display);overflow-wrap:anywhere}
.dj-since{margin:.8em 0 0;font-size:12px;opacity:.75}
/* FOLLOW, under the name (Paul, 10-11): opens the app, where following happens. */
.dj-head .btn.follow{margin-top:1.1em}
/* The DJ card (Paul, 10-21). */
.card.dj-card{margin:0 0 clamp(28px,5vh,48px)}
.dj-card .dj-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 24px}
.dj-card .dj-name{margin:0;font:400 clamp(24px,6vw,44px)/1.2 var(--display);overflow-wrap:anywhere;min-width:0}
.dj-card .dj-name span{background:var(--pink);padding:.12em .3em .04em;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.dj-card .btn.follow{margin:0;flex:none;font-size:11px;padding:10px 11px 8px;box-shadow:4px 4px 0 var(--purple)}
.dj-card .btn.follow .ico{margin-right:-2px;shape-rendering:crispEdges}
.dj-card .btn.follow:active{box-shadow:1px 1px 0 var(--purple)}
.dj-card .dj-since{margin:1em 0 0;font-size:12px;opacity:.75}
.tapes{list-style:none;margin:0;padding:0;display:grid;gap:clamp(28px,4vw,40px)}
/* Who this DJ follows, under the tapes (Paul, 10-21), only if they chose to show it.
   Each name is a small label, a link to that DJ's page. */
.card.follows{margin-top:clamp(28px,4vw,40px)}
.card.follows h2{margin:0;font:400 clamp(14px,2.4vw,20px)/1.5 var(--display);font-variant-ligatures:none;overflow-wrap:anywhere}
.card.follows h2 span{background:var(--pink);padding:.12em .3em .04em;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.card ul.follow-list{list-style:none;margin:clamp(14px,2.4vw,20px) 0 0;padding:0;display:flex;flex-wrap:wrap;gap:12px 14px}
.card ul.follow-list li{margin:0;min-width:0;max-width:100%}
.dj-chip{display:inline-block;max-width:100%;overflow-wrap:anywhere;font:12px/1.3 var(--display);font-variant-ligatures:none;color:var(--ink);text-decoration:none;
  padding:10px 11px 8px;border:var(--b) solid var(--ink);background:var(--cyan);box-shadow:4px 4px 0 var(--purple)}
.dj-chip.c1{background:var(--yellow)}
.dj-chip.c2{background:var(--teal)}
.dj-chip.c3{background:var(--orange)}
.dj-chip:hover,.dj-chip:focus-visible{background:var(--pink)}
.dj-chip:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.dj-chip:active{transform:translate(3px,3px);box-shadow:1px 1px 0 var(--purple)}
/* maxtapes.app/djs (functions/djs.js, Paul, 10-23): one card per DJ with a tape up,
   the name a label that links to their page, their newest tape's title under it. */
.dj-list{list-style:none;margin:0;padding:0;display:grid;gap:clamp(20px,3vw,32px);grid-template-columns:repeat(auto-fill,minmax(min(100%,15rem),1fr))}
.card.dj-entry .in{height:100%;box-sizing:border-box}
.dj-entry h2.dj-entry-name{margin:0;font:400 clamp(16px,2.6vw,22px)/1.3 var(--display);font-variant-ligatures:none;overflow-wrap:anywhere}
.dj-entry-name a{display:inline-block;max-width:100%;color:var(--ink);text-decoration:none;padding:10px 11px 8px;border:var(--b) solid var(--ink);
  background:var(--cyan);box-shadow:4px 4px 0 var(--purple)}
.dj-entry-name a.yellow{background:var(--yellow)}
.dj-entry-name a.teal{background:var(--teal)}
.dj-entry-name a.orange{background:var(--orange)}
.dj-entry-name a:hover,.dj-entry-name a:focus-visible{background:var(--pink)}
.dj-entry-name a:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.dj-entry-name a:active{transform:translate(3px,3px);box-shadow:1px 1px 0 var(--purple)}
.dj-entry .dj-latest{margin:1.1em 0 0;font-size:14px;opacity:.85;overflow-wrap:anywhere}
.card.tape .window{grid-template-columns:calc(var(--px) * 2.5) 1fr calc(var(--px) * 2.5);margin-top:0;background:var(--cream)}
.window .blk.teal{background:var(--teal)}
.window .blk.orange{background:var(--orange)}
.window .blk.purple{background:var(--purple)}
.card.tape h2.label{margin:0;padding:clamp(12px,2vw,18px) clamp(10px,2vw,16px);font:400 clamp(14px,2.4vw,20px)/1.5 var(--display);
  overflow-wrap:anywhere;text-wrap:balance;color:var(--ink);align-self:center}
/* A long title stops at two lines, with an ellipsis; the whole of it is the label's tooltip.
   On the inner span, so the label's padding is never inside the clipped box. */
.card.tape h2.label span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
/* The DJ's line about the tape: a pink rule beside it, like a hand-written label note. */
.card.tape .window.opens{cursor:pointer}
.card.tape .tape-note,.page.gift .tape-note{margin:1em 0 0;font-size:clamp(13px,2.25vw,16px);padding-left:12px;border-left:4px solid var(--pink)}
/* The one line above a DJ's tapes. */
.dj-intro{margin:0 0 clamp(18px,3vw,28px);font:400 clamp(14px,2.4vw,20px)/1.6 var(--display);font-variant-ligatures:none;overflow-wrap:anywhere}
.dj-intro span{background:var(--pink);padding:.12em .3em .04em;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.tracklist{margin:.9em 0 0}
.tracklist summary{font:16px/1.4 var(--display);font-size:clamp(11px,1.9vw,14px)}
.tracklist ol{margin:.6em 0 0;padding-left:2.4em}
.tracklist li{margin:.25em 0}
.card.tape .btn{margin-top:1.2em}
/* Under DUB A COPY (Paul, 2026-10-09: "dub a copy with the subtext line"). */
.card.tape .dub-sub{margin:.7em 0 0;font-size:12px;opacity:.75}
/* Only while DUB A COPY is pointed at or focused (Paul, 10-21). Faded, never removed, so
   its line stays reserved and nothing below moves. Touch screens cannot point, so
   there it is not shown at all (Paul, 10-21: "on phone we don't need to show it"). */
@media (hover:none){.card.tape .dub-sub{display:none}}
@media (hover:hover){
  .card.tape .dub-sub{opacity:0;transition:opacity .15s}
  .card.tape .btn:hover + .dub-sub,.card.tape .btn:focus-visible + .dub-sub{opacity:.75}
}
@media (hover:hover) and (prefers-reduced-motion:reduce){.card.tape .dub-sub{transition:none}}

/* The tracklist's second toggle, at the bottom of the open list (Paul, 10-12), drawn
   as its top one is. Tapping the card's background closes it too (web/js/dj.js). */
.tracklist .tl-close{display:block;margin:.9em 0 0;padding:0;background:none;border:0;cursor:pointer;color:var(--ink);
  font:16px/1.4 var(--display);font-size:clamp(11px,1.9vw,14px)}
.tracklist .tl-close::before{content:"\25B4";display:inline-block;margin-right:.5em}

/* DUB A COPY as a pop-up over the DJ's page (Paul, 10-12): the Dub page's own card,
   a bottom sheet on a phone, centred on a wider screen. No fade, no slide. */
.dub-sheet{padding:0;border:0;background:none;max-width:none;max-height:none;overflow:visible;color:inherit}
.dub-sheet::backdrop{background:rgba(15,10,25,.55)}
.dub-sheet .card{margin:0}
.dub-sheet .card > .in{max-height:calc(100svh - 48px);overflow:auto}
.dub-x{position:absolute;top:calc(var(--b) + 6px);right:calc(var(--b) + 6px);width:44px;height:44px;padding:0;
  background:none;border:0;cursor:pointer;color:var(--ink);font:400 28px/1 var(--body)}
.dub-x:hover{background:var(--ink);color:var(--cream)}
html.sheet-open{overflow:hidden}
@media (max-width:599px){
  .dub-sheet{margin:auto 0 0;width:100%;padding:0 var(--sh) var(--sh) 0}
  .dub-sheet .card > .in{padding-bottom:calc(var(--b) + 22px + env(safe-area-inset-bottom))}
}
@media (min-width:600px){
  .dub-sheet{margin:auto;width:min(calc(100% - 48px),34rem)}
}

/* The page after DUB A COPY (and after FOLLOW): its card's own spacing, and the small App Store line. */
.card.grab .in,.card.follow .in{gap:clamp(14px,2.4vw,20px)}
.card.grab .brand.from{margin:0}
.card.follow .brand.label{margin:0}
.card.follow .dj-to{margin-top:-2px;font:400 clamp(26px,5vw,44px)/1.2 var(--display);color:var(--ink);text-decoration:none;overflow-wrap:anywhere}
.card.follow .dj-to span{background:var(--pink);padding:.12em .3em .04em;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.card.follow .dj-to:hover span{box-shadow:4px 4px 0 var(--purple)}
.card.grab .btn,.card.follow .btn{margin-top:clamp(8px,1.6vw,14px)}
.card.grab .get,.card.follow .get{margin-top:clamp(10px,2vw,16px);font-size:12px;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}

/* --------------------------------------------- without scripting there is no tape */
/* No ribbon, no counter, no rewind, and the pictures that are drawn by the
   script are simply not there: the cards read fine without them. */
html:not(.js) .hud,html:not(.js) .hint,html:not(.js) #rewind,
html:not(.js) .needs-js,html:not(.js) .needs-js + .stripe{display:none}

/* ---------------------------------------------------------------- wide screens */
@media (min-width:900px){
  .hint{left:auto;right:max(24px,env(safe-area-inset-right));text-align:right}
  .tagline{font-size:24px;padding:14px 18px 12px;box-shadow:8px 8px 0 var(--ink)}
  .tag{font-size:16px}
  :root{--n:16px;--sh:16px}
  .wordmark{text-shadow:.125em .125em 0 var(--purple)}
}
@media (max-width:899px){
  .hd-dots{top:auto;bottom:27%;left:5%;--w:6;--h:6}
  .hd-tri{--w:14}
  .hd-disc{--w:13;right:-4%;bottom:-3%}
  .hd-squig{top:auto;bottom:24%;right:7%;--w:9}
  .hd-plus{top:auto;bottom:30%;left:auto;right:12%}
  .hd-ring{top:auto;bottom:16%;right:auto;left:14%;--w:5}
}
@media (max-width:520px){
  .hero{padding-top:106px}
  :root{--n:8px;--sh:8px}
  .hud{font-size:10px;padding:8px 9px;box-shadow:4px 4px 0 var(--purple);gap:7px}
}

/* ---------------------------------------------- a DJ page's cards, as the app draws them
   The app's DJ page (DJPage.swift): square cream card, ink rim, one hard purple shadow,
   no cut corners; the tape a strip with a narrow colour block each end and a yellow
   stripe under; "23 songs . artist", TAP FOR TRACKLIST, the DJ's name on pink, DUB A COPY
   black with a purple shadow (Paul, 11-11). Only /dj/<name>; the rest of the site keeps
   the cassette card. */
.page.dj .card{filter:none;background:var(--cream);border:4px solid var(--ink);box-shadow:8px 8px 0 var(--purple)}
.page.dj .card::before,.page.dj .card::after{content:none}
.page.dj .card > .in{padding:clamp(16px,3vw,24px)}
.page.dj .card.tape .window{grid-template-columns:14px 1fr 14px;border:3px solid var(--ink);background:var(--cream)}
.page.dj .card.tape .stripe{height:5px;border:3px solid var(--ink);border-top:0;margin:0}
.page.dj .card.tape h2.label{padding:12px 12px 10px;font-size:clamp(12px,2.2vw,16px)}
.page.dj .tracklist summary{font:8px/1.4 var(--display);font-size:clamp(8px,1.6vw,10px);letter-spacing:.04em;text-transform:uppercase;opacity:.6;cursor:pointer;margin-top:.3em}
.page.dj .tracklist{margin-top:.5em}
.page.dj .card.tape .btn{margin-top:1em}
.page.dj .tape-dj{display:inline-block;margin:.9em 0 0;background:var(--pink);color:var(--ink);text-decoration:none;font:400 clamp(11px,2vw,14px)/1 var(--display);padding:9px 10px 7px}
.page.dj a.tape-dj:hover,.page.dj a.tape-dj:focus-visible{background:var(--yellow)}
.page.dj .tape-dj + .btn,.page.dj .tape-dj + .dub-sub{display:flex;width:max-content}

/* Preview keys on a tape's tracklist (web/js/dj.js): the app's round play key, in ink. */
.tracklist .pv{display:inline-block;vertical-align:middle;width:1.6em;height:1.6em;margin-left:.5em;padding:0;border:2px solid var(--ink);border-radius:50%;background:none;cursor:pointer;position:relative;color:var(--ink)}
.tracklist .pv::before{content:"";position:absolute;left:50%;top:50%;transform:translate(-35%,-50%);border-style:solid;border-width:.38em 0 .38em .62em;border-color:transparent transparent transparent currentColor}
.tracklist .pv.on{background:var(--ink);color:var(--cream)}
.tracklist .pv.on::before{width:.6em;height:.6em;border:0;background:currentColor;transform:translate(-50%,-50%)}
.tracklist .pv.none{opacity:.25;cursor:default}
.tracklist .pv::after{content:"";position:absolute;inset:-.45em}   /* a whole fingertip */
.tracklist .pv-all{display:block;margin:.8em 0 0;padding:.5em .8em;font:8px/1.4 var(--display);font-size:clamp(8px,1.6vw,10px);letter-spacing:.04em;text-transform:uppercase;color:var(--ink);background:none;border:2px solid var(--ink);box-shadow:3px 3px 0 var(--ink);cursor:pointer}
.tracklist .pv-all.on{background:var(--ink);color:var(--cream)}

.page.gift .tape-note{border-left:0;padding:0;margin:0;font:16px/1.5 var(--body);text-align:center;color:var(--ink)}
.page.gift .tape-note::before{content:"\201C"}.page.gift .tape-note::after{content:"\201D"}
/* The DJ's own picture for a tape (Paul, 2026-11-11): a cover card, portrait, with the
   same hard outline and one-square shadow as every other card. Never scaled up past
   its own size, so a small picture is not blown into mush. */
.tape-cover{display:block;width:min(100%,240px);height:auto;aspect-ratio:2/3;object-fit:cover;background:var(--cream);
  margin:0 0 1.1em;border:var(--b) solid var(--ink);box-shadow:calc(var(--sh) / 2) calc(var(--sh) / 2) 0 var(--ink)}
.dub-sheet .tape-cover,.card.grab .tape-cover{margin-left:auto;margin-right:auto}

/* Signing in on the site (account.js): the line under a DJ's name, and the account page. */
.linkish{background:none;border:0;padding:0;font:inherit;color:inherit;text-decoration:underline;cursor:pointer}
.linkish:disabled{opacity:.5;cursor:default}
.btn.is-dubbed{opacity:.75}
.acct-list{list-style:none;padding:0;margin:.6em 0 0;display:grid;gap:.5em}
.acct-list li{display:flex;justify-content:space-between;gap:12px;align-items:baseline;flex-wrap:wrap}
.acct-list .state{font-size:.8em;opacity:.8}
/* Sign out and Help at the foot of the signed-in card: small, on the right. */
.card p.acct-links{display:flex;justify-content:flex-end;gap:1.4em;max-width:none;font-size:.8em}

/* The FAQ on /help. Each question is a <details>; see the comment in help.html for adding one. */
.faq{text-align:left;display:grid;gap:.6em;margin:1em 0 0}
.faq details{border:var(--b) solid var(--ink);background:#fff;padding:.7em .9em}
.faq summary{cursor:pointer;font-weight:700;line-height:1.4}
.faq summary:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.faq details > :not(summary){margin:.6em 0 0}
.faq details p{margin:.6em 0 0;text-align:left}

/* SIGN IN: a small pink label at the top right (acct-tag.js). Signed in: an 8-bit head and the DJ handle. */
.acct-tag{position:absolute;top:2px;right:0;display:inline-flex;align-items:center;gap:8px;background:var(--pink);color:var(--ink);
  font:13px/1 var(--display);padding:8px 10px 7px;border:3px solid var(--ink);box-shadow:4px 4px 0 var(--purple);text-decoration:none;letter-spacing:.04em}
.acct-tag:hover,.acct-tag:focus-visible{background:var(--cyan)}
.acct-tag:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.acct-tag:active{transform:translate(3px,3px);box-shadow:1px 1px 0 var(--purple)}
.acct-tag .ico{display:block}
.acct-tag.home{top:12px;right:max(12px,env(safe-area-inset-right));z-index:11}
.acct-tag span{max-width:11ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:420px){.acct-tag.in span{display:none}}

/* A tape's own address (/dj/<name>#<tape>): it is marked and clear of the top when it is the target. */
.card.tape{scroll-margin-top:16px}
.card.tape:target,.card.tape:has(.alias:target){outline:6px solid var(--pink);outline-offset:6px}
.tape-link-row{margin:.9em 0 0}
.tape-link{font:11px/1 var(--display);color:inherit;text-decoration:underline;white-space:nowrap}
.card.tape .alias{display:block;width:0;height:0;overflow:hidden}

/* The sign-in / DJ name / done box in front of FOLLOW and DUB A COPY, and delete. */
.gate{width:min(92vw,28rem)}
.gate input[type=text]{width:100%;box-sizing:border-box;font:inherit;padding:.5em;border:2px solid currentColor;background:#fff;color:#000}
.gate .picks .linkish{margin-right:.6em}

/* SEO pages (11-19): DJ Fred's own page and the tape pages. */
.dj-about{margin:0 0 clamp(18px,3vw,28px);font:16px/1.6 var(--body);max-width:60ch}
.lede{margin:.4em 0 1em;font:16px/1.6 var(--body);text-align:left}
.tape-page{margin:.6em 0 0;font-size:13px}
.page.mixtape .answer .btn{margin-top:.4em}
.mini-list{margin:.6em 0;padding-left:1.4em;text-align:left}
.mini-list li{margin:.3em 0}
.page.mixtape .tracklist summary{opacity:.8}
/* Track 05: the video sits in the card's window, plays only when pressed
   (preload none, no autoplay) and the visitor can scroll straight past it. */
.window.reel{grid-template-columns:calc(var(--px) * 2.5) minmax(0,1fr) calc(var(--px) * 2.5)}
.window.reel video{display:block;min-width:0;width:100%;max-width:100%;height:auto;aspect-ratio:2852/2006;background:var(--ink);object-fit:contain}
.card h2.one{white-space:nowrap;font-size:clamp(10px,3.7vw,24px)}
.card p.sub{margin:.7em 0 0;font-size:13px;line-height:1.5}

/* Track 04: a phone screenshot in the card's window. Width and height are set on the image, so nothing shifts when it loads. */
.window.shot .scene{min-height:0;padding:calc(var(--sq) * 2)}
.window.shot img{display:block;width:100%;max-width:22rem;height:auto;aspect-ratio:720/797;border:3px solid var(--ink)}

/* Track 05's own controls (js/player.js). Without script none of this exists and
   the browser's controls stay. Hard edges, the card's inks; the bar fades out
   1.5 s into play and returns on a move, a tap or a key. A flat ink strip
   instead of a gradient, as everywhere else on the page. */
.player{position:relative;min-width:0;line-height:0}
.player.custom video{cursor:pointer}
.player:focus-visible,.player button:focus-visible,.player input:focus-visible{outline:3px solid var(--pink);outline-offset:-3px}
.pl-big{position:absolute;left:50%;top:50%;width:64px;height:64px;margin:-32px 0 0 -32px;padding:0;display:flex;align-items:center;justify-content:center;
  background:var(--pink);color:var(--ink);border:var(--b) solid var(--ink);box-shadow:4px 4px 0 var(--ink);cursor:pointer}
.player.playing .pl-big{display:none}
.pl-bar{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;gap:6px;padding:4px 6px;background:var(--ink);color:var(--cream);transition:opacity .2s}
.player.playing.idle .pl-bar{opacity:0;pointer-events:none}
.player.playing.idle{cursor:none}
.pl-btn{flex:none;width:44px;height:44px;padding:0;display:flex;align-items:center;justify-content:center;background:none;border:0;color:inherit;cursor:pointer}
.pl-btn[hidden]{display:none}
.pl-seek{flex:1;min-width:0;height:44px;margin:0;background:none;cursor:pointer;-webkit-appearance:none;appearance:none}
.pl-seek::-webkit-slider-runnable-track{height:6px;background:var(--cream);opacity:.45}
.pl-seek::-moz-range-track{height:6px;background:var(--cream);opacity:.45}
.pl-seek::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:18px;margin-top:-6px;background:var(--pink);border:2px solid var(--cream);border-radius:0}
.pl-seek::-moz-range-thumb{width:8px;height:14px;background:var(--pink);border:2px solid var(--cream);border-radius:0}
@media (prefers-reduced-motion:reduce){.pl-bar{transition:none}}
@media (max-width:599px){.pl-big{width:56px;height:56px;margin:-28px 0 0 -28px}}
.player:fullscreen{display:flex;align-items:center;justify-content:center;background:#000}
.player:fullscreen video{max-height:100%;width:auto;max-width:100%}
.pl-big svg{width:21px;height:39px;margin-left:5px}
@media (max-width:599px){.pl-big svg{width:17px;height:32px;margin-left:4px}}

/* Before the first play only the big button shows; the bar comes with the video
   (and for a keyboard user who tabs into it). Paused mid-video it stays. */
.player:not(.started) .pl-bar{opacity:0;pointer-events:none}
.player:not(.started) .pl-bar:focus-within{opacity:1;pointer-events:auto}
.pl-bar{padding:0 4px}

/* At the end the closing slate is the picture: no bar and no visible button over it.
   Click or tap the picture (or Tab to the hidden buttons) to play it again. */
.player.ended .pl-bar{opacity:0;pointer-events:none}
.player.ended .pl-bar:focus-within{opacity:1;pointer-events:auto}
.player.ended .pl-big{opacity:0}
.player.ended .pl-big:focus-visible{opacity:1}
/* Track 05: the cassette alone in the card's window (no screenshot, no cover art). */
.window.shot img.plain{border:0;aspect-ratio:448/288;max-width:20rem}
/* Once a tape is on the shelf the button says PLAY, and "straight to your shelf" is no longer true of it. */
.card.tape .btn.is-dubbed + .dub-sub{display:none}
