/**
 * DIM LELIN design tokens.
 *
 * This is the single source of truth for shared visual values. Component
 * styles consume semantic tokens instead of raw values.
 */

:root {
	--dim-font-family-brand: "Cormorant Garamond", Georgia, serif;
	--dim-font-family-body: "Manrope", system-ui, sans-serif;
	--dim-font-family-hero-display: var(--dim-font-family-brand);

	--dim-font-weight-regular: 400;
	--dim-font-weight-medium: 500;
	--dim-font-weight-semibold: 600;
	--dim-font-weight-bold: 700;

	--dim-line-height-tight: 1.15;
	--dim-line-height-heading: 1.25;
	--dim-line-height-body: 1.6;
	--dim-line-height-ui: 1.2;

	--dim-font-size-display: clamp(2.25rem, 1.75rem + 2.5vw, 4.5rem);
	--dim-font-size-h1: clamp(2rem, 1.7rem + 1.5vw, 3.5rem);
	--dim-font-size-h2: clamp(1.625rem, 1.425rem + 1vw, 2.5rem);
	--dim-font-size-h3: clamp(1.375rem, 1.25rem + 0.625vw, 1.875rem);
	--dim-font-size-h4: clamp(1.125rem, 1.0625rem + 0.3125vw, 1.375rem);
	--dim-font-size-body-lg: 1.125rem;
	--dim-font-size-body: 1rem;
	--dim-font-size-small: 0.875rem;
	--dim-font-size-caption: 0.75rem;

	--dim-space-0: 0;
	--dim-space-1: 0.25rem;
	--dim-space-2: 0.5rem;
	--dim-space-3: 0.75rem;
	--dim-space-4: 1rem;
	--dim-space-5: 1.5rem;
	--dim-space-6: 2rem;
	--dim-space-7: 3rem;
	--dim-space-8: 4rem;
	--dim-space-9: 6rem;

	--dim-container-narrow: 35rem;
	--dim-container-content: 45rem;
	--dim-container-wide: 75rem;
	--dim-container-max: 90rem;
	--dim-container-storefront: 70rem;
	--dim-container-gutter: 1rem;
	--dim-section-space: clamp(3rem, 2rem + 5vw, 7.5rem);
	--dim-grid-gap: 1rem;
	--dim-header-height: 4.25rem;

	/*
	 * CSS custom properties cannot be used in media-query conditions.
	 * These values document the canonical boundaries used by styles:
	 * tablet 48rem, desktop 64rem, large desktop 80rem.
	 */
	--dim-breakpoint-tablet: 48rem;
	--dim-breakpoint-desktop: 64rem;
	--dim-breakpoint-large: 80rem;

	--dim-radius-none: 0;
	--dim-radius-small: 0.125rem;
	--dim-radius-medium: 0.25rem;
	--dim-radius-round: 999rem;

	--dim-border-width: 1px;
	--dim-border-width-strong: 2px;

	--dim-shadow-none: none;
	--dim-shadow-subtle: 0 0.0625rem 0.25rem rgb(0 0 0 / 8%);
	--dim-shadow-overlay: 0 1rem 3rem rgb(0 0 0 / 18%);

	--dim-transition-fast: 120ms;
	--dim-transition-base: 200ms;
	--dim-transition-slow: 300ms;
	--dim-ease-standard: cubic-bezier(0.2, 0, 0, 1);

	--dim-z-base: 0;
	--dim-z-raised: 10;
	--dim-z-sticky: 20;
	--dim-z-drawer: 30;
	--dim-z-modal: 40;
	--dim-z-toast: 50;

	/* Warm storefront palette confirmed by the available visual reference. */
	--dim-color-background: #f7f4ef;
	--dim-color-surface: #fffcf8;
	--dim-color-surface-strong: #efe8dc;
	--dim-color-text: #2a2622;
	--dim-color-text-muted: #6a625a;
	--dim-color-border: rgb(42 38 34 / 12%);
	--dim-color-border-strong: rgb(42 38 34 / 42%);
	--dim-color-accent: #2a2622;
	--dim-color-accent-contrast: #fffcf8;
	--dim-color-sale: #a23232;
	--dim-color-success: #26734d;
	--dim-color-error: #b42318;
	--dim-color-focus: #005fcc;
	--dim-color-overlay: rgb(0 0 0 / 55%);
	--dim-color-skeleton: #e5e5e2;
	--dim-color-header-background: rgb(247 244 239 / 82%);
	--dim-color-footer-background: rgb(255 252 248 / 45%);
	--dim-site-background:
		radial-gradient(75rem 37.5rem at 10% -10%, rgb(184 169 181 / 22%), transparent 55%),
		radial-gradient(56.25rem 31.25rem at 100% 0%, rgb(125 139 138 / 18%), transparent 50%),
		linear-gradient(180deg, #f7f4ef 0%, #efe8dc 100%);

	/* Homepage Hero values derived from the approved visual reference. */
	--dim-color-hero-ink: #2a2622;
	--dim-color-hero-text: #fffcf8;
	--dim-color-hero-text-muted: rgb(255 252 248 / 88%);
	--dim-color-hero-button-hover: #3d3732;
	--dim-hero-background:
		linear-gradient(180deg, rgb(42 38 34 / 8%) 0%, rgb(42 38 34 / 45%) 100%),
		radial-gradient(ellipse at 70% 30%, rgb(184 169 181 / 35%), transparent 50%),
		linear-gradient(135deg, #d9d2c8 0%, #a8b0ae 40%, #8f9490 70%, #6f6a64 100%);
	--dim-hero-image-overlay:
		linear-gradient(180deg, rgb(42 38 34 / 8%) 0%, rgb(42 38 34 / 45%) 100%);

	/* Homepage Products values derived from the approved visual reference. */
	--dim-color-homepage-background: #f7f4ef;
	--dim-color-homepage-background-deep: #efe8dc;
	--dim-color-homepage-ink: #2a2622;
	--dim-color-homepage-ink-muted: #6a625a;
	--dim-color-homepage-line: rgb(42 38 34 / 12%);
	--dim-color-homepage-placeholder-text: rgb(42 38 34 / 35%);
	--dim-products-placeholder-background:
		linear-gradient(145deg, rgb(184 169 181 / 35%), rgb(125 139 138 / 25%)),
		var(--dim-color-homepage-background-deep);
}

@media (min-width: 48rem) {
	:root {
		--dim-container-gutter: 1.5rem;
		--dim-grid-gap: 1.5rem;
	}
}

@media (min-width: 64rem) {
	:root {
		--dim-container-gutter: 2rem;
		--dim-grid-gap: 2rem;
	}
}

@media (min-width: 80rem) {
	:root {
		--dim-container-gutter: 3rem;
	}
}
