/**
 * Base reset + typography scale. Component- and section-specific styles
 * live in assets/css/components/ and assets/css/sections/ and are enqueued
 * only on the templates that use them.
 */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background: var(--color-background);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

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

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

button {
	cursor: pointer;
	background: none;
	border: none;
}

h1,
h2,
h3,
h4,
.kc-display,
.kc-h1,
.kc-h2,
.kc-h3,
.kc-h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: var(--lh-heading);
	letter-spacing: var(--ls-tight);
	margin: 0;
}

.kc-display {
	font-size: var(--fs-display);
	line-height: var(--lh-tight);
}
h1,
.kc-h1 {
	font-size: var(--fs-h1);
}
h2,
.kc-h2 {
	font-size: var(--fs-h2);
}
h3,
.kc-h3 {
	font-size: var(--fs-h3);
}
h4,
.kc-h4 {
	font-size: var(--fs-h4);
}

.kc-small {
	font-size: var(--fs-small);
}
.kc-caption {
	font-size: var(--fs-caption);
	letter-spacing: var(--ls-wide);
	text-transform: uppercase;
	color: var(--color-muted);
}

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

.kc-muted {
	color: var(--color-muted);
}

/* Layout */
.kc-container {
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--container-pad);
}

/* Focus visibility — accessibility requirement, never suppressed */
:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

/* Locks background scroll while an overlay/drawer/modal is open */
body.kc-no-scroll {
	overflow: hidden;
}

/* Buttons */
.kc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	padding: var(--space-3) var(--space-6);
	border-radius: var(--radius-sm);
	font-size: var(--fs-small);
	font-weight: 600;
	letter-spacing: var(--ls-wide);
	text-transform: uppercase;
	transition: transform var(--duration-fast) var(--ease-standard),
		background-color var(--duration-fast) var(--ease-standard),
		color var(--duration-fast) var(--ease-standard),
		border-color var(--duration-fast) var(--ease-standard);
}
.kc-btn:hover {
	transform: translateY(-1px);
}
.kc-btn-primary {
	background: var(--color-primary);
	color: #ffffff;
}
.kc-btn-primary:hover {
	background: var(--color-accent-hover);
}
.kc-btn-outline {
	background: transparent;
	color: var(--color-primary);
	border: 1px solid var(--color-border);
}
.kc-btn-outline:hover {
	border-color: var(--color-primary);
}

/* Reduced motion: disable non-essential animation/transition globally;
   GSAP timelines check prefers-reduced-motion in JS separately. */
@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;
	}
}
