/*
Theme Name: Organizational Conditioning
Theme URI: https://organizationalconditioning.com
Author: David Cummings
Description: Custom theme for organizationalconditioning.com. Activating it creates the site's seven pages (Home, The Framework, Books, Articles, Work with David, About, Contact), article categories, and working contact and email sign-up forms.
Version: 1.1.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: organizational-conditioning
*/

/* ---------- Base ---------- */
body { -webkit-font-smoothing: antialiased; }
.oc-main { min-height: 50vh; }
p { margin-top: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Sections ---------- */
.oc-section { padding-top: clamp(56px, 7vw, 88px) !important; padding-bottom: clamp(56px, 7vw, 88px) !important; }
.oc-section.oc-pt0 { padding-top: 0 !important; }
.oc-section.oc-tight { padding-top: 40px !important; padding-bottom: 40px !important; }
.oc-hero { padding-top: clamp(64px, 9vw, 96px) !important; }
.oc-sand { background: #EFE9DB; }
.oc-dark { background: #1C1B19; color: #F7F4EC; }
.oc-dark h1, .oc-dark h2, .oc-dark h3 { color: #F7F4EC; }
.oc-dark p { color: #B9B5AB; }
.oc-dark a:not(.wp-block-button__link) { color: #F7F4EC; }
.oc-center { text-align: center; }
.oc-center .wp-block-buttons { justify-content: center; }
.oc-narrow > * { max-width: 720px !important; }
.oc-narrow > .alignwide, .oc-narrow > .wp-block-columns { max-width: 1080px !important; }

/* ---------- Type helpers ---------- */
.oc-eyebrow, .oc-label, .oc-meta, .oc-num, .oc-cover-vol {
	font-family: 'IBM Plex Mono', ui-monospace, monospace;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}
.oc-eyebrow { font-size: 12px; color: #B5502E; margin-bottom: 4px !important; }
.oc-label { font-size: 11.5px; color: #7A766C; margin-bottom: 0 !important; }
.oc-meta { font-size: 11.5px; letter-spacing: 0.06em; color: #7A766C; }
.oc-num { font-size: 13px; color: #B5502E; letter-spacing: 0.04em; margin-bottom: 0 !important; }
.oc-lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.65; color: #3A3835; }
.oc-muted { color: #4A4844; }
.oc-card-title { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 19px; line-height: 1.3; margin-bottom: 4px !important; }
.oc-jumps a { font-weight: 600; text-decoration: none; margin-right: 22px; }
.oc-arrow-link a { font-weight: 600; text-decoration: none; }
.oc-cred { color: #4A4844; max-width: 640px; margin-left: auto !important; margin-right: auto !important; }
.oc-logos { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 13px; letter-spacing: 0.06em; color: #7A766C; word-spacing: 0.3em; }

/* ---------- Cards ---------- */
.oc-card {
	background: #FFFFFF;
	border: 1px solid #E2DDD0;
	border-radius: 6px;
	padding: clamp(24px, 3vw, 32px) !important;
}
.oc-card > * + * { margin-top: 10px !important; }
.oc-card h3 { margin-top: 6px !important; margin-bottom: 0; }
.oc-card h3 a { color: inherit; text-decoration: none; }
.oc-card h3 a:hover { color: #B5502E; }
.oc-card p { font-size: 15px; line-height: 1.6; color: #4A4844; margin-bottom: 0; }
.oc-cards { gap: 24px !important; }
.oc-cards .oc-card { transition: border-color .15s ease; }
.oc-cards .oc-card:hover { border-color: #C9C2AF; }

/* Comparison strip */
.oc-compare { gap: 1px !important; background: #E2DDD0; border: 1px solid #E2DDD0; border-radius: 6px; overflow: hidden; }
.oc-compare > .wp-block-column { background: #FFFFFF; padding: 26px; margin: 0 !important; }
.oc-compare p { font-size: 15px; color: #4A4844; margin-bottom: 0; }
.oc-compare p strong { color: #1C1B19; display: block; margin-bottom: 6px; }

/* ---------- Books ---------- */
.oc-book { gap: 48px !important; align-items: center !important; }
.oc-cover {
	min-height: 300px;
	border-radius: 4px;
	padding: 26px !important;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: 0 10px 30px rgba(28, 27, 25, 0.18);
	max-width: 240px;
}
.oc-cover-rust { background: #B5502E; }
.oc-cover-green { background: #3E4A34; }
.oc-cover-vol { font-size: 11px; color: rgba(255, 255, 255, 0.75); margin: 0 !important; }
.oc-cover-title { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 26px; line-height: 1.15; color: #FFFFFF; margin: 0 !important; }

/* ---------- About ---------- */
.oc-photo {
	aspect-ratio: 1 / 1;
	max-width: 240px;
	border-radius: 6px;
	background: #E2DDD0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.oc-photo p { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; color: #7A766C; margin: 0; }
.oc-about-hero img { border-radius: 6px; }

/* Press list */
.oc-list { background: #FFFFFF; border: 1px solid #E2DDD0; border-radius: 6px; overflow: hidden; gap: 0 !important; }
.oc-list-row { padding: 20px 28px !important; border-top: 1px solid #E2DDD0; margin: 0 !important; }
.oc-list-row:first-child { border-top: 0; }
.oc-list-row p { margin: 0; }
.oc-list-row strong { display: block; }

/* ---------- Buttons ---------- */
.wp-block-button .wp-block-button__link { transition: background-color .15s ease, color .15s ease; }
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: #1C1B19;
	border: 1px solid #1C1B19;
	padding: 13px 25px;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: #1C1B19; color: #F7F4EC; }
.wp-block-button.is-style-rust .wp-block-button__link { background: #B5502E; color: #F7F4EC; }
.wp-block-button.is-style-rust .wp-block-button__link:hover { background: #963F22; }
.oc-dark .wp-block-button.is-style-outline .wp-block-button__link { color: #F7F4EC; border-color: #F7F4EC; }

/* ---------- Header ---------- */
.oc-header {
	padding: 18px clamp(20px, 4vw, 56px);
	border-bottom: 1px solid #E2DDD0;
	background: #F7F4EC;
	gap: 16px 28px;
}
.oc-logo { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 19px; letter-spacing: 0.01em; margin: 0; display: flex; align-items: center; gap: 10px; }
.oc-logo::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #B5502E; display: inline-block; flex-shrink: 0; }
.oc-logo a { color: #1C1B19; text-decoration: none; }
.oc-header-right { gap: 12px 28px; }
.oc-nav { font-size: 15px; gap: 26px; }
.oc-nav a { color: #4A4844; text-decoration: none; }
.oc-nav a:hover, .oc-nav .current-menu-item > a { color: #B5502E; }
.oc-header-cta .wp-block-button__link { padding: 9px 18px; font-size: 14.5px; }
.oc-nav .wp-block-navigation__responsive-container.is-menu-open { background: #F7F4EC; padding: 32px 24px; }
.oc-nav .wp-block-navigation__responsive-container.is-menu-open a { font-size: 20px; }

/* ---------- Footer ---------- */
.oc-footer { background: #1C1B19; color: #C9C5BB; padding: 56px clamp(20px, 4vw, 56px) 32px !important; font-size: 14px; }
.oc-footer a { color: #C9C5BB; text-decoration: none; }
.oc-footer a:hover { color: #E0805F; }
.oc-footer-cols { gap: 48px !important; }
.oc-footer-brand { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 19px; color: #F7F4EC; margin-bottom: 8px !important; }
.oc-footer-text { color: #9B978D; line-height: 1.6; }
.oc-footer .oc-label { color: #7A766C; margin-bottom: 10px !important; }
.oc-footer-links { list-style: none; padding: 0; margin: 0; }
.oc-footer-links li { margin-bottom: 8px; }
.oc-footer-bottom { border-top: 1px solid #34322D; padding-top: 18px !important; margin-top: 40px !important; font-size: 12.5px; color: #7A766C; }
.oc-footer-bottom p { margin: 0; }

/* ---------- Forms ---------- */
.oc-signup { display: flex; gap: 10px; flex-wrap: wrap; max-width: 460px; }
.oc-center .oc-signup { margin: 0 auto; }
.oc-signup input[type=email] { flex: 1 1 200px; }
.oc-signup input[type=email],
.oc-contact input, .oc-contact textarea {
	font-family: 'Source Sans 3', system-ui, sans-serif;
	font-size: 15px;
	padding: 12px 14px;
	border-radius: 3px;
	border: 1px solid #C9C2AF;
	background: #FFFFFF;
	color: #1C1B19;
	box-sizing: border-box;
}
.oc-signup button, .oc-contact button[type=submit] {
	font-family: 'Source Sans 3', system-ui, sans-serif;
	background: #1C1B19;
	color: #F7F4EC;
	border: 0;
	border-radius: 3px;
	padding: 13px 24px;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	white-space: nowrap;
}
.oc-dark .oc-signup input[type=email], .oc-footer .oc-signup input[type=email] { background: #2A2926; border-color: #4A4844; color: #F7F4EC; }
.oc-dark .oc-signup button, .oc-footer .oc-signup button { background: #B5502E; }
.oc-signup button:hover, .oc-contact button[type=submit]:hover { filter: brightness(1.1); }
.oc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.oc-form-msg { font-weight: 600; margin: 0 0 12px; color: #4B5A38; }
.oc-dark .oc-form-msg, .oc-footer .oc-form-msg { color: #CFDABE; }
.oc-form-error { color: #A3361A !important; }
.oc-dark .oc-form-error, .oc-footer .oc-form-error { color: #F2A98F !important; }

.oc-contact { background: #FFFFFF; border: 1px solid #E2DDD0; border-radius: 6px; padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; }
.oc-contact label { display: block; font-size: 13.5px; font-weight: 600; color: #4A4844; margin-bottom: 6px; }
.oc-contact input, .oc-contact textarea { width: 100%; }
.oc-contact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.oc-types { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.oc-types legend { font-size: 13.5px; font-weight: 600; color: #4A4844; margin-bottom: 8px; padding: 0; }
.oc-type { position: relative; border: 1px solid #E2DDD0; border-radius: 6px; padding: 16px 18px; cursor: pointer; background: #FFFFFF; margin: 0 !important; }
.oc-type input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.oc-type strong { display: block; font-size: 14.5px; color: #1C1B19; }
.oc-type span { font-size: 13px; color: #7A766C; font-weight: 400; }
.oc-type:has(input:checked) { border-color: #B5502E; box-shadow: 0 0 0 1px #B5502E; }
.oc-type:has(input:focus-visible) { outline: 2px solid #B5502E; outline-offset: 2px; }
.oc-contact button[type=submit] { justify-self: start; }

/* ---------- Articles ---------- */
.oc-cat-pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.oc-cat-pills li { margin: 0; }
.oc-cat-pills a {
	font-family: 'IBM Plex Mono', ui-monospace, monospace;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 6px 11px;
	border-radius: 3px;
	border: 1px solid #E2DDD0;
	background: #FFFFFF;
	color: #4A4844;
	text-decoration: none;
	display: inline-block;
}
.oc-cat-pills a:hover, .oc-cat-pills .current-cat a { background: #1C1B19; border-color: #1C1B19; color: #F7F4EC; }
.oc-article-query .wp-block-post-template { gap: 24px; }
.oc-article-card { height: 100%; display: flex; flex-direction: column; box-sizing: border-box; }
.oc-article-card .wp-block-post-terms { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.oc-article-card .wp-block-post-terms a { background: #EFE9DB; color: #8A5A1E; padding: 4px 9px; border-radius: 3px; text-decoration: none; display: inline-block; }
.oc-article-card .wp-block-post-title { font-size: 19px; line-height: 1.3; margin: 0; }
.oc-article-card .wp-block-post-title a { color: #1C1B19; text-decoration: none; }
.oc-article-card .wp-block-post-title a:hover { color: #B5502E; }
.oc-article-card .wp-block-post-excerpt { font-size: 14.5px; color: #4A4844; }
.oc-article-card .wp-block-post-excerpt__more-text { display: none; }
.oc-article-card .wp-block-post-date { margin-top: auto !important; }
.oc-empty { color: #7A766C; }

/* Single article */
.oc-article-body { font-size: 18px; line-height: 1.75; }
.oc-article-body h2 { font-size: 28px; margin-top: 1.6em; }
.oc-article-body h3 { font-size: 22px; margin-top: 1.4em; }
.oc-article-body blockquote { border-left: 3px solid #B5502E; margin-left: 0; padding-left: 20px; font-family: 'Fraunces', Georgia, serif; font-size: 22px; }
.oc-back a { font-weight: 600; text-decoration: none; }

/* ---------- Home (v1.1) ---------- */
.oc-hero-home { padding-top: clamp(40px, 6vw, 72px) !important; }
.oc-home-hero { gap: clamp(32px, 5vw, 64px) !important; }
.oc-photo-lg { max-width: 360px; aspect-ratio: 4 / 5; margin-left: auto; }
.oc-home-hero .wp-block-image img { border-radius: 6px; width: 100%; height: auto; object-fit: cover; }
.oc-photo-name { max-width: 360px; margin-left: auto !important; margin-top: 14px !important; font-size: 14px; color: #7A766C; }
.oc-photo-name strong { display: block; font-family: 'Fraunces', Georgia, serif; font-size: 18px; color: #1C1B19; }
.oc-flex-card { display: flex; flex-direction: column; }
.oc-flex-card > .oc-arrow-link, .oc-flex-card > .wp-block-buttons { margin-top: auto !important; padding-top: 8px; }
.oc-flex-card h3 { font-size: 20px; line-height: 1.3; }
.oc-mini-covers { gap: 12px !important; }
.oc-cover-sm { min-height: 150px; max-width: 104px; flex: 0 0 104px; padding: 12px !important; box-shadow: 0 6px 16px rgba(28, 27, 25, 0.16); }
.oc-cover-sm .oc-cover-vol { font-size: 9px; }
.oc-cover-sm .oc-cover-title { font-size: 14px; line-height: 1.2; }
.oc-mini-covers .wp-block-image { flex: 0 0 104px; margin: 0; }
.oc-mini-covers .wp-block-image img { border-radius: 3px; box-shadow: 0 6px 16px rgba(28, 27, 25, 0.16); }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	.oc-book { gap: 28px !important; }
	.oc-cover { min-height: 240px; }
	.oc-header { padding-top: 14px; padding-bottom: 14px; }
	.oc-footer-cols { gap: 28px !important; }
	.oc-signup button { width: 100%; }
	.oc-photo-lg, .oc-photo-name { margin-left: 0 !important; max-width: 280px; }
}
