:root {
	--color-ink: #0c0c0c;
	--color-muted: #65717d;
	--color-border: #dce2e6;
	--color-canvas: #f5f7f8;
	--color-surface: #fff;
	--color-brand: #ec1515;
	--color-brand-dark: #bd1010;
	--content-width: 47.5rem;
	--wide-width: 75rem;
	--page-gutter: clamp(1rem, 4vw, 2.5rem);
	--radius-small: 0.5rem;
	--radius-medium: 1rem;
	--shadow-focus: 0 0 0 0.2rem rgb(236 21 21 / 22%);
}

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

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

body {
	min-width: 20rem;
	margin: 0;
	background: var(--color-surface);
	color: var(--color-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1rem;
	line-height: 1.6;
}

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

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

img {
	height: auto;
}

a {
	color: var(--color-brand);
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--color-brand-dark);
}

button,
input,
select,
textarea {
	border-radius: var(--radius-small);
}

:focus-visible {
	outline: 0.125rem solid var(--color-brand);
	outline-offset: 0.15rem;
	box-shadow: var(--shadow-focus);
}

.layout-content,
.entry__content > :where(:not(.alignwide, .alignfull)),
.front-page-content > :where(:not(.alignwide, .alignfull)),
.service-page__content > .entry__content > :where(:not(.alignwide, .alignfull)) {
	width: min(calc(100% - (2 * var(--page-gutter))), var(--content-width));
	margin-inline: auto;
}

.layout-wide,
.alignwide,
.entry__content > .alignwide,
.front-page-content > .alignwide,
.service-page__content > .entry__content > .alignwide {
	width: min(calc(100% - (2 * var(--page-gutter))), var(--wide-width));
	margin-inline: auto;
}

.alignfull,
.entry__content > .alignfull,
.front-page-content > .alignfull,
.service-page__content > .entry__content > .alignfull {
	width: 100%;
	max-width: none;
}

.skip-link {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 1000;
	padding: 0.65rem 1rem;
	transform: translateY(-200%);
	background: var(--color-ink);
	color: #fff;
	text-decoration: none;
}

.skip-link:focus {
	transform: none;
}

.site-header {
	position: relative;
	z-index: 100;
	border-bottom: 0.0625rem solid var(--color-border);
	background: rgb(255 255 255 / 96%);
}

.site-header__inner {
	display: flex;
	min-height: 4.75rem;
	align-items: center;
	gap: clamp(1rem, 3vw, 2.5rem);
}

.site-brand {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	color: var(--color-ink);
	font-size: 1.125rem;
	font-weight: 750;
	letter-spacing: -0.02em;
	text-decoration: none;
}

.site-brand__logo {
	width: auto;
	max-width: 11rem;
	max-height: 3rem;
}

.site-navigation {
	margin-left: auto;
}

.site-navigation__list,
.site-footer__menu {
	display: flex;
	margin: 0;
	padding: 0;
	align-items: center;
	gap: clamp(1rem, 2vw, 2rem);
	list-style: none;
}

.site-navigation a,
.site-footer a {
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}

.site-navigation .current-menu-item > a {
	color: var(--color-brand);
}

.site-cart,
.button,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 100vmax;
	background: var(--color-brand);
	color: #fff;
	font-weight: 700;
	line-height: 1;
	padding: 0.85rem 1.2rem;
	text-decoration: none;
	cursor: pointer;
}

.site-cart:hover,
.button:hover,
.wp-element-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: var(--color-brand-dark);
	color: #fff;
}

.nav-toggle {
	display: none;
	margin-left: auto;
	align-items: center;
	gap: 0.625rem;
	border: 0;
	background: transparent;
	color: var(--color-ink);
	font-weight: 700;
	cursor: pointer;
}

.nav-toggle__icon {
	display: grid;
	width: 1.5rem;
	height: 1rem;
	align-content: space-between;
}

.nav-toggle__icon span {
	display: block;
	height: 0.125rem;
	background: currentColor;
}

.site-main {
	min-height: 55vh;
	padding-block: clamp(2.5rem, 7vw, 6rem);
}

.front-page-content,
.service-page__content {
	margin-top: calc(-1 * clamp(2.5rem, 7vw, 6rem));
}

.entry__header,
.service-page__header {
	margin-bottom: 2rem;
}

.entry__title,
.service-page__title {
	margin: 0;
	font-size: clamp(2rem, 5vw, 4rem);
	line-height: 1.08;
	letter-spacing: -0.045em;
}

.entry__content > * + *,
.front-page-content > * + *,
.service-page__content > .entry__content > * + * {
	margin-top: 1.5rem;
}

.entry__content h2,
.entry__content h3 {
	line-height: 1.18;
	letter-spacing: -0.025em;
}

.service-page__calculator {
	margin-top: clamp(3rem, 8vw, 7rem);
}

.site-footer {
	border-top: 0.0625rem solid var(--color-border);
	background: var(--color-canvas);
}

.site-footer__inner {
	display: flex;
	min-height: 8rem;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.site-footer__copyright {
	margin: 0;
	color: var(--color-muted);
}

.error-page {
	text-align: center;
}

.error-page__code {
	margin: 0;
	color: var(--color-brand);
	font-size: clamp(5rem, 18vw, 11rem);
	font-weight: 800;
	letter-spacing: -0.08em;
	line-height: 0.85;
}

.woocommerce .woocommerce-breadcrumb,
.woocommerce .woocommerce-result-count {
	color: var(--color-muted);
}

@media (max-width: 63.999rem) {
	.nav-toggle {
		display: inline-flex;
	}

	.site-navigation {
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		margin: 0;
		padding: 1rem var(--page-gutter) 1.5rem;
		border-bottom: 0.0625rem solid var(--color-border);
		background: var(--color-surface);
		visibility: hidden;
		opacity: 0;
		transform: translateY(-0.5rem);
		transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
	}

	.site-navigation[data-open] {
		visibility: visible;
		opacity: 1;
		transform: none;
	}

	.site-navigation__list {
		align-items: stretch;
		flex-direction: column;
		gap: 0;
	}

	.site-navigation a {
		display: block;
		padding-block: 0.75rem;
	}

	.site-cart {
		min-height: 2.5rem;
		padding-inline: 0.9rem;
	}

	.site-footer__inner {
		align-items: flex-start;
		flex-direction: column;
		justify-content: center;
		padding-block: 2rem;
	}

	.site-footer__menu {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.75rem;
	}
}

@media (max-width: 31.999rem) {
	.nav-toggle__label {
		position: absolute;
		width: 0.0625rem;
		height: 0.0625rem;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

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

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

