/* ==========================================================================
   Waterford Whiskey — site styles
   ========================================================================== */

/* Adobe Fonts (Typekit) — loaded via wp_enqueue_scripts in functions.php.
   No @import needed here. Granville for display/headings, Inter for UI/body. */

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* ---------- Wordmark (brand logo) ---------- */
.wwhiskey-wordmark {
	display: inline-block;
	width: clamp( 160px, 22vw, 260px );
	line-height: 0;
	color: var( --wp--preset--color--accent, #1E22AA );
}
.wwhiskey-wordmark svg {
	width: 100%;
	height: auto;
	display: block;
	fill: currentColor;
}
/* The SVG bakes in its own fill, so override it so it follows `color`. */
.wwhiskey-wordmark svg * { fill: currentColor !important; }

.wwhiskey-wordmark--sm { width: clamp( 140px, 18vw, 200px ); }

/* ---------- Hero image ---------- */
.wwhiskey-hero-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}

/* ---------- Fullbleed cover hero (kept for sub-pages / fallback) ---------- */
.wwhiskey-cover {
	padding-block: clamp( 3rem, 8vh, 8rem );
}
.wwhiskey-cover .wp-block-cover__image-background { object-fit: cover; }
.wwhiskey-cover h1,
.wwhiskey-cover p { text-shadow: 0 1px 20px rgba( 0, 0, 0, 0.25 ); }
.wwhiskey-cover h1 { letter-spacing: -0.015em; }
.wwhiskey-cover .wp-block-cover__inner-container { padding-inline: 1.25rem; }

/* ==========================================================================
   Split hero — stone text pane on the left, image on the right.
   ========================================================================== */
.wp-block-columns.wwhiskey-split {
	min-height: 100vh;
	/* Override the default blockGap; we set this in the block attrs too, but
	   CSS ensures the result across all theme versions. */
	gap: 0 !important;
	margin-block: 0 !important;
}

/* Left pane */
.wwhiskey-split__text {
	display: flex !important;
	flex-direction: column;
	justify-content: space-between;
	padding: clamp( 2rem, 5vw, 4rem ) !important;
	min-height: 100vh;
	background: var( --wp--preset--color--base );
}
.wwhiskey-split__logo {
	display: inline-block;
	width: clamp( 150px, 18vw, 240px );
	line-height: 0;
	flex: 0 0 auto;
}
.wwhiskey-split__center {
	/* Anchor the main headline block vertically in the pane while allowing
	   the logo (above) and meta (below) to stay pinned. */
	align-self: stretch;
	margin-block: auto !important;
	padding-block: clamp( 2rem, 6vh, 5rem );
}
.wwhiskey-split__center > * + * { margin-top: 0; } /* let heading/paragraph margins drive the rhythm */
.wwhiskey-split__center h1 {
	font-family: "granville", serif;
	font-weight: 400;
	font-style: normal;
	/* Tighten the display size a touch since the pane is narrower than full-bleed. */
	font-size: clamp( 2.5rem, 5.5vw, 4.75rem );
}
.wwhiskey-split__meta {
	flex: 0 0 auto;
	margin: 0 !important;
}

/* Right pane — image fills edge to edge, top to bottom */
.wwhiskey-split__image {
	padding: 0 !important;
	min-height: 100vh;
	overflow: hidden;
	position: relative;
	background: var( --wp--preset--color--base-2 );
}
.wwhiskey-split__photo {
	position: absolute;
	inset: 0;
	margin: 0;
}
.wwhiskey-split__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Mobile stack (Twenty Twenty-Five columns break at 782px; match that) */
@media ( max-width: 781px ) {
	.wp-block-columns.wwhiskey-split { min-height: 0; }
	.wwhiskey-split__text,
	.wwhiskey-split__image {
		flex-basis: 100% !important;
		min-height: auto;
	}
	.wwhiskey-split__text { padding: 2rem 1.5rem !important; }
	.wwhiskey-split__image {
		min-height: 60vh;
		order: 2; /* image below text on mobile */
	}
	.wwhiskey-split__center { padding-block: 2.5rem; }
}

/* ---------- Buttons: match brand feel ---------- */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var( --wp--preset--color--accent );
	border: 1px solid var( --wp--preset--color--accent );
	border-radius: 0;
	padding: 0.9rem 1.75rem;
	font-family: "granville", serif;
	font-weight: 400;
	font-style: normal;
	font-size: 0.82rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	transition: background-color 180ms ease, color 180ms ease;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus-visible {
	background: var( --wp--preset--color--accent );
	color: var( --wp--preset--color--base );
}

/* Small, restrained link underlines */
a {
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

/* Tidy up form/input focus rings */
:focus-visible {
	outline: 2px solid var( --wp--preset--color--accent );
	outline-offset: 3px;
}

/* Smoother serif italic if used */
h1 em, h2 em {
	font-family: "granville", serif;
	font-weight: 400;
	font-style: italic;
}