/* M1 · Music (/music): its own look (design_handoff_learn_more_and_kit "M1 Music.dc.html").
   Always night, a sunset palette scoped to this page, Instrument Serif + DM Sans + Space Mono. No site nav or
   footer. The design's boxes are content-box (max-width + padding outside it), so the sections here are too.
   Below 860px the four blurred blobs give way to two static radial gradients (launch plan README §9). */

body.mu-body { background: #120a24; color: #e9dcf5; overflow-x: hidden; }

.mu {
  --night: #120a24; --deep: #1c1035; --ink: #fff7ef; --soft: #e9dcf5; --quiet: #bfaed6;
  --tang: #ff7a3d; --pink: #ff3d8b; --vio: #8a4dff; --teal: #2fe0c8; --sun: #ffd23d;
  --display: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  font-family: var(--sans); font-size: 16px; line-height: normal; color: var(--soft); background: var(--night);
  position: relative; min-height: 100vh; isolation: isolate;
  overflow-x: clip; /* the turning record's corners; clip (not hidden) so the player can still stick */
  padding-bottom: 24px; /* the player's resting gap (a margin would collapse out past the night ground) */
}
.mu a { color: var(--ink); text-decoration: none; }
.mu a:focus-visible, .mu button:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
.mu .k { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.mu h1, .mu h2 { letter-spacing: normal; }
.mu-nav, .mu-hero, .mu-tl, .mu-eqband, .mu-wantsec { box-sizing: content-box; position: relative; margin: 0 auto; }

/* the colour fields: clipped in their own layer so the page never scrolls sideways and the player can stick */
.mu-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.mu .blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.mu .b1 { width: 620px; height: 620px; left: -160px; top: -180px; background: var(--pink); }
.mu .b2 { width: 560px; height: 560px; right: -120px; top: 120px; background: var(--vio); }
.mu .b3 { width: 520px; height: 520px; left: 30%; top: 1500px; background: var(--tang); opacity: .35; }
.mu .b4 { width: 480px; height: 480px; right: 5%; top: 2300px; background: var(--teal); opacity: .25; }

/* nav: just enough to get home */
.mu-nav { max-width: 1200px; padding: 24px clamp(18px, 4vw, 44px); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mu .mu-home { color: var(--soft); padding: 14px 0; }
.mu .mu-home:hover { color: var(--ink); }
.mu-word { font-family: var(--display); font-style: italic; font-size: 26px; color: var(--ink); }
.mu .mu-want { color: var(--ink); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 12px 18px; }
.mu .mu-want:hover { border-color: var(--sun); }

/* the hero */
.mu-hero { max-width: 1200px; padding: clamp(30px, 6vw, 70px) clamp(18px, 4vw, 44px) 40px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.mu-kick { color: var(--sun); }
.mu .mu-h1 { font-family: var(--display); font-weight: 400; font-size: clamp(64px, 9vw, 132px); line-height: .9; letter-spacing: -.02em; color: var(--ink); margin: 18px 0 0; }
.mu-h1 em { background: linear-gradient(120deg, var(--sun), var(--tang) 35%, var(--pink) 70%, var(--vio)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.mu-lead { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.65; color: var(--soft); margin: 26px 0 0; max-width: 34ch; }
.mu-start { display: flex; gap: 14px; align-items: center; margin-top: 30px; flex-wrap: wrap; }
.mu-q { color: var(--quiet); }

/* the record: 9s a turn */
.mu-recwrap { display: flex; justify-content: center; }
.mu-disc { position: relative; width: min(460px, 80vw); aspect-ratio: 1; }
.mu .rec { position: absolute; inset: 0; border-radius: 50%; background: repeating-radial-gradient(circle at 50% 50%, #0b0716 0 2px, #1a1230 2px 4px); box-shadow: 0 40px 90px rgba(0,0,0,.55), inset 0 0 0 10px #0b0716; animation: mu-spin 9s linear infinite; }
.mu-sheen { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 20deg, transparent 0 40deg, rgba(255,255,255,.12) 55deg, transparent 75deg 220deg, rgba(255,255,255,.08) 235deg, transparent 255deg); }
.mu-label { position: absolute; inset: 33%; border-radius: 50%; background: conic-gradient(var(--sun), var(--tang), var(--pink), var(--vio), var(--teal), var(--sun)); display: flex; align-items: center; justify-content: center; }
.mu-paper { width: 70%; height: 70%; border-radius: 50%; background: radial-gradient(circle, #fff7ef 0 6%, #ffeede 7% 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.mu-lname { font-family: var(--display); font-style: italic; font-size: 22px; color: #1c1035; line-height: 1; }
.mu-lside { font-family: var(--mono); font-size: 8px; letter-spacing: .2em; color: #6b4f86; margin-top: 4px; }
@keyframes mu-spin { to { transform: rotate(360deg); } }

/* the track list */
.mu-tl { max-width: 1000px; padding: 30px clamp(12px, 3vw, 28px) 40px; }
.mu .mu-tlh { color: var(--quiet); font-weight: 400; margin: 0 0 10px 28px; }
.mu-tracks { display: flex; flex-direction: column; gap: 6px; }
.mu .trk { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 6px 22px; align-items: baseline; width: 100%; padding: 26px 28px; border-radius: 22px; transition: background .25s; -webkit-tap-highlight-color: transparent; }
.mu .trk:hover { background: rgba(255,255,255,.04); }
.mu .trk.on { background: linear-gradient(120deg, rgba(255,122,61,.16), rgba(255,61,139,.14) 45%, rgba(138,77,255,.16)); }
.mu .num { font-family: var(--display); font-style: italic; font-size: 44px; line-height: 1; color: var(--quiet); }
.mu .trk.on .num { background: linear-gradient(135deg, var(--sun), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mu .tt { font-family: var(--display); font-size: 40px; line-height: 1.05; color: var(--ink); }
.mu .dur { font-family: var(--mono); font-size: 13px; color: var(--quiet); }
.mu .body { grid-column: 2 / 4; font-size: 19px; line-height: 1.7; color: var(--soft); max-width: 60ch; margin: 6px 0 0; }

/* the equalizer band */
.mu-eqband { max-width: 1200px; padding: 40px clamp(18px, 4vw, 44px) 30px; }
.mu .eq { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 8px; height: 150px; align-items: end; }
.mu .eq > span { display: block; }
.mu .eq i { display: block; width: 100%; height: 100%; border-radius: 6px 6px 2px 2px; transform-origin: bottom; animation: mu-eq 1.6s ease-in-out infinite; }
@keyframes mu-eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.mu-off { font-family: var(--display); font-style: italic; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.2; color: var(--ink); text-align: center; margin: 30px auto 0; max-width: 30ch; }

/* one ask */
.mu-wantsec { max-width: 900px; padding: 50px clamp(18px, 4vw, 44px) 40px; text-align: center; }
.mu .mu-wh { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6vw, 76px); line-height: 1; color: var(--ink); margin: 0; }
.mu-wp { font-size: 19px; line-height: 1.7; color: var(--soft); margin: 18px auto 0; max-width: 48ch; }
.mu-ctawrap { margin-top: 28px; }
.mu .cta { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 0 24px; min-height: 52px; border-radius: 999px; background: linear-gradient(120deg, var(--sun), var(--tang) 40%, var(--pink)); color: #1c1035; font-weight: 700; }
.mu .cta:hover { filter: brightness(1.06); }
.mu-free { color: var(--quiet); margin: 22px 0 0; }

/* round buttons (hero play, previous, next): 44px and up */
.mu .pb { all: unset; box-sizing: border-box; cursor: pointer; width: 44px; height: 44px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink); border: 1px solid rgba(255,255,255,.25); transition: border-color .2s, opacity .2s; -webkit-tap-highlight-color: transparent; }
.mu .pb:hover { border-color: rgba(255,255,255,.6); }
.mu .pb.big { width: 52px; height: 52px; background: var(--ink); color: var(--night); border: 0; }
.mu .pb.big svg { margin-left: 2px; }
.mu .pb[aria-disabled="true"] { opacity: .4; cursor: default; }
.mu .pb[aria-disabled="true"]:hover { border-color: rgba(255,255,255,.25); }

/* now playing: floats at the bottom of the window, rests at the end of the page */
.mu-np { position: sticky; bottom: 24px; z-index: 5; margin: 0 auto; width: min(760px, calc(100% - 32px)); box-sizing: border-box; display: flex; align-items: center; gap: 16px; padding: 12px 14px 12px 12px; border-radius: 999px; background: rgba(28,16,53,.82); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 20px 50px rgba(0,0,0,.45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.mu-npdisc { width: 44px; height: 44px; border-radius: 50%; flex: none; background: conic-gradient(var(--sun), var(--tang), var(--pink), var(--vio), var(--teal), var(--sun)); }
.mu-npt { flex: 1; min-width: 0; }
.mu .mu-npn { display: block; font-size: 9px; color: var(--quiet); }
.mu-nptitle { display: block; font-family: var(--display); font-size: 22px; line-height: 1.25; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-npbar { display: block; height: 3px; border-radius: 2px; background: rgba(255,255,255,.15); margin-top: 6px; overflow: hidden; }
.mu-npbar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--sun), var(--pink)); transition: width .4s ease; }

@media (max-width: 860px) {
  .mu-bg { display: none; }
  .mu { background:
      radial-gradient(130% 1100px at 15% 0, rgba(255,61,139,.5), rgba(138,77,255,.32) 45%, transparent 75%),
      radial-gradient(120% 1300px at 75% 62%, rgba(255,122,61,.26), rgba(47,224,200,.12) 55%, transparent 80%),
      var(--night); }
  .mu-hero { grid-template-columns: 1fr; }
  .mu .tt { font-size: 30px; }
  .mu .trk { grid-template-columns: 44px minmax(0, 1fr); padding: 20px 16px; }
  .mu .dur { display: none; }
  .mu .body { grid-column: 1 / 3; }
  .mu .num { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .mu .rec, .mu .eq i { animation: none; }
  .mu .trk, .mu .pb, .mu-npbar > span { transition: none; }
}
