/*
Theme Name: Loud Limb
Template: twentytwentyfive
Description: Loud Limb store theme — child of Twenty Twenty-Five. Motion follows Emil Kowalski's design-engineering rules:
 only transform/opacity animate, custom ease-out curves, UI motion under 300ms, press feedback on every button,
 hover effects only on real pointers, and prefers-reduced-motion respected.
Version: 1.0.0
Text Domain: loudlimb
*/

:root {
	--ll-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--ll-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
	--ll-ink: var(--wp--preset--color--ink);
	--ll-cream: var(--wp--preset--color--cream);
	--ll-orange: var(--wp--preset--color--orange);
	--ll-lime: var(--wp--preset--color--lime);
	--ll-shadow: 4px 4px 0 var(--ll-ink);
}

html { -webkit-text-size-adjust: 100%; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
::selection { background: var(--ll-lime); color: var(--ll-ink); }

/* Focus: always visible, never animated. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--ll-orange);
	outline-offset: 3px;
}

.ll-skip { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--ll-ink); color: var(--ll-cream); padding: .75rem 1rem; }
.ll-skip:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons: press feedback (scale .97), transform-only motion ---------- */
.wp-element-button,
.wp-block-button__link,
.wc-block-components-button,
.woocommerce .button,
.ll-btn {
	box-shadow: var(--ll-shadow);
	transition: transform 160ms var(--ll-ease-out), background-color 160ms ease, color 160ms ease;
	will-change: auto;
}
.wp-element-button:active,
.wp-block-button__link:active,
.wc-block-components-button:active,
.woocommerce .button:active,
.ll-btn:active {
	transform: translate(2px, 2px) scale(0.97);
	box-shadow: 2px 2px 0 var(--ll-ink);
}
@media (hover: hover) and (pointer: fine) {
	.wp-element-button:hover,
	.wp-block-button__link:hover,
	.ll-btn:hover { transform: translate(-1px, -1px); }
}
.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--ll-ink);
	border: 2px solid var(--ll-ink);
}
.ll-btn--orange .wp-block-button__link { background: var(--ll-orange); color: var(--ll-ink); }
.ll-btn--orange .wp-block-button__link:hover { background: var(--ll-ink); color: var(--ll-cream); }

/* ---------- Announcement bar + header ---------- */
.ll-announce { font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 600px) { .ll-announce { font-size: .6875rem; letter-spacing: .02em; } }
.ll-announce p { margin: 0; }
.ll-header { border-bottom: 2px solid var(--ll-ink); position: sticky; top: 0; z-index: 50; background: var(--ll-cream); }
.admin-bar .ll-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ll-header { top: 46px; } }
.ll-logo img { display: block; height: 38px; width: auto; }
.ll-footer .ll-logo img { height: 48px; }
.ll-header .wp-block-navigation a { text-decoration: none; }
.ll-header .wp-block-navigation a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- Hero ---------- */
.ll-hero { position: relative; overflow: hidden; }
.ll-hero h1 { font-size: var(--wp--preset--font-size--huge); margin: 0; }
.ll-hero h1 { line-height: .92; }
.ll-hero h1 .ll-mark { display: inline-block; background: var(--ll-orange); padding: .02em .1em 0; margin: .06em 0 .04em; line-height: .95; transform: rotate(-2deg); }
.ll-hero-art img { display: block; width: 100%; max-width: 560px; height: auto; margin-inline: auto; }
@media (max-width: 781px) { .ll-hero-art img { max-width: 420px; width: 92%; } }
.ll-sticker {
	display: inline-block; background: var(--ll-lime); color: var(--ll-ink); border: 2px solid var(--ll-ink);
	font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .8125rem;
	padding: .35rem .7rem; transform: rotate(-3deg);
}

/* Entrance: one soft rise for the hero, ease-out, under 300ms per element, staggered 60ms. */
@media (prefers-reduced-motion: no-preference) {
	.ll-rise > * {
		animation: ll-rise 420ms var(--ll-ease-out) both;
	}
	.ll-rise > *:nth-child(2) { animation-delay: 60ms; }
	.ll-rise > *:nth-child(3) { animation-delay: 120ms; }
	.ll-rise > *:nth-child(4) { animation-delay: 180ms; }
}
@keyframes ll-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Marquee (constant motion -> linear; stops for reduced motion) ---------- */
.ll-marquee { overflow: hidden; border-block: 2px solid var(--ll-ink); background: var(--ll-ink); color: var(--ll-cream); }
.ll-marquee__track { display: flex; width: max-content; gap: 2.5rem; padding: .85rem 0; font-family: var(--wp--preset--font-family--display); font-size: 1.5rem; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.ll-marquee__track span::after { content: "✦"; color: var(--ll-orange); margin-left: 2.5rem; }
@media (prefers-reduced-motion: no-preference) {
	.ll-marquee__track { animation: ll-marquee 38s linear infinite; }
	.ll-marquee:hover .ll-marquee__track { animation-play-state: paused; }
}
@keyframes ll-marquee { to { transform: translateX(-50%); } }

/* ---------- Tiles (product types / collections) ---------- */
.ll-tiles { display: grid; gap: clamp(.75rem, 2vw, 1.25rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
@media (max-width: 600px) { .ll-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ll-tile__label { font-size: .8125rem; padding: .6rem .7rem; } }
.ll-tile { position: relative; display: block; border: 2px solid var(--ll-ink); background: var(--ll-cream); color: var(--ll-ink); text-decoration: none; overflow: hidden; box-shadow: var(--ll-shadow); transition: transform 200ms var(--ll-ease-out); }
.ll-tile:active { transform: scale(0.98); }
.ll-tile__img { display: block; aspect-ratio: 4 / 5; width: 100%; height: auto; object-fit: cover; transition: transform 300ms var(--ll-ease-out); }
.ll-tile__label { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .75rem 1rem; border-top: 2px solid var(--ll-ink); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; background: var(--ll-cream); }
.ll-tile__label::after { content: "→"; transition: transform 200ms var(--ll-ease-out); }
.ll-tiles--swatch .ll-tile__img { aspect-ratio: 1; }
.ll-tiles--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ll-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .ll-tiles--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 781px) { .ll-tiles--3 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .ll-tiles--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (hover: hover) and (pointer: fine) {
	.ll-tile:hover { transform: translate(-2px, -2px); }
	.ll-tile:hover .ll-tile__img { transform: scale(1.04); }
	.ll-tile:hover .ll-tile__label::after { transform: translateX(4px); }
}

/* ---------- Scroll reveal (JS adds .ll-js; content is visible without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
	.ll-js [data-reveal] > * { opacity: 0; transform: translateY(12px); transition: opacity 360ms var(--ll-ease-out), transform 360ms var(--ll-ease-out); }
	.ll-js [data-reveal].is-in > * { opacity: 1; transform: none; }
	.ll-js [data-reveal].is-in > *:nth-child(2) { transition-delay: 45ms; }
	.ll-js [data-reveal].is-in > *:nth-child(3) { transition-delay: 90ms; }
	.ll-js [data-reveal].is-in > *:nth-child(4) { transition-delay: 135ms; }
	.ll-js [data-reveal].is-in > *:nth-child(5) { transition-delay: 180ms; }
	.ll-js [data-reveal].is-in > *:nth-child(6) { transition-delay: 225ms; }
	.ll-js [data-reveal].is-in > *:nth-child(n+7) { transition-delay: 270ms; }
}

/* ---------- Sections ---------- */
.ll-band-ink { background: var(--ll-ink); color: var(--ll-cream); }
.ll-band-ink a { color: var(--ll-cream); }
.ll-band-orange { background: var(--ll-orange); color: var(--ll-ink); }
.ll-kicker { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8125rem; }
.ll-card { border: 2px solid var(--ll-ink); background: var(--ll-cream); padding: clamp(1rem, 3vw, 1.75rem); box-shadow: var(--ll-shadow); }
.ll-band-ink .ll-card { background: #1E1E1E; border-color: var(--ll-cream); box-shadow: 4px 4px 0 var(--ll-orange); }
.ll-num { font-family: var(--wp--preset--font-family--display); font-size: 2.5rem; line-height: 1; color: var(--ll-orange); }

/* FAQ: native details/summary, instant open (users open these often). */
.ll-faq details { border-bottom: 2px solid var(--ll-ink); padding: .9rem 0; }
.ll-faq summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.ll-faq summary::-webkit-details-marker { display: none; }
.ll-faq summary::after { content: "+"; flex: none; font-weight: 800; font-size: 1.5rem; line-height: 1; transition: transform 200ms var(--ll-ease-out); }
.ll-faq details[open] summary::after { transform: rotate(45deg); }
.ll-faq details p { margin: .6rem 0 0; }

/* ---------- WooCommerce ---------- */
.wc-block-product-template .wc-block-product,
.wc-block-grid__product,
.woocommerce ul.products li.product { border: 2px solid var(--ll-ink); background: var(--wp--preset--color--paper); padding: 0 0 1rem; box-shadow: var(--ll-shadow); transition: transform 200ms var(--ll-ease-out); }
.wc-block-product-template .wc-block-product .wc-block-components-product-image,
.wc-block-product-template .wc-block-product .wp-block-woocommerce-product-image { border-bottom: 2px solid var(--ll-ink); overflow: hidden; margin-bottom: .75rem; }
.wc-block-product-template .wc-block-product img { transition: transform 300ms var(--ll-ease-out); }
.wc-block-product-template .wc-block-product .wp-block-post-title { font-family: var(--wp--preset--font-family--body); font-weight: 800; text-transform: none; font-size: 1rem !important; padding: 0 1rem; }
.wc-block-product-template .wc-block-product .wc-block-components-product-price { padding: 0 1rem; font-weight: 700; }
@media (hover: hover) and (pointer: fine) {
	.wc-block-product-template .wc-block-product:hover { transform: translate(-2px, -2px); }
	.wc-block-product-template .wc-block-product:hover img { transform: scale(1.04); }
}
.wc-block-components-product-badge, .wc-block-components-product-sale-badge { background: var(--ll-lime); color: var(--ll-ink); border: 2px solid var(--ll-ink); border-radius: 0; font-weight: 800; }
.wc-block-mini-cart__badge { background: var(--ll-orange); color: var(--ll-ink); font-weight: 800; }
.wc-block-components-notice-banner { border: 2px solid var(--ll-ink); border-radius: 0; }
.wp-block-woocommerce-product-details .wc-tabs li a { font-weight: 800; }
.woocommerce-breadcrumb, .wc-block-breadcrumbs { font-size: .875rem; }
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=number], select, textarea,
.wc-block-components-text-input input { border: 2px solid var(--ll-ink) !important; border-radius: 0 !important; background: var(--wp--preset--color--paper) !important; }

/* ---------- Footer ---------- */
.ll-footer a { text-decoration: none; }
.ll-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ll-footer .ll-footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }

/* ---------- Blog ---------- */
.ll-post-card { border: 2px solid var(--ll-ink); background: var(--wp--preset--color--paper); box-shadow: var(--ll-shadow); overflow: hidden; height: 100%; transition: transform 200ms var(--ll-ease-out); }
.ll-post-card .wp-block-post-featured-image { margin: 0; border-bottom: 2px solid var(--ll-ink); }
.ll-post-card .wp-block-post-title a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .ll-post-card:hover { transform: translate(-2px, -2px); } }
.single .wp-block-post-content > p:first-of-type { font-size: var(--wp--preset--font-size--medium); }
.wp-block-post-content a { text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--ll-orange); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; }
	.ll-tile, .ll-tile__img, .wc-block-product, .ll-post-card { transition: none !important; }
}

/* ---------- Product page ---------- */
.single-product .wp-block-post-title { font-size: clamp(2.25rem, 4.5vw, 3.5rem) !important; }
.single-product .wc-block-components-product-price, .single-product .wp-block-woocommerce-product-price { font-size: 1.5rem; font-weight: 800; }
.ll-trust { list-style: none; margin: 1.25rem 0 0; padding: 1rem 1.1rem; border: 2px solid var(--ll-ink); background: var(--wp--preset--color--paper); display: grid; gap: .55rem; font-size: .9375rem; }
.ll-trust li { padding-left: 1.6rem; position: relative; }
.ll-trust li::before { content: ""; position: absolute; left: 0; top: .35em; width: .9rem; height: .9rem; background: var(--ll-orange); border: 2px solid var(--ll-ink); transform: rotate(-6deg); }
.ll-fit-note { margin-top: .9rem; padding: .85rem 1rem; background: var(--ll-lime); border: 2px solid var(--ll-ink); font-size: .9375rem; }
.single-product form.cart .quantity input { height: 100%; min-height: 3.1rem; width: 4.5rem; text-align: center; font-weight: 800; }
.single-product form.cart { display: flex; gap: .75rem; align-items: stretch; flex-wrap: wrap; }
.single-product form.cart .single_add_to_cart_button { flex: 1 1 200px; background: var(--ll-orange) !important; color: var(--ll-ink) !important; border: 2px solid var(--ll-ink) !important; font-size: 1.0625rem; }
.single-product form.cart .single_add_to_cart_button:hover { background: var(--ll-ink) !important; color: var(--ll-cream) !important; }
.single-product form.cart table.variations { width: 100%; }
.single-product form.cart table.variations select { min-height: 3rem; padding: 0 .75rem; font-weight: 700; }
.wc-block-product-gallery-large-image, .woocommerce-product-gallery__image img, .wp-block-woocommerce-product-image-gallery img { border: 2px solid var(--ll-ink); background: var(--wp--preset--color--paper); }
.wp-block-woocommerce-product-details .wc-tabs { border-bottom: 2px solid var(--ll-ink) !important; }

/* ---------- Cart + checkout (classic shortcodes) ---------- */
.ll-secure { margin: 0; font-weight: 700; font-size: .875rem; display: flex; align-items: center; gap: .4rem; }
.woocommerce-checkout .woocommerce-info, .woocommerce-cart .woocommerce-info, .woocommerce-message, .woocommerce-error {
	border: 2px solid var(--ll-ink) !important; border-radius: 0 !important; background: var(--wp--preset--color--paper) !important; }
@media (min-width: 900px) {
	form.checkout.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); column-gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
	form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 4; }
	form.checkout > .ll-freeship { grid-column: 2; grid-row: 2; }
	form.checkout #customer_details .col-1, form.checkout #customer_details .col-2 { float: none; width: 100%; }
	form.checkout #order_review_heading { grid-column: 2; grid-row: 1; margin-top: 0; }
	form.checkout #order_review { grid-column: 2; grid-row: 3; position: sticky; top: 24px; }
}
form.checkout #order_review { border: 2px solid var(--ll-ink); background: var(--wp--preset--color--paper); padding: 1.25rem; box-shadow: var(--ll-shadow); }
form.checkout #order_review table.shop_table { border: 0; margin: 0 0 1rem; }
form.checkout #order_review table.shop_table th, form.checkout #order_review table.shop_table td { border-color: var(--wp--preset--color--line); }
form.checkout .form-row label { font-weight: 700; font-size: .875rem; }
form.checkout .form-row input.input-text, form.checkout .form-row textarea, form.checkout .form-row select { padding: .75rem .85rem; }
#place_order { width: 100%; background: var(--ll-orange) !important; color: var(--ll-ink) !important; border: 2px solid var(--ll-ink) !important; font-size: 1.125rem; padding: 1rem; }
#place_order:hover { background: var(--ll-ink) !important; color: var(--ll-cream) !important; }
.woocommerce-cart table.cart img { border: 2px solid var(--ll-ink); }
.woocommerce-cart .cart_totals { border: 2px solid var(--ll-ink); background: var(--wp--preset--color--paper); padding: 1.25rem; box-shadow: var(--ll-shadow); }
.woocommerce-cart .wc-proceed-to-checkout .checkout-button { background: var(--ll-orange) !important; color: var(--ll-ink) !important; border: 2px solid var(--ll-ink) !important; }
.ll-freeship { border: 2px solid var(--ll-ink); background: var(--ll-lime); padding: .75rem 1rem; font-weight: 700; margin: 0 0 1rem; }
.ll-freeship__bar { height: 8px; background: var(--wp--preset--color--paper); border: 2px solid var(--ll-ink); margin-top: .5rem; overflow: hidden; }
.ll-freeship__bar span { display: block; height: 100%; background: var(--ll-orange); transform-origin: left; transition: transform 300ms var(--ll-ease-out); }
@media (max-width: 600px) { .ll-secure .ll-secure__back { display: none; } }

/* ---------- Mobile menu overlay: opens occasionally -> a short ease-out rise, none for reduced motion ---------- */
.wp-block-navigation__responsive-container.is-menu-open { background: var(--ll-cream) !important; color: var(--ll-ink) !important; padding: 1.25rem clamp(1rem, 4vw, 2.5rem) !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-family: var(--wp--preset--font-family--display); font-size: 2.25rem; font-weight: 400; text-transform: uppercase; line-height: 1.1; text-decoration: none; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { gap: .6rem !important; padding-top: 3.5rem; }
@media (prefers-reduced-motion: no-preference) {
	.wp-block-navigation__responsive-container.is-menu-open { animation: ll-menu 220ms var(--ll-ease-out) both; }
}
@keyframes ll-menu { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { transition: transform 160ms var(--ll-ease-out); }
.wp-block-navigation__responsive-container-open:active, .wp-block-navigation__responsive-container-close:active { transform: scale(0.94); }

/* ---------- Long-form pages + posts ---------- */
.wp-block-post-content > h2 { margin-top: 2.75rem; padding-top: 1.1rem; border-top: 2px solid var(--ll-ink); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.wp-block-post-content > h2:first-child { margin-top: 1rem; border-top: 0; padding-top: 0; }
.wp-block-post-content > h3 { margin-top: 1.75rem; }
.wp-block-post-content li { margin-bottom: .4rem; }
.wp-block-post-content li::marker { color: var(--ll-orange); }
.wp-block-post-content table { width: 100%; border-collapse: collapse; border: 2px solid var(--ll-ink); background: var(--wp--preset--color--paper); font-size: .9375rem; }
.wp-block-post-content th, .wp-block-post-content td { border: 1px solid var(--wp--preset--color--line); padding: .55rem .7rem; text-align: left; }
.wp-block-post-content th { background: var(--ll-ink); color: var(--ll-cream); }
