/**
 * Montions design tokens
 * A quiet, editorial system shared across every storefront surface.
 */

:root {
	/* Brand palette */
	--brand-ink: #171916;
	--brand-ink-soft: #31342f;
	--brand-forest: #34483c;
	--brand-sage: #7d8b77;
	--brand-clay: #ad6847;
	--brand-sand: #d8c8a8;
	--brand-ivory: #f3f0e8;
	--brand-paper: #faf9f5;
	--brand-white: #ffffff;

	/* Neutral scale */
	--brand-neutral-950: #171916;
	--brand-neutral-900: #252823;
	--brand-neutral-800: #3a3e38;
	--brand-neutral-700: #52574f;
	--brand-neutral-600: #6d726a;
	--brand-neutral-500: #888d84;
	--brand-neutral-400: #a9ada5;
	--brand-neutral-300: #c9cbc5;
	--brand-neutral-200: #dedfd9;
	--brand-neutral-150: #e8e7e1;
	--brand-neutral-100: #f1f0eb;
	--brand-neutral-50: #f8f7f3;

	/* Type */
	--brand-font-body: Inter, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
	--brand-font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, "Times New Roman", serif;
	--brand-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	--brand-text-xs: 0.6875rem;
	--brand-text-sm: 0.8125rem;
	--brand-text-base: 1rem;
	--brand-text-lg: 1.125rem;
	--brand-text-xl: clamp(1.25rem, 1.8vw, 1.5rem);
	--brand-text-2xl: clamp(1.75rem, 3vw, 2.625rem);
	--brand-text-3xl: clamp(2.5rem, 5.4vw, 5.5rem);
	--brand-leading-tight: 1.02;
	--brand-leading-heading: 1.12;
	--brand-leading-body: 1.7;

	/* Spacing */
	--brand-space-1: 0.25rem;
	--brand-space-2: 0.5rem;
	--brand-space-3: 0.75rem;
	--brand-space-4: 1rem;
	--brand-space-5: 1.5rem;
	--brand-space-6: 2rem;
	--brand-space-7: 3rem;
	--brand-space-8: 4rem;
	--brand-space-9: 6rem;
	--brand-section-space: clamp(4.5rem, 9vw, 8.75rem);

	/* Shape and depth */
	--brand-radius-xs: 0.25rem;
	--brand-radius-sm: 0.5rem;
	--brand-radius-md: 0.875rem;
	--brand-radius-lg: 1.25rem;
	--brand-radius-pill: 999px;
	--brand-shadow-sm: 0 0.5rem 1.5rem rgba(23, 25, 22, 0.07);
	--brand-shadow-md: 0 1.25rem 4rem rgba(23, 25, 22, 0.12);
	--brand-shadow-focus: 0 0 0 3px rgba(125, 139, 119, 0.28);
	--brand-border: 1px solid var(--brand-neutral-200);

	/* Layout and motion */
	--brand-container: 1320px;
	--brand-gutter: clamp(1rem, 3vw, 2rem);
	--brand-header-height: 78px;
	--brand-ease: cubic-bezier(0.2, 0.75, 0.25, 1);
	--brand-transition-fast: 180ms var(--brand-ease);
	--brand-transition: 360ms var(--brand-ease);

	/* Bridge the design system into Blocksy */
	--theme-font-family: var(--brand-font-body);
	--theme-text-color: var(--brand-neutral-700);
	--theme-link-initial-color: var(--brand-ink);
	--theme-link-hover-color: var(--brand-clay);
	--theme-palette-color-1: var(--brand-forest);
	--theme-palette-color-2: var(--brand-ink);
	--theme-palette-color-3: var(--brand-neutral-700);
	--theme-palette-color-4: var(--brand-ink);
	--theme-palette-color-5: var(--brand-neutral-200);
	--theme-palette-color-6: var(--brand-neutral-100);
	--theme-palette-color-7: var(--brand-paper);
	--theme-palette-color-8: var(--brand-white);
	--theme-normal-container-max-width: var(--brand-container);
	--theme-content-vertical-spacing: clamp(3rem, 7vw, 6rem);
	--theme-button-background-initial-color: var(--brand-ink);
	--theme-button-background-hover-color: var(--brand-forest);
	--theme-button-border-radius: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--brand-paper);
	color: var(--brand-neutral-700);
	font-family: var(--brand-font-body);
	font-size: var(--brand-text-base);
	line-height: var(--brand-leading-body);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--brand-ink);
	font-family: var(--brand-font-display);
	font-weight: 400;
	letter-spacing: -0.025em;
	line-height: var(--brand-leading-heading);
}

a,
button,
input,
select,
textarea {
	transition: color var(--brand-transition-fast), background-color var(--brand-transition-fast), border-color var(--brand-transition-fast), box-shadow var(--brand-transition-fast), opacity var(--brand-transition-fast), transform var(--brand-transition);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--brand-forest);
	outline-offset: 3px;
}

.brand-button,
.montions-child-active .wp-element-button,
.montions-child-active .button,
.montions-child-active button[type="submit"] {
	align-items: center;
	appearance: none;
	background: var(--brand-ink);
	border: 1px solid var(--brand-ink);
	border-radius: 0;
	color: var(--brand-white);
	cursor: pointer;
	display: inline-flex;
	font-family: var(--brand-font-body);
	font-size: var(--brand-text-xs);
	font-weight: 650;
	justify-content: center;
	letter-spacing: 0.12em;
	line-height: 1;
	min-height: 3.25rem;
	padding: 0.95rem 1.5rem;
	text-decoration: none;
	text-transform: uppercase;
}

.brand-button:hover,
.montions-child-active .wp-element-button:hover,
.montions-child-active .button:hover,
.montions-child-active button[type="submit"]:hover {
	background: var(--brand-forest);
	border-color: var(--brand-forest);
	color: var(--brand-white);
	transform: translateY(-2px);
}

.brand-button--light {
	background: var(--brand-ivory);
	border-color: var(--brand-ivory);
	color: var(--brand-ink);
}

.brand-button--light:hover {
	background: var(--brand-white);
	border-color: var(--brand-white);
	color: var(--brand-ink);
}

.brand-button--ghost-light {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.55);
	color: var(--brand-white);
}

.brand-button--ghost-light:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: var(--brand-white);
}

.montions-child-active input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.montions-child-active select,
.montions-child-active textarea {
	appearance: none;
	background: var(--brand-white);
	border: 1px solid var(--brand-neutral-300);
	border-radius: 0;
	color: var(--brand-ink);
	font-family: var(--brand-font-body);
	font-size: 0.9375rem;
	min-height: 3.25rem;
	padding: 0.8rem 1rem;
	width: 100%;
}

.montions-child-active input:hover,
.montions-child-active select:hover,
.montions-child-active textarea:hover {
	border-color: var(--brand-neutral-500);
}

.montions-child-active input:focus,
.montions-child-active select:focus,
.montions-child-active textarea:focus {
	border-color: var(--brand-forest);
	box-shadow: var(--brand-shadow-focus);
	outline: none;
}

.montions-child-active input::placeholder,
.montions-child-active textarea::placeholder {
	color: var(--brand-neutral-500);
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

