/*
 * SONGREPS theme — blog & resources styling.
 *
 * Single-source-of-truth: docs/design/blog-patterns-mockup.html (single post
 * type + pull-quote + figure treatment) and docs/design/blog-resources-archive-mockup.html
 * (Option A card archive). Tokens come from theme.json + design-system.md
 * §3 / §5 / §8 / §13.
 *
 * Notes:
 * - Root-padding-aware gutters already ship via theme.json
 *   (useRootPaddingAwareAlignments). Anything below assumes that's on.
 * - Manrope (display) + Inter (body) load via songreps-theme-fonts in
 *   functions.php. Direct family names ('Manrope', 'Inter') are used here
 *   so this file works even if a future refactor renames the
 *   --wp--preset--font-family-- slugs.
 */

/* ============================================================
 * Local tokens — mirror theme.json + design-system §3/§5/§8.
 * Kept lean: only what this file needs, no broad re-declarations.
 * ============================================================ */
:root {
	--songreps-card-bg: #fffaf0;
	--songreps-card-border: rgba(42, 55, 68, 0.10);
	--songreps-card-radius: 12px;
	--songreps-card-shadow-soft: 0 1px 2px rgba(42, 55, 68, 0.04), 0 2px 8px rgba(42, 55, 68, 0.04);
	--songreps-card-shadow-hover: 0 2px 10px rgba(42, 55, 68, 0.12);
	--songreps-hairline: #d8cfbc;
	--songreps-text-muted: #6f7e89;
	--songreps-lede-color: #3c4956;
	--songreps-bronze: #b58655;
	--songreps-bronze-dark: #8c6238;
	--songreps-slate: #5b6f7d;
	--songreps-deep: #2a3744;
}

/* ============================================================
 * SINGLE POST — auto-lede + section headings + figure + meta
 * ============================================================ */

/* Featured-image hero: post-featured-image block is set to align=full,
 * which the root-padding-aware layout cancels into edge-to-edge. */
.wp-block-post-featured-image.alignfull {
	margin-top: 0;
	margin-bottom: 1.5rem;
}
.wp-block-post-featured-image.alignfull img {
	width: 100%;
	max-height: 60vh;
	object-fit: cover;
	border-radius: 0;
}

/* Eyebrow — post-terms above the title. Manrope 600, 13px, +0.06em, bronze. */
.songreps-post-eyebrow {
	font-family: 'Manrope', system-ui, sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--songreps-bronze);
	margin: 2rem 0 0.5rem;
}
.songreps-post-eyebrow a {
	color: inherit;
	text-decoration: none;
}

/* Post title — theme.json heading element handles Manrope 700 -0.02em;
 * tighten the trailing margin so the meta sits close. Color override:
 * theme.json defaults headings to --primary (slate #5b6f7d) for app
 * surfaces, but the post-title in the public reading flow wants deep
 * slate #2a3744 per the mockup. */
.single .wp-block-post-title {
	margin-bottom: 0.5rem;
	color: var(--songreps-deep);
}

/* Meta row — Inter 13px muted slate. */
.songreps-post-meta,
.single .wp-block-post-date {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 13px;
	color: var(--songreps-text-muted);
	margin-bottom: 1.75rem;
}

/* Auto-lede: the FIRST paragraph of the post content gets the lede
 * treatment automatically. Every existing + future post inherits this
 * with no editing. ≈19px / 1.5lh / Inter / #3c4956. */
.wp-block-post-content > p:first-of-type {
	font-size: 1.1875rem;
	line-height: 1.5;
	color: var(--songreps-lede-color);
	font-weight: 400;
}

/* Section headings inside post content: Manrope 700, -0.02em.
 * theme.json elements.heading handles this for h1–h6 globally, but
 * .wp-block-post-content content can include block-level h2/h3 that
 * inherit their own block defaults. Lock the type-scale per mockup. */
.wp-block-post-content h2 {
	font-family: 'Manrope', system-ui, sans-serif;
	font-size: clamp(1.375rem, 3vw, 1.75rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--songreps-deep);
	margin: 2.4rem 0 0.9rem;
}
.wp-block-post-content h3 {
	font-family: 'Manrope', system-ui, sans-serif;
	font-size: clamp(1.125rem, 2.5vw, 1.375rem);
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
	color: var(--songreps-deep);
	margin: 2rem 0 0.75rem;
}

/* Body paragraphs. Lede already overridden above via :first-of-type. */
.wp-block-post-content p {
	font-size: 1.0625rem;
	line-height: 1.55;
	margin: 0 0 1.2rem;
}
.wp-block-post-content a {
	color: var(--songreps-bronze);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Figure + figcaption — caption centered, muted, Inter 13. */
.wp-block-post-content figure {
	margin: 1.5rem 0;
}
.wp-block-post-content figcaption,
.wp-block-image figcaption,
.wp-block-embed figcaption {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 13px;
	color: var(--songreps-text-muted);
	margin-top: 8px;
	text-align: center;
}

/* alignfull / alignwide bleed past the root padding. The
 * root-padding-aware layout already supplies the negative margin via
 * .has-global-padding > .alignfull, but content rendered inside
 * .entry-content (which also gets has-global-padding) needs its own
 * pass at narrower viewports because our post-content layout uses
 * constrained children. Make sure the embed + image wrappers stretch. */
.wp-block-post-content .alignfull,
.wp-block-post-content .alignfull > img,
.wp-block-post-content .alignfull > iframe {
	max-width: none;
	width: 100%;
}

/* ============================================================
 * PULL QUOTE — .is-style-songreps on core/quote
 *
 * Per design-system §5: a single-sided border ⇒ border-radius 0.
 * Bronze 3px left bar, Manrope 600 slate body, Inter cite, no
 * faux-italic.
 * ============================================================ */
.wp-block-quote.is-style-songreps {
	border-left: 3px solid var(--songreps-bronze);
	border-radius: 0;
	padding: 4px 0 4px 22px;
	margin: 2rem 0;
	background: transparent;
}
.wp-block-quote.is-style-songreps p {
	font-family: 'Manrope', system-ui, sans-serif;
	font-size: clamp(1.25rem, 3vw, 1.5rem);
	line-height: 1.35;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--songreps-slate);
	margin: 0;
}
.wp-block-quote.is-style-songreps cite {
	display: block;
	margin-top: 10px;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 13px;
	color: var(--songreps-text-muted);
	font-style: normal;
}

/* ============================================================
 * ARCHIVE — card-framed loop (Option A, locked 2026-06-09)
 *
 * /blog/ + /resources/ share index.html. Each post-template item
 * renders as a card. Shadow-bump on hover only — NO lift, NO scale
 * (design-system §13).
 * ============================================================ */

.songreps-archive {
	padding-bottom: 56px;
}

.songreps-archive-title {
	font-family: 'Manrope', system-ui, sans-serif;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--songreps-deep);
	font-size: 1.5rem;
	margin: 2rem 0 4px;
	line-height: 1.2;
}
.songreps-archive-sub {
	font-family: 'Inter', system-ui, sans-serif;
	color: var(--songreps-text-muted);
	font-size: 14px;
	margin: 0 0 22px;
}

/* post-template default is a vertical stack; lock the gap per mockup. */
.songreps-archive-cards.wp-block-post-template {
	display: flex;
	flex-direction: column;
	gap: 16px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.songreps-pcard {
	display: flex;
	gap: 20px;
	background: var(--songreps-card-bg);
	border: 0.5px solid var(--songreps-card-border);
	border-radius: var(--songreps-card-radius);
	padding: 22px;
	box-shadow: var(--songreps-card-shadow-soft);
	color: inherit;
	transition: box-shadow 0.15s ease;
	position: relative;
}
.songreps-pcard:hover {
	box-shadow: var(--songreps-card-shadow-hover);
}

/* Featured-image thumb — 116px square on desktop. core/post-featured-image
 * wraps the <img> in a wp-block-post-featured-image figure; we size the
 * outer wrapper and crop the image. */
.songreps-pcard__thumb {
	flex: 0 0 116px;
	height: 116px;
	width: 116px;
	border-radius: 8px;
	overflow: hidden;
	margin: 0;
}
.songreps-pcard__thumb img,
.songreps-pcard__thumb a {
	width: 100%;
	height: 100%;
	display: block;
}
.songreps-pcard__thumb img {
	object-fit: cover;
}

.songreps-pcard__body {
	flex: 1;
	min-width: 0;
}

/* Eyebrow on the card — bronze. Same family + letter-spacing as the
 * single-post eyebrow, slightly smaller. Hidden when the post has no
 * sub-category to show (existing posts often have only the parent
 * "Public Blog" / "Songwriter Resources" category, which the eyebrow
 * filter strips). Editorial adds a sub-cat → eyebrow appears. */
.songreps-pcard__eyebrow {
	font-family: 'Manrope', system-ui, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--songreps-bronze);
	margin: 0 0 7px;
}
.songreps-pcard__eyebrow:empty,
.songreps-post-eyebrow:empty {
	display: none;
}
.songreps-pcard__eyebrow a {
	color: inherit;
	text-decoration: none;
}

/* Card title — Manrope 700, deep slate, → bronze on card hover. */
.songreps-pcard__title {
	font-family: 'Manrope', system-ui, sans-serif;
	font-size: 1.1875rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.25;
	color: var(--songreps-deep);
	margin: 0 0 7px;
	transition: color 0.15s ease;
}
.songreps-pcard__title a {
	color: inherit;
	text-decoration: none;
}
/* Make the title link cover the whole card so any click opens the post.
 * Keeps a single accessible link target per card. */
.songreps-pcard__title a::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--songreps-card-radius);
}
.songreps-pcard:hover .songreps-pcard__title,
.songreps-pcard:hover .songreps-pcard__title a {
	color: var(--songreps-bronze-dark);
}

/* Meta row — date · read-time, separated by a hairline dot. */
.songreps-pcard__meta {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 13px;
	color: var(--songreps-text-muted);
	margin: 0 0 9px;
	display: flex;
	gap: 9px;
	align-items: center;
}
.songreps-pcard__meta .wp-block-post-date {
	color: inherit;
	margin: 0;
}
.songreps-pcard__meta .wp-block-post-date::after {
	content: "";
	display: inline-block;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--songreps-hairline);
	margin: 0 0 0 9px;
	vertical-align: middle;
}
.songreps-read-time {
	color: var(--songreps-text-muted);
}

/* Two-line excerpt clamp. */
.songreps-pcard__excerpt {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 1rem;
	color: var(--songreps-lede-color);
	margin: 0 0 12px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.5;
}
.songreps-pcard__excerpt .wp-block-post-excerpt__excerpt,
.songreps-pcard__excerpt p {
	margin: 0;
	font: inherit;
	color: inherit;
}
.songreps-pcard__excerpt .wp-block-post-excerpt__more-text,
.songreps-pcard__excerpt .wp-block-post-excerpt__more-link {
	display: none;
}

/* "Read →" — pure visual decoration. The whole card is the link via
 * .songreps-pcard__title a::before above. */
.songreps-pcard__read {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--songreps-bronze);
	margin: 0;
}

/* Pagination — bottom-aligned, sentence-cased, Inter. */
.songreps-archive-pagination {
	margin-top: 28px;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 14px;
}

/* Mobile: thumbnail moves to the top per mockup @ <=680px. */
@media (max-width: 680px) {
	.songreps-pcard {
		flex-direction: column;
		gap: 14px;
		padding: 18px;
	}
	.songreps-pcard__thumb {
		flex: 0 0 auto;
		width: 100%;
		height: 160px;
	}
}

/* ---------------------------------------------------------------------------
 * Public site footer — legal links (Privacy · SMS terms)
 *
 * Rendered by the [songreps_footer_legal_links] shortcode in
 * parts/footer.html, publish-gated per Page (Monday 12404681345). Sits
 * under the © stub line; restrained to match the stub's weight until the
 * full public-context footer pattern lands. Sentence-case labels per §2.13.
 * ------------------------------------------------------------------------- */
.songreps-footer-legal {
	margin-top: 8px;
	text-align: center;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 13px;
	line-height: 1.6;
}
.songreps-footer-legal a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	opacity: 0.8;
}
.songreps-footer-legal a:hover,
.songreps-footer-legal a:focus {
	opacity: 1;
}
.songreps-footer-legal__sep {
	opacity: 0.45;
}
