/* ==========================================================================
   Homoeo At Home — design tokens
   The single source of truth for colour, type, spacing, radius and shadow.
   ========================================================================== */

@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("../fonts/figtree-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("../fonts/figtree-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	/* Brand green (taken from the logo) */
	--hah-green-800: #004d22;
	--hah-green-700: #00652a;
	--hah-green-600: #008035; /* primary */
	--hah-green-200: #bfe3cb;
	--hah-green-100: #dff1e5;
	--hah-green-50: #f1f8f3;

	/* Logo lime: decoration only, never for text */
	--hah-lime-500: #a8c840;
	--hah-lime-100: #eef5d6;

	/* Accent: buy buttons only */
	--hah-accent-700: #a63507;
	--hah-accent-600: #c8410d; /* white text on this = 4.98:1 (AA) */
	--hah-accent-100: #ffe6d6;
	--hah-accent-50: #fff4ec;

	/* Neutrals (slightly green-tinted so they sit well with the brand) */
	--hah-ink: #13251b;
	--hah-ink-2: #42534a;
	--hah-muted: #5e6d63;
	--hah-line: #e1e8e3;
	--hah-line-strong: #c9d4cc;
	--hah-bg: #f4f7f5;
	--hah-surface: #ffffff;

	/* Feedback */
	--hah-danger: #c62828;
	--hah-danger-bg: #fdecec;
	--hah-warn: #9a5b00;
	--hah-warn-bg: #fff4de;
	--hah-info: #1f5fa8;
	--hah-info-bg: #e9f2fc;

	/* Type */
	--hah-font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--hah-fs-display: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem);
	--hah-fs-h1: clamp(1.5rem, 1.25rem + 1.1vw, 1.875rem);
	--hah-fs-h2: clamp(1.25rem, 1.12rem + 0.6vw, 1.5rem);
	--hah-fs-h3: 1.125rem;
	--hah-fs-body: 1rem;
	--hah-fs-sm: 0.875rem;
	--hah-fs-xs: 0.75rem;

	/* Spacing (4px steps) */
	--hah-1: 4px;
	--hah-2: 8px;
	--hah-3: 12px;
	--hah-4: 16px;
	--hah-5: 20px;
	--hah-6: 24px;
	--hah-8: 32px;
	--hah-12: 48px;
	--hah-16: 64px;

	/* Shape */
	--hah-r-sm: 8px;
	--hah-r-md: 12px;
	--hah-r-lg: 16px;
	--hah-r-xl: 24px;
	--hah-r-pill: 999px;

	/* Depth */
	--hah-shadow-1: 0 1px 2px rgba(16, 40, 28, 0.06), 0 1px 1px rgba(16, 40, 28, 0.04);
	--hah-shadow-2: 0 6px 20px rgba(16, 40, 28, 0.08), 0 1px 3px rgba(16, 40, 28, 0.05);
	--hah-shadow-3: 0 18px 48px rgba(16, 40, 28, 0.16);

	/* Motion */
	--hah-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--hah-fast: 140ms;
	--hah-med: 240ms;

	--hah-container: 1240px;
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--hah-fast: 0ms;
		--hah-med: 0ms;
	}
}

/* Phones: the parent theme shrinks the base text size to about 14.6px, which made every
   "extra small" label 10.9px. Small text is never below 11.5px on phones. */
@media (max-width: 480px) {
	:root, .hah, body.hah-site { --hah-fs-xs: 11.5px; }
}
