/* Beneathsong theme.
   Type is Source Sans 3 only, sizes and weights following onlinemediamasters.com
   (see docs/08-reference-songsubtext.md): 19px body, bold uppercase nav, no serif,
   no mono for labels, no letter-spacing tricks. A monospace stack appears only in
   code and pre. Structure follows premiuminfo.org: an always-dark header, a main
   column with a 320px sidebar, square-marked section dividers and horizontal cards.
   The page is always white; the header and footer are always dark. Colour comes from
   four settings (Appearance > Customize > Theme colours), printed as --set-* on :root.
   Every other shade is mixed from them, so changing the accent in the dashboard
   changes the whole site, including the emotional DNA ramp. */

@font-face {
	font-family: "Source Sans 3";
	src: url("../fonts/SourceSans3-normal.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Source Sans 3";
	src: url("../fonts/SourceSans3-italic.woff2") format("woff2");
	font-weight: 200 900;
	font-style: italic;
	font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
	color-scheme: light;

	/* Dashboard settings (overridden by an inline style from the Customizer). */
	--set-accent-light: #0E9E78;
	--set-accent-dark: #2AD1A3;
	--set-bg-light: #FFFFFF;
	--set-nav: #0B0B0C;

	/* One scheme: white page, dark header and footer. */
	--bg: var(--set-bg-light);
	--bg-card: color-mix(in oklab, var(--bg) 97%, black);
	--bg-inset: color-mix(in oklab, var(--bg) 95%, black);
	--border: rgba(22, 25, 29, 0.11);
	--border-soft: rgba(22, 25, 29, 0.07);
	--border-strong: rgba(22, 25, 29, 0.22);
	--text: #141414;
	--text-strong: #000000;
	--text-muted: #55555D;
	--text-dim: #7E7E86;
	--accent: var(--set-accent-light);
	--accent-text: color-mix(in oklab, var(--accent) 72%, black);
	--accent-soft: color-mix(in oklab, var(--accent) 10%, transparent);
	--accent-border: color-mix(in oklab, var(--accent) 35%, transparent);
	--button: var(--accent-text);
	--on-button: #FFFFFF;

	--d0: color-mix(in oklab, var(--accent) 68%, black); --d0-fg: #FFFFFF;
	--d1: var(--accent);                                  --d1-fg: #FFFFFF;
	--d2: color-mix(in oklab, var(--accent) 68%, white);  --d2-fg: #0C1F19;
	--d3: color-mix(in oklab, var(--accent) 46%, white);  --d3-fg: #0C1F19;
	--d4: color-mix(in oklab, var(--accent) 28%, white);  --d4-fg: #0C1F19;
	--d5: color-mix(in oklab, var(--accent) 15%, white);  --d5-fg: #0C1F19;

	/* One family everywhere. The three names stay so component rules read as before. */
	--font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
	--font-display: var(--font-sans);
	--font-body: var(--font-sans);
	--font-mono: var(--font-sans);
	--font-code: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;

	--content-width: 1200px;
	--reading-width: 720px;
	--sidebar-width: 320px;
	--gutter: 20px;
	--r: 8px;
	--r-md: 10px;
	--t: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 881px) {
	:root { --gutter: 32px; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
	font-family: var(--font-body);
	font-size: 19px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 88px;
	background: var(--bg);
	color: var(--text);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; background: var(--bg); overflow-x: hidden; }

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--accent); color: #000; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
h1 { font-size: 40px; line-height: 1.1; font-weight: 700; }
h2 { font-size: 32px; line-height: 1.2; font-weight: 600; }
h3 { font-size: 26px; line-height: 1.3; font-weight: 600; }
code, pre, kbd, samp { font-family: var(--font-code); font-size: 15px; }
pre { overflow-x: auto; line-height: 1.5; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip {
	position: absolute;
	left: var(--gutter);
	top: -3rem;
	z-index: 100;
	padding: 8px 14px;
	background: var(--text);
	color: var(--bg);
	border-radius: 6px;
}
.skip:focus { top: 12px; }

.num, .count, .scores__num, .spec dd { font-variant-numeric: tabular-nums; }

.dot { width: 3px; height: 3px; flex-shrink: 0; border-radius: 999px; background: var(--border-strong); }

/* ---------- Header (always dark, as on premiuminfo.org) ---------- */

.site-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--set-nav);
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	color: #EEEEEF;
}
.admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-nav { top: 0; } }

.site-nav__inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 14px 32px;
	display: flex;
	align-items: center;
	gap: 32px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 20px;
	color: #FFFFFF;
	text-decoration: none;
}
.brand__mark { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; }
.brand__mark svg { width: 30px; height: 30px; }
.logo-mark__above { fill: color-mix(in oklab, var(--set-accent-dark) 60%, #5B7F74); }
.logo-mark__below { fill: var(--set-accent-dark); }
.brand__name { font-weight: 700; }
.brand__name-soft { font-weight: 400; font-style: italic; opacity: 0.85; }

.site-nav__links { display: flex; gap: 4px; margin-left: 8px; }
.site-nav__links a {
	padding: 8px 12px;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	color: #9A9AA2;
	border-radius: 6px;
	text-decoration: none;
	transition: color var(--t), background var(--t);
}
.site-nav__links a:hover { color: #FFFFFF; background: #18181B; }
.site-nav__links a[aria-current="page"] { color: #FFFFFF; }

.site-nav__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.nav-search {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 8px 0 12px;
	height: 36px;
	background: #131316;
	border: 1px solid #232328;
	border-radius: 8px;
	color: #8B8B94;
	transition: border-color var(--t);
}
.nav-search:focus-within { border-color: #4A4A54; }
.nav-search input {
	width: 11rem;
	border: 0;
	background: transparent;
	color: #EEEEEF;
	font: 400 15px var(--font-body);
	outline: 0;
}
.nav-search input::placeholder { color: #8B8B94; }
.nav-search__kbd {
	padding: 2px 6px;
	background: #0B0B0C;
	border: 1px solid #232328;
	border-radius: 4px;
	font: 600 12px var(--font-body);
	color: #8B8B94;
}

.nav-cta {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 14px;
	border-radius: 8px;
	background: var(--set-accent-dark);
	color: #04120E;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.nav-cta:hover { filter: brightness(1.08); }

.hamburger {
	display: none;
	position: relative;
	width: 38px;
	height: 38px;
	padding: 0;
	background: transparent;
	border: 1px solid #232328;
	border-radius: 8px;
	color: #EEEEEF;
	cursor: pointer;
}
.hamburger .bar {
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -0.75px;
	width: 18px;
	height: 1.5px;
	background: currentColor;
	border-radius: 2px;
	transition: transform var(--t), opacity var(--t);
}
.hamburger .bar:nth-child(1) { transform: translate(-50%, -6px); }
.hamburger .bar:nth-child(2) { transform: translate(-50%, 0); }
.hamburger .bar:nth-child(3) { transform: translate(-50%, 6px); }
.site-nav[data-menu-open="true"] .bar:nth-child(1) { transform: translate(-50%, 0) rotate(45deg); }
.site-nav[data-menu-open="true"] .bar:nth-child(2) { opacity: 0; }
.site-nav[data-menu-open="true"] .bar:nth-child(3) { transform: translate(-50%, 0) rotate(-45deg); }

@media (max-width: 1100px) {
	.nav-search input { width: 7.5rem; }
	.nav-search__kbd { display: none; }
}

@media (max-width: 880px) {
	.site-nav__inner { padding: 12px 20px; gap: 12px; }
	.nav-search { display: none; }
	.hamburger { display: inline-flex; }
	.site-nav__links {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		gap: 0;
		margin: 0;
		padding: 8px 20px 16px;
		background: var(--set-nav);
		border-bottom: 1px solid #1C1C20;
		box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
		opacity: 0;
		transform: translateY(-8px);
		pointer-events: none;
		transition: opacity 180ms ease, transform 180ms ease;
	}
	.site-nav[data-menu-open="true"] .site-nav__links { opacity: 1; transform: none; pointer-events: auto; }
	.site-nav__links a { padding: 14px 12px; font-size: 15px; color: #D4D4D8; }
}
@media (prefers-reduced-motion: reduce) {
	.site-nav__links, .hamburger .bar { transition: none; }
}

/* ---------- Shell: main column + sidebar ---------- */

.shell {
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 48px var(--gutter) 64px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
	gap: 64px;
}
.shell--single { grid-template-columns: minmax(0, var(--reading-width)); justify-content: center; }
.shell__main { min-width: 0; }
.shell__side { min-width: 0; }
@media (max-width: 1024px) {
	.shell { grid-template-columns: 1fr; gap: 48px; padding-top: 32px; }
}

/* ---------- Page header (article style) ---------- */

.page-head { margin-bottom: 32px; }

.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.breadcrumb li { font: 400 16px var(--font-body); color: var(--text-dim); }
.breadcrumb a { color: var(--text-dim); text-decoration: none; transition: color var(--t); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb__sep { opacity: 0.5; }

.kicker {
	display: block;
	margin: 18px 0 4px;
	font: 600 14px var(--font-body);
	color: var(--accent-text);
}
.kicker__bar { display: inline-block; width: 18px; height: 1px; margin-right: 8px; vertical-align: middle; background: var(--accent); }

.headline {
	margin: 14px 0 20px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 40px;
	line-height: 1.1;
	color: var(--text-strong);
}

.deck { max-width: 56ch; font-size: 19px; line-height: 1.35; color: var(--text-muted); }
.deck p + p { margin-top: 10px; }
.deck__note { font-size: 16px; line-height: 1.5; color: var(--text-dim); }

.post-byline {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 26px;
	padding-top: 20px;
	border-top: 1px solid var(--border-soft);
}
.post-byline__cover { width: 44px; flex-shrink: 0; border-radius: 6px; }
.post-byline__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.post-byline__name { font-size: 16px; font-weight: 600; color: var(--text); }
.post-byline__name a { text-decoration: none; }
.post-byline__name a:hover { color: var(--accent-text); }

.byline,
.tag-row,
.meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	font: 400 16px var(--font-body);
	color: var(--text-dim);
}
.byline a, .tag-row a { color: inherit; text-decoration: none; }
.byline a:hover { color: var(--text); }
.byline .dot { width: 2px; height: 2px; }
.byline__artist { color: var(--text-muted); }
.post-byline .byline { font-size: 16px; }

.cat { color: var(--accent-text); font-weight: 600; }
.tag-row .cat:hover { color: var(--accent); }
.score-tag {
	padding: 1px 7px;
	border: 1px solid var(--accent-border);
	border-radius: 999px;
	color: var(--accent-text);
	font-weight: 600;
}

/* ---------- Section divider ---------- */

.section-divider {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 4px 0 24px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--border);
}
.sq { width: 10px; height: 10px; flex-shrink: 0; border-radius: 2px; background: var(--accent); }
.section-divider h2 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 32px;
	line-height: 1.2;
	color: var(--text-strong);
}
.section-divider__count { margin-left: 2px; font: 600 14px var(--font-body); color: var(--text-dim); }
.section-divider__all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	font: 600 14px var(--font-body);
	color: var(--text-muted);
	text-decoration: none;
	transition: color var(--t);
}
.section-divider__all:hover { color: var(--accent-text); }
.section-divider__all svg { width: 12px; height: 12px; }

.home-section { margin-top: 56px; }

/* ---------- Home intro and search ---------- */

.intro { margin-bottom: 48px; }
.intro__h1 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 40px;
	line-height: 1.1;
	color: var(--text-strong);
}
.intro__deck { margin-top: 16px; max-width: 52ch; font-size: 19px; line-height: 1.4; color: var(--text-muted); }
.intro .search { margin-top: 24px; }

.search { display: flex; gap: 8px; max-width: 34rem; }
.search__input {
	flex: 1;
	min-width: 0;
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--border-strong);
	border-radius: var(--r);
	background: var(--bg-card);
	color: var(--text);
	font: 400 19px var(--font-body);
}
.search__input::placeholder { color: var(--text-dim); }
.search__input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.page-head + .search { margin-bottom: 40px; }

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--r);
	background: var(--button);
	color: var(--on-button);
	font: 600 16px var(--font-body);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}
.button:hover { color: var(--on-button); filter: brightness(1.08); }

/* ---------- Pick cards ---------- */

.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .picks { grid-template-columns: 1fr; } }

.pick { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.pick__thumb {
	position: relative;
	display: grid;
	grid-template-columns: 58% 1fr;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	background: var(--bg-card);
}
.pick__cover { height: 100%; aspect-ratio: auto; border-radius: 0; }
.pick__thumb .dna--stripe { height: 100%; max-width: none; margin: 0; flex-direction: column; gap: 1px; border-radius: 0; }
.pick__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 3px 8px;
	border-radius: 4px;
	background: var(--accent);
	color: var(--d1-fg);
	font: 700 13px var(--font-body);
	text-transform: uppercase;
}
.pick__cat { margin-top: 6px; font: 600 14px var(--font-body); color: var(--accent-text); }
.pick__title {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 26px;
	line-height: 1.3;
	color: var(--text-strong);
	transition: color var(--t);
}
.pick:hover .pick__title { color: var(--accent-text); }
.pick__excerpt { font-size: 16px; line-height: 1.5; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pick__meta { display: flex; align-items: center; gap: 8px; font: 400 16px var(--font-body); color: var(--text-dim); }

/* ---------- Horizontal cards ---------- */

.hcard {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	gap: 24px;
	padding: 22px 0;
	border-bottom: 1px solid var(--border-soft);
	transition: transform var(--t);
}
.hcard:first-child { padding-top: 4px; }
.hcard:last-child { border-bottom: 0; }
.hcard:hover { transform: translateX(2px); }
.hcard--text { grid-template-columns: minmax(0, 1fr); }
@media (prefers-reduced-motion: reduce) { .hcard:hover { transform: none; } }

.hcard__thumb { display: block; }
.hcard__thumb .cover { border: 1px solid var(--border); border-radius: var(--r); }
.hcard__thumb--wide { width: 220px; }
.hcard:has(.hcard__thumb--wide) { grid-template-columns: 220px minmax(0, 1fr); }
.cover--wide { aspect-ratio: 16 / 9; }

.hcard__body { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.hcard__title {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 26px;
	line-height: 1.3;
	color: var(--text-strong);
}
.hcard__title a { color: inherit; text-decoration: none; transition: color var(--t); }
.hcard:hover .hcard__title a { color: var(--accent-text); }
.hcard__excerpt {
	font-size: 16px;
	line-height: 1.5;
	color: var(--text-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hcard .dna--stripe { margin-top: 2px; }

@media (max-width: 560px) {
	.hcard, .hcard:has(.hcard__thumb--wide) { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; }
	.hcard__thumb--wide { width: 84px; }
	.cover--wide { aspect-ratio: 1; }
	.hcard__title { font-size: 22px; }
	.hcard__excerpt { -webkit-line-clamp: 3; }
}

/* ---------- Covers ---------- */

.cover { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--bg-inset); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover--dna { display: flex; gap: 1px; background: var(--bg-card); }
.cover--dna > span { flex: var(--w) 1 0; background: var(--dna-c); }

/* ---------- Emotional DNA ---------- */

.dna { display: flex; gap: 2px; overflow: hidden; }
.dna__seg { flex: var(--w) 1 0; min-width: 0; background: var(--dna-c); color: var(--dna-fg); }

/* :where() keeps the default at zero specificity so the --i rules below always win. */
:where(.dna__seg, .dna-legend li, .cover--dna > span) { --dna-c: var(--d5); --dna-fg: var(--d5-fg); }
[style*="--i:0"] { --dna-c: var(--d0); --dna-fg: var(--d0-fg); }
[style*="--i:1"] { --dna-c: var(--d1); --dna-fg: var(--d1-fg); }
[style*="--i:2"] { --dna-c: var(--d2); --dna-fg: var(--d2-fg); }
[style*="--i:3"] { --dna-c: var(--d3); --dna-fg: var(--d3-fg); }
[style*="--i:4"] { --dna-c: var(--d4); --dna-fg: var(--d4-fg); }

.dna--stripe { width: 100%; max-width: 12rem; height: 4px; gap: 1px; border-radius: 2px; }

.dna-hero { margin: 0 0 40px; }
.dna--hero { height: 96px; border-radius: var(--r-md); }
.dna--hero .dna__seg {
	container-type: inline-size;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 12px 14px;
}
.dna__pct {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 30px;
	line-height: 1;
	font-variant-numeric: lining-nums tabular-nums;
}
.dna__label { font: 600 13px var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@container (max-width: 5.5rem) {
	.dna__label { display: none; }
	.dna__pct { font-size: 20px; }
}
@container (max-width: 2.5rem) { .dna__pct { display: none; } }

.dna-hero__caption { margin-top: 10px; font-size: 16px; color: var(--text-muted); }
.dna-hero__title { font: 600 14px var(--font-body); color: var(--text); margin-right: 6px; }

.dna-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 16px; }
.dna-legend li { display: inline-flex; align-items: center; gap: 6px; }
.dna-legend__swatch { width: 10px; height: 10px; border-radius: 2px; background: var(--dna-c); }
.dna-legend__pct { font-weight: 600; font-size: 13px; color: var(--text-dim); }
@media (min-width: 720px) {
	/* The band carries its own labels at this width; the list stays for screen readers. */
	.dna-legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (prefers-reduced-motion: no-preference) {
	.dna--hero { animation: dna-reveal 1.1s cubic-bezier(0.22, 0.8, 0.24, 1) both; }
	@keyframes dna-reveal {
		from { clip-path: inset(0 100% 0 0 round 10px); }
		to { clip-path: inset(0 0 0 0 round 10px); }
	}
}

/* ---------- Sidebar widgets ---------- */

.widget {
	margin-bottom: 22px;
	padding: 18px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--r);
}
.widget__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border-soft);
	font: 400 20px var(--font-body);
	color: var(--text-muted);
}
.widget__title .sq { width: 7px; height: 7px; }
.widget__note { margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--text-dim); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	background: var(--bg-inset);
	border: 1px solid var(--border);
	border-radius: 999px;
	font: 400 15px var(--font-body);
	color: var(--text-muted);
	text-decoration: none;
	transition: color var(--t), border-color var(--t), background var(--t);
}
.tag-cloud a:hover { color: var(--accent-text); border-color: var(--accent-border); background: var(--bg); }

.recent__row {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px dashed var(--border);
}
.recent__row:first-child { padding-top: 0; }
.recent__row:last-child { border-bottom: 0; padding-bottom: 2px; }
.recent__thumb .cover { border-radius: 4px; }
.recent__title { font: 600 16px/1.35 var(--font-body); color: var(--text); }
.recent__title a { text-decoration: none; transition: color var(--t); }
.recent__row:hover .recent__title a { color: var(--accent-text); }
.recent__meta { margin-top: 3px; font: 600 13px var(--font-body); color: var(--text-dim); }

.term-links li { border-bottom: 1px dashed var(--border); }
.term-links li:last-child { border-bottom: 0; }
.term-links a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 16px; text-decoration: none; }
.term-links a:hover { color: var(--accent-text); }
.term-links .count, .term-index .count { font: 600 13px var(--font-body); color: var(--text-dim); }

.term-index { columns: 14rem 3; column-gap: 32px; }
.term-index li { break-inside: avoid; border-bottom: 1px solid var(--border-soft); }
.term-index a {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 12px 0;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 19px;
	text-decoration: none;
	color: var(--text-strong);
}
.term-index a:hover { color: var(--accent-text); }

.side-sticky { position: sticky; top: 92px; }
.admin-bar .side-sticky { top: 124px; }
@media (max-width: 1024px) { .side-sticky { position: static; } }

.toc { margin-bottom: 22px; }
.toc__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font: 400 20px var(--font-body);
	color: var(--text-dim);
}
.toc__title::after { content: ""; flex: 1; height: 1px; background: var(--border-soft); }
.toc__list { display: flex; flex-direction: column; gap: 2px; }
.toc__list a {
	display: block;
	padding: 6px 0 6px 14px;
	border-left: 1px solid var(--border);
	font-size: 16px;
	line-height: 1.4;
	color: var(--text-muted);
	text-decoration: none;
	transition: color var(--t), border-color var(--t);
}
.toc__list a:hover { color: var(--text); border-color: var(--border-strong); }
.toc__list a.is-active { color: var(--accent-text); border-left-color: var(--accent); font-weight: 600; }

.spec > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 16px; }
.spec > div:last-child { border-bottom: 0; }
.spec dt { color: var(--text-muted); flex-shrink: 0; }
.spec dd { font-weight: 600; text-align: right; }
.spec a { text-decoration: none; }
.spec a:hover { color: var(--accent-text); }
.spec > .spec__stack { display: block; }
.spec__stack dd { margin-top: 3px; font-weight: 500; text-align: left; }

/* ---------- App call to action ---------- */

.app-cta { padding: 20px; border-radius: var(--r); background: #0B0B0C; color: #EEEEEF; border: 1px solid #1C1C20; }
.app-cta.widget { background: var(--set-nav); }
.app-cta__heading {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 26px;
	line-height: 1.15;
	color: #FFFFFF;
}
.app-cta__body { margin-top: 8px; font-size: 16px; line-height: 1.5; color: #A0A0A8; }
.app-cta .button { margin-top: 16px; height: 40px; background: var(--set-accent-dark); color: #04120E; }
.app-cta__small { margin-top: 10px; font: 600 13px var(--font-body); color: #74747C; }
.app-cta--inline { margin-top: 48px; }

/* ---------- Article body (prose) ---------- */

.article { max-width: var(--reading-width); }
.shell__main.article { max-width: none; }
.shell__main.article > .prose,
.shell__main.article > .page-head,
.shell__main.article > .dna-hero { max-width: var(--reading-width); }

.prose { font-size: 19px; line-height: 1.5; color: var(--text); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
	position: relative;
	margin-top: 2.2em;
	margin-bottom: 0.4em;
	padding-left: 18px;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 32px;
	line-height: 1.2;
	color: var(--text-strong);
	scroll-margin-top: 88px;
}
.prose h2::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 4px; height: calc(100% - 0.3em); border-radius: 2px; background: var(--accent); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; margin-bottom: 0.3em; font-size: 26px; font-weight: 600; line-height: 1.3; color: var(--text-strong); }
.prose h2 + *, .prose h3 + * { margin-top: 0.5em; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--accent); }
.prose ul:not(.not-prose ul) { padding-left: 1.2em; list-style: none; }
.prose ul:not(.not-prose ul) > li { position: relative; }
.prose ul:not(.not-prose ul) > li::before { content: ""; position: absolute; left: -1em; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.prose ul > li + li { margin-top: 0.5em; }
.prose ol:not(.not-prose) { padding-left: 1.3em; list-style: decimal; }
.prose blockquote { padding-left: 18px; border-left: 3px solid var(--accent); font-style: italic; color: var(--text-muted); }
.prose .lead { font-size: 21px; line-height: 1.5; }
.prose .note { font-size: 16px; color: var(--text-dim); }
.prose .source { margin-left: 6px; font: 600 14px var(--font-body); text-decoration: none; }

.mini-h { margin-bottom: 8px; font: 600 14px var(--font-body); color: var(--text-muted); }

.two-col { display: grid; gap: 28px; }
@media (min-width: 640px) { .two-col { grid-template-columns: 1fr 1fr; gap: 36px; } }

.scores__item {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: baseline;
	column-gap: 12px;
	row-gap: 6px;
	padding: 10px 0;
	border-bottom: 1px solid var(--border-soft);
	font-size: 16px;
	line-height: 1.3;
}
.scores__label { font-weight: 600; }
.scores__label a { color: var(--text); text-decoration: none; }
.scores__label a:hover { color: var(--accent-text); }
.scores__num { font: 600 14px var(--font-body); color: var(--accent-text); }
.scores__item .meter { grid-column: 1 / -1; }
.meter { position: relative; display: block; height: 4px; overflow: hidden; border-radius: 2px; background: var(--border); }
.meter::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); border-radius: inherit; background: linear-gradient(90deg, var(--d0), var(--d1)); }

.excerpts { margin-top: 1.4em; }
.excerpt { padding: 20px 0; border-top: 1px solid var(--border-soft); }
.excerpt:last-child { border-bottom: 1px solid var(--border-soft); }
.excerpt__line p {
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 400;
	font-size: 26px;
	line-height: 1.3;
	color: var(--text-strong);
	text-indent: -0.42em;
}
.excerpt__line p::before { content: "\201C"; }
.excerpt__line p::after { content: "\201D"; }
.excerpt__note { margin-top: 12px; padding: 12px 16px; border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; background: var(--accent-soft); font-size: 17px; line-height: 1.5; color: var(--text); }

.claims { margin-top: 1em; }
.claim { padding: 16px 0; border-bottom: 1px solid var(--border-soft); }
.claim:first-child { border-top: 1px solid var(--border-soft); }
.claim__title { font-size: 19px; font-weight: 600; color: var(--text-strong); }
.claim__text { margin-top: 4px; font-size: 19px; line-height: 1.5; }
.badge { display: inline-block; margin-top: 10px; padding: 3px 9px; border: 1px solid var(--border-strong); border-radius: 999px; font: 600 13px var(--font-body); color: var(--text-muted); }

.yt { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-md); background: #000; }
.yt img, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt__play {
	position: absolute;
	left: 16px;
	bottom: 16px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 44px;
	padding: 0 18px 0 14px;
	border: 0;
	border-radius: 999px;
	background: rgba(11, 11, 12, 0.85);
	color: #FFFFFF;
	font: 600 16px var(--font-body);
	cursor: pointer;
}
.yt__play::before { content: ""; border-left: 11px solid currentColor; border-block: 7px solid transparent; }

.table-wrap { margin-top: 1.4em; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.table caption { margin-bottom: 8px; text-align: left; font: 600 14px var(--font-body); color: var(--text-muted); }
.table th { padding: 10px 14px 10px 0; text-align: left; font: 700 15px var(--font-body); color: var(--text-dim); border-bottom: 1px solid var(--border-strong); }
.table td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.table td.win { color: var(--accent-text); font-weight: 600; }
.table__sub { display: block; margin-top: 2px; font-size: 14px; color: var(--text-muted); }

.faq { margin-top: 1em; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
	font-size: 19px;
	font-weight: 600;
	color: var(--text-strong);
	cursor: pointer;
	list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--font-body); color: var(--accent-text); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 16px; font-size: 19px; line-height: 1.5; color: var(--text-muted); }

/* ---------- Pagination, empty states ---------- */

.nav-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.page-numbers {
	display: grid;
	place-items: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid var(--border);
	border-radius: 6px;
	font: 600 15px var(--font-body);
	color: var(--text-muted);
	text-decoration: none;
}
.page-numbers:hover { border-color: var(--border-strong); color: var(--text); }
.page-numbers.current { background: var(--text); border-color: var(--text); color: var(--bg); }

.empty { padding: 24px 0; max-width: 40rem; color: var(--text-muted); }

/* ---------- Footer ---------- */

.site-foot { margin-top: 48px; background: var(--set-nav); color: #A0A0A8; font-size: 19px; }
.site-foot__inner {
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 56px var(--gutter) 36px;
	display: grid;
	grid-template-columns: 1.6fr 1.4fr 0.8fr 0.8fr;
	gap: 40px;
}
@media (max-width: 900px) { .site-foot__inner { grid-template-columns: 1fr 1fr; } .site-foot__about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-foot__inner { grid-template-columns: 1fr; } }
.brand--foot { color: #FFFFFF; font-size: 18px; }
.site-foot .logo-mark__above { fill: color-mix(in oklab, var(--set-accent-dark) 60%, #5B7F74); }
.site-foot .logo-mark__below { fill: var(--set-accent-dark); }
.site-foot a { color: #C9C9CF; font-size: 18px; text-decoration: none; }
.site-foot a:hover { color: #FFFFFF; }
.site-foot .recent__title a { color: #EEEEEF; font-size: inherit; }
.site-foot .recent__meta { color: #74747C; }
.site-foot .cover { background: #1B1B1F; }
.site-foot__latest .recent { gap: 10px; }
.site-foot__latest .recent__thumb { width: 36px; }
.site-foot__latest .recent__title { font-size: 16px; }
.site-foot__about p { margin-top: 10px; max-width: 30rem; line-height: 1.5; }
.site-foot__heading { margin-bottom: 12px; font: 400 20px var(--font-body); color: #74747C; }
.site-foot__nav li + li { margin-top: 8px; }
.site-foot__legal {
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 18px var(--gutter) 32px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font: 400 16px var(--font-body);
	color: #74747C;
}

/* ---------- Reading progress ---------- */

.read-progress { position: sticky; top: 61px; z-index: 49; height: 2px; margin-top: -2px; pointer-events: none; }
.admin-bar .read-progress { top: 93px; }
.read-progress > span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
@media (max-width: 880px) { .read-progress { display: none; } }

/* ---------- Song hero (cover beside the title, as on songsubtext, without the box) ---------- */

.song-hero { margin-bottom: 36px; }
.song-hero__grid {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 36px;
	align-items: start;
	margin-top: 22px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--border);
}
@media (max-width: 640px) {
	.song-hero__grid { grid-template-columns: 1fr; gap: 24px; }
	.song-hero__art { display: grid; grid-template-columns: 128px 1fr; gap: 16px; align-items: end; }
	.song-hero__estimate { grid-column: 1 / -1; }
}
.song-hero__cover { width: 100%; border-radius: var(--r-md); border: 1px solid var(--border); box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 8%, transparent); }
.song-hero__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; }
.song-hero__facts div { display: flex; flex-direction: column; gap: 2px; }
.song-hero__facts dt { font: 600 13px var(--font-body); color: var(--text-dim); }
.song-hero__facts dd { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.song-hero__estimate { margin-top: 8px; font-size: 16px; color: var(--text-dim); }
.song-hero .kicker { margin-top: 0; }
.headline--song { margin: 10px 0 8px; font-size: clamp(34px, 4vw, 44px); }
.song-hero__artist { margin-bottom: 18px; font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--text-muted); }
.song-hero__artist a { color: var(--text); text-decoration: none; font-style: normal; }
.song-hero__artist a:hover { color: var(--accent-text); }
.song-hero .deck { font-size: 19px; }
.song-hero__meta { margin-top: 18px; font-size: 16px; }
.song-hero__meta a { color: inherit; }

/* Chips: mood and theme scores that link to their grouping page. The fill is the score. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 30px;
	padding: 0 10px 0 12px;
	border: 1px solid var(--border);
	border-radius: 999px;
	font: 600 15px var(--font-body);
	color: var(--text);
	text-decoration: none;
	overflow: hidden;
	isolation: isolate;
	transition: border-color var(--t), color var(--t);
}
.chip::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: calc(var(--v) * 1%);
	background: var(--accent-soft);
	z-index: -1;
}
.chip--theme::before { background: color-mix(in oklab, var(--text) 7%, transparent); }
.chip:hover { border-color: var(--accent-border); color: var(--accent-text); }
.chip__num { font: 600 13px var(--font-body); color: var(--accent-text); }
.chip--theme .chip__num { color: var(--text-muted); }

/* ---------- Pills (home browse row) ---------- */

.intro__browse { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.intro__browse-label { margin-right: 4px; font: 600 14px var(--font-body); color: var(--text-dim); }
.pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: 999px;
	font-size: 15px;
	color: var(--text);
	text-decoration: none;
	transition: border-color var(--t), background var(--t);
}
.pill:hover { border-color: var(--accent-border); background: var(--accent-soft); }
.pill__n { font: 600 13px var(--font-body); color: var(--text-dim); }
.pill--more { color: var(--accent-text); border-style: dashed; }

/* ---------- Pick grids ---------- */

.picks--3 { grid-template-columns: repeat(3, 1fr); }
.picks--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .picks--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .picks--3, .picks--2 { grid-template-columns: 1fr; } }

/* ---------- About this analysis (in place of an author box) ---------- */

.author-box {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr);
	gap: 20px;
	max-width: var(--reading-width);
	margin-top: 56px;
	padding: 24px 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}
.author-box__photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.author-box__kicker { font-size: 14px; font-weight: 600; color: var(--text-dim); }
.author-box__name { margin-top: 2px; font-size: 20px; font-weight: 700; color: var(--text-strong); }
.author-box__role { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; font-size: 15px; color: var(--text-muted); }
.author-box__pill { padding: 2px 10px; border-radius: 20px; background: var(--bg-inset); font-size: 13px; font-weight: 500; color: var(--text-muted); }
.author-box__bio { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--text-muted); }
.author-box__links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 14px; font-weight: 600; }
.author-box__links a { color: var(--accent-text); text-decoration: none; }
.author-box__links a:hover { text-decoration: underline; }
.author-box__meta { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border-soft); font-size: 14px; color: var(--text-dim); }
.author-box__meta a { color: var(--accent-text); }
@media (max-width: 480px) { .author-box { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- Previous and next song ---------- */

.song-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: var(--reading-width); margin-top: 24px; }
@media (max-width: 560px) { .song-nav { grid-template-columns: 1fr; } .song-nav__gap { display: none; } }
.song-nav__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 0;
	text-decoration: none;
	color: var(--text);
	transition: color var(--t);
}
.song-nav__item--next { flex-direction: row-reverse; text-align: right; }
.song-nav__item:hover { color: var(--accent-text); }
.song-nav__cover { width: 52px; flex-shrink: 0; border-radius: 6px; border: 1px solid var(--border); }
.song-nav__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.song-nav__dir { font: 600 13px var(--font-body); color: var(--text-dim); }
.song-nav__title { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.2; color: inherit; }
.song-nav__artist { font-size: 16px; color: var(--text-muted); }
