/*
Theme Name: Valor Books
Description: Valor Books (racboys.com), the Boys' Adventure line from Raconteur Press. Child of Twenty Twenty-Five; same raconteur-core block arrangement as PRESS. Palette taken from the Valor logo.
Template: twentytwentyfive
Version: 2.0.0
Author: Raconteur Press
Text Domain: raconteur-boys
*/

/* ---------------------------------------------------------------------------
   PALETTE — matches the Raconteur Press Substack (raconteurpress.substack.com),
   read from its live theme variables 2026-11-06, per Jonna:
     #ee7835  accent (--color_theme_accent)      #ec681d  accent, darkened
     #fff2d1  page background (--web_bg_color)   #f0e3c4  / #ddd1b5 secondary creams
     #5b5036  body print on cream                #363737  headline print
     #c06836  accent contrast (--cover_accent_contrast)
   The Valor shield logo is black and white and sits on the cream.
   Buttons: white on orange, as on the Substack.
   Replaces the Jul 2026 "Fox Cub Rust/Tan" palette.
   --------------------------------------------------------------------------- */

/* Header brand: logo + wordmark + "from Raconteur Press" (patterns/brand.php). */
.valor-brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.valor-brand img { width: 52px; height: auto; display: block; }
.valor-brand-name { font-size: 1.35rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #363737; line-height: 1.05; }
.valor-brand-from { display: block; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #5b5036; }
.valor-brand-from a { color: #5b5036; text-decoration: none; }
.valor-brand-from a:hover { text-decoration: underline; }

.rp-buy-buttons { display: flex; flex-wrap: wrap; gap: 0.75em; margin: 1.5em 0; }
.rp-buy-button {
	display: inline-block;
	padding: 0.6em 1.4em;
	border-radius: 3px;
	text-decoration: none;
	font-weight: 600;
	background: var(--wp--preset--color--accent-1, #363737);
	color: var(--wp--preset--color--base, #fff) !important;
}
.rp-buy-button:hover { background: var(--wp--preset--color--accent-2, #c06836); }
.rp-sample-chapter {
	background: transparent !important;
	color: inherit !important;
	text-decoration: underline;
	padding-left: 0;
	padding-right: 0;
}

.rp-toc, .rp-awards, .rp-related { padding-left: 1.2em; }
.rp-toc li, .rp-awards li { margin-bottom: 0.35em; }

.rp-book-details summary { cursor: pointer; font-weight: 600; margin: 1.5em 0 0.5em; }
.rp-book-details ul { padding-left: 1.2em; }

.rp-endorsement {
	border-left: 3px solid var(--wp--preset--color--accent-1, #363737);
	padding-left: 1em;
	margin: 1em 0;
	font-style: italic;
}
.rp-endorsement cite { display: block; font-style: normal; margin-top: 0.4em; opacity: 0.75; }

.rp-author-links { display: flex; flex-wrap: wrap; gap: 0.6em; align-items: center; opacity: 0.85; }
.rp-author-link { text-decoration: underline; }
.rp-author-books { padding-left: 1.2em; }
.rp-author-books li { margin-bottom: 0.35em; }

/* Reading-level and series badges. Orange on charcoal. */
.rp-badge {
	display: inline-block;
	background: var(--wp--preset--color--contrast, #363737);
	color: var(--wp--preset--color--accent-3, #ee7835);
	font-size: 0.75em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.25em 0.7em;
	border-radius: 3px;
}

.rp-book-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 1.5em;
}
.rp-book-grid a { display: block; }
.rp-book-grid img { width: 100%; height: auto; display: block; border-radius: 3px; }
.rp-book-grid figcaption { margin-top: 0.4em; font-size: 0.9em; }

.rp-author-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 2em;
}
.rp-author-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 999px; display: block; }
.rp-author-grid figcaption { margin-top: 0.5em; font-weight: 600; text-align: center; }

.rp-book-line { margin-top: 2.5em; }
.rp-book-line h3 { margin-top: 1.5em; }
.rp-start-here { font-size: 0.9em; margin: 0.3em 0 1em; }
.rp-no-cover, .rp-no-photo {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 2/3;
	background: var(--wp--preset--color--accent-5, #f0e3c4);
	color: var(--wp--preset--color--accent-4, #5b5036);
	font-size: 0.8em;
	text-align: center;
	padding: 0.5em;
	border-radius: 3px;
}
.rp-no-photo { aspect-ratio: 1/1; border-radius: 999px; }

.rp-faq { margin: 2.5em 0; }
.rp-faq h2 { margin-bottom: 0.75em; }
.rp-faq-item { border-bottom: 1px solid #ddd1b5; padding: 0.85em 0; }
.rp-faq-item summary { cursor: pointer; font-weight: 600; }
.rp-faq-item p { margin: 0.6em 0 0; }
