/*
 * Base: reset, typography, layout containers, accessibility helpers and the
 * page chrome (breadcrumbs, heading) shared by every template.
 * Values mirror the BigCommerce storefront (riversedgecutlery.com).
 */

:root {
	--rec-green: #515f46;
	--rec-green-dark: #472300;
	--rec-olive: #708115;
	--rec-blue: #157fc3;
	--rec-hover-blue: #476bef;
	--rec-ink: #212121;
	--rec-text: #333;
	--rec-line: #e5e5e5;
	--rec-font-body: "Montserrat", Arial, Helvetica, sans-serif;
	--rec-font-nav: "Karla", Arial, Helvetica, sans-serif;
	--rec-font-heading: "Poppins", Arial, Helvetica, sans-serif;
}

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

html {
	font-size: 18px;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: #fff;
	color: #000;
	font-family: var(--rec-font-body);
	font-size: 18px;
	font-weight: 300;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

img {
	height: auto;
	border: 0;
}

a {
	color: var(--rec-text);
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover,
a:focus {
	color: var(--rec-green);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 2px solid var(--rec-hover-blue);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5rem;
	color: #000;
	font-family: var(--rec-font-heading);
	font-weight: 700;
	letter-spacing: 0.25px;
	line-height: 1.5;
}

h1 { font-size: 28px; }
h2 { font-size: 25px; }
h3 { font-size: 22px; }
h4 { font-size: 20px; }
h5 { font-size: 15px; }
h6 { font-size: 13px; }

p {
	margin: 0 0 1.5rem;
}

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

button,
input {
	font: inherit;
}

.icon,
.rec-sprite {
	flex-shrink: 0;
}

/* Accessibility helpers (WordPress conventions). */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
	word-wrap: normal;
}

.screen-reader-text:focus,
.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 20px;
	overflow: visible;
	clip: auto;
	clip-path: none;
	background: #fff;
	color: #000;
	font-size: 14px;
	font-weight: 700;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}

/* Layout containers. */
.rec-container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 15px;
}

.body {
	margin: 45px 0 108px;
}

.site-content {
	display: flow-root; /* keep the last child's margin from collapsing into .body */
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 15px;
}

@media (min-width: 1200px) {
	.site-content {
		max-width: 83.33333%;
	}
}

/* On a single post the storefront lets the last margin collapse into the footer gap. */
.single .site-content {
	display: block;
}

@media (min-width: 1570px) {
	.site-content {
		max-width: 1308px;
	}
}

/* Breadcrumbs: hidden on phones, as on the storefront. */
.breadcrumbs {
	display: none;
	margin: 0 0 27px;
	overflow: visible;
	font-size: 0;
	text-align: center;
}

@media (min-width: 551px) {
	.breadcrumbs {
		display: block;
	}
}

.breadcrumb {
	display: inline-block;
	margin-right: 0.25rem;
	color: var(--rec-blue);
	font-size: 13px;
	line-height: 1.5;
}

.breadcrumb + .breadcrumb::before {
	content: "";
	display: inline-block;
	height: 0.8em;
	margin: 0 5px;
	border-right: 0.1em solid transparent;
}

.breadcrumb a,
.breadcrumb-label {
	color: var(--rec-blue);
}

.breadcrumb a:hover {
	color: var(--rec-green);
}

.breadcrumb.is-active .breadcrumb-label {
	font-weight: 700;
}

.page-heading {
	margin: 0 0 3rem;
	font-size: 28px;
	text-align: center;
}

/* Buttons. */
.rec-button {
	display: inline-block;
	padding: 10px 28px;
	border: 1px solid var(--rec-green);
	border-radius: 30px;
	background: var(--rec-green);
	color: #fff;
	font-family: var(--rec-font-heading);
	font-size: 16px;
	line-height: 1.5;
	cursor: pointer;
}

.rec-button:hover,
.rec-button:focus {
	background: var(--rec-green-dark);
	border-color: var(--rec-green-dark);
	color: #fff;
}
