/*
 * Design tokens. Values mirror the Figma variables (color/*, space/*, layout/*) and text styles of the MILANDI file.
 * Change a value here, never repeat raw values in component styles.
 */

:root {
	/* Colors (Figma variables). */
	--color-primary: #103425;
	--color-accent: #b8975a;
	--color-text: #111111;
	--color-text-body: #555555;
	--color-text-muted: #888888;
	--color-border: #e8eaeb;
	--color-surface: #f8f9fa;
	--color-white: #ffffff;

	/* Colors used in the mockups without a Figma variable. */
	--color-ink: #030303;
	--color-footer-link: #bcbcbc;
	--color-footer-divider: #9a7e4d;
	--color-favorite: #b72b20;
	/* Form errors: Figma has no error variable; the red of the active favorite icon is reused (decision 11). */
	--color-error: #b72b20;
	/* Photo scrims and the soft gold divider of the news frames (Figma color/overlay/scrim/*, color/brand/gold 50%). */
	--color-scrim: rgb(17 17 17 / 25%);
	--color-scrim-light: rgb(17 17 17 / 15%);
	--color-scrim-photo: rgb(0 0 0 / 20%);
	--color-scrim-video: rgb(0 0 0 / 45%); /* bottom of the hero while a bright video plays (hero-video) */
	--color-header-shadow: rgb(17 17 17 / 8%); /* under the stuck header (motion-and-counters) */
	--color-accent-soft: rgb(184 151 90 / 50%);
	/* Order status "Delivered" (Figma orders status-badge, color/state/delivered). */
	--color-success: #1e7e34;

	/* Spacing (Figma space/*). */
	--space-4: 4px;
	--space-8: 8px;
	--space-12: 12px;
	--space-16: 16px;
	--space-24: 24px;
	--space-32: 32px;
	--space-40: 40px;
	--space-80: 80px;
	--space-100: 100px;
	--space-120: 120px;

	/* Corner radius of large photos (catalog editorial and boutique images; no Figma variable). */
	--radius-image: 4px;

	/* Sign-in pages (Figma login, registration, password-recovery; no Figma variables). */
	--auth-media-width: 42.6316%; /* 810px image column of the 1900px frame */
	--auth-form-width: 810px;
	--auth-card-width: 600px;
	--auth-gutter: clamp(40px, 8.4211vw, 160px); /* 160px outer form padding at 1900px */
	--auth-gutter-inner: clamp(40px, 6.3158vw, 120px); /* 120px padding next to the image at 1900px */

	/* Account area (Figma profile-info and the other account frames; no Figma variables). */
	--account-sidebar-width: 320px;
	--account-panel-width: 500px;
	--account-form-width: 800px;
	--account-label-width: 90px; /* comparison row labels, 264px from 1200px */

	/*
	 * Page layout: layout/page-padding-mobile (16px at the 402px frame) and layout/page-padding-desktop (80px at the
	 * 1900px frame), on a straight line in between.
	 */
	--page-max-width: 1900px;
	--page-padding: clamp(16px, 4.2724vw - 1.175px, 80px);
	/* Content pages (about, contacts, FAQ, text pages): 20px at the 402px frames, 160px at the 1900px frames. */
	--page-padding-wide: clamp(20px, 9.3458vw - 17.57px, 160px);

	/*
	 * Rendered header height (top bar and logo row, header.css), so a first screen can fit the viewport: 101px below
	 * 1200px, 140px from 1200px (set in the media query below).
	 */
	--header-height: 101px;

	/*
	 * Sticky header (motion-and-counters, D1): the green top bar scrolls away, the logo row stays. Top bar height (36px,
	 * 41px from 1200px) and the height of the fixed WordPress admin bar (0 for guests and below 601px, where WordPress
	 * lets it scroll away), together giving the space the stuck header covers.
	 */
	--top-bar-height: 36px;
	--admin-bar-height: 0px;
	--sticky-header-height: calc(var(--header-height) - var(--top-bar-height));

	/*
	 * The header switches between the mobile and desktop layouts at 1200px. Custom properties cannot be used in media
	 * queries, so the value is repeated in header.css, mobile-menu.css and main.js.
	 */

	/* Fonts. */
	--font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
	--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	/* Motion. */
	--transition: 0.2s ease;

	/* Blocks appearing on scroll (motion-and-counters, D3, D4). */
	--motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--motion-reveal-duration: 0.8s;
	--motion-reveal-distance: 24px;
	--motion-stagger: 80ms;
}

@media (min-width: 1200px) {
	:root {
		--header-height: 140px;
		--top-bar-height: 41px;
	}
}

/* Signed-in users also see the WordPress admin bar above the header: 46px below 783px, 32px from 783px. */
.admin-bar {
	--header-height: calc(101px + 46px);
}

@media (min-width: 601px) {
	.admin-bar {
		--admin-bar-height: 46px;
	}
}

@media (min-width: 783px) {
	.admin-bar {
		--header-height: calc(101px + 32px);
		--admin-bar-height: 32px;
	}
}

@media (min-width: 1200px) {
	.admin-bar {
		--header-height: calc(140px + 32px);
	}
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--transition: 0s;
	}
}

/* Text styles (Figma). */

.text-eyebrow { /* Label/Eyebrow */
	font-family: var(--font-sans);
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 2.5px;
	text-transform: uppercase;
}

.text-heading-section { /* Heading/Section */
	font-family: var(--font-serif);
	font-size: 30px;
	font-weight: 300;
	line-height: 1;
	letter-spacing: 0.6px;
}

.text-heading-newsletter { /* Heading/Newsletter */
	font-family: var(--font-serif);
	font-size: 32px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
}
