/* ==========================================================================
   Base: reset, typography, primitives (buttons, links, inputs, notices)
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--lb-header-h) + 1rem); }
body {
	margin: 0;
	background: var(--lb-bg);
	color: var(--lb-ink);
	font-family: var(--lb-font-sans);
	font-size: var(--lb-step-0);
	line-height: var(--lb-leading-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-feature-settings: "ss01", "cv11";
}
h1, h2, h3, h4, .lb-brand__wordmark, .lb-hero__title, .lb-philosophy__text { font-optical-sizing: auto; }
body.lb-lock { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
	margin: 0 0 var(--lb-space-s);
	font-family: var(--lb-font-serif);
	font-weight: 500;
	line-height: var(--lb-leading-snug);
	letter-spacing: -0.01em;
	text-wrap: balance;
}
h1 { font-size: var(--lb-step-5); line-height: var(--lb-leading-tight); }
h2 { font-size: var(--lb-step-4); }
h3 { font-size: var(--lb-step-2); }
h4 { font-size: var(--lb-step-1); }
p { margin: 0 0 var(--lb-space-s); text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--lb-accent-ink); }
del { color: var(--lb-muted); }
ins { text-decoration: none; }
hr { border: 0; border-top: 1px solid var(--lb-line); margin: var(--lb-space-l) 0; }
::selection { background: var(--lb-ink); color: var(--lb-bg); }

:focus { outline: none; }
:focus-visible { outline: 1.5px solid var(--lb-ink); outline-offset: 3px; border-radius: var(--lb-radius); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.lb-skip {
	position: fixed; top: 0.75rem; left: 0.75rem; z-index: 200;
	padding: 0.75rem 1.1rem; background: var(--lb-ink); color: var(--lb-bg);
	transform: translateY(-160%); transition: transform var(--lb-dur) var(--lb-ease);
}
.lb-skip:focus { transform: none; color: var(--lb-bg); }

/* Layout */
.lb-container { width: 100%; max-width: var(--lb-max); margin-inline: auto; padding-inline: var(--lb-gutter); }
.lb-container--wide { max-width: var(--lb-max-wide); }
.lb-main { display: block; min-height: 60vh; }
.lb-main--page, .lb-main--store, .lb-index { padding-block: var(--lb-space-xl) var(--lb-space-2xl); }

.lb-page-head { margin-bottom: var(--lb-space-l); }
.lb-page-title { font-size: var(--lb-step-5); max-width: 20ch; }
.lb-main--store .lb-page-title { font-size: var(--lb-step-4); }
.lb-section-title { font-size: var(--lb-step-3); margin: 0; }
.lb-meta { color: var(--lb-muted); font-size: var(--lb-step--1); margin-bottom: var(--lb-space-2xs); }

.lb-prose { max-width: var(--lb-measure); color: var(--lb-ink-soft); }
.lb-prose > * + * { margin-top: var(--lb-space-s); }
.lb-prose a { color: var(--lb-ink); }
.lb-prose ul, .lb-prose ol { padding-left: 1.2em; }
.lb-page__media { margin: 0 0 var(--lb-space-l); }

/* Buttons */
.lb-btn,
.button,
button.button,
input.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input[type="submit"],
.wc-block-components-button:not(.is-link) {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
	min-height: 52px; padding: 0 1.75rem;
	border: 1px solid var(--lb-ink); border-radius: var(--lb-radius);
	background: var(--lb-ink); color: var(--lb-bg);
	font-family: var(--lb-font-sans); font-size: var(--lb-step--1); font-weight: 500; letter-spacing: 0.02em;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color var(--lb-dur) var(--lb-ease), color var(--lb-dur) var(--lb-ease), border-color var(--lb-dur) var(--lb-ease), transform var(--lb-dur) var(--lb-ease);
}
.lb-btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover {
	background: var(--lb-accent); border-color: var(--lb-accent); color: var(--lb-bg);
}
.lb-btn:active, .button:active { transform: translateY(1px); }
.lb-btn--ghost, .button.wc-backward, .woocommerce a.button.wc-forward:not(.checkout) {
	background: transparent; color: var(--lb-ink); border-color: var(--lb-line-strong);
}
.lb-btn--ghost:hover, .woocommerce a.button.wc-forward:not(.checkout):hover { background: transparent; color: var(--lb-ink); border-color: var(--lb-ink); }
.button:disabled, .button.disabled, .button[disabled] { opacity: 0.45; cursor: not-allowed; }
.button.loading { position: relative; color: transparent !important; pointer-events: none; }
.button.loading::after {
	content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px;
	border: 1.25px solid var(--lb-bg); border-right-color: transparent; border-radius: 50%;
	animation: lb-spin 0.8s linear infinite;
}
@keyframes lb-spin { to { transform: rotate(360deg); } }

/* Text link with drawn underline */
.lb-link {
	display: inline-flex; align-items: center; gap: 0.4em; padding: 0.35em 0;
	font-size: var(--lb-step--1); font-weight: 500; letter-spacing: 0.02em; text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
	transition: background-size var(--lb-dur) var(--lb-ease), color var(--lb-dur) var(--lb-ease);
}
.lb-link:hover { background-size: 0 1px; background-position: 100% 100%; }
.lb-link--light { color: var(--lb-bg); }
.lb-link--light:hover { color: var(--lb-bg); }

.lb-iconbtn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
	border: 0; border-radius: var(--lb-radius-pill); background: transparent; color: var(--lb-ink);
	cursor: pointer; position: relative; text-decoration: none;
	transition: background-color var(--lb-dur) var(--lb-ease), color var(--lb-dur) var(--lb-ease);
}
.lb-iconbtn:hover { background: rgba(20, 20, 19, 0.05); color: var(--lb-ink); }
.lb-iconbtn--ring { border: 1px solid var(--lb-line-strong); }
.lb-iconbtn--ring:disabled { opacity: 0.35; cursor: default; }
.lb-icon { width: 22px; height: 22px; flex: none; }

/* Inputs */
.lb-input,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,
.woocommerce .quantity .qty,
.woocommerce-cart table.cart td.actions .coupon .input-text,
.woocommerce .woocommerce-ordering select,
.lb-searchform input[type="search"] {
	width: 100%; min-height: 52px; padding: 0.85rem 1rem;
	border: 1px solid var(--lb-line-strong); border-radius: var(--lb-radius);
	background: #FFFEFC; color: var(--lb-ink); font-size: 16px; line-height: 1.3;
	appearance: none; transition: border-color var(--lb-dur) var(--lb-ease), box-shadow var(--lb-dur) var(--lb-ease);
}
.lb-input::placeholder, .input-text::placeholder { color: var(--lb-muted); opacity: 1; }
.lb-input:hover, .input-text:hover { border-color: var(--lb-muted); }
.lb-input:focus, .input-text:focus, .woocommerce form .form-row select:focus, .woocommerce .quantity .qty:focus {
	outline: none; border-color: var(--lb-ink); box-shadow: 0 0 0 3px rgba(20, 20, 19, 0.06);
}
select.lb-input, .woocommerce form .form-row select, .woocommerce .woocommerce-ordering select {
	padding-right: 2.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23141413' stroke-width='1.25'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 1rem center;
}
.lb-searchform { display: flex; gap: 0.5rem; max-width: 520px; margin-block: var(--lb-space-m); }

/* Notices */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-NoticeGroup .woocommerce-error {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem;
	margin: 0 0 var(--lb-space-m); padding: 1rem 1.25rem; list-style: none;
	border: 1px solid var(--lb-line); border-left: 2px solid var(--lb-accent); border-radius: var(--lb-radius);
	background: #FFFEFC; color: var(--lb-ink-soft); font-size: var(--lb-step--1);
}
.woocommerce-error { border-left-color: var(--lb-error); flex-direction: column; align-items: flex-start; }
.woocommerce-error li { margin: 0; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; min-height: 40px; padding: 0 1.1rem; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { content: none; }
.woocommerce-message a:not(.button), .woocommerce-info a:not(.button) { color: var(--lb-ink); }

/* Star rating (replaces WooCommerce's icon font) */
.star-rating { position: relative; display: inline-block; width: 5.6em; height: 1.1em; overflow: hidden; font-size: 0.85rem; line-height: 1.1; letter-spacing: 0.12em; }
.star-rating::before { content: "\2605\2605\2605\2605\2605"; position: absolute; inset: 0; color: var(--lb-line-strong); }
.star-rating span { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; padding-top: 1.5em; }
.star-rating span::before { content: "\2605\2605\2605\2605\2605"; position: absolute; top: 0; left: 0; color: var(--lb-accent); }
.star-rating strong { display: none; }

/* Breadcrumbs */
.lb-crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--lb-space-s); color: var(--lb-muted); font-size: var(--lb-step--2); }
.lb-crumbs a { color: var(--lb-muted); text-decoration: none; }
.lb-crumbs a:hover { color: var(--lb-ink); }
.lb-crumbs__sep { opacity: 0.6; }

/* Post list */
.lb-postlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--lb-space-l); }
.lb-postcard__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--lb-surface); margin-bottom: var(--lb-space-s); }
.lb-postcard__media img { width: 100%; height: 100%; object-fit: cover; }
.lb-postcard__title { font-size: var(--lb-step-2); }
.lb-postcard__title a { text-decoration: none; }
.lb-empty { color: var(--lb-muted); }
.lb-404 .lb-page-title { max-width: 18ch; }

/* Footer */
.lb-footer { margin-top: var(--lb-space-2xl); border-top: 1px solid var(--lb-line); color: var(--lb-ink-soft); font-size: var(--lb-step--1); }
.lb-footer__inner { display: grid; gap: var(--lb-space-l); padding-block: var(--lb-space-xl) var(--lb-space-l); }
.lb-footer__name { font-family: var(--lb-font-serif); font-size: var(--lb-step-3); color: var(--lb-ink); margin-bottom: var(--lb-space-2xs); line-height: 1; }
.lb-footer__tagline { max-width: 34ch; }
.lb-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.lb-footer a { text-decoration: none; }
.lb-footer a:hover { text-decoration: underline; }
.lb-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: var(--lb-space-m); border-top: 1px solid var(--lb-line); color: var(--lb-muted); font-size: var(--lb-step--2); }
.lb-footer__legal p { margin: 0; }
.lb-footer__legal ul { display: flex; gap: 1.25rem; }
@media (min-width: 900px) {
	.lb-footer__inner { grid-template-columns: 2fr 1fr; }
	.lb-footer__legal { grid-column: 1 / -1; }
}

/* Honeypot */
.lb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* WooCommerce blockUI overlay */
.blockUI.blockOverlay { background: rgba(250, 249, 246, 0.6) !important; }

/* PhotoSwipe (lightbox) keeps its own CSS; quiet the backdrop */
.pswp__bg { background: var(--lb-bg) !important; }
.pswp__button { filter: invert(1); }
