/* M4RVL fanlink system v8 — design tokens locked Nov 5, 2026:
   near-black warm ground, paper ink, ONE burnt-orange accent.
   Flat tonal steps. No glass, no glows at rest, one radius system (4px + round play). */
:root{
  --ground:#0a0806; --step:#181310; --step-hover:#211a15; --step-buy:#1d130c;
  --ink:#f4ede1; --dim:rgba(244,237,225,.66); --faint:rgba(244,237,225,.40);
  --accent:#e8622c; --tint:#ffb59b; --line:#2a221c; --radius:4px;
  --chip:rgba(244,237,225,.07); --sheet:#171310; --prog:rgba(255,255,255,.16);
  --eqbg:rgba(10,8,6,.5); --eqbar:#ffb38f;
}
*{margin:0;padding:0;box-sizing:border-box}
html,body{min-height:100%}
body{
  font-family:"Hanken Grotesk",-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink); background:var(--ground); -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
/* backdrop: the artwork, dimmed to atmosphere — ground reads first */
.bg{position:fixed; inset:-40px; z-index:0; background-position:center; background-size:cover; background-repeat:no-repeat;
  filter:blur(54px) brightness(.38) saturate(1.12);
  animation:settle 1.4s cubic-bezier(.2,.7,.2,1) both}
@keyframes settle{from{transform:scale(1.07)}to{transform:scale(1.01)}}
.shade{position:fixed; inset:0; z-index:1;
  background:linear-gradient(180deg, rgba(10,8,6,.52) 0%, rgba(10,8,6,.78) 55%, rgba(10,8,6,.93) 100%)}
.grain{position:fixed; inset:0; z-index:2; opacity:.045; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E")}
/* frame */
.wrap{position:relative; z-index:3; max-width:920px; margin:0 auto; padding:28px 22px 48px}
.topbar{display:flex; align-items:center; justify-content:space-between;
  border-bottom:1px solid var(--line); padding-bottom:16px}
.brand{display:flex; align-items:center; gap:10px; font-family:"Space Grotesk",sans-serif;
  font-weight:700; letter-spacing:.34em; font-size:15px; color:var(--ink); text-decoration:none}
.orbit{position:relative; width:19px; height:19px; flex:0 0 19px; border:1px solid rgba(244,237,225,.38); border-radius:50%}
.orbit i{position:absolute; top:-2.5px; right:1px; width:6px; height:6px; border-radius:50%; background:var(--accent)}
.topdomain{font-size:12px; color:var(--faint); letter-spacing:.06em}
/* hero — one column, his order: cover, then title, then links (Nov 17, 2026) */
.hero{display:grid; grid-template-columns:1fr; gap:22px; margin-top:14px; align-items:start;
  max-width:560px; margin-left:auto; margin-right:auto}
.coverbox{position:relative; width:min(340px,84vw); margin:0 auto}
.artwrap{position:relative}
.covermeta{display:flex; justify-content:space-between; align-items:baseline; margin-top:11px;
  font-family:"Space Grotesk",sans-serif; font-size:11px; font-weight:700;
  letter-spacing:.18em; text-transform:uppercase; color:var(--faint)}
.covermeta .ptime{color:var(--dim); font-variant-numeric:tabular-nums; letter-spacing:.1em; margin-left:8px}
.cover{width:100%; height:auto; aspect-ratio:1; object-fit:cover; border-radius:var(--radius); display:block; cursor:pointer}
.playbtn{position:absolute; right:16px; bottom:16px; width:58px; height:58px; border-radius:50%;
  border:0; background:var(--accent); display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:transform .15s ease}
.playbtn:hover{transform:scale(1.06)}
.playbtn:focus-visible, a:focus-visible, button:focus-visible{outline:2px solid var(--accent); outline-offset:3px}
.playbtn svg{width:21px; height:21px; fill:#fff}
.eq{position:absolute; left:16px; bottom:20px; display:none; align-items:flex-end; gap:3px; height:18px;
  background:var(--eqbg); padding:5px 7px; border-radius:3px}
.eq span{width:3.5px; background:var(--eqbar); border-radius:2px; animation:eq .9s ease-in-out infinite}
.eq span:nth-child(2){animation-delay:.22s}.eq span:nth-child(3){animation-delay:.45s}.eq span:nth-child(4){animation-delay:.12s}
@keyframes eq{0%,100%{height:5px}50%{height:15px}}
.playing .eq{display:flex}
.cprog{position:absolute; left:0; right:0; bottom:0; height:3px; background:var(--prog); border-radius:0 0 var(--radius) var(--radius); overflow:hidden}
.cfill{height:100%; width:0%; background:var(--accent)}
/* title block */
.side{text-align:center}
.rise{animation:rise .8s cubic-bezier(.2,.7,.2,1) both}
@keyframes rise{from{opacity:0; transform:translateY(12px)}to{opacity:1; transform:none}}
h1{font-family:"Space Grotesk",sans-serif; font-size:clamp(48px,13.5vw,92px); font-weight:700;
  line-height:.94; letter-spacing:-.015em; text-transform:uppercase}
.artist{font-size:19px; color:var(--tint); margin-top:14px; font-weight:600}
.meta{font-family:"Space Grotesk",sans-serif; font-size:11.5px; font-weight:600; color:var(--faint);
  margin-top:12px; letter-spacing:.16em; text-transform:uppercase}
.lyric{font-family:"Space Grotesk",sans-serif; font-size:18.5px; font-weight:500; color:var(--ink);
  margin-top:26px; line-height:1.45}
/* title size steps — set from the dashboard (body[data-tsize]); the
   unmarked size is the original clamp(48px,13.5vw,92px) above */
body[data-tsize="s"] h1{font-size:clamp(34px,9.5vw,64px)}
body[data-tsize="l"] h1{font-size:clamp(58px,16vw,110px)}
body[data-tsize="xl"] h1{font-size:clamp(68px,19vw,132px)}
/* free-text blocks added from the dashboard */
.customtext{font-family:"Space Grotesk",sans-serif; font-size:17px; font-weight:500; color:var(--ink);
  margin-top:24px; line-height:1.5; text-align:center}
/* pre-save state (app.js shows this when release_date is in the future) */
.presave{display:none; margin-top:26px}
body.is-presave .presave{display:block}
body.is-presave .released-only{display:none}
.presave .outdate{font-family:"Space Grotesk",sans-serif; font-size:22px; font-weight:700; letter-spacing:.02em}
.countdown{display:flex; gap:8px; margin-top:16px; justify-content:center}
.cd-cell{background:var(--step); border:1px solid var(--line); border-radius:var(--radius); padding:10px 0; width:68px; text-align:center}
.cd-num{font-family:"Space Grotesk",sans-serif; font-size:24px; font-weight:700; font-variant-numeric:tabular-nums}
.cd-lab{font-size:10px; letter-spacing:.22em; text-transform:uppercase; color:var(--faint); margin-top:3px}
/* service rows — flat tonal steps, no glass, no border glow */
.listen{margin-top:30px; font-size:11px; letter-spacing:.26em; color:var(--faint); text-transform:uppercase; text-align:center}
.services{margin-top:14px; display:flex; flex-direction:column; gap:8px}
.svc{display:flex; align-items:center; gap:14px; text-decoration:none; color:var(--ink);
  background:var(--step); border:1px solid var(--line); border-radius:var(--radius); padding:13px 16px; min-height:64px;
  transition:background .15s ease, transform .15s ease, border-color .12s ease}
.svc:hover{background:var(--step-hover); border-color:var(--accent)}
.svc:active{transform:scale(.99)}
.sic{width:38px; height:38px; flex:0 0 38px; border-radius:var(--radius);
  display:flex; align-items:center; justify-content:center}
.sic svg{width:23px; height:23px}
/* platform rows: the official logo itself, large and in full brand colour —
   no tile behind it, the mark carries the row (ToneDen/Linkfire pattern) */
.svc:not(.buy) .sic{width:44px; height:44px; flex:0 0 44px}
.svc:not(.buy) .sic svg{width:37px; height:37px; filter:drop-shadow(0 1px 5px rgba(0,0,0,.45))}
.sname{flex:1; font-size:16.5px; font-weight:700; text-align:left}
.ssub{display:block; font-size:12px; color:var(--faint); font-weight:500; margin-top:1px}
.smarker{display:block; font-size:11px; font-weight:600; color:var(--tint); letter-spacing:.05em; margin-top:2px}
.sact{font-family:"Space Grotesk",sans-serif; font-size:11px; font-weight:700; letter-spacing:.18em;
  text-transform:uppercase; color:var(--ink); background:var(--chip);
  padding:6px 9px; border-radius:2px; white-space:nowrap}
.chev{color:var(--faint); font-size:17px; transition:transform .15s ease, color .15s ease}
.svc:hover .chev{transform:translateX(3px); color:var(--dim)}
/* buy row — his own store, beneath the streaming rows */
.svc.buy{background:var(--step-buy)}
.svc.buy .sact{background:var(--accent); color:#fff}
.svc.buy .sic{background:var(--accent)}
/* share — ONE button under the buy row; it opens the share sheet */
.sharezone{margin-top:28px; border-top:1px solid var(--line); padding-top:22px}
.sharebtn{display:flex; align-items:center; justify-content:center; gap:9px; width:100%;
  min-height:56px; padding:15px 16px; cursor:pointer; color:var(--ink);
  background:var(--step); border:1px solid var(--line); border-radius:var(--radius);
  font-size:15px; font-weight:700; letter-spacing:.02em; font-family:inherit;
  transition:background .15s ease, border-color .12s ease, transform .15s ease}
.sharebtn:hover{background:var(--step-hover); border-color:var(--accent)}
.sharebtn:active{transform:scale(.99)}
.sharebtn svg{width:17px; height:17px; flex:0 0 17px; fill:var(--tint)}
/* share sheet — in-page panel: the song's QR, its URL with Copy, social shares */
.sheetwrap{position:fixed; inset:0; z-index:60}
.sheetwrap[hidden]{display:none}
.sheetback{position:absolute; inset:0; background:rgba(5,4,3,.72); opacity:0; transition:opacity .2s ease}
.sheetwrap.open .sheetback{opacity:1}
.sheet{position:absolute; left:0; right:0; bottom:0; margin:0 auto; max-width:520px;
  max-height:88vh; overflow-y:auto; background:var(--sheet);
  border:1px solid var(--line); border-bottom:0; border-radius:var(--radius) var(--radius) 0 0;
  padding:20px 20px 28px; transform:translateY(26px); opacity:0;
  transition:transform .22s ease, opacity .22s ease}
.sheetwrap.open .sheet{transform:none; opacity:1}
.sheethead{display:flex; align-items:center; justify-content:space-between}
.sheettitle{font-family:"Space Grotesk",sans-serif; font-size:17px; font-weight:700}
.sheetclose{width:38px; height:38px; flex:0 0 38px; border-radius:50%; background:var(--step);
  border:1px solid var(--line); color:var(--ink); font-size:19px; line-height:1;
  cursor:pointer; font-family:inherit; transition:background .15s ease}
.sheetclose:hover{background:var(--step-hover)}
.sheetqr{text-align:center; margin-top:20px}
.sheetqr img{width:148px; height:148px; border-radius:2px; display:inline-block}
.sheetqrcap{font-size:12px; color:var(--faint); margin-top:9px}
.urlrow{display:flex; align-items:center; gap:10px; margin-top:18px; background:var(--ground);
  border:1px solid var(--line); border-radius:var(--radius); padding:9px 9px 9px 14px}
.urltext{flex:1; font-size:13.5px; color:var(--dim); white-space:nowrap; overflow:hidden;
  text-overflow:ellipsis; text-align:left}
.copybtn{background:var(--accent); color:#fff; border:0; border-radius:2px; padding:9px 15px;
  font-size:12.5px; font-weight:700; cursor:pointer; font-family:inherit; white-space:nowrap}
.sheetlab{margin-top:22px; font-size:11px; letter-spacing:.26em; text-transform:uppercase;
  color:var(--faint); text-align:left}
.sharerows{margin-top:12px; display:flex; flex-direction:column; gap:8px}
.srow{display:flex; align-items:center; gap:13px; text-decoration:none; color:var(--ink);
  background:var(--step); border:1px solid var(--line); border-radius:var(--radius);
  padding:11px 15px; min-height:54px; transition:background .15s ease, border-color .12s ease}
.srow:hover{background:var(--step-hover); border-color:var(--accent)}
.srow .sic{width:26px; height:26px; flex:0 0 26px}
.srow .sic svg{width:24px; height:24px; filter:drop-shadow(0 1px 4px rgba(0,0,0,.45))}
.srow .sname{font-size:15px}
/* song rows — hub list + short-link index */
.mrow{display:flex; align-items:center; gap:13px; text-decoration:none; color:var(--ink);
  background:var(--step); border:1px solid var(--line); border-radius:var(--radius); padding:9px 14px 9px 9px; margin-top:8px;
  transition:background .15s ease, border-color .12s ease}
.mrow:hover{background:var(--step-hover); border-color:var(--accent)}
.mrow img{width:46px; height:46px; object-fit:cover; border-radius:3px; flex:0 0 46px}
.mtitle{flex:1; font-weight:700; font-size:15.5px; text-align:left}
.msub{display:block; font-size:12px; color:var(--faint); font-weight:500; margin-top:1px}
/* footer */
.foot{margin-top:48px; text-align:center; border-top:1px solid var(--line); padding-top:28px}
.foot .brand{justify-content:center}
.foot a{color:var(--dim); text-decoration:none; font-size:12.5px}
.copy{margin-top:7px; font-size:11px; color:var(--faint)}
/* hub */
.hubtitle{font-family:"Space Grotesk",sans-serif; font-size:clamp(40px,11vw,72px); font-weight:700;
  line-height:.96; letter-spacing:-.015em; text-transform:uppercase; margin-top:44px; text-align:center}
.hubsub{text-align:center; color:var(--dim); font-size:16px; margin-top:14px}
.hublist{max-width:560px; margin:34px auto 0}
/* short-link interstitial + index */
.shortwrap{position:relative; z-index:3; max-width:560px; margin:0 auto; padding:56px 22px 48px; text-align:center}
.shortwrap .brand{justify-content:center}
.shortlabel{font-family:"Space Grotesk",sans-serif; font-size:26px; font-weight:700; margin-top:34px; line-height:1.2}
.shortgo{color:var(--dim); font-size:14.5px; margin-top:10px}
.shortgo a{color:var(--tint); font-weight:700; text-decoration:none}
.shortdest{font-size:12px; color:var(--faint); margin-top:16px; word-break:break-all}
@media (prefers-reduced-motion: reduce){
  .bg,.rise{animation:none}
  .eq span{animation:none; height:10px}
}
/* ---- appearance system (Nov 18, 2026): the page is a stack of blocks the
   dashboard can reorder; themes are variable sets on body[data-theme].
   The dashboard writes ONE settings document; app.js reads it at load and
   applies theme + order + visibility + text overrides at view time.
   Ember below is the baked default — if settings never load, this stands. */
#blocks{max-width:560px; margin:14px auto 0}
#blocks .block{min-width:0}
[data-block="title"]{text-align:center; margin-top:22px}
[data-block="lyric"]{text-align:center}
.lyric:empty{display:none}
.covermeta{justify-content:flex-end}
[data-block="buy"]{margin-top:8px}
/* Paper — clean light look */
body[data-theme="paper"]{
  --ground:#f3ead9; --step:#fffaf0; --step-hover:#fdf1dc; --step-buy:#f9e9d2;
  --ink:#221709; --dim:rgba(34,23,9,.70); --faint:rgba(34,23,9,.46);
  --accent:#c4501d; --tint:#a03e12; --line:#e0d0b4; --radius:10px;
  --chip:rgba(34,23,9,.08); --sheet:#fffaf0; --prog:rgba(34,23,9,.18);
  --eqbg:rgba(255,250,240,.66); --eqbar:#c4501d;
}
body[data-theme="paper"] .shade{background:linear-gradient(180deg, rgba(243,234,217,.42) 0%, rgba(243,234,217,.80) 55%, rgba(243,234,217,.95) 100%)}
body[data-theme="paper"] .bg{filter:blur(54px) brightness(1.12) saturate(1.05); opacity:.5}
body[data-theme="paper"] .sheetback{background:rgba(43,30,12,.45)}
/* Midnight — pure black look */
body[data-theme="midnight"]{
  --ground:#000000; --step:#0c0c0e; --step-hover:#161619; --step-buy:#140c07;
  --ink:#f5f2ea; --dim:rgba(245,242,234,.66); --faint:rgba(245,242,234,.40);
  --accent:#e8622c; --tint:#ffb59b; --line:#26262b; --radius:12px;
  --chip:rgba(245,242,234,.08); --sheet:#101012; --prog:rgba(255,255,255,.18);
  --eqbg:rgba(0,0,0,.55); --eqbar:#ffb38f;
}
body[data-theme="midnight"] .shade{background:linear-gradient(180deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.85) 55%, rgba(0,0,0,.97) 100%)}
body[data-theme="midnight"] h1{letter-spacing:.005em}
body[data-theme="midnight"] .svc{border-color:#232328}
/* Eclipse — deep violet & gold, the mystical register */
body[data-theme="eclipse"]{
  --ground:#0d0714; --step:#1a1026; --step-hover:#231636; --step-buy:#1c1206;
  --ink:#f3ead8; --dim:rgba(243,234,216,.68); --faint:rgba(243,234,216,.42);
  --accent:#d9a441; --tint:#eec27f; --line:#322148; --radius:16px;
  --chip:rgba(243,234,216,.08); --sheet:#1d1229; --prog:rgba(255,255,255,.16);
  --eqbg:rgba(13,7,20,.55); --eqbar:#eec27f;
}
body[data-theme="eclipse"] .shade{background:linear-gradient(180deg, rgba(13,7,20,.52) 0%, rgba(13,7,20,.80) 55%, rgba(13,7,20,.94) 100%)}
body[data-theme="eclipse"] h1{letter-spacing:.03em}
body[data-theme="eclipse"] .artist{color:var(--tint)}
body[data-theme="eclipse"] .svc{border-color:#38254f}
