/* Blog (/blog): articoli lunghi in inglese. Usa token e componenti di style.css e dj.css.
   L'idea: ogni etichetta discografica è l'etichetta al centro di un vinile (lo stesso disco della homepage, /home/vinyl.webp).
   Tocchi una copertina e suona l'anteprima (blog.js); "Dig this label" apre il suo Dig nell'app. */

.bl-page { --g: 20px; --fill: #1d1d24; --fill-2: #282830; }
.bl-main { max-width: 1120px; margin: 0 auto; padding: 20px var(--g) 0; overflow-x: clip; }
.bl-main a { text-underline-offset: 3px; }
.bl-main p { font-size: 18px; line-height: 1.55; }

/* Apertura: titolo grande, la risposta subito sotto, i dieci dischi */
.bl-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 56px; align-items: center; padding: 16px 0 0; }
.bl-hero h1 { grid-column: 1 / -1; max-width: 12ch; }
.bl-hero .bl-answer { margin: 0; }
.bl-hero h1, .bl-index-head h1 { margin: 0; font: 800 clamp(48px, 7.6vw, 112px)/0.92 var(--display); letter-spacing: -0.045em; text-wrap: balance; }
.bl-answer { margin: 28px 0 0; font-size: clamp(19px, 1.6vw, 22px) !important; line-height: 1.45 !important; max-width: 46ch; }
.bl-by { margin: 18px 0 0; font-size: 15px !important; color: var(--muted); }
.bl-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 12px; }
.bl-wall a { display: grid; grid-template-columns: 100%; justify-items: center; gap: 6px; color: var(--text-2); text-decoration: none; font-size: 13px; font-weight: 600; text-align: center; line-height: 1.15; }
.bl-wall a::before, .bl-post-wall li::before { content: ''; grid-area: 1 / 1; width: 100%; aspect-ratio: 1; background: url(/home/vinyl.webp) center / 100% no-repeat; transition: transform 0.25s ease-out; }
.bl-wall img, .bl-post-wall img { grid-area: 1 / 1; place-self: center; width: 42%; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: var(--panel-2); }
.bl-wall span { grid-area: 2 / 1; }
.bl-wall a:hover { color: var(--text); }
.bl-wall a:hover::before { transform: rotate(40deg); }
.bl-wall li { animation: bl-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 150ms); }
@keyframes bl-in { from { opacity: 0; transform: translateY(24px) rotate(-60deg); } }
.bl-facts { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px 40px; margin: 24px 0 0; padding: 28px 0 0; }
.bl-facts dt { font: 600 clamp(30px, 3.4vw, 46px)/1 var(--mono); color: var(--accent); letter-spacing: -0.02em; }
.bl-facts dd { margin: 8px 0 0; color: var(--text-2); font-size: 15px; }

/* Come si legge: un campo lime */
.bl-how { margin: 56px 0 0 !important; padding: 28px 32px; border-radius: 20px; background: var(--accent); color: var(--accent-ink); font-size: clamp(19px, 1.6vw, 22px) !important; line-height: 1.4 !important; }

/* Le dieci in tabella */
.bl-glance { padding: 96px 0 0; }
.bl-glance h2, .bl-picked h2, .bl-faq h2 { margin: 0 0 24px; font: 800 clamp(32px, 4vw, 52px)/1.02 var(--display); letter-spacing: -0.03em; }
.bl-table-wrap { overflow-x: auto; border-radius: 16px; background: var(--panel); }
.bl-glance table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 640px; }
.bl-glance th, .bl-glance td { padding: 14px 18px; text-align: left; vertical-align: baseline; }
.bl-glance thead th { color: var(--muted); font-size: 14px; font-weight: 600; }
.bl-glance tbody tr:nth-child(odd) { background: var(--fill); }
.bl-glance tbody th a { color: var(--text); font-weight: 700; text-decoration: none; }
.bl-glance tbody th a:hover { color: var(--accent); }
.bl-glance td:nth-child(3), .bl-glance td:nth-child(5) { font-family: var(--mono); font-size: 15px; color: var(--text-2); white-space: nowrap; }
.bl-fine { margin: 12px 0 0; color: var(--muted); font-size: 14px !important; }

/* Un'etichetta: il disco a lato (fermo in alto mentre leggi), il testo, tre copertine che suonano */
.bl-label { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 56px; padding: 120px 0 0; scroll-margin-top: 64px; }
.bl-label:nth-of-type(even) { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.bl-label:nth-of-type(even) .bl-side { order: 2; }
.bl-side { position: sticky; top: 88px; align-self: start; }
.bl-disc { display: grid; grid-template-columns: 100%; width: min(100%, 340px); aspect-ratio: 1; margin: 0 auto; }
.bl-disc::before { content: ''; grid-area: 1 / 1; background: url(/home/vinyl.webp) center / 100% no-repeat; }
.bl-disc img { grid-area: 1 / 1; place-self: center; width: 42%; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: var(--panel-2); }
.bl-disc::before, .bl-disc img { transition: transform 0.4s ease-out; }
.bl-disc:hover::before, .bl-disc:hover img { transform: rotate(30deg); }
.bl-disc:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 50%; }
.bl-label.playing .bl-disc::before, .bl-label.playing .bl-disc img { animation: bl-spin 1.8s linear infinite; }
@keyframes bl-spin { to { transform: rotate(360deg); } }
.bl-stamp { margin: 18px 0 0 !important; font: 500 15px/1.45 var(--mono) !important; color: var(--text-2); text-align: center; }
.bl-stamp b { display: block; color: var(--accent); font-size: 20px; font-weight: 600; }
.bl-body h2 { margin: 0; font: 800 clamp(40px, 5.2vw, 76px)/0.95 var(--display); letter-spacing: -0.04em; }
.bl-city { display: block; margin-top: 10px; font: 600 clamp(22px, 2.2vw, 30px)/1.1 var(--font); letter-spacing: -0.01em; color: var(--muted); }
.bl-kicker { margin: 14px 0 22px !important; color: var(--text-2); font-weight: 500; font-size: 18px !important; max-width: 62ch; }
.bl-kicker a { color: var(--accent); font-weight: 700; }
.bl-body > p:not([class]) a { color: var(--text); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.bl-body > p:not([class]) a:hover { color: var(--accent); }
.bl-body > p:not([class]) { margin: 0 0 16px; max-width: 62ch; color: var(--text); }
.bl-body h3 { margin: 36px 0 14px; font-size: 18px; font-weight: 700; }
.bl-tip { margin: -4px 0 18px !important; max-width: 60ch; color: var(--text-2); font-size: 17px !important; }
.bl-recs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bl-rec { display: block; color: var(--text); text-decoration: none; }
.bl-cover { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--panel-2); }
.bl-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform 0.25s ease-out; }
.bl-play { position: absolute; right: 10px; bottom: 10px; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); display: none; place-items: center; transition: transform 0.15s; }
.bl-play::before { content: ''; margin-left: 4px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--accent-ink); }
.js .bl-play { display: grid; }
.bl-rec:hover .bl-cover img { transform: scale(1.03); }
.bl-rec:active .bl-play { transform: scale(0.92); }
.bl-rec.on .bl-play::before { margin: 0; width: 14px; height: 16px; border: 0; border-left: 5px solid var(--accent-ink); border-right: 5px solid var(--accent-ink); box-sizing: border-box; }
.bl-rec.wait .bl-play { animation: bl-pulse 0.8s ease-in-out infinite alternate; }
@keyframes bl-pulse { to { transform: scale(0.85); } }
.bl-rec:focus-visible { outline: none; }
.bl-rec:focus-visible .bl-cover { outline: 3px solid var(--accent); outline-offset: 3px; }
.bl-rec b { display: block; margin-top: 10px; font-size: 16px; line-height: 1.25; }
.bl-rec small { display: block; margin-top: 2px; color: var(--text-2); font-size: 15px; line-height: 1.3; }
.bl-rec .bl-note { color: var(--muted); font-size: 14px; }
.bl-now { min-height: 1.5em; margin: 14px 0 0 !important; font: 500 15px/1.5 var(--mono) !important; color: var(--accent); }
.bl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 18px; }
.bl-dig { width: auto; display: inline-flex; flex-direction: row; padding: 16px 28px; border-radius: 99px; font-size: 18px; }
.bl-out { color: var(--text); font-weight: 600; font-size: 16px; }
.bl-out:hover { color: var(--accent); }
.bl-src { margin: 22px 0 0 !important; color: var(--muted); font-size: 14px !important; line-height: 1.5 !important; }
.bl-src a { color: var(--text-2); }

/* Come sono state scelte, domande, chiusura */
.bl-picked { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0 56px; margin-top: 140px; padding: 48px 40px; border-radius: 20px; background: var(--panel); }
.bl-picked h2 { grid-row: span 2; }
.bl-picked p { margin: 0 0 14px; max-width: 60ch; }
.bl-picked a { color: var(--accent); }
.bl-faq { margin-top: 120px; padding: 0; border-top: 0; }
.bl-faq { display: grid; gap: 8px; }
.bl-faq h2 { margin-bottom: 16px; }
.bl-faq details { border: 0; padding: 0 22px; border-radius: 14px; background: var(--panel); }
.bl-faq summary { font-size: 19px !important; padding: 18px 0 !important; }
.bl-faq details p { font-size: 17px; }
.bl-end { margin-top: 120px; padding: clamp(64px, 8vw, 120px) var(--g); background: var(--accent); color: var(--accent-ink); }
.bl-end-in { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; align-items: center; }
.bl-phone { margin: 0; justify-self: end; width: min(100%, 300px); rotate: 3deg; }
.bl-phone video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 18px; background: var(--bg); }
.bl-end h2 { margin: 0; font: 800 clamp(52px, 9vw, 140px)/0.92 var(--display); letter-spacing: -0.045em; }
.bl-end p { max-width: 44ch; margin: 24px 0 0; font-size: clamp(19px, 1.6vw, 22px) !important; line-height: 1.4 !important; }
.bl-end-btn { display: inline-flex; margin-top: 32px; padding: 18px 30px; border-radius: 99px; background: var(--bg); color: var(--accent); font-weight: 700; font-size: 18px; text-decoration: none; transition: transform 0.12s; }
.bl-end-btn:hover { transform: translateY(-2px); }
.bl-end-btn:active { transform: scale(0.97); }
.bl-end .bl-more { margin-top: 40px; font-size: 16px !important; }
.bl-end .bl-more a { color: var(--accent-ink); font-weight: 600; }
.bl-page .l-foot { max-width: 1160px; border-top: 0; padding-inline: var(--g); }

/* Indice del blog */
.bl-index-head { padding: 24px 0 0; max-width: 900px; }
.bl-posts { list-style: none; margin: 72px 0 120px; padding: 0; }
.bl-posts > li > a { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 8px 48px; padding: 32px; border-radius: 20px; background: var(--panel); color: var(--text); text-decoration: none; transition: background 0.15s; }
.bl-posts > li > a:hover { background: var(--fill-2); }
.bl-post-wall { grid-row: span 3; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; align-self: center; }
.bl-post-wall li { display: grid; grid-template-columns: 100%; }
.bl-posts h2 { margin: 0; align-self: end; font: 800 clamp(32px, 4vw, 56px)/0.98 var(--display); letter-spacing: -0.035em; }
.bl-posts p { margin: 0; color: var(--text-2); }
.bl-posts small { font: 500 14px/1.4 var(--mono); color: var(--muted); }

@media (max-width: 860px) {
  .bl-hero { grid-template-columns: 1fr; gap: 24px; }
  .bl-hero h1 { font-size: clamp(44px, 12.5vw, 84px); }
  .bl-wall { grid-column: 1; }
  .bl-wall span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bl-facts { display: grid; grid-template-columns: 1fr 1fr; padding-top: 0; margin: 0; }
  .bl-how { padding: 22px 20px; }
  .bl-glance { padding-top: 72px; }
  .bl-label, .bl-label:nth-of-type(even) { display: flex; flex-direction: column; gap: 0; padding-top: 88px; }
  .bl-body { display: contents; }
  .bl-body > h2, .bl-body > .bl-kicker { order: -1; }
  .bl-label:nth-of-type(even) .bl-side { order: 0; }
  .bl-side { position: static; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; margin: 0 0 20px; }
  .bl-disc { width: 112px; }
  .bl-stamp { text-align: left; margin: 0 !important; }
  .bl-recs { gap: 10px; }
  .bl-rec b { font-size: 15px; }
  .bl-rec small { font-size: 14px; }
  .bl-play { width: 40px; height: 40px; right: 6px; bottom: 6px; }
  .bl-picked { grid-template-columns: 1fr; padding: 32px 20px; margin-top: 96px; }
  .bl-faq, .bl-end { margin-top: 96px; }
  .bl-end-in { grid-template-columns: 1fr; }
  .bl-phone { justify-self: center; width: min(72%, 260px); }
  .bl-posts > li > a { grid-template-columns: 1fr; padding: 20px; }
}
@media (max-width: 600px) {
  .bl-glance table { min-width: 0; }
  .bl-glance th:nth-child(n+4), .bl-glance td:nth-child(n+4) { display: none; }
  .bl-glance th, .bl-glance td { padding: 12px 14px; }
}
@media (max-width: 480px) {
  .bl-wall { gap: 8px; }
  .bl-wall span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bl-recs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bl-rec .bl-note { display: none; }
  .bl-dig { width: 100%; justify-content: center; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .bl-body > *, .bl-side, .bl-recs li, .bl-glance > *, .bl-picked > *, .bl-faq > *, .bl-end-text > *, .bl-phone, .bl-posts > li { animation: bl-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    .bl-recs li:nth-child(2) { animation-range: entry 6% entry 41%; }
    .bl-recs li:nth-child(3) { animation-range: entry 12% entry 47%; }
  }
}
@keyframes bl-rise { from { opacity: 0; transform: translateY(28px); } }
@media (prefers-reduced-motion: reduce) {
  .bl-wall li { animation: none; }
  .bl-label.playing .bl-disc::before, .bl-label.playing .bl-disc img, .bl-rec.wait .bl-play { animation: none; }
  .bl-disc::before, .bl-disc img, .bl-wall a::before, .bl-cover img { transition: none; }
}
