/**
 * Design Tokens — Warm Terracotta & Cream Identity
 *
 * Breakpoints (documented for CSS media queries & JS sync):
 * - Mobile small:     < 640px
 * - Tablet / Mobile:  < 768px
 * - Single stack:     < 992px  (Single post sidebar moves below content)
 * - Desktop header:   >= 1200px (Matches MOBILE_BREAKPOINT = 1200 in assets/js/header.js)
 * - Large desktop:    >= 1400px
 */

:root {
	/* Colors (WCAG AA verified) */
	--bg-page: #F8F2EC;
	--bg-surface: #EED6C4;
	--bg-section: #E6C8B3;
	--bg-white: #FFFFFF;
	--bg-overlay: rgba(84, 40, 26, 0.58);

	/* Primary: #8F5E46 achieves 4.90:1 on #F8F2EC and 5.44:1 on #FFFFFF (>= 4.5:1 AA) */
	--color-primary: #8F5E46;
	/* Hover: #7F533E achieves 5.89:1 on #F8F2EC, 6.54:1 on #FFFFFF, 4.69:1 on #EED6C4 */
	--color-primary-hover: #7F533E;
	--color-on-primary: #F8F2EC;

	/* Text: #54281A (11.15:1 on cream), #6B4C3E (6.93:1 on cream) */
	--text-heading: #54281A;
	--text-body: #6B4C3E;
	--text-muted: #6B4C3E;
	--border-soft: #DEC4B2;

	/* Semantic */
	--color-danger: #B33A2E;
	--color-success: #2E6B47;

	/* Typography */
	--font-serif: "Oxygen", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-sans: "Oxygen", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-brand: "Hops Brand", "Oxygen", system-ui, serif;

	/* Type Scale */
	--text-xs: 0.75rem;     /* 12px */
	--text-sm: 0.875rem;    /* 14px */
	--text-base: 1rem;      /* 16px */
	--text-lg: 1.125rem;    /* 18px */
	--text-xl: 1.35rem;     /* 21.6px */
	--text-2xl: 1.75rem;    /* 28px */
	--text-3xl: 2.25rem;    /* 36px */

	--leading-tight: 1.2;
	--leading-snug: 1.35;
	--leading-normal: 1.6;
	--leading-relaxed: 1.75;

	/* Spacing Scale (4 / 8 / 12 / 16 / 20 / 24 / 32 / 40 / 48 / 64) */
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 20px;
	--space-6: 24px;
	--space-8: 32px;
	--space-10: 40px;
	--space-12: 48px;
	--space-16: 64px;

	/* Controls */
	--control-h: 40px;
	--control-h-touch: 44px;

	/* Radius Scale */
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-pill: 999px;

	/* Shadow Scale */
	--shadow-sm: 0 4px 12px rgba(84, 40, 26, 0.08);
	--shadow-md: 0 12px 28px rgba(84, 40, 26, 0.14);
	--shadow-lg: 0 24px 60px rgba(84, 40, 26, 0.25);

	/* Cards */
	--card-radius: var(--radius-md);
	--card-border: 1px solid var(--border-soft);
	--card-shadow-hover: var(--shadow-md);

	/* Containers & Page Rhythm */
	--container: 1280px;
	--container-narrow: 760px;
	--container-gutter: 28px;
	--container-gutter-mobile: 16px;
	--page-gutter: var(--container-gutter);
	--page-pad-top: 28px;
	--page-pad-bottom: 64px;

	/* Z-Index Scale */
	--z-sticky: 880;
	--z-header: 900;
	--z-mega: 950;
	--z-cookie: 960;
	--z-backdrop: 9970;
	--z-drawer: 9980;
	--z-modal: 10000;

	/* Dynamic Header Offset (updated by header.js) */
	--header-offset: 0px;
}

@media (max-width: 767px) {
	:root {
		--page-gutter: var(--container-gutter-mobile);
		--page-pad-top: 18px;
		--page-pad-bottom: 48px;
	}
}

