/**
 * Société Jersiaise, site-wide basics
 *
 * The Elementor kit (post 8) set the body type, link colour, heading scale,
 * image corners and button defaults on every page, through the elementor-kit-8
 * body class. Hello's reset.css takes over when Elementor is gone, so the same
 * values live here. ":root x" matches the kit's ".elementor-kit-8 x" weight,
 * (0,1,1), so every theme rule written to beat the kit still does. Selectors
 * are listed, not wrapped in :is(), which would take the heaviest argument's
 * weight.
 *
 * Also the two rules from the old Custom CSS snippet (Code Snippets 10) that
 * still apply. The rest of that snippet styled Elementor widgets.
 *
 * @package sj-child
 */

:root body {
	font-family: "Open Sans", sans-serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.8em;
	letter-spacing: -0.2px;
	color: #6a6a6a;
}

:root a {
	color: #353678;
}

:root :is(h1, h2, h3, h4, h5, h6) {
	font-family: "Open Sans", sans-serif;
	font-weight: 700;
	color: #353678;
}

:root h1 {
	font-size: 58px;
	font-style: normal;
	line-height: 1.2em;
	letter-spacing: 2px;
	text-transform: uppercase;
}

:root h2 {
	font-size: 44px;
	font-style: normal;
	line-height: 1.2em;
	letter-spacing: 1px;
	text-transform: uppercase;
}

:root h3 {
	font-size: 34px;
	line-height: 1.4em;
}

:root h4 {
	font-size: 22px;
	font-style: normal;
	line-height: 1.5em;
	letter-spacing: 0;
}

:root h5 {
	font-size: 20px;
	line-height: 1.4em;
}

:root h6 {
	font-size: 18px;
	line-height: 1.6em;
	letter-spacing: 0;
}

:root img {
	border-radius: 6px;
}

:root button,
:root input[type="button"],
:root input[type="submit"] {
	padding: 16px 42px;
	border-radius: 4px;
	background-color: #353678;
	font-family: "Open Sans", sans-serif;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3em;
	letter-spacing: -0.5px;
	color: #f6f7f9;
}

:root button:hover,
:root button:focus,
:root input[type="button"]:hover,
:root input[type="button"]:focus,
:root input[type="submit"]:hover,
:root input[type="submit"]:focus {
	background-color: #8dc39f;
	color: #fff;
}

@media (max-width: 1024px) {

	:root body {
		font-size: 15px;
	}

	:root h1 {
		font-size: 48px;
	}

	:root h2 {
		font-size: 36px;
	}

	:root h3 {
		font-size: 27px;
	}

	:root h5 {
		font-size: 22px;
	}

	:root img {
		border-radius: 4px;
	}

	:root button,
	:root input[type="button"],
	:root input[type="submit"] {
		font-size: 15px;
		line-height: 1.2em;
	}
}

@media (max-width: 767px) {

	:root body {
		font-size: 14px;
	}

	:root h1 {
		font-size: 36px;
	}

	:root h2 {
		font-size: 28px;
	}

	:root h3 {
		font-size: 24px;
	}

	:root h4 {
		font-size: 20px;
	}

	:root h5 {
		font-size: 18px;
	}

	:root h6 {
		font-size: 16px;
	}

	:root button,
	:root input[type="button"],
	:root input[type="submit"] {
		padding: 14px 18px;
		font-size: 13px;
		line-height: 1.2em;
	}
}

/* From Code Snippets 10: a focus ring for keyboard users only. */
*:focus:not(:focus-visible) {
	outline: 0;
}

/* From Code Snippets 10: photos in post and page content share the card corner. */
.wp-block-image img {
	border-radius: var(--sj-radius-card, 6px);
}
