/* ========== "Tropical Scrawl" THEME — see docs/superpowers/specs/ ==========
   White page; tropical-wallpaper header panel with the album photo
   overhanging onto a semi-transparent content table; the album lyrics
   run as a faint hand-written stream behind everything.
   Edit these tokens to retune/swap.                                          */
:root {
  --bg:    #ffffff;
  --table: rgba(255,255,255,.50);
  --ink:   #cfcfcf;   /* the hand-written scrawl */
  --text:  #3c3c3c;
  --head:  #262626;
  --muted: #9a9a9a;
  --rule:  #e6e6e6;
  --line:  #bdbdbd;
  --serif: Georgia, "Times New Roman", serif;
  --hand:  "Reenie Beanie", "Bradley Hand", cursive;
}
/* ========================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body {
  font-family: var(--serif);
  color: var(--text);
  background: var(--bg);
  position: relative;
  min-height: 100vh;
}

/* subtle film grain, above the scrawl, below content */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 4;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* ---- The lyric scrawl: fixed full-viewport wall behind everything ---- */
.scrawl {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  pointer-events: none; user-select: none;
  font-family: var(--hand); color: var(--ink); opacity: .85;
  font-size: 28px; line-height: 1.18; word-spacing: 2px;
  columns: 240px; column-gap: 36px; padding: 30px;
  text-align: left; transform: rotate(-5deg) scale(1.22);
}

/* ---- One centered strip: wallpaper panel + table ---- */
.stage {
  position: relative; z-index: 1;
  width: min(880px, 94vw); margin: 0 auto; padding: 30px 0 72px;
}

.pano {
  position: relative; height: 340px; overflow: hidden;
  border-radius: 6px 6px 0 0; box-shadow: 0 4px 18px rgba(60,50,45,.16);
}
.pano::before {
  content: ""; position: absolute; inset: -8px;
  background: url("assets/wallpaper.jpg") center/cover no-repeat;
  filter: blur(.6px) saturate(1.05); transform: scale(1.03);
}

/* polaroid: sibling of .pano (never clipped) — sits low on the wallpaper
   and overhangs the seam onto the table */
.cover-frame {
  position: absolute; top: 85px; left: 50%; z-index: 5;
  transform: translateX(-50%) rotate(-2deg);
  background: #fff; width: min(316px, 68vw); padding: 13px 13px 40px;
  box-shadow: 0 24px 46px rgba(45,38,36,.46);
}
.cover { display: block; width: 100%; height: auto; }

.table {
  position: relative;
  background: var(--table);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  border: 1px solid #efefef; border-top: 0; border-radius: 0 0 6px 6px;
  box-shadow: 0 12px 32px rgba(60,50,45,.12);
  padding: 118px 36px 34px;          /* top = polaroid overhang + breathing */
}

/* web: forty/date/countdown/links left, full tracklist right */
.cols {
  display: grid; grid-template-columns: 300px 1fr; gap: 46px;
  text-align: left; align-items: start;
}

/* ---- Left column ---- */
.eyebrow {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.title { font-size: 60px; font-style: italic; letter-spacing: 1px; color: var(--head); line-height: 1; }
.release { font-size: 12px; letter-spacing: 1px; color: var(--muted); margin-top: 6px; }

.countdown {
  display: flex; gap: 18px; margin: 18px 0 22px; padding: 12px 0;
  border-top: 1px dashed var(--rule); border-bottom: 1px dashed var(--rule);
  font-size: 11px; letter-spacing: 1px; color: var(--muted);
}
.countdown b { display: block; font-size: 21px; color: var(--head); font-style: normal; }
.countdown.is-hidden { display: none; }

.links { display: flex; flex-direction: column; gap: 10px; }
.link-btn {
  display: block; padding: 14px 12px; text-align: center; text-decoration: none;
  color: var(--head); border: 1.5px solid var(--line); border-radius: 2px;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  background: rgba(255,255,255,.55);
}
.link-btn:hover { background: var(--head); color: #fff; border-color: var(--head); }

/* ---- Right column: full track listing, no scroll ---- */
.col-r h2 {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px; padding-bottom: 8px;
  border-bottom: 1px dashed var(--rule);
}
.tracks { list-style: none; }
.track { position: relative; }
.track + .track { border-top: 1px dashed var(--rule); }

/* no-JS fallback rows (plain listing, no audio) */
.track > .t-num, .track > .t-title { display: inline-block; padding: 9px 0; }
.track > .t-num { width: 2.2em; color: var(--muted); font-size: 13px; }
.track > .t-title { font-size: 15px; }

/* JS-enhanced interactive rows */
.track-row {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 9px 4px; min-height: 44px;
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--serif); color: var(--text); text-align: left;
  border-radius: 2px; transition: background .12s;
}
.track-row:hover, .track-row:focus-visible { background: rgba(38,38,38,.05); outline: none; }
.track-row .t-num {
  flex: none; width: 1.9em; padding: 0; font-size: 12px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.track-row .t-title { flex: 1 1 auto; padding: 0; font-size: 15px; line-height: 1.25; }
.t-ctrl {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--line); color: #777; background: transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; padding-left: 1px; transition: background .15s, color .15s;
}
.track-row:hover .t-ctrl, .track-row:focus-visible .t-ctrl {
  background: var(--head); color: #fff; border-color: var(--head);
}
.track.is-playing { background: linear-gradient(90deg, rgba(38,38,38,.07), rgba(38,38,38,0)); }
.track.is-playing .t-title { font-style: italic; }
.track.is-playing .t-ctrl { background: var(--head); color: #fff; border-color: var(--head); padding-left: 0; }
.track[aria-disabled="true"] .t-ctrl { opacity: .35; }
.track[aria-disabled="true"] .track-row { cursor: default; }
.track-progress {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--head); transition: width .25s linear;
}

.foot {
  margin-top: 30px; font-size: 11px; letter-spacing: 1px;
  color: var(--muted); text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .track-progress, .t-ctrl, .track-row { transition: none; }
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .cols { grid-template-columns: 1fr; gap: 32px; }
  .table { padding: 110px 22px 30px; }
}
@media (max-width: 560px) {
  .title { font-size: 46px; }
  .pano { height: 250px; }
  /* cap the polaroid so its height is predictable, nudge it up, and give
     the table enough top clearance that content never lands under it */
  .cover-frame { top: 50px; width: min(280px, 70vw); }
  .table { padding: 124px 20px 30px; }
}
