/*
 * Rowes Retreats: fonts, reset and element defaults.
 *
 * Everything after the fonts sits in a cascade layer, so any component rule
 * in site.css wins whatever its specificity.
 */

@font-face {
	font-family: "The Seasons";
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/the-seasons-regular.woff2") format("woff2");
}

@font-face {
	font-family: "The Seasons";
	font-weight: 400;
	font-style: italic;
	font-display: swap;
	src: url("../fonts/the-seasons-regular-italic.woff2") format("woff2");
}

@font-face {
	font-family: "The Seasons";
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/the-seasons-bold.woff2") format("woff2");
}

@font-face {
	font-family: "The Seasons";
	font-weight: 700;
	font-style: italic;
	font-display: swap;
	src: url("../fonts/the-seasons-bold-italic.woff2") format("woff2");
}

@font-face {
	font-family: "Quicksand";
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/quicksand-latin.woff2") format("woff2");
}

@layer base {
	html {
		font-size: 62.5%;
		line-height: 1.15;
		-webkit-text-size-adjust: 100%;
		text-size-adjust: auto;
	}

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

	body {
		display: flex;
		flex-direction: column;
		min-height: 100vh;
		min-height: 100dvh;
		margin: 0 auto;
		width: 100%;
		background-color: #fff;
		color: #363636;
		font-family: -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
		font-size: 15px;
		line-height: 1.7;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
	}

	:where(a) {
		border-color: currentcolor;
		color: currentcolor;
		cursor: pointer;
		text-decoration: none;
	}

	h1, h2, h3, h4, h5, h6 {
		margin: 0;
		line-height: 1.4;
		text-rendering: optimizelegibility;
	}

	h1 { font-size: 2.4em; }
	h2 { font-size: 2.1em; }
	h3 { font-size: 1.8em; }
	h4 { font-size: 1.6em; }
	h5 { font-size: 1.3em; }
	h6 { font-size: 1.1em; }

	:where(p) { margin-block: 0 1.2em; }
	:where(p:last-of-type) { margin-block-end: 0; }

	:where(p:last-of-type) + :is(h1, h2, h3, h4, h5, h6) { margin-block: 1.2em 0; }

	img {
		height: auto;
		max-width: 100%;
		border-style: none;
		outline: none;
		vertical-align: middle;
	}

	audio, iframe, video { max-width: 100%; }

	figure { margin: 1em 40px; }

	figcaption {
		margin: 1em 0;
		color: #9e9e9e;
		font-size: 0.9em;
		text-align: center;
	}

	hr {
		height: 0;
		margin: 1em 0;
		border: 0;
		border-top: 1px solid #dddedf;
	}

	blockquote {
		position: relative;
		margin: 15px 0;
		padding: 0 0 0 30px;
		border-left: 4px solid;
		font-family: Georgia, "Times New Roman", Times, serif;
		font-size: 1.3em;
	}

	table { width: 100%; }

	label {
		display: block;
		margin-bottom: 5px;
		color: #9e9e9e;
		font-weight: 400;
	}

	button, input, optgroup, select, textarea {
		margin: 0;
		font-family: inherit;
		font-size: 100%;
		line-height: 1.15;
		text-align: inherit;
	}

	input:not([type="submit"]), select, textarea {
		width: 100%;
		padding: 0 12px;
		border: 1px solid #dddedf;
		box-shadow: none;
		color: currentcolor;
		font-size: inherit;
		line-height: 40px;
		outline: none;
		transition: all 0.2s;
	}

	input[type="button"], input[type="checkbox"], input[type="radio"] { width: auto; }

	input[type="range"] {
		padding: 0;
		border: 0;
		height: auto;
		line-height: 1;
	}

	button {
		padding: 0;
		border: 0;
		outline: none;
		cursor: pointer;
		text-transform: none;
	}

	select {
		appearance: none;
		border-radius: 0;
		background-color: transparent;
		background-image: linear-gradient(45deg, transparent 50%, gray 0), linear-gradient(135deg, gray 50%, transparent 0);
		background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 16px) calc(50% + 2px);
		background-repeat: no-repeat;
		background-size: 4px 4px, 4px 4px;
		cursor: pointer;
	}

	textarea {
		height: auto;
		min-height: 90px;
		padding: 10px 12px;
		overflow: auto;
		line-height: inherit !important;
	}

	input[type="checkbox"],
	input[type="radio"],
	input[type="submit"] { cursor: pointer; }

	svg:not([width]) { min-width: 1em; }
	svg:not([height]) { min-height: 1em; }

	:focus-visible { outline: auto; }

	/* Layout primitives */

	.rr-main {
		position: relative;
		flex: 1;
		width: 100%;
	}

	.rr-sec {
		display: flex;
		flex-direction: column;
		align-items: center;
		margin-inline: auto;
		width: 100%;
	}

	.rr-blk,
	.rr-con {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
	}

	.rr-con {
		margin-inline: auto;
		width: 1100px;
	}

	@media (max-width: 767px) {
		.rr-sec,
		.rr-blk,
		.rr-con { flex-wrap: wrap; }
	}

	.rr-sec, .rr-blk, .rr-con, .rr-txt, .rr-hd, .rr-img, .rr-btn, .rr-lnk, .rr-sc { max-width: 100%; }

	.rr-sc,
	.rr-post-content { width: 100%; }

	.rr-btn { width: auto; }

	.rr-button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		padding: 0.5em 1em;
		letter-spacing: 0.5px;
		text-align: center;
	}

	.rr-lnk {
		display: inline-flex;
		align-items: center;
		gap: 5px;
	}

	.rr-fig {
		display: inline-block;
		position: relative;
		width: auto;
		height: fit-content;
	}

	/* Laid out as if the image stood alone in its parent */
	.rr-bare { display: contents; }
}

/* WordPress sets figure margins outside any layer, so these are too */
.rr-img,
.rr-quote { margin: 0; }

/* A paragraph that is a layout item spaces itself with its own class only */
.rr-blk > p:where(.rr-txt, .rr-hd),
.wp-block-cover__inner-container > p:where(.rr-txt, .rr-hd) { margin: 0; }

.skip-link {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 10001;
	width: 1px;
	height: 1px;
	padding: 5px 10px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	background: #000;
	color: #fff;
	font-weight: 700;
	border-bottom-right-radius: 8px;
}

.skip-link:focus {
	width: auto;
	height: auto;
	clip-path: none;
	overflow: visible;
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
