/* ==========================================================================
   Flying Down The Rabbit Hole — Main Stylesheet
   ========================================================================== */

:root {
	--color-navy-deep: #0f1a2e;
	--color-navy: #14213d;
	--color-navy-light: #1b2a4a;
	--color-gold: #d4a04c;
	--color-blue-link: #4a9eff;
	--color-white: #ffffff;
	--color-off-white: #e8e8e8;
	--font-heading: Georgia, 'Times New Roman', serif;
	--font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--max-width: 1200px;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--color-navy);
	color: var(--color-off-white);
	font-family: var(--font-body);
	line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-heading); color: var(--color-white); margin: 0 0 0.5em; }

a { color: var(--color-blue-link); }

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px,1px,1px,1px);
}

/* ---- Header ---- */
.site-header-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.5rem;
}
.site-branding { display: flex; align-items: center; }
.custom-logo-link { display: block; }
.custom-logo,
.site-branding img {
	max-height: 80px;
	width: auto;
	height: auto;
	display: block;
}
.primary-menu { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.primary-menu a { color: var(--color-white); text-decoration: none; }

/* ---- Hero ---- */
.hero-section { background: var(--color-navy-deep); padding: 4rem 0; overflow: hidden; position: relative; min-height: 680px; display: flex; align-items: center; }
.hero-texture-bleed {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 4%;
	width: 26%;
	background-image: url('https://flyingdowntherabbithole.com/wp-content/uploads/2025/06/grunge2.png');
	background-size: cover;
	background-position: center;
	z-index: 0;
}
.hero-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 1.5rem;
	width: 100%;
	position: relative;
	z-index: 1;
}
.hero-content { max-width: 480px; }
.hero-title { font-size: 2.75rem; line-height: 1.15; }
.hero-link-preorder { display: block; margin: 1rem 0; text-decoration: underline; font-size: 1.1rem; }
.btn {
	display: inline-flex; align-items: center; gap: 0.5rem;
	padding: 0.75rem 1.5rem; border: 1px solid var(--color-white);
	color: var(--color-white); text-decoration: none; margin-bottom: 1.5rem;
}
.hero-description { max-width: 34ch; }

/* Book is positioned against the SECTION, using the same right-edge
   reference frame as .hero-texture-bleed (32% from the right), so the
   two always meet at the seam regardless of container/viewport width. */
.hero-book-wrap {
	position: absolute;
	top: 50%;
	right: 19%;
	transform: translateY(-50%);
	width: 32%;
	max-width: 520px;
	min-width: 260px;
	z-index: 2;
}
.hero-book-cover { width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)); }

/* ---- Bio section ---- */
.bio-section { background: var(--color-navy); padding: 3rem 1.5rem; }
.bio-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: start;
}
.bio-photo img { width: 100%; height: auto; display: block; }
.bio-photo figcaption { font-size: 0.85rem; background: var(--color-white); color: #222; padding: 0.5rem; }
.eyebrow { color: var(--color-blue-link); font-weight: 600; text-transform: none; margin: 0; }
.bio-name { font-size: 2rem; }
.read-more-link { display: inline-block; margin-top: 1rem; text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---- Video facade ---- */
.bio-video { margin-top: 2rem; }
.video-lead-in { font-weight: 600; margin-bottom: 0.75rem; }
.video-facade {
	position: relative;
	aspect-ratio: 16 / 9;
	max-width: 100%;
	background: #000;
	cursor: pointer;
	overflow: hidden;
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.85; }
.video-play-btn {
	position: absolute; top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 64px; height: 64px; border-radius: 50%;
	background: rgba(0,0,0,0.6); border: 2px solid var(--color-white);
	color: var(--color-white); font-size: 1.25rem; cursor: pointer;
}
.video-facade iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-credit { font-size: 0.85rem; margin-top: 0.5rem; color: var(--color-off-white); opacity: 0.8; }

/* ---- Signed copy CTA ---- */
.cta-signed-section { background: var(--color-navy); padding: 3rem 0; overflow: hidden; position: relative; }
.cta-texture-bleed {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	width: 32%;
	background-image: url('https://flyingdowntherabbithole.com/wp-content/uploads/2025/06/grunge2.png');
	background-size: cover;
	background-position: center;
	z-index: 0;
}
.cta-signed-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 1.5rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: center;
	position: relative;
	z-index: 1;
}
.cta-signed-media {
	position: relative;
	min-height: 350px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}
.cta-signed-media img { max-width: 55%; height: auto; margin-left: -10%; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)); }
.preorder-link { display: inline-block; margin-top: 1rem; text-decoration: underline; }

/* ---- Newsletter ---- */
.newsletter-section { background: var(--color-navy-light); padding: 3rem 1.5rem; text-align: center; }
.newsletter-inner { max-width: 700px; margin: 0 auto; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }
.newsletter-form input {
	padding: 0.75rem 1rem; border: 1px solid var(--color-off-white);
	background: transparent; color: var(--color-white); flex: 1 1 220px;
}
.newsletter-form button {
	padding: 0.75rem 1.5rem; background: var(--color-gold); border: 0; color: var(--color-navy-deep);
	font-weight: 700; cursor: pointer;
}

/* ---- Generic pages ---- */
.standard-page, .single-post, .blog-index { max-width: var(--max-width); margin: 0 auto; padding: 3rem 1.5rem; }

/* ---- About page ---- */
.about-hero { position: relative; background: var(--color-navy-deep); padding: 4rem 1.5rem 3rem; overflow: hidden; }
.about-texture-bleed {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60%;
	max-width: 700px;
	background-image: url('https://flyingdowntherabbithole.com/wp-content/uploads/2025/06/grunge2.png');
	background-size: cover;
	background-position: center;
	opacity: 0.18;
	z-index: 0;
}
.about-hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; text-align: center; }
.about-heading { font-size: 2.25rem; margin-bottom: 2rem; }
.about-pullquote { margin: 0 auto; max-width: 640px; }
.about-pullquote p {
	color: var(--color-blue-link);
	font-family: var(--font-heading);
	font-style: italic;
	font-size: 1.4rem;
	line-height: 1.5;
	margin: 0.5rem 0;
}
.quote-mark { display: block; font-family: var(--font-heading); font-size: 2.5rem; color: var(--color-off-white); opacity: 0.6; line-height: 1; }
.about-pullquote cite {
	display: block;
	margin-top: 1.25rem;
	font-style: normal;
	font-weight: 700;
	color: var(--color-white);
	font-size: 0.95rem;
}

.about-content { max-width: var(--max-width); margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.about-content-inner { max-width: 760px; margin: 0 auto; }
.about-baby-photo { float: left; width: 240px; margin: 0 2.5rem 1.5rem 0; shape-outside: margin-box; }
.about-baby-photo img { width: 100%; height: auto; display: block; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.4)); }
.about-story { font-size: 1.05rem; line-height: 1.85; color: var(--color-off-white); }
.about-story p { margin: 0 0 1.75rem; }
.about-story p:first-of-type { margin-top: 0; }
.about-story img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 2rem auto;
	padding: 10px;
	background: #f2f0eb;
	border: 1px solid rgba(0,0,0,0.15);
	box-shadow: 0 15px 35px rgba(0,0,0,0.45);
}
.about-story br { content: ""; display: block; margin-bottom: 0.5rem; }
.about-story::after { content: ""; display: table; clear: both; }

@media (max-width: 600px) {
	.about-baby-photo { float: none; width: 200px; margin: 0 auto 1.5rem; }
}

/* ---- Prolog page ---- */
.prolog-hero { position: relative; background: var(--color-navy-deep); padding: 4rem 1.5rem 3rem; overflow: hidden; text-align: center; }
.prolog-texture-bleed {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 55%;
	max-width: 650px;
	background-image: url('https://flyingdowntherabbithole.com/wp-content/uploads/2025/06/grunge2.png');
	background-size: cover;
	background-position: center;
	opacity: 0.18;
	z-index: 0;
}
.prolog-hero-inner { position: relative; z-index: 1; }
.prolog-heading { font-size: 2.5rem; margin: 0; }

.prolog-content { max-width: var(--max-width); margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.prolog-content-inner { max-width: 720px; margin: 0 auto; font-size: 1.05rem; line-height: 1.85; color: var(--color-off-white); }
.prolog-content-inner p { margin: 0 0 1.75rem; }
.prolog-content-inner img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 2rem auto;
	padding: 10px;
	background: #f2f0eb;
	border: 1px solid rgba(0,0,0,0.15);
	box-shadow: 0 15px 35px rgba(0,0,0,0.45);
}

/* ---- Blog page ---- */
.blog-hero { position: relative; background: var(--color-navy-deep); padding: 4rem 1.5rem 3rem; overflow: hidden; text-align: center; }
.blog-texture-bleed {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 55%;
	max-width: 650px;
	background-image: url('https://flyingdowntherabbithole.com/wp-content/uploads/2025/06/grunge2.png');
	background-size: cover;
	background-position: center;
	opacity: 0.18;
	z-index: 0;
}
.blog-hero-inner { position: relative; z-index: 1; }
.blog-heading { font-size: 2.5rem; margin: 0; }

.blog-index { max-width: var(--max-width); margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.blog-post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2.5rem;
}
.blog-card { display: flex; flex-direction: column; background: var(--color-navy-light); overflow: hidden; }
.blog-card-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background-image:
		linear-gradient(rgba(15,26,46,0.72), rgba(15,26,46,0.72)),
		url('https://flyingdowntherabbithole.com/wp-content/uploads/2025/06/grunge2.png');
	background-size: cover;
	background-position: center;
}
.fallback-wordmark {
	font-family: var(--font-heading);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--color-gold);
	line-height: 1.4;
	letter-spacing: 0.02em;
	padding: 0 1rem;
}
.blog-card-content { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta { font-size: 0.85rem; color: var(--color-gold); margin: 0 0 0.5rem; text-transform: uppercase; letter-spacing: 0.04em; }
.blog-card-title { font-size: 1.25rem; margin: 0 0 0.75rem; line-height: 1.3; }
.blog-card-title a { color: var(--color-white); text-decoration: none; }
.blog-card-title a:hover { color: var(--color-gold); }
.blog-card-excerpt { font-size: 0.95rem; line-height: 1.6; color: var(--color-off-white); opacity: 0.85; flex: 1; margin-bottom: 1rem; }
.blog-card-readmore { color: var(--color-blue-link); text-decoration: none; font-weight: 600; font-size: 0.9rem; border-bottom: 1px solid currentColor; align-self: flex-start; }

.blog-pagination { margin-top: 3rem; text-align: center; }
.blog-pagination .page-numbers {
	display: inline-block;
	padding: 0.5rem 0.9rem;
	margin: 0 0.25rem;
	color: var(--color-off-white);
	text-decoration: none;
	border: 1px solid rgba(255,255,255,0.2);
}
.blog-pagination .page-numbers.current { background: var(--color-gold); color: var(--color-navy-deep); border-color: var(--color-gold); }
.blog-empty { text-align: center; padding: 3rem 0; opacity: 0.8; }

/* ---- Contact page ---- */
.contact-hero { position: relative; background: var(--color-navy-deep); padding: 4rem 1.5rem 3rem; overflow: hidden; text-align: center; }
.contact-texture-bleed {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 55%;
	max-width: 650px;
	background-image: url('https://flyingdowntherabbithole.com/wp-content/uploads/2025/06/grunge2.png');
	background-size: cover;
	background-position: center;
	opacity: 0.18;
	z-index: 0;
}
.contact-hero-inner { position: relative; z-index: 1; }
.contact-heading { font-size: 2.5rem; margin: 0; }

.contact-content { max-width: var(--max-width); margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.contact-grid { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; align-items: start; }
.contact-follow-label { font-weight: 700; margin-bottom: 1rem; }
.contact-social-icons { display: flex; gap: 1rem; }
.social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--color-navy-light);
	color: var(--color-white);
	transition: background 0.2s ease, color 0.2s ease;
}
.social-icon:hover { background: var(--color-gold); color: var(--color-navy-deep); }

.contact-form-heading { font-size: 1.5rem; margin: 0 0 1.5rem; }
.contact-form-missing { opacity: 0.7; font-style: italic; }

/* Light styling for the embedded WPForms markup so it fits the dark theme */
.contact-form-col .wpforms-container { max-width: 100%; }
.contact-form-col .wpforms-field-label { color: var(--color-white); font-weight: 700; }
.contact-form-col .wpforms-field input[type="text"],
.contact-form-col .wpforms-field input[type="email"],
.contact-form-col .wpforms-field textarea {
	background: var(--color-white);
	border: none;
	padding: 0.65rem 0.85rem;
	width: 100%;
}
.contact-form-col .wpforms-submit {
	background: var(--color-gold);
	color: var(--color-navy-deep);
	border: none;
	padding: 0.65rem 1.5rem;
	font-weight: 700;
	cursor: pointer;
}

@media (max-width: 782px) {
	.contact-grid { grid-template-columns: 1fr; }
}

/* ---- Single blog post ---- */
.single-hero { position: relative; background: var(--color-navy-deep); padding: 4rem 1.5rem 3rem; overflow: hidden; text-align: center; }
.single-texture-bleed {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 55%;
	max-width: 650px;
	background-image: url('https://flyingdowntherabbithole.com/wp-content/uploads/2025/06/grunge2.png');
	background-size: cover;
	background-position: center;
	opacity: 0.18;
	z-index: 0;
}
.single-hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.single-heading { font-size: 2.25rem; margin: 0 0 0.75rem; line-height: 1.25; }
.single-meta { color: var(--color-gold); font-size: 0.9rem; margin: 0; text-transform: uppercase; letter-spacing: 0.04em; }

.single-post { padding: 3rem 1.5rem 4rem; }
.single-post-inner { max-width: 760px; margin: 0 auto; }
.single-post .entry-thumbnail img { width: 100%; height: auto; display: block; margin-bottom: 2rem; }
.single-post .entry-content { font-size: 1.05rem; line-height: 1.85; color: var(--color-off-white); }
.single-post .entry-content p { margin: 0 0 1.75rem; }
.single-post .entry-content img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 2rem auto;
	padding: 10px;
	background: #f2f0eb;
	border: 1px solid rgba(0,0,0,0.15);
	box-shadow: 0 15px 35px rgba(0,0,0,0.45);
}

/* ---- Footer ---- */
.site-footer { background: var(--color-navy-deep); padding: 2rem 1.5rem; }
.site-footer-inner { max-width: var(--max-width); margin: 0 auto; text-align: center; }
.footer-navigation { margin-bottom: 1rem; }
.footer-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.footer-menu a { color: var(--color-off-white); text-decoration: none; font-size: 0.95rem; }
.footer-menu a:hover { color: var(--color-gold); }
.site-info { font-size: 0.85rem; opacity: 0.7; }

/* ---- Responsive ---- */
@media (max-width: 782px) {
	.bio-inner, .cta-signed-inner { grid-template-columns: 1fr; }
	.hero-title { font-size: 2rem; }
	.hero-texture-bleed, .cta-texture-bleed { width: 100%; opacity: 0.4; }
	.hero-section { min-height: 0; padding: 2.5rem 0; display: block; }
	.hero-book-wrap {
		position: static;
		transform: none;
		width: 60%;
		max-width: 260px;
		margin: 2rem auto 0;
	}
}
