/*
Theme Name: Shannon Hatch
Theme URI: https://shannonhatch.co
Description: Custom child theme for Shannon Hatch — book launch and Spearhead Movement site, built on Twenty Twenty-Five page templates.
Author: Shannon Hatch
Template: twentytwentyfive
Version: 1.5.4
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Text Domain: shannon-hatch
*/

/* Brand refinements beyond theme.json */

/* Remove WP accessibility focus outlines */
:where(.wp-site-blocks :focus),
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content:focus,
a:focus,
button:focus,
.wp-element-button:focus,
.wp-block-button__link:focus {
	outline: none !important;
	outline-offset: 0 !important;
	box-shadow: none !important;
}

.skip-link.screen-reader-text {
	display: none !important;
}

.shannon-site-header .shannon-brand {
	margin: 0;
}

.shannon-site-header .shannon-brand a {
	color: inherit;
	text-decoration: none;
}

.shannon-site-header .shannon-brand strong {
	font-weight: 700;
}

.shannon-site-header .wp-block-navigation a {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	font-size: 0.95rem;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-decoration: none;
}

.shannon-site-header .wp-block-navigation a::after {
	content: attr(data-text);
	height: 0;
	overflow: hidden;
	font-weight: 700;
	visibility: hidden;
	pointer-events: none;
	user-select: none;
}

.shannon-site-header .wp-block-navigation a:hover,
.shannon-site-header .wp-block-navigation a:focus {
	font-weight: 700;
	text-decoration: none;
}

.shannon-star-row {
	display: flex;
	gap: 0.65rem;
	align-items: center;
	line-height: 1;
}

.shannon-star-row span {
	font-size: 0.7rem;
	letter-spacing: 0;
}

.shannon-title-logo {
	margin: 0;
	line-height: 0;
}

.shannon-title-logo img {
	display: block;
	width: min(100%, 270px);
	height: auto;
}

.shannon-symbols {
	margin: 1.25rem 0 1rem !important;
	line-height: 0;
}

.shannon-symbols img {
	display: block;
	width: 140px;
	max-width: 45%;
	height: auto;
}

/* Flush-left stack (Home / Books / Spearhead side columns) */
.shannon-left-stack {
	display: flex !important;
	flex-direction: column;
	align-items: flex-start !important;
	text-align: left !important;
}

.shannon-left-stack > * {
	margin-left: 0 !important;
	margin-right: 0 !important;
	align-self: flex-start !important;
	text-align: left !important;
	width: auto;
	max-width: 100%;
}

.shannon-left-stack .shannon-hero-title {
	text-align: left !important;
	padding-left: 0 !important;
	margin-left: 0 !important;
}

.shannon-left-stack .shannon-symbols,
.shannon-left-stack .shannon-symbols img {
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
}

.shannon-left-stack .shannon-invite {
	margin-left: 0 !important;
	padding-left: 0 !important;
	text-indent: 0 !important;
}

.shannon-left-stack .shannon-ghost-btn {
	display: flex !important;
	justify-content: flex-start !important;
	width: auto !important;
}

.shannon-left-stack .shannon-ghost-btn .wp-block-button {
	margin: 0 !important;
}

/* Centered stack (About Shannon left column — matches mockup) */
.shannon-center-stack {
	display: flex !important;
	flex-direction: column;
	align-items: center !important;
	text-align: center !important;
}

.shannon-center-stack > * {
	align-self: center !important;
	text-align: center !important;
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: 100%;
}

.shannon-center-stack .shannon-hero-title {
	text-align: center !important;
	width: 100%;
}

.shannon-center-stack .shannon-symbols {
	margin-left: auto !important;
	margin-right: auto !important;
}

.shannon-center-stack .shannon-symbols img {
	margin-left: auto;
	margin-right: auto;
}

.shannon-center-stack .shannon-invite {
	text-align: center !important;
	max-width: 18.5rem;
	width: 100%;
}

.shannon-center-stack .shannon-ghost-btn {
	display: flex !important;
	justify-content: center !important;
	width: 100% !important;
}

.shannon-center-stack .shannon-ghost-btn .wp-block-button {
	margin: 0 !important;
}

.shannon-center-stack .shannon-title-logo,
.shannon-center-stack .shannon-title-logo img {
	display: block;
	margin-left: auto !important;
	margin-right: auto !important;
	text-align: center !important;
}

.shannon-center-stack .shannon-preorder {
	text-align: center !important;
	width: auto;
}

.shannon-center-stack .shannon-retailer-logos {
	justify-content: center !important;
	width: 100% !important;
}

.shannon-preorder {
	margin-top: 0.25rem;
}

.shannon-cta-btn .wp-block-button__link {
	border-radius: 6px;
	padding: 0.85rem 2.25rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.shannon-ghost-btn .wp-block-button__link {
	border-radius: 6px;
	padding: 0.75rem 1.75rem;
	background: transparent !important;
	border: 1px solid currentColor;
}

.shannon-retailer-logos {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex-wrap: wrap;
}

.shannon-retailer-logos img {
	height: 22px;
	width: auto;
	opacity: 0.85;
}

.shannon-retailer-logos.is-light img {
	opacity: 0.92;
	/* Prefer dedicated *-white.svg assets; filter is a fallback only */
	filter: none;
}

.shannon-hero-dark,
.shannon-hero-about,
.shannon-hero-spearhead {
	min-height: calc(100vh - 72px);
}

.shannon-hero-dark .wp-block-cover__background {
	opacity: 0.28;
}

.shannon-hero-about .wp-block-cover__image-background {
	object-position: center 18%;
}

.shannon-hero-about .wp-block-cover__background {
	/* Keep portrait visible in the center, darken sides for type */
	background: linear-gradient(
		90deg,
		rgba(28, 28, 28, 0.72) 0%,
		rgba(28, 28, 28, 0.28) 38%,
		rgba(28, 28, 28, 0.2) 55%,
		rgba(28, 28, 28, 0.65) 100%
	) !important;
	opacity: 1 !important;
}

.shannon-hero-spearhead .wp-block-cover__image-background {
	object-position: 72% center;
	transform: none;
	filter: brightness(1.14) contrast(1.04) saturate(1.08);
}

.shannon-hero-dark .wp-block-cover__image-background {
	object-position: center center;
}

.shannon-hero-about .wp-block-columns {
	min-height: calc(88vh - 8rem);
	align-items: center !important;
}

.shannon-hero-spearhead .wp-block-columns,
.shannon-spearhead-columns {
	min-height: 0;
	align-items: flex-start !important;
}

.shannon-hero-spearhead .wp-block-cover__background {
	/* Shade only the left so type reads, leave the knight and city luminous */
	background: linear-gradient(
		90deg,
		rgba(16, 12, 10, 0.52) 0%,
		rgba(16, 12, 10, 0.28) 36%,
		rgba(16, 12, 10, 0.06) 56%,
		rgba(16, 12, 10, 0) 72%
	) !important;
	opacity: 1 !important;
}

.shannon-hero-spearhead .shannon-spearhead-copy {
	max-width: 38rem;
	text-shadow: 0 2px 22px rgba(0, 0, 0, 0.4);
}

.shannon-hero-spearhead .shannon-hero-title {
	white-space: nowrap;
}

.shannon-ig-join a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: inherit;
	text-decoration: none;
	letter-spacing: 0.01em;
}

.shannon-ig-join a:hover {
	text-decoration: underline;
}

.shannon-ig-join img {
	width: 16px;
	height: 16px;
	filter: invert(1);
	opacity: 0.95;
}

.shannon-hero-spearhead .is-layout-constrained > .shannon-hero-entries,
.shannon-hero-spearhead .wp-block-shortcode,
.shannon-hero-entries {
	width: 100%;
	max-width: 52rem;
	margin-top: 2.25rem;
	margin-left: 0 !important;
	margin-right: auto !important;
	justify-self: start !important;
}

.shannon-hero-entries-label {
	margin: 0 0 0.85rem;
	font-family: var(--wp--preset--font-family--quincy-cf), serif;
	font-size: 1.35rem;
	font-style: italic;
	font-weight: 400;
	color: #fff;
}

.shannon-hero-entries .shannon-entry-list {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 2rem;
}

.shannon-hero-card {
	display: flex;
	align-items: stretch;
	box-sizing: border-box;
	flex: 0 0 auto;
	width: 13rem;
	color: #fff;
	text-decoration: none;
	background: transparent;
	border: 2px solid #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: none;
}

.shannon-hero-card:hover {
	transform: none;
	border-color: #fff;
	box-shadow: none;
	text-decoration: none;
}

.shannon-hero-card .shannon-entry-date {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	flex: 0 0 auto;
	min-width: 0;
	width: 3.9rem;
	padding: 0.5rem 0.4rem;
	background: #fff;
	color: #6b4a32;
	text-align: center;
	line-height: 1.15;
}

.shannon-hero-card .shannon-entry-day,
.shannon-hero-card .shannon-entry-year {
	color: #6b4a32;
	opacity: 1;
	font-style: normal;
	font-family: var(--wp--preset--font-family--proxima-nova), sans-serif;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0;
}

.shannon-hero-card .shannon-entry-year {
	margin-top: 0;
}

.shannon-hero-card .shannon-entry-body {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.5rem 0.85rem;
	background: rgba(126, 120, 114, 0.55);
}

.shannon-hero-card .shannon-entry-title {
	margin: 0;
	color: #fff;
	font-family: var(--wp--preset--font-family--proxima-nova), sans-serif;
	font-size: 0.875rem;
	font-style: normal;
	font-weight: 700;
	line-height: 1.15;
}

.shannon-view-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 1.15rem;
	padding: 0.5rem 1.3rem;
	border: 2px solid #fff;
	border-radius: 12px;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
}

.shannon-view-all:hover {
	background: #fff;
	color: #2b2b2b;
	text-decoration: none;
}

#words {
	scroll-margin-top: 1.25rem;
}

.shannon-spearhead-journal.shannon-page-cream {
	min-height: auto;
	display: block;
}

.shannon-entry-list {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.shannon-entry-card {
	display: flex;
	align-items: stretch;
	gap: 0;
	color: #1c1c1c;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid rgba(43, 43, 43, 0.16);
	border-radius: 10px;
	overflow: hidden;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.shannon-entry-card:hover {
	transform: translateY(-2px);
	border-color: rgba(217, 119, 45, 0.45);
	box-shadow: 0 10px 28px rgba(28, 28, 28, 0.08);
	text-decoration: none;
}

.shannon-entry-date {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-width: 5.6rem;
	padding: 1rem 0.9rem;
	background: #2b2b2b;
	color: #fbf8ef;
	text-align: center;
	line-height: 1.15;
}

.shannon-entry-day {
	font-family: var(--wp--preset--font-family--quincy-cf), Georgia, serif;
	font-style: italic;
	font-size: 1.15rem;
}

.shannon-entry-year {
	margin-top: 0.2rem;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	opacity: 0.72;
}

.shannon-entry-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.3rem;
	padding: 1rem 1.2rem;
	min-width: 0;
}

.shannon-entry-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--proxima-nova), sans-serif;
	font-size: 1.05rem;
	font-style: normal;
	font-weight: 600;
	line-height: 1.35;
}

.shannon-entry-excerpt {
	font-size: 0.9rem;
	line-height: 1.5;
	color: rgba(28, 28, 28, 0.72);
}

.shannon-entry-empty {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
}

.shannon-entry-back a {
	color: inherit;
	text-decoration: none;
}

.shannon-entry-back a:hover {
	color: #d9772d;
	text-decoration: underline;
}

.shannon-ig-original {
	margin-bottom: 1.25rem !important;
	font-size: 0.92rem;
}

.shannon-ig-original a {
	color: #d9772d;
}

.shannon-entry-single .wp-block-post-content p {
	font-size: 1.05rem;
	line-height: 1.7;
}

.shannon-home-columns {
	min-height: calc(88vh - 8rem);
	align-items: center !important;
}

body {
	margin: 0;
	background-color: #2B2B2B;
}

html {
	background-color: #2B2B2B;
	scroll-behavior: smooth;
}

.wp-site-blocks {
	background-color: #2B2B2B;
	min-height: 100vh;
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}

.wp-site-blocks > footer.wp-block-template-part,
.shannon-footer-bar {
	margin-bottom: 0 !important;
}

.wp-site-blocks > * + * {
	margin-block-start: 0 !important;
}

main.wp-block-group {
	margin-block-start: 0 !important;
}

.shannon-hero-dark .wp-block-cover__inner-container,
.shannon-hero-about .wp-block-cover__inner-container,
.shannon-hero-spearhead .wp-block-cover__inner-container {
	width: 100%;
}

.shannon-hero-spearhead.wp-block-cover {
	flex-direction: column !important;
	justify-content: center !important;
	align-items: stretch !important;
}

.shannon-hero-spearhead .wp-block-cover__inner-container {
	display: flex !important;
	flex-direction: column;
	justify-content: center;
	align-items: stretch !important;
	width: 100% !important;
	max-width: none !important;
	flex: 0 1 auto !important;
}

.shannon-hero-spearhead .wp-block-group.alignwide {
	width: 100% !important;
	max-width: 1280px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box;
}

.shannon-hero-spearhead .shannon-spearhead-columns {
	width: 100%;
}

.shannon-page-cream {
	background-color: var(--wp--preset--color--cream);
}

.shannon-footer-bar {
	font-family: var(--wp--preset--font-family--quincy-cf);
	font-size: 0.8rem;
	/* Paint past the bottom edge so no page background peeks through */
	box-shadow: 0 1px 0 0 #2B2B2B, 0 100vh 0 100vh #2B2B2B;
}

.shannon-social-row a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	opacity: 0.9;
}

.shannon-social-row a:hover {
	opacity: 1;
}

.shannon-social-row img {
	width: 22px;
	height: 22px;
}

.shannon-page-cream .wp-block-columns {
	align-items: center !important;
}

/* Hardcover mockup — keep the full 3D book, no 3:4 crop */
.shannon-page-cream:not(.shannon-page-about) .wp-block-columns > .wp-block-column:nth-child(2) .shannon-book-mockup,
.shannon-page-cream:not(.shannon-page-about) .wp-block-columns > .wp-block-column:nth-child(2) .wp-block-image {
	filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.28));
}

.shannon-page-cream:not(.shannon-page-about) .wp-block-columns > .wp-block-column:nth-child(2) .shannon-book-mockup img,
.shannon-page-cream:not(.shannon-page-about) .wp-block-columns > .wp-block-column:nth-child(2) .wp-block-image img {
	width: 100%;
	max-height: min(72vh, 640px);
	height: auto;
	object-fit: contain;
	aspect-ratio: auto;
	background: transparent;
	border-radius: 0;
}

/* About portrait — full figure, no dark crop box */
.shannon-page-about .wp-block-columns > .wp-block-column:nth-child(2) .shannon-about-portrait {
	filter: none;
	width: 100%;
	margin: 0 !important;
	overflow: visible;
}

.shannon-page-about .wp-block-columns > .wp-block-column:nth-child(2) .shannon-about-portrait img {
	width: 120%;
	max-width: none;
	height: auto;
	max-height: calc(100vh - 120px);
	margin: 0 0 0 -10%;
	object-fit: contain;
	object-position: center bottom;
	aspect-ratio: auto;
	background: transparent !important;
	border-radius: 0;
	display: block;
}

/* Portrait stands on the footer line rather than floating mid-section */
.shannon-page-about .wp-block-columns > .wp-block-column:nth-child(2) {
	align-self: flex-end !important;
}

.shannon-page-about {
	min-height: calc(100vh - 72px);
	padding-top: 1.5rem !important;
	padding-bottom: 0 !important;
}

.shannon-page-about .wp-block-columns {
	min-height: calc(100vh - 160px);
}

.shannon-ghost-btn-dark .wp-block-button__link {
	color: #2B2B2B !important;
	border-color: #2B2B2B !important;
	background: transparent !important;
}

.shannon-ghost-btn-dark .wp-block-button__link:hover {
	background: #2B2B2B !important;
	color: #FBF8EF !important;
}

.shannon-retailer-logos .wp-block-image,
.shannon-retailer-logos .wp-block-image img,
.shannon-symbols,
.shannon-symbols img,
.shannon-title-logo img {
	filter: none;
	aspect-ratio: auto;
	max-height: none;
	background: transparent;
	object-fit: contain;
}

.shannon-retailer-logos .wp-block-image img {
	width: auto;
	height: 22px;
}

.shannon-page-cream {
	min-height: calc(100vh - 140px);
	display: flex;
	align-items: center;
}

.shannon-spearhead-journal.shannon-page-cream {
	min-height: auto;
	display: block;
	align-items: unset;
}

.shannon-entry-single.shannon-page-cream {
	min-height: calc(100vh - 130px);
	display: block;
	align-items: unset;
}

@media (max-width: 781px) {
	.shannon-hero-dark,
	.shannon-hero-about,
	.shannon-hero-spearhead {
		min-height: auto;
	}

	.shannon-hero-title {
		font-size: clamp(2.2rem, 10vw, 3.5rem) !important;
	}

	.shannon-home-spacer {
		display: none;
	}

	.shannon-hero-spearhead .shannon-spearhead-art {
		display: none;
	}

	.shannon-hero-spearhead .wp-block-cover__image-background {
		object-position: 68% center;
		filter: brightness(1.08) contrast(1.04) saturate(1.06);
	}

	.shannon-hero-spearhead .wp-block-cover__background {
		background: linear-gradient(
			180deg,
			rgba(16, 12, 10, 0.58) 0%,
			rgba(16, 12, 10, 0.4) 100%
		) !important;
	}

	.shannon-hero-spearhead .shannon-spearhead-copy {
		max-width: 100%;
	}

	.shannon-hero-spearhead .shannon-hero-title {
		white-space: normal;
	}

	.shannon-hero-entries .shannon-entry-list {
		gap: 1rem;
	}
}
