/*
Theme Name: PULL Demo
Theme URI: https://pull.finance
Description: Storefront child theme for the PULL WooCommerce demo store. pull.finance's look — Manrope, one signature yellow, warm neutrals, no lines — on a one-product shop.
Author: PULL
Template: storefront
Version: 0.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pull-demo
*/

/*
 * Tokens from the PULL design system (.claude/skills/pull-design/colors_and_type.css). The look
 * is shared with the Next.js demo store (apps/demo-store): glass header with the wordmark, tonal
 * bands instead of rules, one dark band, pill buttons that lift.
 */
@font-face {
	font-family: 'Manrope';
	src: url('fonts/Manrope-VariableFont_wght.ttf') format('truetype-variations'),
		url('fonts/Manrope-VariableFont_wght.ttf') format('truetype');
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--pull-surface: #f9f9f9;
	--pull-surface-low: #f3f3f3;
	--pull-surface-container: #eeeeee;
	--pull-surface-lowest: #ffffff;
	--pull-surface-dark: #1a1c1c;
	--pull-on-surface: #1a1c1c;
	--pull-on-surface-variant: #4d4634;
	--pull-inverse-on-surface: #f1f1f1;
	--pull-primary: #ffd54f;
	--pull-primary-dark: #3d2e00;
	--pull-radius-md: 1rem;
	--pull-radius-lg: 2rem;
	--pull-radius-full: 9999px;
	--pull-shadow-sm: 0 2px 8px rgba(26, 28, 28, 0.04);
	--pull-shadow-md: 0 4px 24px rgba(26, 28, 28, 0.06);
	--pull-ease: cubic-bezier(0.4, 0, 0.2, 1);
	--pull-font: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* --- Base ---------------------------------------------------------------- */
html {
	scroll-behavior: smooth;
	scroll-padding-top: 5rem; /* the sticky header */
}

body,
button,
input,
select,
textarea {
	font-family: var(--pull-font);
}

body {
	background: var(--pull-surface);
	color: var(--pull-on-surface);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

/* Storefront hides horizontal overflow on .site, which would also stop the header sticking;
   clip does the same job without making .site a scroll container. */
.site {
	overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--pull-font);
	font-weight: 700;
	color: var(--pull-on-surface);
	letter-spacing: -0.01em;
}

a {
	color: var(--pull-primary-dark);
}

::selection {
	background: var(--pull-primary);
	color: #000000;
}

/* Storefront draws lines between everything; the brand uses tonal layers instead. */
.site-header,
.site-footer,
.storefront-breadcrumb,
.woocommerce-tabs ul.tabs li,
.woocommerce-tabs ul.tabs li::after,
.woocommerce-tabs ul.tabs li::before,
hr {
	border: 0;
}

/* --- The wordmark: type, then the yellow brand bar ----------------------- */
.pull-wordmark {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.22em;
	font-size: 1.5rem;
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--pull-on-surface);
}

.pull-wordmark span {
	width: 0.7em;
	height: 0.13em;
	margin-top: 0.3em;
	background: var(--pull-primary);
}

.pull-wordmark:hover,
.pull-wordmark:focus {
	color: var(--pull-on-surface);
}

/* --- Header: glass, so the page scrolls behind it ------------------------ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.7);
	-webkit-backdrop-filter: blur(48px);
	backdrop-filter: blur(48px);
	padding: 0;
	margin-bottom: 0;
}

.admin-bar .site-header {
	top: 32px;
}

.site-header .col-full {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	height: 4.5rem;
}

/* Storefront's clearfix would otherwise become flex items. */
.site-header .col-full::before,
.site-header .col-full::after {
	display: none;
}

.pull-brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.pull-chip {
	background: var(--pull-surface-container);
	border-radius: var(--pull-radius-full);
	color: var(--pull-on-surface-variant);
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	line-height: 1;
	padding: 0.5rem 0.75rem;
	text-transform: uppercase;
	white-space: nowrap;
}

.pull-header-link {
	color: var(--pull-on-surface-variant);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: color 200ms var(--pull-ease);
}

.pull-header-link:hover,
.pull-header-link:focus {
	color: var(--pull-on-surface);
}

.site-description,
.site-search,
.site-header-cart,
.storefront-primary-navigation,
.storefront-handheld-footer-bar,
.storefront-sticky-add-to-cart {
	display: none !important;
}

/* --- Page ---------------------------------------------------------------- */
.site-content {
	padding-top: 3rem;
}

.home .site-content {
	padding-top: 0;
}

/* The front page's bands butt up against the header and the footer. */
.home .site-main,
.home .hentry,
.home .entry-content {
	margin-bottom: 0;
	padding-bottom: 0;
}

.pull-eyebrow {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--pull-primary-dark);
	margin: 0 0 1.25rem;
}

.pull-display {
	font-size: clamp(2.5rem, 6vw, 4rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.04;
	margin: 0 0 1.5rem;
	text-wrap: balance;
}

.pull-lede {
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--pull-on-surface-variant);
	margin: 0;
}

.pull-section-title {
	font-size: clamp(2rem, 3.5vw, 3rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.1;
	margin: 0 0 3rem;
}

/* Hero, with the brand's ambient halo behind it. */
.pull-hero {
	position: relative;
	padding: 5rem 0 6rem;
	margin: 0;
}

.pull-hero::before {
	content: '';
	position: absolute;
	z-index: -1;
	top: 10%;
	right: -5%;
	width: 28rem;
	height: 28rem;
	border-radius: 50%;
	background: rgba(255, 213, 79, 0.25);
	filter: blur(100px);
	pointer-events: none;
}

.pull-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 2.5rem 0 0;
}

/*
 * Bands: sections told apart by tone, never by a rule. The page content sits in Storefront's
 * centred column, so a band paints its tone on a layer of its own that runs out past both edges
 * of the window (.site clips the overflow).
 */
.pull-band {
	--pull-band: var(--pull-surface);
	position: relative;
	isolation: isolate;
	padding: 5rem 0 6rem;
	margin: 0;
}

.pull-band::before {
	content: '';
	position: absolute;
	z-index: -1;
	inset: 0 -100vmax;
	background: var(--pull-band);
}

.pull-band-low {
	--pull-band: var(--pull-surface-low);
}

.pull-band-dark {
	--pull-band: var(--pull-surface-dark);
	color: var(--pull-inverse-on-surface);
}

.pull-band-dark h2,
.pull-band-dark h3 {
	color: #ffffff;
}

.pull-band-dark .pull-eyebrow,
.pull-band-dark .pull-step-number {
	color: var(--pull-primary);
}

.pull-promise {
	padding: 6rem 0;
	margin: 0;
	text-align: center;
}

.pull-promise .pull-actions {
	justify-content: center;
}

/* --- The product, as rendered by [product_page] ------------------------- */
.pull-product {
	background: var(--pull-surface-lowest);
	border-radius: var(--pull-radius-lg);
	box-shadow: var(--pull-shadow-md);
	padding: 2rem;
	margin: 0;
}

.pull-product .single-product div.product {
	margin: 0;
}

.pull-product .single-product div.product .summary {
	margin-bottom: 0;
}

.pull-product .woocommerce-product-gallery img,
body.single-product .woocommerce-product-gallery img {
	border-radius: var(--pull-radius-md);
}

/* WooCommerce fades the gallery in from opacity 0 once its script runs; show it at once. */
.woocommerce-product-gallery {
	opacity: 1 !important;
}

.woocommerce-product-gallery__trigger,
.pull-product .product_meta,
.pull-product .woocommerce-tabs,
.pull-product .related,
.pull-product .upsells,
.pull-product .storefront-product-pagination {
	display: none !important;
}

.pull-product .product_title,
body.single-product .product_title {
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin: 0 0 0.75rem;
}

.pull-product .summary .price,
body.single-product .summary .price {
	font-size: 2rem;
	font-weight: 800;
	color: var(--pull-on-surface);
	margin: 0 0 1rem;
}

.pull-product .summary .price .pull-interval,
body.single-product .summary .price .pull-interval {
	font-size: 1rem;
	font-weight: 500;
	color: var(--pull-on-surface-variant);
	margin-left: 0.25rem;
}

.pull-product .woocommerce-product-details__short-description,
body.single-product .woocommerce-product-details__short-description {
	color: var(--pull-on-surface-variant);
	font-size: 1.0625rem;
}

.pull-product .pull-wc-button,
body.single-product .pull-wc-button {
	margin-top: 1.5rem;
}

/* Shown only while the store is not yet connected and mapped. */
.pull-product .cart {
	margin-top: 1.5rem;
}

/* --- Steps --------------------------------------------------------------- */
.pull-steps {
	gap: 1.5rem;
	margin-bottom: 0;
}

/* Storefront gives block columns its own padding and margins, per column and per breakpoint;
   these are cards, so they set their own. */
.hentry .entry-content .pull-steps .wp-block-column {
	background: var(--pull-surface-lowest);
	border-radius: var(--pull-radius-lg);
	padding: 2rem !important;
	margin: 0 !important;
}

.hentry .entry-content .pull-band-dark .pull-steps .wp-block-column {
	background: rgba(255, 255, 255, 0.05);
}

.pull-step-number {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	color: var(--pull-primary-dark);
	margin: 0 0 2rem;
}

.pull-steps h3 {
	font-size: 1.25rem;
	margin: 0 0 0.75rem;
}

.pull-steps p:last-child {
	color: var(--pull-on-surface-variant);
	font-size: 0.875rem;
	margin: 0;
}

.pull-band-dark .pull-steps p:last-child {
	color: rgba(241, 241, 241, 0.7);
}

/* --- Order received: a card, without Storefront's rules and torn edges --- */
ul.order_details {
	background: var(--pull-surface-lowest);
	border-radius: var(--pull-radius-md);
	box-shadow: var(--pull-shadow-sm);
}

ul.order_details::before,
ul.order_details::after {
	display: none;
}

ul.order_details li {
	border: 0;
}

/* --- Buttons: pills that lift on hover and press in, never change colour -- */
/* (The PULL button itself is the checkout SDK's.) */
.button,
button,
input[type='button'],
input[type='reset'],
input[type='submit'],
.wp-block-button__link {
	background: var(--pull-primary);
	color: #000000;
	border: 0;
	border-radius: var(--pull-radius-full);
	font-weight: 700;
	transition: transform 200ms var(--pull-ease), box-shadow 200ms var(--pull-ease);
}

/* Storefront squares block buttons off under .hentry .entry-content, so match its weight. */
.hentry .entry-content .wp-block-button .wp-block-button__link {
	border-radius: var(--pull-radius-full);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1;
	padding: 1rem 1.75rem;
	text-decoration: none;
}

.pull-button-primary .wp-block-button__link:hover,
.pull-button-primary .wp-block-button__link:focus {
	background: var(--pull-primary);
	color: #000000;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(255, 213, 79, 0.25);
}

.pull-button-secondary .wp-block-button__link,
.pull-button-secondary .wp-block-button__link:hover,
.pull-button-secondary .wp-block-button__link:focus {
	background: var(--pull-surface-lowest);
	color: var(--pull-on-surface);
	box-shadow: var(--pull-shadow-sm);
}

.pull-button-secondary .wp-block-button__link:hover,
.pull-button-secondary .wp-block-button__link:focus {
	transform: translateY(-2px);
	box-shadow: var(--pull-shadow-md);
}

.wp-block-button__link:active {
	transform: scale(0.97);
}

.wp-block-button__link:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(255, 213, 79, 0.5);
}

/* --- Footer -------------------------------------------------------------- */
/* Type sizes go on the footer's children: Storefront's column is sized in em, so a smaller font
   on the footer itself would narrow it out of line with the page. */
.site-footer {
	background: var(--pull-surface-low);
	color: var(--pull-on-surface-variant);
	padding: 4rem 0;
	margin-top: 0;
}

.site-footer a {
	color: var(--pull-on-surface);
}

.site-footer a.pull-wordmark {
	text-decoration: none;
}

.pull-footer-brand p {
	font-size: 0.875rem;
	max-width: 24rem;
	line-height: 1.6;
	margin: 1rem 0 0;
}

.site-footer .site-info {
	font-size: 0.75rem;
	padding: 0;
	margin-top: 3rem;
}

@media (min-width: 768px) {
	.pull-product {
		padding: 3rem;
	}

	/* Side by side, the gallery needs no gap beneath it; stacked on a phone it keeps Storefront's. */
	.pull-product .single-product div.product .woocommerce-product-gallery {
		margin-bottom: 0;
	}
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		transition-duration: 0.01ms !important;
	}
}
