/**
 * Winter26 design tokens — shared chrome for Home / Collection / Product.
 * Authority: designer-source/html/01-shop-home.html (inline CSS).
 * Owned by Carmela 店·首页. Do not fork palette in Collection/Product sessions.
 *
 * Enqueued as `winter26-tokens` (priority 6, depends on `ecommerce-clothing-fonts`).
 * Typefaces (Allura / Cormorant Garamond / Jost) ship ONLY via resource/css/fonts.css
 * — do not add a second font-face block here or duplicate webfont files.
 * Consume via var(--w26-*). Legacy --carmela-* remain in carmela-replica.css;
 * Winter26 UI should prefer --w26-*.
 */

:root {
	/* Surfaces — HTML 01-shop-home */
	--w26-bg: #FAF7F2;
	--w26-cream: #FAF7F2;
	--w26-cream-soft: #FAF7F2;
	--w26-header: #F4F1EA;
	--w26-beige: #EFE6D8;
	--w26-hero-panel: #E9E1D6;
	--w26-white: #FFFFFF;
	--w26-surface: var(--w26-bg);

	/* Accents / ink */
	--w26-brown: #5A3E2B;
	--w26-chocolate: #5A3E2B;
	--w26-chocolate-hover: #2E2620;
	--w26-dark: #2E2620;
	--w26-ink: #2E2620;
	--w26-gold: #E2B04A;
	--w26-taupe: #C2B09C;
	--w26-muted: #6B5847;
	--w26-label: #8A5A2B;
	--w26-body-soft: #4A3D33;
	--w26-border: #E5DCCB;
	--w26-line: #EEE6D8;
	--w26-announce-fg: #F6F0E6;
	--w26-footer-fg: #E9DDC8;

	/* Semantic */
	--w26-focus: #5A3E2B;
	--w26-danger: #B42318;
	--w26-sale: #B42318;

	/* Type stacks — same family names as fonts.css */
	--w26-font-script: 'Allura', cursive;
	--w26-font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	--w26-font-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

	/* Type scale (homepage / chrome) — HTML sizes */
	--w26-fs-hero: clamp(44px, 5vw, 68px);
	--w26-fs-h2: 40px;
	--w26-fs-h2-lg: 44px;
	--w26-fs-h3: 17px;
	--w26-fs-body: 15px;
	--w26-fs-small: 13px;
	--w26-ls-wide: 0.08em;
	--w26-ls-label: 0.24em;
	--w26-ls-nav: 0.08em;

	/* Spacing / chrome */
	--w26-header-h: 72px;
	--w26-announce-h: 40px;
	--w26-container: 1320px;
	--w26-gutter: 24px;
	--w26-radius: 0;
	--w26-btn-pad-y: 15px;
	--w26-btn-pad-x: 30px;
}

/* Utility hooks for shared chrome (header/footer sessions reuse these) */
.w26-serif { font-family: var(--w26-font-serif); }
.w26-sans { font-family: var(--w26-font-sans); }
.w26-script { font-family: var(--w26-font-script); }
.w26-bg-cream { background-color: var(--w26-cream); }
.w26-bg-chocolate { background-color: var(--w26-chocolate); color: var(--w26-white); }
.w26-text-chocolate { color: var(--w26-chocolate); }
.w26-text-muted { color: var(--w26-muted); }


/* Breakpoints (consume in @media; values also documented for JS if needed) */
:root {
	--w26-bp-xs: 480px;
	--w26-bp-sm: 640px;
	--w26-bp-md: 768px;
	--w26-bp-lg: 1024px;
	--w26-bp-xl: 1280px;
	--w26-card-min: 220px;
	--w26-card-min-lg: 240px;
}

/* Phone rhythm. @media conditions cannot read custom properties, so every
   winter26 stylesheet uses these same pixel cuts:
     480  --w26-bp-xs  phone (the 375–430 shop)
     640  --w26-bp-sm  large phone (form rows)
     768  --w26-bp-md  stack chrome, hero, cart, account
     1024 --w26-bp-lg  PLP sidebar + PDP columns
     1280 --w26-bp-xl
   The block below retunes gutter, type, and card minimum for ≤768. */
@media (max-width: 768px) {
	:root {
		--w26-gutter: 16px;
		--w26-header-h: 120px;
		--w26-fs-hero: clamp(32px, 10vw, 44px);
		--w26-fs-h2: 32px;
		--w26-fs-h2-lg: 34px;
		--w26-card-min: 148px;
		--w26-btn-pad-y: 14px;
		--w26-btn-pad-x: 20px;
	}
}

@media (max-width: 480px) {
	:root {
		--w26-card-min: 140px;
		--w26-fs-hero: clamp(30px, 9vw, 40px);
		--w26-fs-h2: 28px;
		--w26-fs-h2-lg: 30px;
	}
}
