/* realpedro.com frontend CSS — only what theme.json cannot express.
   Retro/duotone "manila dossier" register: ink + one stamp red on a paper
   ground, mono document furniture, hard rules instead of soft shadows, and
   the verification-log record row as the site's signature component. */

/* Dark mode: overrides the same custom properties theme.json generates on
   :root. Every value checked against WCAG AA before use — see
   05-design-system.md §1. Light values are NOT redeclared here; theme.json
   is the single source of truth. */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--wp--preset--color--background: #191512;
		--wp--preset--color--surface: #231E19;
		--wp--preset--color--text: #EDE4D3;
		--wp--preset--color--muted: #B0A48E;
		--wp--preset--color--border: #3B342B;
		--wp--preset--color--accent: #E4705F;
	}
}
:root[data-theme="dark"] {
	--wp--preset--color--background: #191512;
	--wp--preset--color--surface: #231E19;
	--wp--preset--color--text: #EDE4D3;
	--wp--preset--color--muted: #B0A48E;
	--wp--preset--color--border: #3B342B;
	--wp--preset--color--accent: #E4705F;
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--wp--preset--color--text);
	color: var(--wp--preset--color--background);
	padding: 12px 16px;
	z-index: 100;
}
.skip-link:focus {
	left: 16px;
	top: 16px;
}

/* --- Header: a two-column grid with the navigation as a VERTICAL stack
   beside the identity block. No prior site in this network puts nav in a
   vertical column inside the header. Collapses to a single column with a
   horizontal wrapped nav on narrow viewports. --- */
.rp-header-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--30);
}
.rp-tagline {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	margin: 6px 0 0;
}
.rp-primary-nav .wp-block-navigation__container {
	gap: 6px !important;
}
.rp-primary-nav a,
.rp-footer-nav a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-bottom: 1px solid transparent;
}
.rp-primary-nav a:hover,
.rp-primary-nav a:focus-visible,
.rp-footer-nav a:hover,
.rp-footer-nav a:focus-visible {
	color: var(--wp--preset--color--accent);
	border-bottom-color: var(--wp--preset--color--accent);
}

@media (min-width: 800px) {
	.rp-header-grid {
		grid-template-columns: 1fr auto;
		align-items: start;
		gap: var(--wp--preset--spacing--50);
	}
	.rp-header-nav {
		justify-self: end;
		text-align: right;
	}
	.rp-primary-nav .wp-block-navigation__container {
		align-items: flex-end !important;
	}
}

/* --- Record-reference strip: sits ABOVE the H1 (prior sites all put their
   metadata line below the title). Mono, small, rule underneath. --- */
.rp-record-strip {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--muted);
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
	padding-bottom: var(--wp--preset--spacing--10);
	border-bottom: 1px solid var(--wp--preset--color--border);
	margin-bottom: var(--wp--preset--spacing--30);
}
.rp-record-strip a {
	color: var(--wp--preset--color--muted);
}
.rp-record-strip a:hover {
	color: var(--wp--preset--color--accent);
}

/* --- The verification log: this site's signature component. Each entry is
   a record with a hard top rule, a mono reference number, the check name,
   and a verdict marker. Verdict is always carried in TEXT — colour never
   encodes meaning on its own. --- */
.rp-log {
	margin: var(--wp--preset--spacing--40) 0;
	border-top: 3px solid var(--wp--preset--color--text);
}
.rp-log-entry {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: var(--wp--preset--spacing--30) 0 var(--wp--preset--spacing--30) var(--wp--preset--spacing--30);
	border-left: 4px solid var(--wp--preset--color--border);
	padding-left: var(--wp--preset--spacing--30);
}
.rp-log-entry.rp-tone-stamp {
	border-left-color: var(--wp--preset--color--accent);
}
.rp-log-entry.rp-tone-ink {
	border-left-color: var(--wp--preset--color--text);
}
.rp-log-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--wp--preset--spacing--20);
	margin-bottom: var(--wp--preset--spacing--20);
}
.rp-log-ref {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}
.rp-log-check {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	text-transform: uppercase;
	margin: 0;
	flex: 1 1 auto;
}
.rp-log-verdict {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 4px 10px;
	border: 2px solid currentColor;
	white-space: nowrap;
}
.rp-tone-stamp .rp-log-verdict {
	color: var(--wp--preset--color--accent);
}
.rp-tone-muted .rp-log-verdict {
	color: var(--wp--preset--color--muted);
}
.rp-tone-ink .rp-log-verdict {
	color: var(--wp--preset--color--text);
}
.rp-log-field {
	margin: 0 0 var(--wp--preset--spacing--10);
}
.rp-log-label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--muted);
	margin-right: 8px;
}
.rp-log-date {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	margin: var(--wp--preset--spacing--20) 0 0;
}

/* --- Body copy --- */
.entry-content a,
.wp-block-post-content a {
	text-decoration-color: var(--wp--preset--color--accent);
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
.entry-content a:hover,
.wp-block-post-content a:hover {
	text-decoration-thickness: 2px;
}

/* --- Pull quote: a stamped aside, ruled top and bottom, no fill --- */
.entry-content blockquote,
.wp-block-post-content blockquote {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.3;
	text-transform: uppercase;
	border-top: 3px solid var(--wp--preset--color--accent);
	border-bottom: 3px solid var(--wp--preset--color--accent);
	padding: var(--wp--preset--spacing--30) 0;
	margin: var(--wp--preset--spacing--50) 0;
}
.entry-content blockquote p,
.wp-block-post-content blockquote p {
	margin: 0;
}

/* --- Tables: carbon-copy form register — ruled rows, no fills, mono
   headers, tabular numerals --- */
.entry-content table,
.wp-block-post-content table {
	width: 100%;
	margin: var(--wp--preset--spacing--40) 0;
	border-collapse: collapse;
	border-top: 3px solid var(--wp--preset--color--text);
	border-bottom: 3px solid var(--wp--preset--color--text);
	font-variant-numeric: tabular-nums;
}
.entry-content th,
.wp-block-post-content th {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-align: left;
	vertical-align: bottom;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--20) var(--wp--preset--spacing--10) 0;
	border-bottom: 1px solid var(--wp--preset--color--text);
}
.entry-content td,
.wp-block-post-content td {
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--20) var(--wp--preset--spacing--20) 0;
	vertical-align: top;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.entry-content tr:last-child td,
.wp-block-post-content tr:last-child td {
	border-bottom: 0;
}
.entry-content .wp-block-table,
.wp-block-post-content .wp-block-table {
	overflow-x: auto;
}

/* --- Ordered lists: mono reference numerals in the margin --- */
.entry-content ol,
.wp-block-post-content ol {
	list-style: none;
	counter-reset: rp-step;
	padding-left: 0;
}
.entry-content ol > li,
.wp-block-post-content ol > li {
	counter-increment: rp-step;
	position: relative;
	padding-left: 2.8rem;
	margin-bottom: var(--wp--preset--spacing--20);
}
.entry-content ol > li::before,
.wp-block-post-content ol > li::before {
	content: counter(rp-step, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 0.15em;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--accent);
}

/* --- Images: printed-plate treatment, hard ink rule, no rounding --- */
.entry-content figure.wp-block-image img,
.wp-block-post-content figure.wp-block-image img {
	width: 100%;
	height: auto;
	border: 2px solid var(--wp--preset--color--text);
}
.entry-content figcaption,
.wp-block-post-content figcaption {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	margin-top: 8px;
}
.entry-content figure.wp-block-image,
.wp-block-post-content figure.wp-block-image {
	margin: var(--wp--preset--spacing--40) 0;
}

/* --- FAQ list: ruled records, consistent with the log --- */
.rp-faq-list {
	margin: var(--wp--preset--spacing--30) 0;
	border-top: 1px solid var(--wp--preset--color--border);
}
.rp-faq-item {
	padding: var(--wp--preset--spacing--30) 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.rp-faq-question {
	margin: 0 0 var(--wp--preset--spacing--10) 0;
	font-size: var(--wp--preset--font-size--large);
	text-transform: none;
}
.rp-faq-answer {
	margin: 0;
	color: var(--wp--preset--color--muted);
}

/* --- Footer: leads with a full-width standing notice band, then the
   identity row. The notice is load-bearing content on this site, not
   decoration — it warns about recovery fraud on every page. --- */
.rp-standing-notice {
	border: 3px solid var(--wp--preset--color--accent);
	padding: var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--50);
}
.rp-standing-notice p {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
}
.rp-footer-row {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
}
.rp-footer-identity h3 {
	margin: 0;
}
@media (min-width: 800px) {
	.rp-footer-row {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-end;
	}
}

/* Respect reduced motion. */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}
