@import url("https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Fraunces:ital,opsz,wght,SOFT@1,9..144,900,100&display=swap");
/* The shelf. Black, Sam's little yellow shapes down the left, the DeNim FM logo in the middle.
   At first the party photo fills the right side (on phones, the whole first screen);
   as you scroll down it swaps to the two faces in the bottom-right corner. Captions in the song page's font. */
body.home{background:#000 url("/site/shapes.svg") no-repeat left top;color:#f2ede2;color-scheme:dark;
  --right:min(80.9vh,50vw);       /* how wide the party photo is on laptops: full height, its own shape */
  --faces-w:min(32vw,520px)}

/* ---------- The pictures behind everything ---------- */
.backdrop{position:fixed;inset:0;z-index:0;pointer-events:none}
.party,.faces{position:absolute;display:block;transition:opacity .6s ease,transform .6s ease}
.party{top:0;right:0;height:100%;width:var(--right);object-fit:cover;object-position:left center}
.faces{right:0;bottom:0;width:var(--faces-w);height:auto;opacity:0;transform:translateY(24px)}
body.scrolled .party{opacity:0;transform:translateX(24px)}
body.scrolled .faces{opacity:1;transform:none}

/* ---------- Words and records, to the left of the pictures ---------- */
.mine{position:absolute;top:14px;left:clamp(70px,8vw,130px);z-index:3;display:flex;gap:16px;font-size:14px}
.mine a,.mine button{color:#a39b8c;text-decoration:none;font:inherit;background:none;border:0;padding:0;cursor:pointer;text-shadow:0 1px 3px rgba(0,0,0,.8)}
.mine a:hover,.mine button:hover{color:#f2ede2}
.mine form{margin:0}

.hero{position:relative;z-index:1;height:100vh;height:100svh;min-height:480px;padding-right:var(--right);display:grid;place-items:center}
.brand{text-align:center;padding:0 20px}
.logo{margin:0 auto;display:inline-grid;justify-items:center;font-family:"Fraunces",Georgia,serif;font-style:italic;font-weight:900;
  font-variation-settings:"SOFT" 100;font-size:clamp(52px,7vw,84px);line-height:1;letter-spacing:0;color:#f4ea6a}
.logo span{display:block;padding:0 .04em;border-bottom:3px solid #7a5c35;text-shadow:2px 2px 0 #7a5c35,-1px -1px 0 #3d2c14}
.tagline{margin:22px 0 0;color:#e9d84f;font-family:Copperplate,"Copperplate Gothic Light",Optima,"Schibsted Grotesk",serif;
  text-transform:uppercase;letter-spacing:.04em;font-size:clamp(17px,2vw,24px);line-height:1.15;text-shadow:0 1px 4px rgba(0,0,0,.9)}

.shelfpage{position:relative;z-index:1;padding:0 calc(var(--faces-w) + 48px) 140px clamp(70px,8vw,130px)}
.find{display:block;width:100%;max-width:320px;margin:0 0 26px;font:inherit;font-size:16px;color:#f2ede2;background:#000;
  border:1px solid rgba(242,237,226,.25);border-radius:999px;padding:9px 16px}
.grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 26px}

.rec{position:relative}
.rec>a{display:block;color:inherit;text-decoration:none;-webkit-tap-highlight-color:transparent}
.cover{position:relative;display:block;aspect-ratio:1;background:#1a1815;overflow:hidden}
.cover img{display:block;width:100%;height:100%;object-fit:cover;transition:opacity .15s}
.rec>a:hover .cover img{opacity:.9}
.rec>a:focus-visible{outline:none}
.rec>a:focus-visible .cover{outline:2px solid #f2ede2;outline-offset:3px}
.rec b{display:block;margin-top:10px;font-weight:800;font-size:16px;line-height:1.2;letter-spacing:-.01em;overflow-wrap:anywhere}
.rec .by{display:block;margin-top:2px;color:#a39b8c;font-size:14px}
.rec.off .cover{opacity:.45}
.edit{display:inline-block;margin-top:4px;font-size:13px;color:#a39b8c}
.plain{position:absolute;inset:0;background:#e9e0cb}
.nomatch{color:#a39b8c;margin:24px 0}
.faces-end{display:none}

/* The dub plate: Sam's way in for a new record. Plain cream sleeve, a hand-written label, a red DUB stamp. */
.dub{position:absolute;inset:0;background:#e9e0cb;color:#2a2520;display:grid;place-items:center}
.dub .hole{width:40%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#efe6d4 0 30%,#151210 31%);display:grid;place-items:center}
.dub .hole span{font-size:22px;line-height:1}
.dub .scrawl{position:absolute;left:0;right:0;bottom:9%;text-align:center;font-family:"Permanent Marker",cursive;font-size:clamp(14px,2vw,18px);transform:rotate(-2deg)}
.dub .stamp{position:absolute;right:8%;top:8%;border:1.5px solid rgba(160,50,40,.7);color:rgba(160,50,40,.85);font-weight:800;font-size:11px;
  letter-spacing:.14em;padding:2px 6px;border-radius:3px;transform:rotate(7deg)}

/* ---------- Phones: the party photo fills the first screen behind the logo; then the faces across the bottom ---------- */
@media (max-width:899px){
  body.home{--right:0px;--faces-w:100vw;background-size:64px auto}
  .party{width:100%;object-position:35% center}
  .hero{padding-right:0}
  .mine{left:auto;right:16px}
  .shelfpage{padding:28px 20px 36px}
  /* On phones the faces sit at the end of the records, edge to edge, rather than floating over them. */
  .faces{display:none}
  .faces-end{display:block;position:relative;z-index:1;width:100%;height:auto}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 16px}
}
@media (prefers-reduced-motion:reduce){ .party,.faces{transition:none} }
.mine a.req{color:#f4ea6a}
