/* ==========================================================================
   Jonesy the Mouse — site styles
   Layout modeled on the Snape Publishing album-page template.
   Headings: Alice (serif display).  Body: sans-serif.
   ========================================================================== */

:root {
  --paper:  #FEF6EC;                      /* warm paper background */
  --ink:    #0F0F0F;                      /* primary text          */
  --muted:  #4A4A4A;                      /* secondary text        */
  --accent: #B24A2E;                      /* rust, from the artwork */
  --radius: 16px;
  --rule:   1px solid rgba(15, 15, 15, .11);
  --shadow: 0 6px 22px rgba(15, 15, 15, .12);
  --serif:  "Alice", Georgia, "Times New Roman", serif;
  --sans:   Futura, "Century Gothic", "URW Gothic", "Avenir Next", Arial, Helvetica, sans-serif;
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
.wrap { max-width: 1060px; margin-inline: auto; padding: 20px; }

/* ===== Header ===== */
header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 6px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 62px; width: auto; }
.brand .tag { color: var(--muted); font-size: .95rem; font-family: var(--sans); }

/* ===== Album hero ===== */
.hero { padding-top: 18px; }
.hero h1 { margin: 0 0 6px; font-size: clamp(2rem, 5vw, 3.2rem); }
.hero .byline { font-size: 1.15rem; color: var(--ink); margin: 0 0 8px; }
.meta { color: var(--muted); margin: 0 0 4px; }
.platforms { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 4px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }

.btn {
  display: inline-block;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  font-family: var(--sans);
  transition: transform .12s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

/* ===== Panels ===== */
.panel {
  background: #fff;
  border: var(--rule);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  margin-top: 22px;
}
.panel h2 { margin: 0 0 12px; font-size: 1.6rem; }

/* ===== Art strip (front / back) ===== */
.artgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
figure { margin: 0; }
figure img { border-radius: 10px; border: var(--rule); }
figcaption { color: var(--muted); font-size: .92rem; margin-top: 8px; text-align: center; }

/* single release: one centered cover */
.art-single { display: flex; justify-content: center; }
.art-single figure { max-width: 360px; width: 100%; }

/* "coming soon" note in place of a player */
.soon {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px dashed rgba(15,15,15,.35);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--muted);
  font-style: italic;
  background: rgba(178,74,46,.05);
}
.soon::before { content: "\25CF"; color: var(--accent); font-style: normal; }

/* ===== Two-column section (tracklist + players) ===== */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; align-items: start; }
.cols .panel { margin-top: 0; }

.tracks ol { padding-left: 22px; margin: 6px 0 0; }
.tracks li { margin: 10px 0; font-size: 1.05rem; }
.tracks .dur { color: var(--muted); }

/* audio players */
.track { margin: 16px 0; padding-bottom: 14px; border-bottom: var(--rule); }
.track:last-child { border-bottom: 0; padding-bottom: 0; }
.audiorow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.audiorow .title { font-weight: 700; }
.isrc { color: var(--muted); font-size: .82rem; letter-spacing: .02em; }
audio { width: 100%; height: 38px; }
.preview-note { color: var(--muted); font-size: .9rem; margin: 0 0 4px; }

/* ===== Lyrics ===== */
#lyrics details { border-top: var(--rule); padding: 12px 0 4px; }
#lyrics details:first-of-type { border-top: 0; }
#lyrics summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.08rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
#lyrics summary::-webkit-details-marker { display: none; }
#lyrics summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border: 1px solid rgba(15,15,15,.3);
  border-radius: 50%;
  font-weight: 700;
  color: var(--accent);
}
#lyrics details[open] summary::before { content: "\2212"; } /* minus */
#lyrics pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: .7em 0 1.1em;
  font-family: var(--sans);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* ===== Main-page album grid ===== */
.section-label {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin: 30px 0 6px;
}
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin: 18px 0 10px;
}
.album-card {
  background: #fff;
  border: var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  display: block;
}
.album-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(15,15,15,.2); }
.album-card .cover-wrap { aspect-ratio: 1/1; overflow: hidden; }
.album-card img { width: 100%; height: 100%; object-fit: cover; }
.album-card .card-body { padding: 14px 16px 18px; }
.album-card h3 { margin: 0 0 4px; font-size: 1.3rem; }
.album-card .card-meta { color: var(--muted); font-size: .9rem; font-family: var(--sans); }

/* ===== Footer ===== */
footer.site {
  border-top: var(--rule);
  margin-top: 30px;
  padding: 20px 0 40px;
  color: var(--muted);
  font-size: .92rem;
}
footer.site a { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .cols { grid-template-columns: 1fr; }
  .artgrid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
