/*
Theme Name: Leading from the Marrow
Theme URI: https://bwhudson.com
Author: Brandon Hudson
Author URI: https://bwhudson.com
Description: Custom WordPress theme for bwhudson.com. Built around the Arc — the Enneagram, WHISK-Y Business, and Relearning to Sing in the Storm. Colors and type live in theme.json; this file covers the layout details Gutenberg can't express on its own.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: leading-marrow
*/

/* -----------------------------------------------------------
   Base
----------------------------------------------------------- */

body {
	background-color: var(--wp--preset--color--marrow-paper);
	color: var(--wp--preset--color--marrow-ink);
}

a {
	color: var(--wp--preset--color--marrow-ember);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--wp--preset--color--marrow-gold);
}

/* -----------------------------------------------------------
   Header / Nav
----------------------------------------------------------- */

.lm-site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.5rem 2rem;
	max-width: 1200px;
	margin: 0 auto;
}

.lm-site-header .lm-logo {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--wp--preset--color--marrow-ink);
	text-decoration: none;
}

.lm-site-header nav ul {
	display: flex;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.lm-site-header nav a {
	color: var(--wp--preset--color--marrow-ink);
	text-decoration: none;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
}

.lm-site-header nav a:hover {
	color: var(--wp--preset--color--marrow-ember);
}

.lm-nav-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
}

@media (max-width: 782px) {
	.lm-site-header nav ul {
		display: none;
		flex-direction: column;
		gap: 1rem;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--wp--preset--color--marrow-paper);
		padding: 1.5rem 2rem;
		border-top: 1px solid rgba(0,0,0,0.08);
	}

	.lm-site-header nav ul.is-open {
		display: flex;
	}

	.lm-nav-toggle {
		display: block;
	}
}

/* -----------------------------------------------------------
   Hero (used by the hero block pattern)
----------------------------------------------------------- */

.lm-hero {
	background-color: var(--wp--preset--color--marrow-dark);
	color: var(--wp--preset--color--marrow-paper);
	padding: 6rem 2rem;
	text-align: left;
}

.lm-hero.is-image-hero {
	background-size: cover;
	background-position: center;
	position: relative;
}

.lm-hero.is-image-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(26,23,20,0.55) 0%, rgba(26,23,20,0.8) 100%);
}

.lm-hero.is-image-hero > * {
	position: relative;
	z-index: 1;
}

.lm-hero h1 {
	color: var(--wp--preset--color--marrow-paper);
	max-width: 800px;
}

.lm-hero p {
	max-width: 620px;
	opacity: 0.9;
}

/* -----------------------------------------------------------
   Arc / three-column intro cards
----------------------------------------------------------- */

.lm-arc-card {
	padding: 2rem;
	border-top: 3px solid var(--wp--preset--color--marrow-ember);
	background-color: #ffffff;
}

.lm-arc-card .lm-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.75rem;
	color: var(--wp--preset--color--marrow-ember);
	font-weight: 600;
}

/* -----------------------------------------------------------
   Gentle redirect / small print notes (Library, footer asides)
----------------------------------------------------------- */

.lm-aside {
	font-size: 0.85rem;
	opacity: 0.7;
	max-width: 640px;
	margin: 3rem auto 0;
	text-align: center;
	font-style: italic;
}

/* -----------------------------------------------------------
   Post / archive cards (Lab + Library query loops)
----------------------------------------------------------- */

.lm-post-card {
	background: #ffffff;
	padding: 1.5rem;
	border: 1px solid rgba(0,0,0,0.08);
}

.lm-post-card .lm-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.7rem;
	color: var(--wp--preset--color--marrow-ember);
}

/* -----------------------------------------------------------
   Footer
----------------------------------------------------------- */

.lm-site-footer {
	background-color: var(--wp--preset--color--marrow-dark);
	color: var(--wp--preset--color--marrow-paper);
	padding: 3rem 2rem 2rem;
}

.lm-site-footer a {
	color: var(--wp--preset--color--marrow-paper);
}

.lm-footer-columns {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	justify-content: space-between;
}

.lm-footer-columns ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lm-footer-columns li {
	margin-bottom: 0.5rem;
}

.lm-footer-bottom {
	max-width: 1200px;
	margin: 2rem auto 0;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255,255,255,0.15);
	font-size: 0.85rem;
	opacity: 0.75;
}

/* -----------------------------------------------------------
   404
----------------------------------------------------------- */

.lm-404 {
	text-align: center;
	padding: 6rem 2rem;
	max-width: 640px;
	margin: 0 auto;
}
