/* The blog: the list of posts (/blog) and one post (/blog/<slug>). Built on site.css. */

/* ----- the list ----- */
.blog { padding-block: 48px 40px; }
.blog .sec-head { max-width: 760px; }
.b-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.b-card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden;
  text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.b-card:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -20px rgba(28, 42, 74, .45); }
.b-card-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
/* play the post's song from the list: a round button on the picture, with a ring that fills as it plays */
.b-card-media { position: relative; }
.b-card-img { display: grid; text-decoration: none; }
.b-card-play { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: #fff; border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(255, 252, 246, .22); -webkit-backdrop-filter: blur(8px) saturate(1.3); backdrop-filter: blur(8px) saturate(1.3);
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .45); transition: background .2s ease, transform .15s ease; }
.b-card-play:hover, .b-card-play.playing { background: rgba(255, 252, 246, .36); transform: scale(1.05); }
.b-card-play svg { width: 18px; height: 18px; fill: currentColor; position: relative; z-index: 1; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.b-card-play .i-pause, .b-card-play.playing .i-play { display: none; }
.b-card-play.playing .i-pause { display: inline; }
.b-card-play i { position: absolute; inset: -1px; border-radius: 50%; --p: 0;
  background: conic-gradient(#fff calc(var(--p) * 360deg), transparent 0); -webkit-mask: radial-gradient(circle, transparent 20.5px, #000 21.5px); mask: radial-gradient(circle, transparent 20.5px, #000 21.5px); }
.b-card-img { aspect-ratio: 16 / 10; background: var(--paper-2) center / cover no-repeat; display: grid; place-items: center; font-size: 46px; color: var(--gold-d); }
.b-card-text { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.b-card-text small { font-family: var(--ui); font-size: 13px; color: var(--ink-soft); }
.b-card-text strong { font-size: 23px; font-weight: 600; line-height: 1.2; text-wrap: balance; }
.b-card-text p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.b-card-text span { margin-top: auto; padding-top: 8px; font-family: var(--ui); font-weight: 700; font-size: 14px; color: var(--accent); }

/* ----- one post ----- */
.b-draft { position: sticky; top: 0; z-index: 50; padding: 8px 16px; background: #a2513a; color: #fff; font: 600 14px/1.4 var(--ui); text-align: center; }
.b-draft a { color: #fff; }
.post { max-width: 760px; padding-block: 28px 40px; }
.b-crumb { font-family: var(--ui); font-size: 14px; margin-bottom: 26px; }
.b-crumb a { text-decoration: none; color: var(--ink-soft); }
.b-crumb a:hover { color: var(--ink); text-decoration: underline; }
.post-head h1 { font-size: clamp(36px, 6vw, 58px); }
.post-head .lede { font-size: 21px; color: var(--ink-soft); margin: 16px 0 0; }
.post-cover { display: block; width: 100%; margin-top: 28px; border-radius: 12px; }
.post-body { margin-top: 28px; font-size: 19px; line-height: 1.7; }
.post-body > p { margin: 0 0 1.1em; }
.post-body > h2 { font-size: clamp(26px, 3.6vw, 34px); margin: 1.6em 0 .6em; }
.post-body a:not(.btn) { color: var(--accent); text-underline-offset: 3px; }
.post-body figure { margin: 34px 0; }
.post-body figcaption:not(.b-actions) { margin-top: 10px; font-family: var(--ui); font-size: 14px; color: var(--ink-soft); text-align: center; }
.b-img img { display: block; width: 100%; border-radius: 10px; }
.b-video video { display: block; width: 100%; max-width: 380px; max-height: 80vh; margin: 0 auto; border-radius: 14px; background: #0b0d16; }
.b-tiktok blockquote { margin: 0 auto !important; }

/* the song: the player sits on its own photo, blurred, like the Album postcard */
.b-song { border-radius: 16px; overflow: hidden; background: var(--card); border: 1.5px solid var(--line); box-shadow: 0 24px 40px -30px rgba(28, 42, 74, .6); }
.b-player { position: relative; display: flex; gap: 22px; align-items: center; padding: 22px; color: #fffaf0; overflow: hidden;
  background: linear-gradient(135deg, var(--c2), var(--c3)); isolation: isolate; }
.b-blur { position: absolute; inset: -30px; z-index: -1; background: center / cover no-repeat; filter: blur(26px) saturate(1.2); opacity: .55; }
.b-blur::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, color-mix(in srgb, var(--c2) 55%, transparent), color-mix(in srgb, var(--c3) 75%, transparent)); }
.b-art { flex: 0 0 auto; width: 150px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: rgba(0, 0, 0, .25);
  display: grid; place-items: center; font-size: 54px; color: var(--c1); box-shadow: 0 14px 26px -12px rgba(0, 0, 0, .6); }
.b-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.b-kind { font-family: var(--caps); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--c1); }
.b-title { font-size: clamp(24px, 3.4vw, 32px); font-weight: 600; line-height: 1.15; }
.b-by { font-family: var(--hand); font-size: 23px; line-height: 1.1; opacity: .9; }
.b-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.b-play { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--c1); color: var(--c3); display: grid; place-items: center;
  box-shadow: 0 10px 18px -8px rgba(0, 0, 0, .55); transition: transform .15s ease; }
.b-play:hover { transform: scale(1.06); }
.b-play svg { width: 24px; height: 24px; fill: currentColor; }
.b-play .i-pause, .b-song.playing .b-play .i-play { display: none; }
.b-song.playing .b-play .i-pause { display: inline; }
.b-track { flex: 1; min-width: 0; }
.b-bar { height: 6px; border-radius: 99px; background: rgba(255, 250, 240, .25); cursor: pointer; position: relative; }
.b-bar::before { content: ""; position: absolute; inset: -10px 0; }
.b-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--c1); }
.b-time { display: block; margin-top: 6px; font-family: var(--ui); font-size: 13px; opacity: .8; font-variant-numeric: tabular-nums; }
.b-wait { margin: 10px 0 0; font-family: var(--ui); font-size: 15px; opacity: .85; }
.b-lyrics { padding: 22px 26px 6px; }
.b-lyrics h3 { font-family: var(--ui); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-d); margin-bottom: 12px; }
.b-lines { font-size: 17px; line-height: 1.6; }
.b-lines p { margin: 0 0 4px; break-inside: avoid; }
.b-song:not(.b-all) .b-long .b-lines { max-height: 15em; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.b-more { margin: 4px 0 0; padding: 6px 0; border: 0; background: none; font: 700 14px var(--ui); color: var(--accent); }
.b-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 18px 26px 24px; }
.b-open { font-family: var(--ui); font-size: 15px; color: var(--ink-soft); }

/* "make one like this" */
.b-cta { margin: 44px 0 10px; padding: 32px 30px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); position: relative; overflow: hidden; }
.b-cta::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: var(--stripe); }
.b-cta h2 { font-size: clamp(26px, 3.6vw, 34px); }
.b-cta p:not(.eyebrow) { color: var(--ink-soft); margin: 12px 0 20px; max-width: 34em; }
.post-body .b-cta h2 { margin: 0; }

@media (max-width: 600px) {
  .post-body { font-size: 18px; }
  .b-player { flex-direction: column; align-items: stretch; text-align: left; gap: 16px; }
  .b-art { width: 100%; max-width: 240px; margin: 0 auto; }
  .b-lyrics, .b-actions { padding-inline: 20px; }
  .b-cta { padding: 28px 20px; }
}

/* the back office's live preview only */
.b-ph { margin: 26px 0; padding: 26px 18px; border: 2px dashed var(--line); border-radius: 12px; text-align: center; font: 600 15px var(--ui); color: var(--ink-soft); }
.b-anchor { display: block; scroll-margin-top: 20px; }
