/* The Practice Room: Pocket Jam's blog. Builds on /styles.css (tokens, nav bar, footer). */

.post, .shelf { max-width: 720px; margin: 0 auto; padding: 108px var(--g) 64px; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--label-3); }
.crumbs a { color: var(--tint-dark); }
.crumbs a:hover { text-decoration: underline; }

/* ── article header ── */
.post-head { margin-top: 28px; }
.post-head .kicker { margin-bottom: 14px; }
.post-head h1, .shelf h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -.03em; }
.post-head h1 em, .shelf h1 em { font-style: normal; color: var(--tint); }
.dek { margin-top: 20px; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.42; color: var(--label-2); letter-spacing: -.02em; }
.meta { margin-top: 24px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--label-3); }
.meta .av { width: 28px; height: 28px; border-radius: 8px; background: radial-gradient(circle, #fff 0 9%, var(--tint) 10% 30%, #1c1c1e 31%); }
.meta b { color: var(--label); font-weight: 600; }
.meta .when { white-space: nowrap; }
.meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--label-3); }

/* ── table of contents ── */
.toc { margin-top: 36px; padding: 20px 24px; border-radius: var(--r-lg); background: var(--bg-2); }
.toc p { font-size: 14px; font-weight: 600; color: var(--label-2); }
.toc ol { margin-top: 10px; padding-left: 20px; display: grid; gap: 6px; }
.toc li { font-size: 16px; color: var(--label-3); }
.toc a { color: var(--label); }
.toc a:hover { color: var(--tint-dark); }

/* ── body copy ── */
.prose { margin-top: 8px; }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 64px; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; letter-spacing: -.025em; scroll-margin-top: 80px; }
.prose h2 .n { display: block; margin-bottom: 8px; font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: -.01em; color: var(--tint-dark); }
.prose h3 { margin-top: 40px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.prose p, .prose li { font-size: 18px; line-height: 1.6; color: var(--label-2); letter-spacing: -.016em; }
.prose p b, .prose li b { color: var(--label); font-weight: 600; }
.prose ul, .prose ol { padding-left: 24px; display: grid; gap: 10px; }
.prose a { color: var(--tint-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose .lede { font-size: 20px; line-height: 1.55; color: var(--label); }
.prose blockquote { padding: 4px 0 4px 22px; border-left: 3px solid var(--tint); font-family: var(--serif); font-size: clamp(22px, 2.4vw, 27px); line-height: 1.3; letter-spacing: -.02em; color: var(--label); }

/* callout cards */
.note { padding: 20px 22px; border-radius: var(--r-lg); background: var(--bg-2); }
.note p { font-size: 17px; }
.note .t { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--tint-dark); }

/* tables */
.tbl { overflow-x: auto; border-radius: var(--r-lg); background: var(--bg-2); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 16px; }
.tbl th, .tbl td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: .5px solid var(--sep); color: var(--label-2); line-height: 1.45; }
.tbl th { font-size: 14px; font-weight: 600; color: var(--label); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { color: var(--label); font-weight: 600; white-space: nowrap; }

/* "try it in Pocket Jam" steps */
.tryit { margin-top: 28px; padding: 28px; border-radius: var(--r-xl); background: var(--deck); color: #f5f5f7; }
.tryit .t { font-size: 14px; font-weight: 600; color: #ff8a5c; }
.tryit h3 { margin-top: 6px; font-family: var(--serif); font-weight: 400; font-size: 28px; letter-spacing: -.02em; color: #fff; }
.tryit ol { margin-top: 18px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.tryit li { counter-increment: s; position: relative; padding-left: 42px; color: #c7c7cc; font-size: 17px; line-height: 1.5; }
.tryit li::before { content: counter(s); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--raised); color: #fff; font-size: 14px; font-weight: 600; }
.tryit li b { color: #fff; }

/* FAQ */
.faq { margin-top: 20px; display: grid; gap: 10px; }
.faq details { border-radius: var(--r-md); background: var(--bg-2); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative; font-size: 17px; font-weight: 600; color: var(--label); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 14px; font-size: 22px; font-weight: 400; color: var(--tint-dark); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; margin: 0; }

/* end-of-post app card */
.get { margin-top: 72px; display: grid; grid-template-columns: auto 1fr; gap: 20px 24px; align-items: center; padding: 28px; border-radius: var(--r-xl); background: var(--bg-2); }
.get .jam { width: 84px; height: 84px; }
.get h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; }
.get p { margin-top: 8px; font-size: 16px; color: var(--label-2); line-height: 1.5; }
.get .store-badge { margin-top: 14px; display: inline-block; }
.get .icon { width: 84px; height: 84px; border-radius: 20px; box-shadow: var(--shadow); }

/* related posts */
.more { margin-top: 64px; }
.more > p { font-size: 14px; font-weight: 600; color: var(--label-2); }
.more ul { margin-top: 14px; list-style: none; display: grid; gap: 1px; border-radius: var(--r-lg); overflow: hidden; background: var(--sep); }
.more li a { display: grid; gap: 4px; padding: 18px 22px; background: var(--bg-2); transition: background .2s var(--ease); }
.more li a:hover { background: var(--fill); }
.more li b { font-family: var(--serif); font-weight: 400; font-size: 21px; letter-spacing: -.02em; color: var(--label); }
.more li span { font-size: 15px; color: var(--label-3); }

/* ── blog index ── */
.shelf { max-width: 1080px; }
.shelf-head { max-width: 720px; }
.shelf-head .kicker { margin-top: 28px; }
.cards { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-xl); overflow: hidden; background: var(--bg-2); transition: transform .35s var(--spring), box-shadow .35s var(--spring); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .art { position: relative; height: 180px; background: var(--deck); overflow: hidden; }
.card .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.card .art .no { position: absolute; left: 20px; top: 16px; font-size: 13px; font-weight: 600; color: #8e8e93; }
.card .body { padding: 22px 24px 26px; display: grid; gap: 10px; align-content: start; }
.card h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.12; letter-spacing: -.02em; }
.card p { font-size: 16px; line-height: 1.5; color: var(--label-2); }
.card .go { font-size: 15px; font-weight: 600; color: var(--tint-dark); }

/* ── the player: a little piano roll in the app's dark deck ── */
.roll { margin: 32px 0; padding: 18px; border-radius: var(--r-xl); background: var(--deck); color: #f5f5f7; box-shadow: var(--shadow); }
.roll-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.roll-play { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: var(--tint); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: filter .2s var(--ease), transform .2s var(--ease); }
.roll-play:hover { filter: brightness(1.08); }
.roll-play:active { transform: scale(.97); }
.roll-play::before { content: ''; width: 0; height: 0; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.roll.on .roll-play::before { width: 10px; height: 12px; border: 0; background: linear-gradient(90deg, #fff 0 35%, transparent 35% 65%, #fff 65%); }
.roll-title { font-size: 15px; font-weight: 600; color: #fff; margin-right: auto; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--raised); color: #c7c7cc; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.chip:hover { color: #fff; }
.chip[aria-pressed="true"] { background: #fff; color: #1c1c1e; }
.roll-grid { position: relative; margin-top: 14px; display: grid; grid-template-columns: 34px 1fr; border-radius: 12px; overflow: hidden; background: var(--deck-2); }
.roll-keys { display: grid; }
.roll-keys span { display: flex; align-items: center; justify-content: flex-end; padding-right: 6px; font-size: 10px; font-weight: 600; color: #8e8e93; background: #232325; border-bottom: 1px solid #1c1c1e; }
.roll-keys span.blk { background: #18181a; color: #636366; }
.roll-keys span.home { color: #ff8a5c; }
.roll-field { position: relative; }
.roll-field .row { border-bottom: 1px solid #1f1f21; }
.roll-field .row.blk { background: rgba(0, 0, 0, .18); }
.roll-field .row.home { background: rgba(255, 106, 51, .08); }
.roll-field .beats { position: absolute; inset: 0; pointer-events: none; }
.roll-field .beats i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .05); }
.roll-field .beats i.bar { background: rgba(255, 255, 255, .16); }
.nt { position: absolute; border-radius: 4px; background: var(--take); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); transition: filter .1s, transform .1s; }
.nt.hl { background: repeating-linear-gradient(135deg, #ffc53d 0 4px, #ff9f1a 4px 8px); }
.nt.lit { filter: brightness(1.35); transform: scaleY(1.15); }
.nt.vib { background-image: repeating-linear-gradient(90deg, transparent 0 6px, rgba(255, 255, 255, .28) 6px 8px); }
.playhead { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .6); opacity: 0; pointer-events: none; }
.roll.on .playhead { opacity: 1; }
.lanes { margin-top: 8px; display: grid; gap: 4px; }
.lane-row { display: grid; grid-template-columns: 34px 1fr; align-items: center; height: 18px; }
.lane-row span { font-size: 10px; font-weight: 600; color: #8e8e93; text-align: right; padding-right: 6px; }
.lane-row div { position: relative; height: 100%; border-radius: 5px; background: var(--deck-2); overflow: hidden; }
.lane-row div i { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; background: #48484a; transition: background .3s var(--ease); }
.lane-row.live div i { background: var(--song); }
.lane-row.live[data-k="drums"] div i { background: #8e8e93; }
.lane-row.live[data-k="pad"] div i { background: #a78bfa; }
.lane-row.live[data-k="bass"] div i { background: #5fa3dd; }
.roll figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: #a1a1a6; }
.roll figcaption b { color: #fff; font-weight: 600; }

@media (max-width: 760px) {
  .tbl { background: none; border-radius: 0; overflow: visible; }
  .tbl thead { display: none; }
  .tbl table, .tbl tbody, .tbl tr, .tbl td { display: block; }
  .tbl tr { padding: 14px 18px; border-radius: var(--r-md); background: var(--bg-2); }
  .tbl tr + tr { margin-top: 8px; }
  .tbl td { padding: 2px 0; border: 0; font-size: 16px; }
  .tbl td:first-child { white-space: normal; font-size: 17px; margin-bottom: 2px; }
  .tbl td + td::before { content: attr(data-l) ': '; color: var(--label-3); font-weight: 600; }
  .cards { grid-template-columns: 1fr; }
  .get { grid-template-columns: 1fr; }
  .get .store-badge { display: flex; }
  .prose p, .prose li { font-size: 17px; }
  .roll { padding: 14px; margin-left: calc(-1 * min(var(--g), 12px)); margin-right: calc(-1 * min(var(--g), 12px)); }
  .tryit { padding: 22px; }
}
