/* Bohemian 2026: tokens + reset */
:root {
	--bl-bg: #f7f4ee;
	--bl-line: #eee6d5;
	--bl-gold: #c2ab80;
	--bl-ink: #1e1e1e;
	--bl-nav: #333333;
	--bl-ink-hover: #2d2e33;
	--bl-muted: #555555;
	/* Figma palette */
	--bl-card-bg: #f7f4ee;
	--bl-brand: #4f4022;
	--bl-brand-2: #856d3e;
	--bl-brand-3: #cebea0;
	--bl-brand-hover: #eae2d3;
	--bl-white: #ffffff;
	--bl-sans: 'Google Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--bl-serif: 'Fedra Serif Display', Georgia, 'Times New Roman', serif;
	--bl-gutter: 40px;
	--bl-bar-h: 80px;
	--bl-z-header: 980;
	--bl-z-drawer: 990;
}

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

html {
	/* opening the cart, a lightbox or a menu hides the page scrollbar; keeping its space reserved stops the page behind from jumping sideways */
	scrollbar-gutter: stable;
	background-color: var(--bl-bg);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	font-synthesis: none; /* only real font files are used, no faux bold */
}

/* Headings: Fedra Serif Display, regular, never bold */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--bl-serif);
	font-weight: 400;
	line-height: 1.3;
}

b,
strong {
	font-weight: 500;
}

body {
	margin: 0;
	background: var(--bl-bg);
	color: var(--bl-ink);
	font: 400 14px/1.4 var(--bl-sans);
}

img,
svg {
	max-width: 100%;
}

img {
	height: auto;
	border: 0;
}

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

p {
	margin: 0;
}

button {
	font: inherit;
	color: inherit;
}

[hidden] {
	display: none !important;
}

.bl-sr,
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.bl-skip {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--bl-ink);
	color: #fff;
	font-size: 14px;
	line-height: 20px;
}

.bl-skip:focus {
	top: 12px;
}

:focus-visible {
	outline: 2px solid var(--bl-brand-2);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ------------------------------------------------ form fields (zero specificity, components override freely) */

:where(input[type='text'], input[type='email'], input[type='tel'], input[type='number'], input[type='password'], input[type='url'], input[type='date'], input[type='time']) {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	height: 40px;
	margin: 0;
	padding: 0 10px;
	border: 1px solid rgba(39, 39, 39, 0.27);
	border-radius: 3px;
	background: rgba(255, 255, 255, 0);
	color: var(--bl-ink);
	font: inherit;
	transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

:where(textarea) {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 6px 10px;
	border: 1px solid rgba(39, 39, 39, 0.27);
	border-radius: 3px;
	background: rgba(255, 255, 255, 0);
	color: var(--bl-ink);
	font: inherit;
	vertical-align: top;
	transition: border-color 0.2s ease-in-out;
}

:where(input[type='text'], input[type='email'], input[type='tel'], input[type='number'], input[type='password'], input[type='url'], input[type='date'], input[type='time'], textarea):focus {
	border-color: var(--bl-brand-2);
	outline: 0;
	background-color: rgba(255, 255, 255, 0.6);
}

/* nothing may widen the page sideways on a phone (iOS lets the whole page pan if anything pokes out) */
@media (max-width: 1359px) {
	html, body { max-width: 100%; overflow-x: clip; }
}
@supports not (overflow: clip) {
	html { overflow-x: hidden; }
}

/* phone: the page itself only pans up and down (sliders and rails still pan sideways inside themselves) */
@media (max-width: 1359px) {
	html, body { touch-action: pan-y pinch-zoom; }
	[class*='__track'], [class*='bl-head__tiles'], [class*='__slider'], .bl-filters__set, .bl-nm__info, .bl-fdd__panel { touch-action: pan-x pan-y; }
}

/* photos that blend into the page (multiply) blend against the page colour itself, so iOS Safari also drops the photo's white backdrop */
.bl-card__media, .bl-pcard__media, .bl-head__img, .bl-gal__link, .bl-lb__stage, .bl-lb__thumb,
.bl-mini__thumb, .bl-rev__thumb, .bl-sp__thumb, .bl-lkp__thumb, .bl-set__thumb {
	isolation: isolate;
	background-color: var(--bl-bg);
}
body .bl-pcard__media, body .bl-card__media, body .bl-head__img { background-color: var(--bl-bg); }

/* touch screens: a tap must never leave a focus ring on a button, icon or link (keyboard users keep theirs) */
@media (hover: none), (pointer: coarse) {
	button:focus-visible, a:focus-visible, [role='button']:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: none; }
}
.bl-nm__panel:focus, .bl-lb:focus { outline: none; }

/* ---- our scrollbar: slim, sand, rounded. Used by every panel that scrolls inside the page
   (filter lists, cart drawer, notifications, mobile menu, dialogs, search). The page's own scrollbar stays the browser's. */
.bl-fdd__panel,
.bl-cart-drawer__body,
.bl-notif__panel,
.bl-nm__view,
.bl-dialog__in,
.bl-sp {
	scrollbar-width: thin;
	scrollbar-color: #d9cdb4 transparent;
}

.bl-fdd__panel::-webkit-scrollbar,
.bl-cart-drawer__body::-webkit-scrollbar,
.bl-notif__panel::-webkit-scrollbar,
.bl-nm__view::-webkit-scrollbar,
.bl-dialog__in::-webkit-scrollbar,
.bl-sp::-webkit-scrollbar {
	width: 10px;
}

.bl-fdd__panel::-webkit-scrollbar-track,
.bl-cart-drawer__body::-webkit-scrollbar-track,
.bl-notif__panel::-webkit-scrollbar-track,
.bl-nm__view::-webkit-scrollbar-track,
.bl-dialog__in::-webkit-scrollbar-track,
.bl-sp::-webkit-scrollbar-track {
	margin: 10px 0;
	background: transparent;
}

.bl-fdd__panel::-webkit-scrollbar-thumb,
.bl-cart-drawer__body::-webkit-scrollbar-thumb,
.bl-notif__panel::-webkit-scrollbar-thumb,
.bl-nm__view::-webkit-scrollbar-thumb,
.bl-dialog__in::-webkit-scrollbar-thumb,
.bl-sp::-webkit-scrollbar-thumb {
	border: 3px solid transparent;
	border-radius: 9999px;
	background: #d9cdb4;
	background-clip: padding-box;
}

.bl-fdd__panel::-webkit-scrollbar-thumb:hover,
.bl-cart-drawer__body::-webkit-scrollbar-thumb:hover,
.bl-notif__panel::-webkit-scrollbar-thumb:hover,
.bl-nm__view::-webkit-scrollbar-thumb:hover,
.bl-dialog__in::-webkit-scrollbar-thumb:hover,
.bl-sp::-webkit-scrollbar-thumb:hover {
	background: #cebea0;
	background-clip: padding-box;
}

/* any open modal dialog (rewards, sign in...) holds the page still behind it; the scrollbar's space stays reserved so nothing shifts */
html:has(dialog[open]:modal) {
	overflow: hidden;
}

/* the focus ring is for the keyboard: after a click or tap (or when the drawer hands focus back) no frame appears */
body.bl-mouse :focus-visible { outline: none; }
