/*
Theme Name: Landstruction Lawncare
Theme URI: https://stridestudio.co.uk
Author: Stride
Author URI: https://stridestudio.co.uk
Description: Landstruction Lawncare
Version: 2.0
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 8.0
*/

/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

:root {
	--font-size-xs: 0.75rem;
	--font-size-sm: 0.875rem;
	--font-size-md: 1rem;
	--font-size-lg: 1.125rem;
	--font-size-xl: 1.2rem;
	--font-size-2xl: 1.25rem;
	--font-size-3xl: 1.625rem;

	--font-size-h1: 2rem;
	--font-size-h2: 1.625rem;
	--font-size-h3: 1.125rem;
	--font-size-h4: 1.1rem;

	@media (min-width: 768px) {
		--font-size-xs: 0.75rem;
		--font-size-sm: 0.875rem;
		--font-size-md: 1.1rem;
		--font-size-lg: 1.125rem;
		--font-size-xl: 1.25rem;
		--font-size-2xl: 1.625rem;
		--font-size-3xl: 1.875rem;

		--font-size-h1: 3.5rem;
		--font-size-h2: 2.25rem;
		--font-size-h3: 1.125rem;
		--font-size-h4: 1.1rem;
	}
}

.h1, h1,
.h2, h2,
.h3, h3,
.h4, h4,
.h5, h5,
.h6, h6 {
	display: block;
	max-width: 100%;
	font-weight: 400;
	line-height: 1.25;
}

.h1, h1 {
	font-size: var(--wp--preset--font-size--h-1);
}

.h2, h2 {
	font-size: var(--wp--preset--font-size--h-2);
}

.h3, h3 {
	font-size: var(--wp--preset--font-size--h-3);
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 0.15em;
}

.h4, h4 {
	font-size: var(--wp--preset--font-size--h-4);
}

p {
    margin-block: 0;
}

.wp-element-button[disabled] {
	opacity: 0.75;
}