/* BestShop design tokens v2 "Tag & Studio" — single source for colour, type, shape, depth, motion. See docs/design-v2.md §2. */
@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-var.woff2") format("woff2-variations"), url("../fonts/archivo-var.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "IBM Plex Mono";
	src: url("../fonts/plexmono-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "IBM Plex Mono";
	src: url("../fonts/plexmono-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

:root {
	/* brand core (unchanged names) */
	--ink: #16140F; --paper: #F4EFE6; --paper-2: #EAE3D6; --airmail: #D7392A; --gulf: #0F5C5A; --brass: #B08A4A;

	/* surfaces */
	--bg: #F6F2EB;            /* page background (warm) */
	--surface: #FFFFFF;       /* cards, panels */
	--surface-2: #F1EDE5;     /* image wells, inputs on white, quiet panels */
	--surface-3: #E9E3D8;     /* pressed / hover on surface-2 */

	/* ink scale */
	--ink-900: #16140F; --ink-800: #2A2721; --ink-700: #3F3B33; --ink-600: #5B564C; --ink-500: #7A7468;
	--ink-400: #A39D90; --ink-300: #CFC9BD; --ink-200: #E3DED4; --ink-100: #EFEBE3;

	/* airmail red scale */
	--red-50: #FCEDEA; --red-100: #F8D3CC; --red-200: #F0A99C; --red-300: #E77B69; --red-400: #DE5541;
	--red-500: #D7392A; --red-600: #B92D20; --red-700: #932318; --red-800: #6B1911; --red-900: #43100B;

	/* gulf teal scale */
	--teal-50: #E6F1F0; --teal-100: #C2DEDC; --teal-200: #94C5C2; --teal-300: #5FA7A3;
	--teal-500: #0F5C5A; --teal-600: #0C4E4C; --teal-700: #0A4442; --teal-900: #062A29;

	/* warm accents */
	--brass-100: #F1E7D4; --brass-200: #E5D2AE; --brass-500: #B08A4A; --brass-700: #7E6131;
	--sand-100: #F2EDE4; --sand-200: #EAE3D6; --sand-300: #DCD2C0;
	--rose-100: #FBE4DF; --rose-200: #F3C9C0; --rose-300: #EBB2A5;

	/* semantic */
	--text: var(--ink-900); --text-muted: var(--ink-600); --text-subtle: var(--ink-500); --text-inverse: #FFFFFF;
	--accent: var(--red-500); --accent-hover: var(--red-600);
	--success: var(--teal-500); --warning: var(--brass-500); --danger: var(--red-600);
	--border: rgba(22,20,15,.10); --border-strong: rgba(22,20,15,.22);
	/* control boundaries (WCAG 1.4.11, ≥ 3:1 on white and --bg): text fields, qty and search pills; validated fields */
	--border-control: #8C8578; --border-valid: #3B8A86;
	--focus: var(--ink-900);           /* dark contexts set --focus: #fff */

	/* tones: background + foreground pairs used by heroes, tiles, banners, brand cards */
	--tone-red-bg: #C93427;   --tone-red-fg: #FFFFFF;
	--tone-wine-bg: #4A100C;  --tone-wine-fg: #FFFFFF;
	--tone-rose-bg: #F3C9C0;  --tone-rose-fg: #16140F;
	--tone-teal-bg: #0F5C5A;  --tone-teal-fg: #FFFFFF;
	--tone-ink-bg: #1E1B16;   --tone-ink-fg: #FFFFFF;
	--tone-sand-bg: #EAE3D6;  --tone-sand-fg: #16140F;
	--tone-brass-bg: #E5D2AE; --tone-brass-fg: #16140F;

	/* shape */
	--r-xs: 8px; --r-sm: 12px; --r-md: 18px; --r-lg: 24px; --r-xl: 32px; --r-2xl: 40px; --r-pill: 999px;

	/* depth (warm-tinted, soft) — only on floating/elevated things and hover */
	--sh-1: 0 1px 2px rgba(22,20,15,.06), 0 2px 6px rgba(22,20,15,.04);
	--sh-2: 0 2px 6px rgba(22,20,15,.05), 0 12px 28px -6px rgba(22,20,15,.12);
	--sh-3: 0 8px 20px rgba(22,20,15,.08), 0 32px 64px -16px rgba(22,20,15,.24);

	/* glass (only over imagery / colour fields; always with a solid fallback) */
	--glass-bg: rgba(255,255,255,.12); --glass-border: rgba(255,255,255,.24); --glass-blur: 18px;
	--glass-light-bg: rgba(255,255,255,.74);

	/* type */
	--font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
	--fs-display: clamp(2.6rem, 1.2rem + 5.2vw, 5.75rem);
	--fs-h1: clamp(2.1rem, 1.4rem + 2.8vw, 3.6rem);
	--fs-h2: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
	--fs-h3: clamp(1.15rem, 1.02rem + .55vw, 1.45rem);
	--fs-lg: 1.125rem; --fs-md: 1rem; --fs-sm: .875rem; --fs-xs: .75rem;

	/* space (unchanged scale) */
	--s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

	/* layout */
	--wrap: 1360px; --gutter: clamp(16px, 4vw, 40px);
	--header-h: 72px; --promo-h: 36px; --bottomnav-h: 64px;

	/* motion */
	--ease: cubic-bezier(.2,.7,.2,1); --t-fast: 160ms; --t: 240ms; --t-slow: 420ms;

	/* layers */
	--z-bottomnav: 90; --z-header: 100; --z-mega: 110; --z-overlay: 190; --z-drawer: 200; --z-toast: 300;
}
@media (max-width: 899px) { :root { --header-h: 60px; } }
/* touch: the promo bar's pause button is a 44px target, so the bar grows with it (layout.css) */
@media (pointer: coarse) { :root { --promo-h: 44px; } }
