/* Backbeat: Zinga Fitness. Step-sequencer identity. */
@font-face { font-family: "Unbounded"; src: url(../fonts/unbounded.woff2) format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Rubik"; src: url(../fonts/rubik.woff2) format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Rubik"; src: url(../fonts/rubik-italic.woff2) format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
	--paper: #F5F1FB;
	--paper-2: #ECE5F7;
	--pad: #DED3EE;
	--card: #FFFFFF;
	--ink: #26173D;
	--ink-2: #4E4067;
	--link: #5A2FD0;
	--coral: #FF4F5E;
	--tang: #FF8A1F;
	--teal: #0E9C8F;
	--violet: #7A4DF0;
	--sky: #2F7BE0;
	--sun: #F2B200;
	--deck: #2E1F48;
	--deck-off: #433262;
	--display: "Unbounded", "Arial Black", sans-serif;
	--body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
	--r-lg: 26px;
	--r-md: 18px;
	--wrap: 1200px;
	--gut: 16px;
	--tone: var(--ink);
}
@media (min-width: 720px) { :root { --gut: 32px; } }

.tone-coral { --tone: var(--coral); }
.tone-tang { --tone: var(--tang); }
.tone-teal { --tone: var(--teal); }
.tone-violet { --tone: var(--violet); }
.tone-sky { --tone: var(--sky); }
.tone-sun { --tone: var(--sun); }
.tone-ink { --tone: var(--ink); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 1.0625rem;
	line-height: 1.6;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
.bb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bb-skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 10; }
.bb-skip:focus { left: 12px; }

/* ---------- beat strip (signature) ---------- */
.bb-beat { display: inline-flex; gap: 3px; vertical-align: middle; }
.bb-beat i { display: block; width: var(--s, 6px); height: var(--s, 6px); border-radius: calc(var(--s, 6px) / 3.2); background: var(--pad); }
.bb-beat i:nth-child(4n+1) { margin-left: var(--bar, 0px); }
.bb-beat i:first-child { margin-left: 0; }
.bb-beat i.on { background: var(--tone); }
.bb-beat--xs { --s: 6px; gap: 2px; --bar: 2px; }
.bb-beat--md { --s: 11px; gap: 3px; --bar: 4px; }
.bb-beat--lg { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 4px; width: 100%; max-width: 640px; }
.bb-beat--lg i { width: auto; height: auto; aspect-ratio: 1; border-radius: 22%; }
.bb-beat--lg i:nth-child(4n+1) { margin-left: 0; }
.bb-beat--lg i:nth-child(4n+1):not(.on) { background: #CFC2E6; }
@media (min-width: 720px) { .bb-beat--lg { gap: 6px; } }

@media (prefers-reduced-motion: no-preference) {
	.bb-beat.is-live i { animation: bb-pass 4s linear infinite; animation-delay: calc(var(--i) * 0.25s); }
	.bb-beat.is-live i.on { animation-name: bb-hit; }
}
@keyframes bb-pass { 0% { filter: brightness(1.35); } 6.25%, 100% { filter: none; } }
@keyframes bb-hit { 0% { transform: scale(1.14); filter: brightness(1.12) saturate(1.1); } 6.25% { transform: scale(1); filter: none; } 100% { transform: scale(1); } }

/* ---------- header ---------- */
.bb-top { background: var(--paper); border-bottom: 2px solid var(--ink); }
.bb-top__in { max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gut); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 28px; }
.bb-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.bb-logo__pads { display: grid; grid-template-columns: repeat(2, 11px); gap: 3px; }
.bb-logo__pads i { width: 11px; height: 11px; border-radius: 3px; }
.bb-logo__pads i:nth-child(1) { background: var(--coral); }
.bb-logo__pads i:nth-child(2) { background: var(--pad); }
.bb-logo__pads i:nth-child(3) { background: var(--violet); }
.bb-logo__pads i:nth-child(4) { background: var(--sun); }
.bb-logo__word { font-family: var(--display); font-weight: 800; font-size: 1.55rem; letter-spacing: -0.03em; line-height: 1; }
.bb-logo__sub { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-2); align-self: flex-end; margin-bottom: 2px; margin-left: -4px; }
.bb-nav { min-width: 0; }
.bb-nav__list, .bb-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 22px; flex-wrap: wrap; justify-content: flex-end; }
.bb-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 6px 0; border-bottom: 3px solid transparent; }
.bb-nav a:hover, .bb-nav .current-menu-item a, .bb-nav .current-post-ancestor a, .bb-nav .current-category-ancestor a { border-bottom-color: var(--coral); }
.bb-find { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); background: var(--paper-2); }
.bb-find:hover { background: var(--pad); }
@media (max-width: 899px) {
	.bb-top__in { grid-template-columns: 1fr auto; }
	.bb-nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
	.bb-nav::-webkit-scrollbar { display: none; }
	.bb-nav__list, .bb-nav ul { flex-wrap: nowrap; justify-content: flex-start; white-space: nowrap; padding-right: 32px; }
}

/* ---------- layout ---------- */
.bb-main { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut) 72px; }
.bb-kicker { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 14px; }
.bb-btn { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; padding: 14px 24px; border-radius: 999px; box-shadow: 4px 4px 0 var(--coral); transition: transform .15s ease, box-shadow .15s ease; }
.bb-btn:hover { color: #fff; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--coral); }
.bb-textlink { font-weight: 600; }
.bb-sechead { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; }
.bb-sechead h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 700; }

/* ---------- hero + board ---------- */
.bb-hero { display: grid; gap: 36px; padding: 44px 0 56px; align-items: center; }
@media (min-width: 1000px) { .bb-hero { grid-template-columns: 5fr 6fr; gap: 56px; padding: 72px 0 80px; } }
.bb-hero__title { font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 20px; }
.bb-hero__title span { font-weight: 500; color: var(--link); }
.bb-hero__lede { font-size: 1.15rem; color: var(--ink-2); max-width: 34rem; margin: 0 0 28px; }
.bb-board { background: var(--deck); border-radius: var(--r-lg); padding: 18px 16px 10px; box-shadow: 0 2px 0 var(--ink), 0 24px 48px -28px rgba(38, 23, 61, .55); }
@media (min-width: 720px) { .bb-board { padding: 22px 24px 14px; } }
.bb-board__cap { display: flex; justify-content: space-between; gap: 12px; margin: 0 4px 10px; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: #BFB2D8; }
@media (max-width: 719px) { .bb-board__cap span + span { display: none; } }
.bb-board__rows { list-style: none; margin: 0; padding: 0; }
.bb-board .bb-beat i { background: var(--deck-off); }
.bb-board .bb-beat i:nth-child(4n+1):not(.on) { background: #56447A; }
.bb-board .bb-beat i.on { background: var(--tone); }
.bb-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 12px 6px; border-top: 1px solid rgba(255, 255, 255, .08); text-decoration: none; color: #fff; border-radius: 12px; }
.bb-board__rows li:first-child .bb-row { border-top: 0; }
.bb-row:hover, .bb-row:focus-visible { background: rgba(255, 255, 255, .06); color: #fff; }
.bb-row__name { font-family: var(--display); font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; }
.bb-row__n { font-size: 0.8rem; color: #BFB2D8; }
.bb-row .bb-beat { grid-column: 1 / -1; max-width: none; }
@media (min-width: 720px) {
	.bb-row { grid-template-columns: 11rem 1fr; }
	.bb-row__name { grid-row: 1; }
	.bb-row__n { grid-row: 2; grid-column: 1; }
	.bb-row .bb-beat { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- chips + cards ---------- */
.bb-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink); text-decoration: none; padding: 4px 11px 4px 9px; border: 2px solid var(--tone); border-radius: 999px; background: var(--card); line-height: 1.3; }
.bb-chip::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--tone); }
.bb-chip:hover { background: var(--tone); color: var(--ink); }
.bb-chip.tone-violet:hover, .bb-chip.tone-ink:hover { color: #fff; }

.bb-fresh__grid { display: grid; gap: 20px; }
@media (min-width: 680px) { .bb-fresh__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bb-fresh__grid { grid-template-columns: repeat(3, 1fr); gap: 26px; } }
.bb-card { background: var(--card); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--pad); transition: transform .18s ease, box-shadow .18s ease; }
.bb-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -20px rgba(38, 23, 61, .5); }
.bb-card__img img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--paper-2); }
.bb-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bb-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bb-card__title { font-size: 1.05rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.bb-card__title a { color: var(--ink); text-decoration: none; }
.bb-card__title a:hover { color: var(--link); }
.bb-card__dek { margin: 0; color: var(--ink-2); font-size: 0.97rem; line-height: 1.5; }
.bb-card__meta { margin: auto 0 0; font-size: 0.82rem; color: var(--ink-2); }
.bb-card--lead { grid-column: 1 / -1; }
@media (min-width: 900px) {
	.bb-card--lead { display: grid; grid-template-columns: 7fr 5fr; }
	.bb-card--lead .bb-card__img { align-self: center; }
	.bb-card--lead .bb-card__body { padding: 32px 34px; justify-content: center; gap: 14px; }
	.bb-card--lead .bb-card__title { font-size: 1.7rem; font-weight: 700; line-height: 1.18; }
	.bb-card--lead .bb-card__dek { font-size: 1.08rem; }
	.bb-card--lead .bb-card__meta { margin-top: 6px; }
}
.bb-card--row { margin-bottom: 18px; }
@media (min-width: 760px) {
	.bb-card--row { display: grid; grid-template-columns: 320px 1fr; }
	.bb-card--row .bb-card__img { align-self: center; padding: 14px 0 14px 14px; }
	.bb-card--row .bb-card__img img { border-radius: 12px; }
	.bb-card--row .bb-card__body { padding: 22px 26px; }
	.bb-card--row .bb-card__title { font-size: 1.25rem; }
}

/* ---------- rules band ---------- */
.bb-rules { margin-top: 64px; background: var(--paper-2); border-radius: var(--r-lg); padding: 30px 22px; }
@media (min-width: 720px) { .bb-rules { padding: 40px 44px; } }
.bb-rules h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 700; margin-bottom: 20px; }
.bb-rules__list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 18px; }
@media (min-width: 860px) { .bb-rules__list { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.bb-rules__list li { position: relative; padding-top: 20px; color: var(--ink-2); }
.bb-rules__list li::before { content: ""; position: absolute; top: 0; left: 0; width: 34px; height: 8px; border-radius: 4px; background: var(--coral); }
.bb-rules__list li:nth-child(2)::before { background: var(--teal); }
.bb-rules__list li:nth-child(3)::before { background: var(--violet); }
.bb-rules__list strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }

/* ---------- article ---------- */
.bb-crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 0.85rem; color: var(--ink-2); }
.bb-crumbs li + li::before { content: "/"; margin: 0 8px; opacity: .5; }
.bb-crumbs a { color: var(--ink-2); text-decoration: none; }
.bb-crumbs a:hover { color: var(--link); text-decoration: underline; }
.bb-read { max-width: 820px; margin: 0 auto; }
.bb-read__head { padding: 36px 0 26px; margin-bottom: 18px; }
.bb-read__chips { margin-bottom: 14px; }
.bb-read__title { font-size: clamp(1.8rem, 4.6vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
.bb-read__dek { font-size: 1.2rem; color: var(--ink-2); margin: 18px 0 0; max-width: 40rem; }
.bb-read__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 22px; padding-top: 18px; border-top: 2px solid var(--ink); }
.bb-read__meta p { margin: 0; font-size: 0.92rem; color: var(--ink-2); }
.bb-read__meta a { color: var(--ink); font-weight: 600; text-decoration: none; }
.bb-read__cover { margin: 0 0 34px; }
.bb-read__cover img { width: 100%; border-radius: var(--r-lg); }
.bb-prose { max-width: 42rem; margin: 0 auto; font-size: 1.125rem; line-height: 1.72; }
.bb-prose > * { margin: 0 0 1.15em; }
.bb-prose h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); font-weight: 700; margin: 2.1em 0 0.7em; line-height: 1.22; }
.bb-prose h3 { font-family: var(--body); font-size: 1.2rem; font-weight: 600; letter-spacing: 0; margin: 1.6em 0 0.5em; }
.bb-prose ul, .bb-prose ol { padding-left: 1.4em; }
.bb-prose li { margin-bottom: 0.5em; }
.bb-prose ul { list-style: none; padding-left: 1.6em; }
.bb-prose ul li { position: relative; }
.bb-prose ul li::before { content: ""; position: absolute; left: -1.3em; top: 0.58em; width: 0.6em; height: 0.6em; border-radius: 3px; background: var(--violet); }
.bb-prose ol li::marker { font-family: var(--display); font-weight: 700; color: var(--link); font-size: 0.9em; }
.bb-prose strong { font-weight: 600; }
.bb-check { margin: 2.6em 0 0; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 22px 22px 6px; box-shadow: 6px 6px 0 var(--coral); }
@media (min-width: 720px) { .bb-check { padding: 28px 32px 10px; } }
.bb-check h2 { margin: 0 0 0.6em; font-size: 1.3rem; display: flex; gap: 12px; align-items: flex-start; }
.bb-check h2::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 0.3em; border-radius: 4px; background: var(--coral); }
.bb-check ul li::before { background: var(--coral); }
.bb-read__note { max-width: 42rem; margin: 34px auto 0; font-size: 0.9rem; color: var(--ink-2); border-top: 1px dashed var(--pad); padding-top: 16px; }
.bb-next { margin-top: 64px; }
.bb-next__grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .bb-next__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- pages ---------- */
.bb-page { max-width: 820px; margin: 0 auto; }
.bb-page__head { padding: 40px 0 24px; border-bottom: 2px solid var(--ink); margin-bottom: 32px; }
.bb-page__title { font-size: clamp(1.9rem, 4.6vw, 2.8rem); font-weight: 700; }
.bb-page .bb-prose { margin: 0; }

/* ---------- archive, search, 404 ---------- */
.bb-arch { padding: 40px 0 34px; }
.bb-arch__title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 22px; }
.bb-arch .bb-beat--lg { max-width: 520px; margin-bottom: 20px; }
.bb-arch__desc { max-width: 40rem; color: var(--ink-2); font-size: 1.1rem; }
.bb-arch__desc p { margin: 0; }
.bb-empty { font-size: 1.1rem; color: var(--ink-2); max-width: 40rem; }
.bb-search { display: flex; gap: 8px; max-width: 560px; margin-top: 8px; }
.bb-search input { flex: 1; min-width: 0; font: inherit; padding: 12px 18px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink); }
.bb-search button { font: inherit; font-weight: 600; padding: 12px 22px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; cursor: pointer; }
.bb-search button:hover { background: var(--link); }
.bb-lost { max-width: 640px; margin: 0 auto; padding: 64px 0 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bb-lost .bb-beat--lg { max-width: 420px; margin-bottom: 26px; }
.bb-lost__title { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; }
.bb-lost .bb-search { width: 100%; margin: 14px 0 22px; }
.nav-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.nav-links .page-numbers { padding: 8px 15px; border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; }
.nav-links .current { background: var(--ink); color: #fff; }

/* ---------- footer ---------- */
.bb-foot { background: var(--ink); color: #E9E2F5; margin-top: 24px; }
.bb-foot__in { max-width: var(--wrap); margin: 0 auto; padding: 52px var(--gut) 34px; display: grid; gap: 32px 20px; grid-template-columns: 1fr 1fr; }
.bb-foot__brand, .bb-foot__note { grid-column: 1 / -1; }
@media (min-width: 760px) { .bb-foot__in { grid-template-columns: 1.4fr 1fr 1fr; } .bb-foot__brand { grid-column: auto; } }
.bb-foot a { color: #fff; text-decoration: none; }
.bb-foot a:hover { text-decoration: underline; }
.bb-foot__word { font-family: var(--display); font-weight: 800; font-size: 2.6rem; letter-spacing: -0.04em; margin: 0 0 8px; color: #fff; line-height: 1; }
.bb-foot__line { margin: 0 0 12px; max-width: 26rem; color: #CFC4E4; }
.bb-foot__mail a { font-weight: 600; border-bottom: 2px solid var(--coral); }
.bb-foot__h { font-family: var(--display); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; margin: 4px 0 12px; }
.bb-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bb-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--tone); margin-right: 10px; }
.bb-foot__note { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 22px; font-size: 0.88rem; color: #CFC4E4; }
.bb-foot__note p { margin: 0 0 8px; max-width: 60rem; }
.bb-foot__note a { text-decoration: underline; }
.bb-foot__copy { opacity: .75; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* compact "next song" cards on phones */
@media (max-width: 759px) {
	.bb-card--mini { display: grid; grid-template-columns: 112px 1fr; }
	.bb-card--mini .bb-card__img { align-self: center; padding: 12px 0 12px 12px; }
	.bb-card--mini .bb-card__img img { border-radius: 10px; aspect-ratio: 1; object-position: 92% 40%; }
	.bb-card--mini .bb-card__body { padding: 12px 14px; gap: 6px; }
	.bb-card--mini .bb-card__top .bb-beat { display: none; }
	.bb-card--mini .bb-card__title { font-size: 0.95rem; }
}
