/*
Theme Name: RS Direction B
Theme URI: https://riddlesolutions.com
Description: Riddle Solutions — Direction B (darker agency) child theme of Twenty Twenty-Five. Carries the brand token layer: near-black surfaces, hairline borders, periwinkle accent, Space Grotesk / Inter / JetBrains Mono.
Author: Riddle Solutions
Author URI: https://riddlesolutions.com
Template: twentytwentyfive
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rs-direction-b
*/

/* ---------- Base surfaces ---------- */
body {
	background-color: #0A0B0D;
	color: #E9ECF1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Mono utility for kickers, indices and micro-labels */
.rs-mono {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 0.6875rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #98A2B3;
}

.rs-kicker {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 1.6rem;
}

.rs-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #FF7A45;
	display: inline-block;
	flex: none;
}

/* Hairline card treatment */
.rs-card {
	background: #12151A;
	border: 1px solid #242A33;
	border-radius: 12px;
	padding: 1.6rem;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.rs-card:hover {
	background: #171B21;
	border-color: #31394A;
}

.rs-index {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 0.6875rem;
	letter-spacing: 0.1em;
	color: #6E8BFF;
}

/* Proof / stat row */
.rs-stat b,
.rs-stat strong {
	display: block;
	font-family: "Space Grotesk", system-ui, sans-serif;
	font-size: 1.6rem;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

/* Accessible focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid #6E8BFF;
	outline-offset: 2px;
}

/* Respect reduced-motion globally */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Header ---------- */
.rs-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(10, 11, 13, 0.82);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid #242A33;
	padding-top: 0.85rem;
	padding-bottom: 0.85rem;
}

.rs-header-inner {
	gap: 1.5rem;
	align-items: center;
}

.rs-brand .wp-block-site-title a {
	color: #E9ECF1;
	text-decoration: none;
}

.rs-brand .wp-block-site-title::before {
	content: "R";
	display: inline-grid;
	place-items: center;
	width: 26px;
	height: 26px;
	margin-right: 10px;
	border-radius: 7px;
	background: linear-gradient(140deg, #6E8BFF, #3F55C9);
	color: #fff;
	font-family: "Space Grotesk", system-ui, sans-serif;
	font-weight: 700;
	font-size: 13px;
	vertical-align: middle;
}

/* Navigation: mono, uppercase, muted */
.rs-nav .wp-block-navigation-item__content,
.rs-nav a {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #98A2B3;
	text-decoration: none;
}

.rs-nav .wp-block-navigation-item__content:hover,
.rs-nav a:hover {
	color: #E9ECF1;
}

.rs-fun,
.rs-nav .rs-fun .wp-block-navigation-item__content {
	color: #FF7A45 !important;
}

/* Compact CTA in the header */
.rs-header-cta .wp-block-button__link {
	background: #6E8BFF;
	color: #08090C;
	border-radius: 8px;
	font-size: 0.8125rem;
	padding: 0.55rem 0.95rem;
}

@media (max-width: 900px) {
	.rs-header-cta {
		display: none;
	}
}

/* ---------- Main / hero ---------- */
.rs-main {
	padding-top: 3.5rem;
	padding-bottom: 4rem;
}

.rs-hero {
	padding-bottom: 3rem;
	border-bottom: 1px solid #242A33;
}

.rs-hero h1 {
	max-width: 16ch;
	margin-bottom: 1.4rem;
}

.rs-hero .wp-block-paragraph {
	max-width: 58ch;
	color: #98A2B3;
	font-size: 1.125rem;
}

.rs-hero .wp-block-buttons {
	margin-top: 2rem;
	gap: 0.85rem;
}

/* Outlined secondary button */
.is-style-outline .wp-block-button__link {
	background: transparent !important;
	color: #E9ECF1 !important;
	border: 1px solid #242A33 !important;
}

.is-style-outline .wp-block-button__link:hover {
	border-color: #98A2B3 !important;
}

/* ---------- Footer ---------- */
.rs-footer {
	padding-top: 2.5rem;
	padding-bottom: 2.5rem;
	color: #98A2B3;
}

.rs-footer a {
	color: #98A2B3;
	text-decoration: none;
}

.rs-footer a:hover {
	color: #E9ECF1;
}

.rs-foot-links {
	gap: 1.4rem;
}

.rs-foot-links p {
	margin: 0;
}
