/*
Theme Name: Book Journey
Theme URI: https://www.bookjourney.club/
Author: Book Journey
Description: A warm, editorial block theme for Book Journey's reading community.
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 8.3
Version: 0.1.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bookjourney
Tags: full-site-editing, block-patterns, block-styles, custom-colors, custom-logo, editor-style, featured-images, translation-ready, wide-blocks, accessibility-ready
*/

:root {
	--bookjourney-shadow: 0 18px 50px rgba(70, 43, 139, 0.14);
	--bookjourney-ink-soft: rgba(23, 21, 31, 0.7);
}

html {
	scroll-behavior: smooth;
}

a {
	text-underline-offset: 0.18em;
}

.wp-site-blocks {
	overflow: hidden;
}

.bookjourney-header {
	border-top: 4px solid var(--wp--preset--color--secondary);
	border-bottom: 1px solid rgba(70, 43, 139, 0.16);
}

.bookjourney-header .wp-block-site-logo img {
	max-height: 4.5rem;
	object-fit: contain;
}

.bookjourney-hero {
	background: linear-gradient(115deg, #fffdf8 0%, #fffdf8 58%, #eaf5fa 58%, #eaf5fa 100%);
}

.bookjourney-hero .wp-block-columns {
	gap: clamp(2.5rem, 7vw, 7rem);
}

.bookjourney-hero h1 {
	max-width: 11ch;
}

.bookjourney-hero > .wp-block-columns > .wp-block-column:last-child {
	position: relative;
}

.bookjourney-hero > .wp-block-columns > .wp-block-column:last-child::before {
	background: var(--wp--preset--color--sun);
	border-radius: 50%;
	content: "";
	height: clamp(7rem, 16vw, 13rem);
	position: absolute;
	right: -2rem;
	top: -2rem;
	width: clamp(7rem, 16vw, 13rem);
}

.bookjourney-hero-image {
	margin: 0;
	position: relative;
	z-index: 1;
}

.bookjourney-hero-image img {
	aspect-ratio: 0.82;
	border: 0.75rem solid var(--wp--preset--color--base);
	box-shadow: var(--bookjourney-shadow);
	object-fit: cover;
	transform: rotate(2deg);
}

.bookjourney-mission p:last-child {
	color: #fff;
}

.bookjourney-process-grid {
	align-items: start;
	display: grid;
	gap: clamp(1rem, 3vw, 2rem);
	grid-template-columns: repeat(12, minmax(0, 1fr));
	padding-bottom: clamp(3rem, 6vw, 5rem);
}

.bookjourney-process-grid .bookjourney-card {
	background: var(--wp--preset--color--base);
	border: 0;
	border-top: 4px solid var(--wp--preset--color--primary);
	border-radius: 0 0 0.35rem 0.35rem;
	box-shadow: 0 1rem 2rem rgba(70, 43, 139, 0.08);
	grid-column: span 4;
	position: relative;
}

.bookjourney-process-grid .wp-block-column:nth-child(2) {
	border-top-color: var(--wp--preset--color--secondary);
	transform: translateY(3rem);
}

.bookjourney-process-grid .wp-block-column:nth-child(3) {
	border-top-color: var(--wp--preset--color--sun);
	transform: translateY(6rem);
}

.bookjourney-testimonials {
	border-top: 1px solid rgba(70, 43, 139, 0.12);
	border-bottom: 1px solid rgba(70, 43, 139, 0.12);
}

.bookjourney-testimonial-grid {
	align-items: start;
	gap: clamp(1.5rem, 4vw, 4rem);
}

.bookjourney-testimonial-card {
	box-shadow: 0 1rem 2rem rgba(70, 43, 139, 0.08);
}

.bookjourney-testimonial-card:nth-child(2) {
	margin-top: clamp(2rem, 5vw, 5rem);
}

.bookjourney-newsletter {
	box-sizing: border-box;
	box-shadow: 0 1rem 2rem rgba(70, 43, 139, 0.06);
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: 1280px !important;
	width: calc(100% - 6rem) !important;
}

.bookjourney-newsletter .wp-block-buttons {
	margin-top: 2rem;
}

.bookjourney-process-grid .bookjourney-card::after {
	color: var(--wp--preset--color--secondary);
	content: "+";
	font-size: 1.5rem;
	position: absolute;
	right: 1.5rem;
	top: 1.5rem;
}

.bookjourney-card {
	border: 1px solid rgba(70, 43, 139, 0.14);
	box-shadow: var(--bookjourney-shadow);
}

.bookjourney-edition-choices {
	margin: 2rem 0;
}

.bookjourney-edition-choices__grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bookjourney-edition-choice {
	border: 1px solid rgba(70, 43, 139, 0.2);
	border-radius: 0.5rem;
	padding: 1.25rem;
}

.bookjourney-edition-choice--featured {
	background: rgba(70, 43, 139, 0.06);
}

.bookjourney-edition-choice__notice {
	font-weight: 700;
}

.bookjourney-edition-page .wp-block-woocommerce-add-to-cart-form {
	display: none;
}

.bookjourney-blog-card {
	border-bottom: 1px solid rgba(70, 43, 139, 0.14);
}

.bookjourney-post-meta {
	display: flex;
	flex-wrap: wrap;
	font-size: 0.875rem;
	gap: 0.35rem;
	margin-top: 1rem;
}

.bookjourney-process-step {
	border: 1px solid rgba(70, 43, 139, 0.14);
}

.bookjourney-left-rail {
	--bookjourney-rail-color: var(--wp--preset--color--primary);
	border-left: 0.35rem solid var(--bookjourney-rail-color);
}

.bookjourney-left-rail--blue {
	--bookjourney-rail-color: var(--wp--preset--color--secondary);
}

.bookjourney-left-rail--sun {
	--bookjourney-rail-color: var(--wp--preset--color--sun);
}

.bookjourney-how-page {
	box-sizing: border-box;
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: 1280px !important;
	padding: 0 !important;
	width: calc(100% - 6rem) !important;
}

.bookjourney-how-page .bookjourney-process-step {
	border-bottom: 0;
	border-right: 0;
	border-top: 0;
	border-radius: 0;
	box-shadow: none;
	margin-bottom: clamp(2rem, 5vw, 4rem);
	padding-left: clamp(1.25rem, 5vw, 5rem) !important;
}

.bookjourney-how-page .bookjourney-process-step--choice {
	margin-left: clamp(0rem, 5vw, 5rem);
}

.bookjourney-how-page .bookjourney-process-step--enjoyment {
	margin-left: clamp(0rem, 5vw, 5rem);
}

.bookjourney-how-page .bookjourney-process-step h2 {
	text-wrap: balance;
}

.bookjourney-form {
	display: grid;
	gap: 1rem;
}

.bookjourney-form p {
	margin: 0;
}

.bookjourney-form label {
	display: block;
	font-weight: 700;
	margin-bottom: 0.35rem;
}

.bookjourney-form input:not([type="checkbox"]),
.bookjourney-form select,
.bookjourney-form textarea {
	box-sizing: border-box;
	border: 1px solid rgba(70, 43, 139, 0.35);
	border-radius: 0.35rem;
	font: inherit;
	padding: 0.75rem;
	width: 100%;
}

.bookjourney-form input:focus-visible,
.bookjourney-form select:focus-visible,
.bookjourney-form textarea:focus-visible {
	outline: 3px solid var(--wp--preset--color--secondary-strong);
	outline-offset: 2px;
}

.bookjourney-checkbox {
	font-weight: 400 !important;
}

.bookjourney-checkbox input {
	margin-right: 0.5rem;
}

.bookjourney-team-image img {
	aspect-ratio: 1;
	border-radius: 50%;
	object-fit: cover;
	width: 10.625rem;
}

.bookjourney-about-page {
	box-sizing: border-box;
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: 1280px !important;
	padding-top: clamp(1rem, 3vw, 2rem);
	width: calc(100% - 6rem) !important;
}

.bookjourney-page-main > .wp-block-post-title {
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	max-width: var(--wp--style--global--wide-size);
	padding-left: clamp(1.25rem, 4vw, 3rem);
	padding-right: clamp(1.25rem, 4vw, 3rem);
}

.bookjourney-contact-page {
	box-sizing: border-box;
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: 1280px !important;
	padding: 0 !important;
	width: calc(100% - 6rem) !important;
}

.bookjourney-contact-card {
	background: var(--wp--preset--color--mist);
	border: 0;
	box-shadow: none;
	margin: 0 auto;
	max-width: 960px;
	padding: clamp(1.5rem, 5vw, 4rem) !important;
}

.bookjourney-contact-card > .has-large-font-size {
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	text-wrap: balance;
}

.bookjourney-contact-card .bookjourney-form {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: clamp(2rem, 4vw, 3rem);
}

.bookjourney-contact-card .bookjourney-form p:nth-of-type(3),
.bookjourney-contact-card .bookjourney-form p:nth-of-type(4),
.bookjourney-contact-card .bookjourney-form p:nth-of-type(5) {
	grid-column: 1 / -1;
}

.bookjourney-complaint-card .bookjourney-form p:nth-of-type(3),
.bookjourney-complaint-card .bookjourney-form p:nth-of-type(8) {
	grid-column: 1 / -1;
}

.bookjourney-complaint-card .bookjourney-form p:nth-of-type(4),
.bookjourney-complaint-card .bookjourney-form p:nth-of-type(5) {
	grid-column: auto;
}

.bookjourney-about-intro {
	margin-bottom: clamp(3rem, 7vw, 6rem);
	max-width: 52rem;
	padding-left: clamp(1.25rem, 4vw, 3rem);
}

.bookjourney-about-intro p {
	max-width: 65ch;
}

.bookjourney-about-page > .wp-block-heading {
	text-wrap: balance;
}

.bookjourney-about-page > .wp-block-heading:first-of-type {
	color: var(--wp--preset--color--primary);
	font-size: clamp(2.5rem, 6vw, 5rem);
	margin-bottom: clamp(2rem, 5vw, 4rem);
}

.bookjourney-team-grid {
	align-items: start;
	gap: clamp(2rem, 5vw, 5rem);
	margin-bottom: clamp(4rem, 8vw, 7rem);
}

.bookjourney-about-page > .bookjourney-team-grid {
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: none !important;
	width: 100% !important;
}

.bookjourney-team-grid > .wp-block-column {
	min-width: 0;
}

.bookjourney-team-grid .bookjourney-team-image {
	margin-bottom: 1.25rem;
}

.bookjourney-team-grid .bookjourney-team-image img {
	border-radius: 0.75rem;
	box-shadow: 0.75rem 0.75rem 0 var(--wp--preset--color--mist);
	max-width: 13rem;
}

.bookjourney-team-grid--creative .bookjourney-team-image img {
	box-shadow: 0.55rem 0.55rem 0 var(--wp--preset--color--secondary);
}

.bookjourney-team-grid h3 {
	text-wrap: balance;
}

.bookjourney-team-grid p:not(.has-small-font-size) {
	max-width: 65ch;
}

.bookjourney-partner-card {
	background: var(--wp--preset--color--mist);
	border: 0;
	box-shadow: none;
	margin-bottom: clamp(4rem, 8vw, 7rem);
}

.bookjourney-partner-card figure {
	background: var(--wp--preset--color--base);
	padding: 1rem;
}

.bookjourney-partner-card img {
	max-height: 10rem;
	object-fit: contain;
}

.wp-block-button__link,
.wp-element-button {
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.wp-block-button__link:focus-visible,
.wp-element-button:focus-visible {
	outline: 3px solid var(--wp--preset--color--secondary-strong);
	outline-offset: 3px;
}

.bookjourney-arched-image {
	border-radius: 14rem 14rem 1.25rem 1.25rem;
}

.bookjourney-doodle {
	position: relative;
}

.bookjourney-doodle::after {
	border: 1px solid currentColor;
	border-radius: 50%;
	content: "";
	height: 5rem;
	top: -1.5rem;
	right: -2rem;
	position: absolute;
	transform: rotate(14deg);
	width: 8rem;
}

@media (max-width: 781px) {
	.bookjourney-hero {
		background: #fffdf8;
	}

	.bookjourney-hero h1 {
		max-width: 13ch;
	}

	.bookjourney-hero > .wp-block-columns > .wp-block-column:last-child::before {
		right: 0;
	}

	.bookjourney-hero-image img {
		transform: rotate(0);
	}

	.bookjourney-process-grid {
		display: flex;
		padding-bottom: 0;
	}

	.bookjourney-process-grid .wp-block-column:nth-child(2),
	.bookjourney-process-grid .wp-block-column:nth-child(3) {
		transform: none;
	}

	.bookjourney-testimonial-card:nth-child(2) {
		margin-top: 0;
	}

	.bookjourney-newsletter {
		width: calc(100% - 2.5rem) !important;
	}

	.bookjourney-edition-choices__grid {
		grid-template-columns: 1fr;
	}

	.bookjourney-doodle::after {
		display: none;
	}

	.bookjourney-about-page {
		padding-top: 0;
		width: calc(100% - 2.5rem) !important;
	}

	.bookjourney-contact-page {
		width: calc(100% - 2.5rem) !important;
	}

	.bookjourney-contact-card .bookjourney-form {
		grid-template-columns: 1fr;
	}

	.bookjourney-contact-card .bookjourney-form p:nth-of-type(3),
	.bookjourney-contact-card .bookjourney-form p:nth-of-type(4),
	.bookjourney-contact-card .bookjourney-form p:nth-of-type(5) {
		grid-column: auto;
	}

	.bookjourney-complaint-card .bookjourney-form p:nth-of-type(3),
	.bookjourney-complaint-card .bookjourney-form p:nth-of-type(8) {
		grid-column: auto;
	}

	.bookjourney-how-page {
		width: calc(100% - 2.5rem) !important;
	}

	.bookjourney-how-page .bookjourney-process-step--choice,
	.bookjourney-how-page .bookjourney-process-step--enjoyment {
		margin-left: 0;
	}

	.bookjourney-about-intro {
		margin-bottom: 3rem;
	}

	.bookjourney-team-grid {
		gap: 2.5rem;
		margin-bottom: 4rem;
	}

	.bookjourney-about-page > .bookjourney-team-grid {
		width: 100% !important;
	}

	.bookjourney-team-grid .bookjourney-team-image img {
		max-width: 11rem;
	}
}
