/*
Theme Name: BeansParade
Theme URI: https://beansparade.com
Author: Telex
Description: A dark-ground, typographically driven theme for BeansParade — a small-batch specialty coffee roaster with e-commerce and event booking. Inspired by the precision of early 2000s HiRes web design: deep near-black backgrounds, cream-white type, restrained accent colors, and Swiss grid discipline.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: beansparade
Tags: custom-colors, custom-fonts, e-commerce, full-site-editing, block-patterns, wide-blocks, dark
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
*/

/* =========================================================================
   Global resets & baseline
   ========================================================================= */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	scroll-behavior: smooth;
}

body {
	overflow-x: hidden;
}

::selection {
	background: var(--wp--preset--color--accent-amber);
	color: var(--wp--preset--color--background);
}

/* =========================================================================
   Typography polish
   ========================================================================= */

/* Body prose — Chivo, neutral, recessive */
p {
	max-width: 70ch;
}

/* Display headings — Anton compressed, tall, commanding */
h1, h2, h3, h4, h5 {
	text-wrap: balance;
}

/* H6 as a label / overline: mono, spaced, small-caps feel */
h6 {
	text-wrap: balance;
}

/* Blockquote cite */
.wp-block-quote cite,
.wp-block-quote footer {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-style: normal;
}

/* Pullquote */
.wp-block-pullquote {
	border-top: 1px solid var(--wp--preset--color--accent-red);
	border-bottom: 1px solid var(--wp--preset--color--accent-red);
	padding-top: var(--wp--preset--spacing--40);
	padding-bottom: var(--wp--preset--spacing--40);
}

.wp-block-pullquote blockquote p {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: -0.02em;
}

/* =========================================================================
   Link treatments
   ========================================================================= */

/* Default links — amber with a subtle underline on hover */
a:not(.wp-element-button):not(.wp-block-navigation-item__content):not(.wp-block-site-title a) {
	transition: color 0.2s ease;
}

a:not(.wp-element-button):not(.wp-block-navigation-item__content):hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

/* Navigation link transitions */
.wp-block-navigation-item__content {
	transition: color 0.2s ease;
}

/* =========================================================================
   Button variants & polish
   ========================================================================= */

/* All buttons: sharp corners, precise mono type, transition */
.wp-element-button,
.wp-block-button__link {
	border-radius: 0 !important;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	cursor: pointer;
}

/* Outline style */
.wp-block-button.is-style-outline .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--accent-amber);
	border: 1px solid var(--wp--preset--color--accent-amber);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--accent-amber);
	color: var(--wp--preset--color--background);
}

/* =========================================================================
   Image treatments
   ========================================================================= */

/* All images: no border radius, slightly desaturated by default for the
   archival/gallery-catalogue aesthetic — full saturation on hover */
.wp-block-image img,
.wp-block-cover__image-background {
	border-radius: 0;
}

.wp-block-image img {
	filter: saturate(0.85) contrast(1.05);
	transition: filter 0.4s ease;
}

.wp-block-image:hover img {
	filter: saturate(1) contrast(1);
}

/* Gallery images — tighter gaps */
.wp-block-gallery {
	gap: var(--wp--preset--spacing--20) !important;
}

.wp-block-gallery .wp-block-image img {
	object-fit: cover;
}

/* Cover block images — deep overlay feel */
.wp-block-cover {
	border-radius: 0;
}

/* =========================================================================
   Separator / hairline rules — accent-red, surgical precision
   ========================================================================= */

.wp-block-separator {
	border-color: var(--wp--preset--color--accent-red) !important;
	opacity: 1;
}

.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
	width: 6rem;
}

.wp-block-separator.is-style-wide {
	width: 100%;
}

.wp-block-separator.is-style-dots {
	color: var(--wp--preset--color--accent-red);
}

/* =========================================================================
   Surface cards — surface background with cream text
   ========================================================================= */

.has-surface-background-color {
	border: 1px solid rgba(242, 237, 232, 0.06);
}

/* =========================================================================
   WooCommerce integration styling
   ========================================================================= */

/* Product cards */
.wc-block-grid__product,
.woocommerce ul.products li.product {
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
	padding: var(--wp--preset--spacing--30);
	border: 1px solid rgba(242, 237, 232, 0.06);
	transition: border-color 0.3s ease;
}

.wc-block-grid__product:hover,
.woocommerce ul.products li.product:hover {
	border-color: var(--wp--preset--color--accent-amber);
}

/* Product title */
.wc-block-grid__product-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	text-transform: uppercase;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--text);
}

/* Product price — mono, amber */
.wc-block-grid__product-price,
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--accent-amber);
	letter-spacing: 0.05em;
}

/* WooCommerce buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wc-block-grid__product-add-to-cart a {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	background-color: var(--wp--preset--color--accent-amber);
	color: var(--wp--preset--color--background);
	border: 1px solid var(--wp--preset--color--accent-amber);
	border-radius: 0;
	padding: 0.75rem 1.5rem;
	transition: background-color 0.2s ease, color 0.2s ease;
	text-decoration: none;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.wc-block-grid__product-add-to-cart a:hover {
	background-color: transparent;
	color: var(--wp--preset--color--accent-amber);
}

/* WooCommerce product images — no radius */
.woocommerce ul.products li.product a img,
.wc-block-grid__product-image img {
	border-radius: 0;
}

/* WooCommerce star ratings */
.woocommerce .star-rating span::before {
	color: var(--wp--preset--color--accent-amber);
}

/* WooCommerce tabs on single product */
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--wp--preset--color--text);
	border-bottom: 1px solid var(--wp--preset--color--accent-red);
}

/* WooCommerce messages */
.woocommerce-message,
.woocommerce-info {
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
	border-top-color: var(--wp--preset--color--accent-amber);
}

.woocommerce-error {
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
	border-top-color: var(--wp--preset--color--accent-red);
}

/* WooCommerce cart and checkout */
.woocommerce table.shop_table {
	border-color: rgba(242, 237, 232, 0.1);
}

.woocommerce table.shop_table th {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--muted);
}

.woocommerce table.shop_table td {
	color: var(--wp--preset--color--text);
	border-color: rgba(242, 237, 232, 0.06);
}

/* =========================================================================
   Crosshair UI decoration (hero)
   ========================================================================= */

.ui-crosshair {
	position: absolute;
	width: 15px;
	height: 15px;
	z-index: 5;
	pointer-events: none;
}

.ui-crosshair::before,
.ui-crosshair::after {
	content: '';
	position: absolute;
	background-color: rgba(242, 237, 232, 0.3);
}

.ui-crosshair::before {
	width: 100%;
	height: 1px;
	top: 7px;
	left: 0;
}

.ui-crosshair::after {
	width: 1px;
	height: 100%;
	top: 0;
	left: 7px;
}

/* =========================================================================
   Equator rule — the thin red line across the hero
   ========================================================================= */

.equator-rule {
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 1px;
	background-color: var(--wp--preset--color--accent-red);
	z-index: 10;
	pointer-events: none;
}

/* =========================================================================
   Hero typography — the stacked BEANS / PARADE wordmark
   ========================================================================= */

.hero-word {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(5rem, 14vw, 11.25rem);
	line-height: 0.8;
	color: var(--wp--preset--color--text);
	text-transform: uppercase;
	letter-spacing: -0.02em;
	transform: scaleY(1.15);
	transform-origin: bottom left;
}

.hero-word-outline {
	color: transparent;
	-webkit-text-stroke: 1px var(--wp--preset--color--text);
}

/* =========================================================================
   Meta grid (hero, product detail, event metadata)
   ========================================================================= */

.meta-grid {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 0.75rem 1.5rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.6875rem;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--text);
}

.meta-label {
	color: var(--wp--preset--color--accent-red);
}

.meta-value {
	color: var(--wp--preset--color--text);
}

/* =========================================================================
   Tasting notes badge / tag style
   ========================================================================= */

.tasting-note {
	display: inline-block;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--muted);
	border: 1px solid rgba(138, 133, 128, 0.3);
	padding: 0.25rem 0.75rem;
	margin: 0.25rem 0.25rem 0.25rem 0;
}

/* =========================================================================
   Mobile hamburger overlay
   ========================================================================= */

.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
	background-color: var(--wp--preset--color--background) !important;
	color: var(--wp--preset--color--text) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: var(--wp--preset--spacing--40);
	align-items: flex-start;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--text);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--accent-red);
}

/* Hamburger icon color */
.wp-block-navigation__responsive-container-open svg {
	fill: var(--wp--preset--color--text);
}

.wp-block-navigation__responsive-container-close svg {
	fill: var(--wp--preset--color--text);
}

/* =========================================================================
   Form styling (booking forms, search, newsletter)
   ========================================================================= */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="datetime-local"],
textarea,
select {
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
	border: 1px solid rgba(242, 237, 232, 0.1);
	border-radius: 0;
	padding: 0.75rem 1rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--wp--preset--color--accent-amber);
}

label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--muted);
}

/* =========================================================================
   Table styling
   ========================================================================= */

.wp-block-table table {
	border-collapse: collapse;
	width: 100%;
}

.wp-block-table th {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--muted);
	text-align: left;
	border-bottom: 1px solid var(--wp--preset--color--accent-red);
	padding: var(--wp--preset--spacing--20);
}

.wp-block-table td {
	color: var(--wp--preset--color--text);
	border-bottom: 1px solid rgba(242, 237, 232, 0.06);
	padding: var(--wp--preset--spacing--20);
}

/* =========================================================================
   Details / accordion (FAQ)
   ========================================================================= */

.wp-block-details {
	border-bottom: 1px solid rgba(242, 237, 232, 0.08);
	padding-bottom: var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--30);
}

.wp-block-details summary {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	text-transform: uppercase;
	letter-spacing: -0.02em;
	cursor: pointer;
	color: var(--wp--preset--color--text);
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: '+';
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--accent-red);
	flex-shrink: 0;
	margin-left: var(--wp--preset--spacing--30);
	transition: transform 0.2s ease;
}

.wp-block-details[open] summary::after {
	content: '\2212';
}

/* =========================================================================
   Code & preformatted
   ========================================================================= */

.wp-block-code,
.wp-block-preformatted {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
	border: 1px solid rgba(242, 237, 232, 0.06);
	border-radius: 0;
	padding: var(--wp--preset--spacing--30);
	overflow-x: auto;
}

code {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.875em;
	background-color: var(--wp--preset--color--surface);
	padding: 0.15em 0.4em;
	border-radius: 0;
}

/* =========================================================================
   Search block
   ========================================================================= */

.wp-block-search__input {
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
	border: 1px solid rgba(242, 237, 232, 0.1);
	border-radius: 0;
	font-family: var(--wp--preset--font-family--body);
}

.wp-block-search__button {
	background-color: var(--wp--preset--color--accent-amber);
	color: var(--wp--preset--color--background);
	border: 1px solid var(--wp--preset--color--accent-amber);
	border-radius: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.wp-block-search__button:hover {
	background-color: transparent;
	color: var(--wp--preset--color--accent-amber);
}

/* =========================================================================
   Columns — vertical hairline dividers between columns (optional)
   ========================================================================= */

.columns-with-dividers > .wp-block-column + .wp-block-column {
	border-left: 1px solid var(--wp--preset--color--accent-red);
	padding-left: var(--wp--preset--spacing--40);
}

@media (max-width: 781px) {
	.columns-with-dividers > .wp-block-column + .wp-block-column {
		border-left: 0;
		border-top: 1px solid var(--wp--preset--color--accent-red);
		padding-left: 0;
		padding-top: var(--wp--preset--spacing--40);
	}
}

/* =========================================================================
   Post / archive meta elements
   ========================================================================= */

.wp-block-post-date,
.wp-block-post-terms {
	font-family: var(--wp--preset--font-family--mono);
}

.wp-block-post-terms a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	transition: color 0.2s ease;
}

.wp-block-post-terms a:hover {
	color: var(--wp--preset--color--accent-amber);
}

/* =========================================================================
   Cover block — ensure deep overlays for the dark-ground aesthetic
   ========================================================================= */

.wp-block-cover .wp-block-cover__inner-container {
	z-index: 2;
}

/* =========================================================================
   Pagination
   ========================================================================= */

.wp-block-query-pagination {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.15em;
}

.wp-block-query-pagination a {
	color: var(--wp--preset--color--accent-amber);
	text-decoration: none;
	transition: color 0.2s ease;
}

.wp-block-query-pagination a:hover {
	color: var(--wp--preset--color--accent-red);
}

.wp-block-query-pagination .wp-block-query-pagination-numbers .current {
	color: var(--wp--preset--color--text);
}

/* =========================================================================
   Footer credit line styling
   ========================================================================= */

.wp-block-template-part[data-area="footer"] .telex-credit,
footer .telex-credit {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--muted);
}

/* =========================================================================
   Scrollbar styling (WebKit + Firefox)
   ========================================================================= */

::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

::-webkit-scrollbar-track {
	background: var(--wp--preset--color--background);
}

::-webkit-scrollbar-thumb {
	background: var(--wp--preset--color--surface);
	border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--wp--preset--color--muted);
}

html {
	scrollbar-width: thin;
	scrollbar-color: var(--wp--preset--color--surface) var(--wp--preset--color--background);
}

/* ---------- Loop layout utilities ---------- */
/* These classes are wired to the wp:query blocks emitted by content/pages and
   templates. Do not rename. Tune colours and spacing to theme.json tokens. */

/* Horizontal scrollable rail */
.wp-block-query.is-style-loop-rail .wp-block-post-template {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	padding-bottom: var(--wp--preset--spacing--20);
}
.wp-block-query.is-style-loop-rail .wp-block-post-template > * {
	flex: 0 0 320px;
	scroll-snap-align: start;
}

/* Compact list with hairline row dividers */
.wp-block-query.is-style-loop-list .wp-block-post-template > * {
	border-bottom: 1px solid var(--wp--preset--color--surface);
	padding-block: var(--wp--preset--spacing--30);
}
.wp-block-query.is-style-loop-list .wp-block-post-template > *:last-child {
	border-bottom: 0;
}

/* Zigzag — flip the columns inside every even entry */
.wp-block-query.is-style-loop-zigzag .wp-block-post-template > *:nth-child(even) .wp-block-columns {
	flex-direction: row-reverse;
}

/* Timeline — vertical line with node markers per entry */
.wp-block-query.is-style-loop-timeline .wp-block-post-template {
	position: relative;
	padding-inline-start: 2.5rem;
}
.wp-block-query.is-style-loop-timeline .wp-block-post-template::before {
	content: '';
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0.5rem;
	width: 2px;
	background: var(--wp--preset--color--accent-red);
	opacity: 0.25;
}
.wp-block-query.is-style-loop-timeline .wp-block-post-template > * {
	position: relative;
}
.wp-block-query.is-style-loop-timeline .wp-block-post-template > *::before {
	content: '';
	position: absolute;
	inset-inline-start: -2.25rem;
	inset-block-start: 0.6rem;
	width: 1rem;
	height: 1rem;
	border: 2px solid var(--wp--preset--color--accent-red);
	border-radius: 50%;
	background: var(--wp--preset--color--background);
}

/* Magazine — first child spans 2 columns of the grid */
.wp-block-query.is-style-loop-magazine .wp-block-post-template > *:first-child {
	grid-column: span 2;
}
@media (max-width: 600px) {
	.wp-block-query.is-style-loop-magazine .wp-block-post-template > *:first-child {
		grid-column: auto;
	}
}