/* === page-about.php ===
   Styles scoped to the about page only. Enqueued conditionally in
   functions.php (apex_child_enqueue_assets) when is_page( 'about' ).
   Relies on design tokens from the parent style.css :root. This page
   loads neither home.css nor contact.css, so the full button recipe is
   defined here rather than relying on another stylesheet. Mobile-first;
   breakpoints widen upward. */

.apex-about section {
	padding-block: clamp( 3.5rem, 9vw, 6rem );
}

.apex-container {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: clamp( 1rem, 4vw, 2rem );
}

/* === manifesto === */
.apex-about__manifesto h1.entry-title {
	margin-bottom: 1.5rem;
}

.apex-about__manifesto p {
	max-width: 62ch;
	font-size: 1.05rem;
	line-height: 1.6;
}

.apex-about__manifesto p + p {
	margin-top: 1.25rem;
}

/* === rules (dark section) ===
   Global style.css sets h1-h4 to the ink color, so headings here need an
   explicit white override — otherwise they would be unreadable on the
   dark background. */
.apex-about__rules {
	background: var( --apex-ink );
	color: var( --apex-footer-text );
}

.apex-about__rules h2 {
	color: #FFF;
	margin-bottom: .75rem;
}

.apex-about__rules-intro {
	max-width: 62ch;
	color: var( --apex-footer-text );
	margin-bottom: 2.5rem;
	font-size: 1.05rem;
}

.apex-about__rules-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media ( min-width: 900px ) {
	.apex-about__rules-grid {
		grid-template-columns: repeat( 3, 1fr );
	}
}

.apex-about__rule-card {
	background: transparent;
	border: 2px solid rgba( 232, 234, 235, 0.25 );
	border-radius: 2px;
	padding: 1.5rem;
}

.apex-about__kicker {
	font-family: var( --apex-ff-mono );
	color: var( --apex-amber );
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: .05em;
	margin: 0 0 .75rem;
}

.apex-about__rule-card h3 {
	color: #FFF;
	margin: 0 0 .5rem;
}

.apex-about__rule-card p {
	color: var( --apex-footer-text );
	margin: 0;
	font-size: 1rem;
	line-height: 1.55;
}

/* === process (light section) === */
.apex-about__process h2 {
	margin-bottom: 2.5rem;
}

.apex-about__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: apex-step;
}

.apex-about__steps li {
	position: relative;
	padding-left: 4rem;
	margin-bottom: 2rem;
	max-width: 60ch;
	counter-increment: apex-step;
}

.apex-about__steps li:last-child {
	margin-bottom: 0;
}

.apex-about__steps li::before {
	content: counter( apex-step, decimal-leading-zero );
	position: absolute;
	left: 0;
	top: 0;
	font-family: var( --apex-ff-mono );
	color: var( --apex-amber );
	font-size: 1.4rem;
	font-weight: 600;
	line-height: 1.2;
}

.apex-about__steps li h3 {
	margin: 0 0 .35rem;
}

.apex-about__steps li p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.55;
}

/* === closing (dark section) === */
.apex-about__closing {
	position: relative;
	background: var( --apex-ink );
	color: var( --apex-footer-text );
	text-align: center;
}

.apex-about__closing::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 6px;
	background: repeating-linear-gradient(
		45deg,
		var( --apex-amber ) 0,
		var( --apex-amber ) 12px,
		var( --apex-ink ) 12px,
		var( --apex-ink ) 24px
	);
}

.apex-about__closing h2 {
	color: #FFF;
	margin: 0 0 1rem;
}

.apex-about__closing p {
	max-width: 50ch;
	margin: 0 auto 2rem;
	color: var( --apex-footer-text );
	font-size: 1.05rem;
}

.apex-about__closing-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
}

/* Button recipe: this page does not load home.css or contact.css, so the
   full store button recipe is defined here. */
.apex-about .apex-btn {
	display: inline-block;
	background: var( --apex-amber );
	color: var( --apex-ink );
	font-family: var( --apex-ff-body );
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .03em;
	border: 2px solid var( --apex-ink );
	border-radius: 2px;
	padding: .85rem 1.75rem;
	box-shadow: 3px 3px 0 var( --apex-ink );
	cursor: pointer;
	transition: transform .1s ease, box-shadow .1s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}

.apex-about .apex-btn:hover {
	background: var( --apex-amber-dark );
}

.apex-about .apex-btn:active {
	box-shadow: 0 0 0 var( --apex-ink );
	transform: translate( 2px, 2px );
}

/* Primary button sits on the dark closing section, so its resting shadow
   needs to be pure black to read against --apex-ink instead of the
   ink-on-ink shadow used elsewhere. */
.apex-about__closing .apex-btn {
	box-shadow: 3px 3px 0 #000;
}

.apex-about__closing .apex-btn:active {
	box-shadow: 0 0 0 #000;
}

/* Ghost variant: transparent bg for use on the dark background. */
.apex-about .apex-btn--ghost {
	background: transparent;
	color: var( --apex-footer-text );
	border: 2px solid var( --apex-footer-text );
	box-shadow: none;
}

.apex-about .apex-btn--ghost:hover {
	border-color: var( --apex-amber );
	color: var( --apex-amber );
	background: transparent;
}

.apex-about .apex-btn--ghost:active {
	box-shadow: none;
	transform: translate( 2px, 2px );
}

.apex-about .apex-btn:focus-visible,
.apex-about .apex-btn--ghost:focus-visible {
	outline: 3px solid var( --apex-amber );
	outline-offset: 2px;
}

.apex-about a:focus-visible {
	outline: 3px solid var( --apex-amber );
	outline-offset: 2px;
}

@media ( prefers-reduced-motion: reduce ) {
	.apex-about .apex-btn,
	.apex-about .apex-btn--ghost {
		transition: none;
	}
}
