/**
 * ZAI COFFEE — Design Tokens
 * -----------------------------------------------------------------------------
 * Single source of truth for the ZAI COFFEE design system.
 *
 * Rules enforced project-wide:
 * - No raw colour value may appear outside this file.
 * - No raw font-family, easing curve or z-index may appear outside this file.
 * - Tokens are consumed as var( --zai-* ) in every other stylesheet.
 *
 * Brand colours are fixed. Every other value is derived from them.
 *
 * @package zaicoffeetheme
 * @since   1.0.0
 */

/* ==========================================================================
   1. Font faces — self-hosted, zero external requests
   -----------------------------------------------------------------------------
   Turkish glyph coverage requires BOTH subsets:
     latin      -> ü ö ç Ç Ö Ü ı      (U+00FC U+00F6 U+00E7 U+00C7 U+00D6 U+00DC U+0131)
     latin-ext  -> ğ Ğ ş Ş İ          (U+011F U+011E U+015F U+015E U+0130)
   Neither subset alone renders Turkish correctly.
   ========================================================================== */

/* --- Cormorant Garamond — editorial display face ------------------------- */

@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("../fonts/cormorant-garamond/cormorant-garamond-latin-300-normal.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;
}

@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("../fonts/cormorant-garamond/cormorant-garamond-latin-ext-300-normal.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/cormorant-garamond/cormorant-garamond-latin-400-normal.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;
}

@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/cormorant-garamond/cormorant-garamond-latin-ext-400-normal.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/cormorant-garamond/cormorant-garamond-latin-500-normal.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;
}

@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/cormorant-garamond/cormorant-garamond-latin-ext-500-normal.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/cormorant-garamond/cormorant-garamond-latin-600-normal.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;
}

@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/cormorant-garamond/cormorant-garamond-latin-ext-600-normal.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* --- Manrope — body and interface face ----------------------------------- */

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/manrope/manrope-latin-400-normal.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;
}

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/manrope/manrope-latin-ext-400-normal.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/manrope/manrope-latin-500-normal.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;
}

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/manrope/manrope-latin-ext-500-normal.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/manrope/manrope-latin-600-normal.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;
}

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/manrope/manrope-latin-ext-600-normal.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/manrope/manrope-latin-700-normal.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;
}

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/manrope/manrope-latin-ext-700-normal.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   2. Design tokens
   ========================================================================== */

:root {
	color-scheme: light;

	/* --- 2.1 Brand palette (fixed — never redefined) --------------------- */
	--zai-green: #447350;
	--zai-surface: #f3f0ec;
	--zai-ink: #222222;

	/* --- 2.2 Derived brand steps ---------------------------------------- */
	--zai-green-hover: #375e42;
	--zai-green-active: #2d4d36;
	--zai-green-soft: #e7ede9;
	--zai-green-line: #c3d2c8;

	--zai-surface-soft: #faf8f5;
	--zai-surface-deep: #eae5de;

	/* --- 2.3 Text scale --------------------------------------------------
	 * Contrast verified against --zai-surface (#f3f0ec):
	 *   --zai-text        14.0:1  AAA
	 *   --zai-text-muted   5.98:1 AA
	 *   --zai-green        4.85:1 AA — never use for text below 14px
	 * -------------------------------------------------------------------- */
	--zai-text: var(--zai-ink);
	--zai-text-muted: #5b5b5b;
	--zai-text-subtle: #767066;
	--zai-text-inverse: #ffffff;
	--zai-text-inverse-muted: #b9b4ad;

	/* --- 2.4 Surfaces ---------------------------------------------------- */
	--zai-bg: #ffffff;
	--zai-bg-alt: var(--zai-surface);
	--zai-bg-soft: var(--zai-surface-soft);
	--zai-bg-deep: var(--zai-surface-deep);
	--zai-bg-inverse: var(--zai-ink);
	--zai-bg-inverse-alt: #1a1a1a;

	/* --- 2.5 Borders ----------------------------------------------------- */
	--zai-border-color: #ddd8d1;
	--zai-border-color-strong: #c6bfb5;
	--zai-border-color-inverse: rgba(255, 255, 255, 0.14);
	--zai-border-width: 1px;
	--zai-border-width-strong: 2px;

	/* --- 2.6 Feedback ---------------------------------------------------- */
	--zai-error: #a33b32;
	--zai-error-bg: #f8ecea;
	--zai-success: var(--zai-green);
	--zai-success-bg: var(--zai-green-soft);
	--zai-notice: #6b5b2e;
	--zai-notice-bg: #f6f1e4;

	/* --- 2.7 Focus ------------------------------------------------------- */
	--zai-focus-color: var(--zai-green);
	--zai-focus-width: 2px;
	--zai-focus-offset: 2px;

	/* --- 2.8 Typography families ----------------------------------------- */
	--zai-font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
	--zai-font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--zai-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

	/* --- 2.9 Font weights ------------------------------------------------ */
	--zai-fw-light: 300;
	--zai-fw-regular: 400;
	--zai-fw-medium: 500;
	--zai-fw-semibold: 600;
	--zai-fw-bold: 700;
	/* --- 2.10 Fluid type scale -------------------------------------------
	 * clamp( min, preferred, max ), tuned 320px -> 1728px.
	 * The display face is never heavier than 500.
	 * -------------------------------------------------------------------- */
	--zai-fs-eyebrow: clamp(0.6875rem, 0.66rem + 0.14vw, 0.75rem);
	--zai-fs-xs: clamp(0.75rem, 0.73rem + 0.1vw, 0.8125rem);
	--zai-fs-sm: clamp(0.875rem, 0.85rem + 0.13vw, 0.9375rem);
	--zai-fs-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
	--zai-fs-md: clamp(1.0625rem, 1.02rem + 0.22vw, 1.1875rem);
	--zai-fs-lg: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);

	--zai-fs-h6: clamp(1.0625rem, 1rem + 0.31vw, 1.1875rem);
	--zai-fs-h5: clamp(1.25rem, 1.13rem + 0.6vw, 1.5rem);
	--zai-fs-h4: clamp(1.5rem, 1.3rem + 1vw, 1.9375rem);
	--zai-fs-h3: clamp(1.75rem, 1.43rem + 1.6vw, 2.375rem);
	--zai-fs-h2: clamp(2.125rem, 1.6rem + 2.6vw, 3.25rem);
	--zai-fs-h1: clamp(2.5rem, 1.6rem + 4.5vw, 4.5rem);
	--zai-fs-display: clamp(2.875rem, 1.6rem + 6.4vw, 6rem);

	/* --- 2.11 Line heights ----------------------------------------------- */
	--zai-lh-none: 1;
	--zai-lh-tight: 1.08;
	--zai-lh-heading: 1.14;
	--zai-lh-snug: 1.35;
	--zai-lh-normal: 1.6;
	--zai-lh-relaxed: 1.7;
	--zai-lh-loose: 1.85;

	/* --- 2.12 Letter spacing --------------------------------------------- */
	--zai-ls-tighter: -0.02em;
	--zai-ls-tight: -0.012em;
	--zai-ls-normal: 0;
	--zai-ls-wide: 0.04em;
	--zai-ls-wider: 0.1em;
	--zai-ls-caps: 0.14em;

	/* --- 2.13 Spacing scale (4px base) ----------------------------------- */
	--zai-space-1: 0.25rem;   /*   4px */
	--zai-space-2: 0.5rem;    /*   8px */
	--zai-space-3: 0.75rem;   /*  12px */
	--zai-space-4: 1rem;      /*  16px */
	--zai-space-5: 1.5rem;    /*  24px */
	--zai-space-6: 2rem;      /*  32px */
	--zai-space-7: 2.5rem;    /*  40px */
	--zai-space-8: 3rem;      /*  48px */
	--zai-space-9: 4rem;      /*  64px */
	--zai-space-10: 5rem;     /*  80px */
	--zai-space-11: 6rem;     /*  96px */
	--zai-space-12: 8rem;     /* 128px */

	/* --- 2.14 Layout ----------------------------------------------------- */
	--zai-container: 1320px;
	--zai-container-narrow: 820px;
	--zai-container-wide: 1560px;
	--zai-gutter: clamp(1rem, 4vw, 3rem);
	--zai-gutter-tight: clamp(0.75rem, 2vw, 1.5rem);

	--zai-grid-columns: 12;
	--zai-grid-gap: clamp(1rem, 2.2vw, 2rem);
	--zai-grid-gap-sm: clamp(0.75rem, 1.5vw, 1.25rem);

	--zai-section-y: clamp(3rem, 6vw, 6rem);
	--zai-section-y-lg: clamp(4rem, 9vw, 8rem);

	--zai-header-height: 88px;
	--zai-header-height-scrolled: 64px;
	--zai-header-height-mobile: 60px;

	/* --- 2.15 Radii — near-square by design ------------------------------ */
	--zai-radius-none: 0;
	--zai-radius-sm: 2px;
	--zai-radius-pill: 999px;
	--zai-radius: var(--zai-radius-sm);

	/* --- 2.16 Shadows — deliberately minimal ----------------------------- */
	--zai-shadow-none: none;
	--zai-shadow-soft: 0 1px 2px rgba(34, 34, 34, 0.04);
	--zai-shadow-header: 0 1px 3px rgba(34, 34, 34, 0.06);

	/* --- 2.17 Transitions & motion --------------------------------------- */
	--zai-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--zai-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
	--zai-dur-instant: 100ms;
	--zai-dur-fast: 180ms;
	--zai-dur: 240ms;
	--zai-dur-slow: 420ms;

	/* --- 2.18 Z-index scale ---------------------------------------------- */
	--zai-z-base: 1;
	--zai-z-raised: 10;
	--zai-z-header: 100;
	--zai-z-panel: 200;
	--zai-z-drawer: 300;
	--zai-z-modal: 400;
	--zai-z-toast: 500;
	--zai-z-skip: 600;

	/* --- 2.19 Component sizing ------------------------------------------- */
	--zai-control-height: 3rem;        /* 48px */
	--zai-control-height-sm: 2.75rem;  /* 44px — minimum touch target */
	--zai-touch-target: 2.75rem;       /* 44px */
	--zai-icon-size: 1.25rem;
	--zai-icon-size-sm: 1rem;

	/* --- 2.20 Aspect ratios ---------------------------------------------- */
	--zai-ratio-square: 1 / 1;
	--zai-ratio-portrait: 3 / 4;
	--zai-ratio-product: 4 / 5;
	--zai-ratio-wide: 16 / 9;
}

/* ==========================================================================
   3. Breakpoint reference (documentation only)
   -----------------------------------------------------------------------------
   Media queries cannot consume custom properties, so breakpoints are written
   literally in each stylesheet. These are the only permitted values:

     320px  smallest supported viewport
     360px  common Android
     390px  iPhone 12-15
     430px  large phones
     480px  2-column grid threshold
     640px  stacked-to-inline forms
     768px  tablet — drawer navigation
     1024px desktop — full navigation
     1280px wide desktop
     1440px large desktop
     1728px container caps

   Mobile-first only: use min-width queries.
   ========================================================================== */

/* ==========================================================================
   4. Reduced motion — collapse all durations
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	:root {
		--zai-dur-instant: 1ms;
		--zai-dur-fast: 1ms;
		--zai-dur: 1ms;
		--zai-dur-slow: 1ms;
	}
}


