/**
 * Wave Furniture Base Styles & Typography Scale
 */

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

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

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

body {
	background-color: var(--wave-bg);
	color: var(--wave-text-main);
	font-family: var(--wave-font-sans);
	font-size: var(--wave-text-base);
	font-weight: 400;
	line-height: 1.65;
	letter-spacing: -0.01em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

/* Accessible Screen Reader Skip Link */
.skip-link {
	position: absolute;
	top: -999px;
	left: 1rem;
	background: var(--wave-grey-900);
	color: var(--wave-cream-100);
	padding: 0.75rem 1.25rem;
	font-weight: 600;
	font-size: var(--wave-text-sm);
	z-index: 999999;
	border-radius: var(--wave-radius-sm);
	transition: top var(--wave-transition-fast);
	text-decoration: none;
}

.skip-link:focus {
	top: 1rem;
	outline: 2px solid var(--wave-cream-400);
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--wave-font-serif);
	color: var(--wave-text-main);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

h1 {
	font-size: var(--wave-text-3xl);
	margin-bottom: var(--wave-space-lg);
}

h2 {
	font-size: var(--wave-text-2xl);
	margin-bottom: var(--wave-space-md);
}

h3 {
	font-size: var(--wave-text-xl);
	margin-bottom: var(--wave-space-sm);
}

h4 {
	font-size: var(--wave-text-lg);
	font-family: var(--wave-font-sans);
	font-weight: 600;
}

p {
	margin-bottom: var(--wave-space-md);
	color: var(--wave-text-muted);
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color var(--wave-transition-fast);
}

a:hover {
	color: var(--wave-accent-hover);
}

:focus-visible {
	outline: 2px solid var(--wave-grey-800);
	outline-offset: 3px;
}

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

ul, ol {
	list-style: none;
}

button, input, select, textarea {
	font: inherit;
	color: inherit;
}

/* Editorial Subtitles & Accents */
.eyebrow {
	display: inline-block;
	font-family: var(--wave-font-sans);
	font-size: var(--wave-text-xs);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wave-taupe);
	margin-bottom: var(--wave-space-xs);
}

.text-muted {
	color: var(--wave-text-muted);
}

.text-cream {
	color: var(--wave-cream-200);
}
