/* Shared styling for the Music Waveform blog. Mirrors the brand palette used on
   the legal pages so standalone pages feel like one site. Light theme only, to
   match privacy.html / terms.html. */
:root {
  --bg: #ffffff;
  --panel: #f5f4fa;
  --border: #e3e0ee;
  --text: #18161f;
  --text-dim: #565266;
  --text-faint: #8d89a0;
  --brand: #6e3aed;
  --brand-grad: linear-gradient(115deg, #6e3aed 0%, #c838b6 48%, #ff6b5e 100%);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 32px 24px 72px; }

/* Top bar / brand */
.topbar { display: flex; align-items: center; gap: 12px; padding: 8px 0 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  color: #fff; background: var(--brand-grad);
  box-shadow: 0 2px 8px rgba(110, 58, 237, 0.28), 0 6px 20px rgba(240, 70, 141, 0.18);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.brand-name .accent {
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Breadcrumb */
.crumbs { font-size: 13px; color: var(--text-faint); margin: 0 0 18px; }
.crumbs a { color: var(--text-dim); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 2px; }
.crumbs span { margin: 0 6px; }

/* Headings + type */
h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.08; letter-spacing: -0.02em; margin: 6px 0 10px;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 26px); letter-spacing: -0.01em; margin: 44px 0 12px;
}
h3 { font-family: var(--font-display); font-size: 18px; margin: 28px 0 8px; letter-spacing: -0.01em; }
.kicker {
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand); margin: 0 0 4px;
}
.meta { color: var(--text-faint); font-size: 14px; margin: 0 0 4px; }
.lead { font-size: 19px; color: var(--text-dim); margin: 14px 0 8px; }
p, li { color: var(--text-dim); }
strong { color: var(--text); font-weight: 600; }
a { color: var(--brand); }
article ul, article ol { padding-left: 1.2em; }
li { margin: 6px 0; }

/* Figures. Every image on the blog is rasterised from the renderers themselves
   (see tools/make-images.ts), so they are all flat colour on black — the dark
   plate below is the same surface the exporter draws on. width/height are set
   on each <img> so the page reserves the space before the file arrives. */
figure {
  margin: 26px 0;
}
figure img {
  display: block; width: 100%; height: auto;
  border-radius: 12px; background: #000;
  border: 1px solid var(--border);
}
figcaption {
  margin: 10px 2px 0; font-size: 14px; line-height: 1.5; color: var(--text-faint);
}
/* The hero sits directly under the lead, before the first h2. */
figure.hero { margin: 24px 0 8px; }

/* Direct answer. The first thing under the title on every post: the question
   the page is for, answered in full in one block, with the browser constraint
   attached. Written to be liftable — by a reader in a hurry, and by a model
   that has to answer from the page without quoting three paragraphs. */
.answer {
  margin: 18px 0 26px; padding: 18px 22px;
  border: 1px solid var(--border); border-left: 3px solid var(--brand);
  border-radius: 10px; background: var(--panel);
}
.answer p { margin: 0; color: var(--text); font-size: 16.5px; }
.answer p + p { margin-top: 8px; color: var(--text-dim); font-size: 15px; }
.answer .answer-q {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 6px;
}

/* Callout / tip */
.callout {
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 20px; margin: 22px 0;
}
.callout strong { color: var(--text); }

/* Primary call-to-action card */
.cta {
  margin: 40px 0 8px; padding: 24px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; justify-content: space-between;
}
.cta-copy { flex: 1 1 320px; }
.cta-copy h2 { margin: 0 0 4px; font-size: 20px; }
.cta-copy p { margin: 0; font-size: 15px; }
.btn-accent {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: #fff; background: var(--brand-grad); border: 0; border-radius: 10px;
  padding: 12px 20px; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(110, 58, 237, 0.28), 0 6px 20px rgba(240, 70, 141, 0.18);
}
.btn-accent:hover { filter: brightness(1.05); }

/* AI-authorship disclosure */
.ai-note {
  margin: 36px 0 0; padding: 12px 16px; border-left: 3px solid var(--border);
  color: var(--text-faint); font-size: 13.5px; line-height: 1.55;
}

/* Related / read-next links */
.related { margin: 40px 0 0; }
.related h2 { font-size: 18px; margin: 0 0 12px; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin: 0; border-top: 1px solid var(--border); }
.related a {
  display: block; padding: 12px 2px; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; color: var(--text);
}
.related a:hover { color: var(--brand); }

/* Blog index cards */
.index-head { margin: 0 0 8px; }
.post-list { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.post-card {
  border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px;
  transition: border-color .15s ease, transform .15s ease;
}
.post-card:hover { border-color: var(--brand); transform: translateY(-1px); }
.post-card a { text-decoration: none; }
/* Card banner. A wide strip rather than a square: it is a frame of a video, and
   cropping it to a thumbnail would misrepresent the shape of the output. */
.post-thumb {
  display: block; width: 100%; height: auto; aspect-ratio: 12 / 5;
  object-fit: cover; background: #000;
  border-radius: 9px; margin: 0 0 14px;
}
.post-card h2 { font-size: 19px; margin: 0 0 6px; color: var(--text); }
.post-card:hover h2 { color: var(--brand); }
.post-card p { margin: 0; font-size: 15px; }
.post-card .tag {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 8px;
}

/* Footer */
footer.legal-foot {
  margin-top: 52px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px;
}
footer.legal-foot a { font-family: var(--font-display); font-weight: 600; text-decoration: none; }
footer.legal-foot a:hover { text-decoration: underline; text-underline-offset: 2px; }
