/**
 * Four2Four — Phase 1A.12 editorial typography for generic pages.
 *
 * Scoped to WordPress pages (About, Contact, Privacy, Terms, future
 * editorial). Loaded conditionally via is_page() && ! is_front_page()
 * in inc/enqueue.php — does NOT affect releases, charts, archives,
 * search, 404, or homepage.
 *
 * Targets GP's default page DOM:
 *   .f24-page > .inside-article > .entry-content > Gutenberg blocks
 *
 * Uses the canonical design tokens from critical.css:
 *   --f24-font-display   (Antonio + condensed fallback chain)
 *   --f24-font-sans      (Inter Tight + system stack — body text)
 *   --f24-font-mono      (DM Mono + monospace stack — code, bullets)
 *   --f24-text-1         (#f2f2ef, warm white — primary text)
 *   --f24-text-2         (#c0c2c8, warm light gray — muted text)
 *   --f24-signal         (#ffb000, yellow — accent + links + bullets)
 *   --f24-rule           (#262932, hairline rule — h2 border, hr)
 *
 * Phase 1A.12 audit-corrected: spec referenced --f24-font-body and
 * --f24-accent tokens that DO NOT EXIST in critical.css. Replaced
 * with the canonical token names above. Visual result unchanged;
 * design-system fidelity gained.
 */

/* ══════════════════════════════════════════════════════════════════
 * Container — constrain page content to readable column width.
 * ══════════════════════════════════════════════════════════════════ */

.f24-page .inside-article {
	max-width: min(720px, 100% - 2rem);
	margin: 0 auto;
	padding: 3rem 1rem 4rem;
}

.f24-page .entry-content {
	/* Reset any GP default constraints; container above handles width. */
	max-width: 100%;
	padding: 0;
}

/* ══════════════════════════════════════════════════════════════════
 * Headings — Antonio display, brutalist weight scale.
 * ══════════════════════════════════════════════════════════════════ */

.f24-page .entry-content h1,
.f24-page .entry-content h2,
.f24-page .entry-content h3,
.f24-page .entry-content h4,
.f24-page .entry-content .wp-block-heading,
.f24-page .entry-title {
	font-family: var(--f24-font-display, "Antonio", "Arial Narrow", "Helvetica Neue Condensed", sans-serif);
	color: var(--f24-text-1, #f2f2ef);
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin: 0;
}

.f24-page .entry-title,
.f24-page .entry-content h1 {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 900;
	margin-bottom: 1.5rem;
	text-transform: none;
}

.f24-page .entry-content h2,
.f24-page .entry-content h2.wp-block-heading {
	font-size: clamp(1.5rem, 3.5vw, 2rem);
	font-weight: 800;
	margin: 2.5rem 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--f24-rule, #262932);
}

.f24-page .entry-content h3,
.f24-page .entry-content h3.wp-block-heading {
	font-size: clamp(1.125rem, 2.5vw, 1.375rem);
	font-weight: 700;
	margin: 2rem 0 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.f24-page .entry-content h4 {
	font-size: 1rem;
	font-weight: 700;
	margin: 1.5rem 0 0.5rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--f24-text-2, #c0c2c8);
}

/* ══════════════════════════════════════════════════════════════════
 * Body — Inter Tight sans, tightened rhythm.
 * ══════════════════════════════════════════════════════════════════ */

.f24-page .entry-content {
	font-family: var(--f24-font-sans, "Inter Tight", -apple-system, "Segoe UI", Roboto, sans-serif);
	font-size: 15px;
	line-height: 1.6;
	color: var(--f24-text-1, #f2f2ef);
}

.f24-page .entry-content p,
.f24-page .entry-content .wp-block-paragraph {
	margin: 0 0 1rem;
}

.f24-page .entry-content p:last-child,
.f24-page .entry-content .wp-block-paragraph:last-child {
	margin-bottom: 0;
}

/* Lead paragraph (first paragraph after h1) — slightly emphasized. */
.f24-page .entry-content > h1 + p,
.f24-page .entry-content > .wp-block-heading[class*="h1"] + p,
.f24-page .entry-title + p {
	font-size: 1.0625rem;
	color: var(--f24-text-1, #f2f2ef);
	margin-bottom: 1.5rem;
}

/* Links inside body content. */
.f24-page .entry-content a {
	color: var(--f24-signal, #ffb000);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.f24-page .entry-content a:hover {
	text-decoration-thickness: 2px;
}

/* ══════════════════════════════════════════════════════════════════
 * Lists — custom bullets matching site convention.
 * The :not([style*="list-style-type"]) escape hatch lets editors
 * override per-list via Gutenberg's list-style picker.
 * ══════════════════════════════════════════════════════════════════ */

.f24-page .entry-content ul,
.f24-page .entry-content ol,
.f24-page .entry-content .wp-block-list {
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.f24-page .entry-content li {
	position: relative;
	padding-left: 1.25rem;
	margin-bottom: 0.375rem;
	line-height: 1.6;
}

.f24-page .entry-content ul > li::before,
.f24-page .entry-content .wp-block-list:not([style*="list-style-type"]) > li::before {
	content: '·';
	position: absolute;
	left: 0;
	top: 0;
	font-family: var(--f24-font-mono, "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
	font-weight: 700;
	color: var(--f24-signal, #ffb000);
	font-size: 1.25em;
	line-height: 1.4;
}

.f24-page .entry-content ol {
	counter-reset: f24-list-counter;
}

.f24-page .entry-content ol > li {
	counter-increment: f24-list-counter;
}

.f24-page .entry-content ol > li::before {
	content: counter(f24-list-counter) '.';
	position: absolute;
	left: 0;
	top: 0;
	font-family: var(--f24-font-mono, "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
	font-size: 0.875em;
	color: var(--f24-signal, #ffb000);
	line-height: 1.6;
}

/* Nested lists. */
.f24-page .entry-content li > ul,
.f24-page .entry-content li > ol {
	margin: 0.25rem 0 0.5rem;
}

/* ══════════════════════════════════════════════════════════════════
 * Inline elements — strong, em, code, quote.
 * ══════════════════════════════════════════════════════════════════ */

.f24-page .entry-content strong,
.f24-page .entry-content b {
	font-weight: 700;
	color: var(--f24-text-1, #f2f2ef);
}

.f24-page .entry-content em,
.f24-page .entry-content i {
	font-style: italic;
}

.f24-page .entry-content code {
	font-family: var(--f24-font-mono, "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
	font-size: 0.875em;
	padding: 0.125rem 0.375rem;
	/* Translucent background — reads naturally on varied surfaces. */
	background: rgba(255, 255, 255, 0.08);
	border-radius: 2px;
}

.f24-page .entry-content blockquote {
	margin: 1.5rem 0;
	padding: 0 0 0 1.25rem;
	border-left: 2px solid var(--f24-signal, #ffb000);
	font-style: italic;
	color: var(--f24-text-2, #c0c2c8);
}

/* ══════════════════════════════════════════════════════════════════
 * Horizontal rule — site hairline convention.
 * ══════════════════════════════════════════════════════════════════ */

.f24-page .entry-content hr {
	margin: 2.5rem 0;
	border: 0;
	border-top: 1px solid var(--f24-rule, #262932);
}

/* ══════════════════════════════════════════════════════════════════
 * Mobile adjustments — match site 767px breakpoint.
 * ══════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
	.f24-page .inside-article {
		padding: 2rem 1rem 3rem;
	}

	.f24-page .entry-content {
		font-size: 14px;
	}
}
