/*  Base + reset. Nothing decorative lives here — only the ground the sections
	stand on, so that a section's own CSS is the single place its look is defined. */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* the sticky header is 87px tall on desktop; anchors must clear it */
	scroll-padding-top: 87px;
}

@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 {
	margin: 0;
	background: var(--ek-bg-card);
	color: var(--ek-text-body);
	font-family: var(--ek-font);
	font-size: var(--ek-body-m);
	line-height: var(--ek-body-m-lh);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-synthesis-weight: none;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	color: var(--ek-text);
	font-weight: 600;
}

p {
	margin: 0;
}

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

/*  Definition lists carry a 1em block margin and a 40px indent on <dd> by
	default. The KPI strip is a <dl>, and those defaults made it 32px taller
	than the board before this reset. */
dl, dd, dt, figure {
	margin: 0;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color var(--ek-dur) var(--ek-ease);
}

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

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

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

table {
	border-collapse: collapse;
	width: 100%;
}

/*  Numeric columns in the spec table must line up digit under digit.
	Inter ships tabular figures; without this the ranges look ragged. */
.ek-tabular {
	font-variant-numeric: tabular-nums;
	font-feature-settings: 'tnum' 1;
}

:focus-visible {
	outline: 2px solid var(--ek-accent);
	outline-offset: 2px;
}

/* screen-reader-only, WP core naming so core markup inherits it */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	background: var(--ek-bg-card);
	clip-path: none;
	color: var(--ek-text);
	display: block;
	height: auto;
	left: 6px;
	padding: 12px 20px;
	top: 6px;
	width: auto;
	z-index: 100000;
	border: 1px solid var(--ek-line);
}

/* ---- Layout primitives ------------------------------------------------- */

.ek-container {
	width: 100%;
	max-width: calc(var(--ek-container) + var(--ek-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--ek-gutter);
}

.ek-section {
	padding-block: 118px;
}

.ek-section--card {
	background: var(--ek-bg-card);
}

.ek-section--deep {
	background: var(--ek-bg-deep);
}

.ek-section--mid {
	background: var(--ek-bg-mid);
}

@media (max-width: 767px) {
	.ek-section {
		padding-block: 68px;
	}

	html {
		scroll-padding-top: 72px;
	}
}

/* ---- Shared type helpers ----------------------------------------------- */

.ek-eyebrow {
	font-size: var(--ek-eyebrow);
	font-weight: 600;
	letter-spacing: var(--ek-eyebrow-ls);
	text-transform: uppercase;
	color: var(--ek-accent-text);
	line-height: 1.2;
}

.ek-eyebrow--onDeep {
	color: var(--ek-accent-eyebrow);
}

.ek-h2 {
	font-size: var(--ek-h2);
	line-height: var(--ek-h2-lh);
	letter-spacing: var(--ek-h2-ls);
}

.ek-h3 {
	font-size: var(--ek-h3);
	letter-spacing: var(--ek-h3-ls);
	line-height: 1.2;
}

.ek-h4 {
	font-size: var(--ek-h4);
	letter-spacing: var(--ek-h4-ls);
	line-height: 1.2;
}

.ek-lead {
	font-size: var(--ek-body-l);
	line-height: var(--ek-body-l-lh);
	letter-spacing: var(--ek-body-l-ls);
}

/* ---- Buttons ----------------------------------------------------------- */

.ek-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border-radius: var(--ek-radius);
	font-size: var(--ek-btn);
	font-weight: 600;
	line-height: 1.2;
	padding: 17px 26px;
	transition: background-color var(--ek-dur) var(--ek-ease),
		border-color var(--ek-dur) var(--ek-ease);
}

.ek-btn--primary {
	background: var(--ek-accent);
	color: var(--ek-white);
}

.ek-btn--primary:hover {
	background: var(--ek-accent-dot);
}

.ek-btn--ghost {
	border: 1px solid var(--ek-line-ghost);
	color: var(--ek-white);
}

.ek-btn--ghost:hover {
	border-color: var(--ek-white);
}

.ek-btn--outline {
	border: 1px solid var(--ek-line);
	color: var(--ek-text);
}

.ek-btn--outline:hover {
	border-color: var(--ek-text-soft);
}

.ek-btn--sm {
	padding: 13px 20px;
	font-size: var(--ek-nav);
}

.ek-btn--block {
	display: flex;
	width: 100%;
}
