/**
 * LOVSETTI base styles: design tokens, reset, typography, forms.
 * Central source of truth for all CSS custom properties.
 */

:root {
	/* Color tokens */
	--ls-bg: #F9F7F4;
	--ls-surface: #FFFFFF;
	--ls-surface-soft: #F3F0EB;

	--ls-text: #201F1F;
	--ls-text-muted: #666666;
	--ls-text-soft: #8A8884;

	--ls-border: #D8D6D2;
	--ls-border-light: #E7E4DF;

	--ls-black: #201F1F;
	--ls-white: #FFFFFF;

	/* Typography tokens */
	--ls-font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--ls-font-weight-light: 300;
	--ls-font-weight-regular: 400;
	--ls-font-weight-medium: 500;
	--ls-tracking-nav: 0.06em;

	/* Responsive typography (mobile defaults; refined in responsive.css) */
	--ls-h1-size: 32px;
	--ls-h2-size: 26px;
	--ls-h3-size: 20px;
	--ls-body-size: 15px;
	--ls-nav-size: 11px;

	/* Spacing tokens */
	--ls-space-1: 4px;
	--ls-space-2: 8px;
	--ls-space-3: 12px;
	--ls-space-4: 16px;
	--ls-space-5: 24px;
	--ls-space-6: 32px;
	--ls-space-7: 48px;
	--ls-space-8: 64px;
	--ls-space-9: 96px;
	--ls-space-10: 128px;

	/* Responsive section/container spacing (mobile defaults) */
	--ls-section-spacing: 64px;
	--ls-container-padding: 18px;

	/* Container widths */
	--ls-container-max: 1320px;
	--ls-container-wide-max: 1560px;
	--ls-container-narrow-max: 860px;

	/* Header */
	--ls-header-height: 72px;
	--ls-header-height-desktop: 88px;

	/* Motion */
	--ls-transition-fast: 200ms ease;
	--ls-transition-base: 300ms ease;
	--ls-transition-slow: 500ms ease;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--ls-bg);
	color: var(--ls-text);
	font-family: var(--ls-font-sans);
	font-weight: var(--ls-font-weight-regular);
	font-size: var(--ls-body-size);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: var(--ls-font-weight-light);
	line-height: 1.15;
	margin: 0 0 var(--ls-space-4);
	color: var(--ls-text);
}

h1 {
	font-size: var(--ls-h1-size);
}

h2 {
	font-size: var(--ls-h2-size);
}

h3 {
	font-size: var(--ls-h3-size);
}

p {
	margin: 0 0 var(--ls-space-4);
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font-family: inherit;
	background: none;
	border: none;
	cursor: pointer;
}

/* ===== Focus states ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--ls-black);
	outline-offset: 2px;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

/* ===== Accessibility helpers ===== */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
	border: 0;
	padding: 0;
	margin: -1px;
}

.ls-skip-link {
	position: absolute;
	top: -100px;
	left: var(--ls-space-4);
	background: var(--ls-black);
	color: var(--ls-white);
	padding: var(--ls-space-3) var(--ls-space-4);
	z-index: 1000;
	transition: top var(--ls-transition-fast);
}

.ls-skip-link:focus {
	top: var(--ls-space-4);
}

body.ls-scroll-locked {
	overflow: hidden;
}

/* ===== Form controls (base styles; feed the Stage 4 inquiry form) ===== */
input,
textarea,
select {
	font-family: inherit;
	font-size: var(--ls-body-size);
	color: var(--ls-text);
	background: var(--ls-white);
	border: 1px solid var(--ls-border);
	border-radius: 0;
	padding: var(--ls-space-3) var(--ls-space-4);
	width: 100%;
	max-width: 100%;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--ls-black);
	outline: none;
}

label {
	display: block;
	margin-bottom: var(--ls-space-2);
}
