:root {
	--backgroundColor: rgb(250 246 239);
	--bodyBackgroundSize: 227px;
	--headerBackgroundSize: 343px;
	--headerHeight: 317px;
	--h1Top: 26px;
	--h1Width: 692px;
	--mainWidth: 640px;
	--mainTop: -90px;
	--mainLeft: 257px;
	--background: rgb(252 251 248);
	--color: rgb(0 0 0);
	--colorOffset: rgb(100 100 100);
	--yellow: rgb(247, 221, 129);
	--red: rgb(149 15 6);
	--tableOffset: rgb(252 247 228);
	--buttonColor: rgb(255 255 255);
	--borderColor: rgb(0 0 0 / 5%);
	--radius: 12px;
	--maxWidth: 600px;
	--inputBackground: rgb(255 255 255);
	--inputColor: rgb(0 0 0);
	--searchMenuTop: 85px;
}

body {
	background: var(--backgroundColor) url('/Saucy/Images/background-v.webp') 0 0 repeat-y;
	background-size: var(--bodyBackgroundSize) auto;
	margin: 0;
	min-height: 100vh;
}

#stripe {
	display: none;
}

body > header {
	background: var(--backgroundColor) url('/Saucy/Images/header-h.webp') 0 var(--h1Top) repeat-x;
	background-size: var(--headerBackgroundSize) auto;
	height: var(--headerHeight);
	width: 100%;
}

h1 {
	background: var(--backgroundColor) url('/Saucy/Images/header-2.webp') 0 var(--h1Top) no-repeat;
	background-size: 100% 100%;
	font-size: 0;
	height: var(--headerHeight);
	padding: var(--h1Top) 0 0;
	margin: 0;
	overflow: hidden;
	text-indent: -10000px;
	width: var(--h1Width);
}

h1 a {
	display: block;
	height: 100%;
	width: 100%;
}

h2 { display: none; visibility: hidden; }

main {
	padding: 0 0 0 var(--mainLeft);
	margin-top: var(--mainTop);
	width: var(--mainWidth);
}

@media (max-width: 920px) {
	:root {
		--bodyBackgroundSize: 151px;
		--headerBackgroundSize: 231px;
		--headerHeight: 205px;
		--h1Width: 461px;
		--mainWidth: 640px;
		--mainTop: -45px;
		--mainLeft: 171px;
		--searchMenuTop: 55px;
	}
}

@media (max-width: 830px) {
	:root {
		--searchMenuTop: 48px;
	}
	
	html,
	body {
		background: var(--backgroundColor);
		overflow-x: hidden;
		position: relative;
	}
	
	body > header {
		display: none;
	}
	
	#stripe {
		background: url('/Saucy/Images/header-h.webp') 0 0 repeat-x;
		background-size: 220px auto;
		display: block;
		height: 112px;
		left: -10%;
		margin: 0;
		position: absolute;
		top: 30px;
		transform: rotate(-1.5deg);
		width: 120%;
	}
	
	main {
		margin: 180px auto 0;
		padding: 0 20px;
		max-width: 600px;
		width: calc(100% - 40px);
	}
}

/* *********************************************** LEGACY *********************************************** */

* {
	-webkit-tap-highlight-color: rgba(48, 79, 136, 0);
	outline: none;
}

*::-moz-focus-inner {
	border: 0;
}

::selection {
	background-color: var(--red);
	color: var(--background);
	text-shadow: none;
}

::-moz-selection {
	background-color: var(--red);
	color: var(--background);
	text-shadow: none;
}

button {
	cursor: pointer;
}

.center {
	text-align: center;
}

#searchMenuHolder {
	position: absolute;
	right: 20px;
	top: var(--searchMenuTop);
}

#searchMenuHolder>button,
.button {
	background: var(--yellow);
	border: 0;
	box-shadow: rgb(0 0 0 / 30%) 2px 2px 4px;
	color: var(--red);
	height: 47px;
	position: absolute;
	right: 0;
	top: 5px;
	transform: rotate(1deg);
	width: 47px;
	z-index: 3;
}

	.button {
		font-weight: 600;
		padding: 10px 15px;
		position: unset;
		text-decoration: none;
	}

	#searchMenuHolder>button img {
		height: 25px;
		left: 11px;
		opacity: 1;
		position: absolute;
		top: 11px;
		transform: scale(1) rotate(0);
		transition: .35s all;
		width: 25px;
	}
	
	#searchMenuHolder>button img:last-of-type {
		height: 18px;
		left: 16px;
		top: 16px;
		width: 18px;
	}
	
		#searchMenuHolder>button img[aria-hidden="true"] {
			opacity: 0;
			transform: scale(1) rotate(360deg);
		}
	
	#searchMenuInner {
		background: var(--tableOffset);
		border: 1px solid var(--borderColor);
		box-shadow: rgb(0 0 0 / 35%) 10px 20px 28px;
		margin: 40px 10px 0 0;
		padding: 10px;
		position: relative;
		transform-origin: top right;
		transition: display 0s, opacity .35s, transform .35s, visibility .35s;
		/* transform: rotate(1.5deg); */
		z-index: 6;
	}
	
		#searchMenuInner[aria-hidden="true"] {
			opacity: 0;
			transform: perspective(600px) scale(0) skew(40deg) rotateX(-90deg);
			visibility: hidden;
		}
		
		#searchMenuInner[aria-hidden="false"] {
			opacity: 1;
			transform: perspective(600px) scale(1) skew(0) rotateX(0);
			visibility: visible;
		}
		
		/* #searchMenuInner * { transition-delay: 5s; } */
		/* #searchMenuInner[aria-hidden="true"] * { display: none; transition-delay: 5s;} */
	
	#searchMenuInner .formColumns {
		margin: 0 auto;
	}

#frontPage td {
	vertical-align: top;	
}

.box {
	background: var(--yellow);
	box-shadow: rgb(0 0 0 / 30%) 3px 3px 3px;
	color: var(--red);
	font-weight: bold;
	padding: 10px;
	position: absolute;
	right: 10px;
	top: 25px;	
	transform: rotate(2.3deg);
	width: 150px;
	z-index:5;
}

hr {
	border: 0;
	border-top: 1px solid var(--borderColor);
	height: 0;
	margin: 40px auto;
	width: 75px;
}

/* ************************* MAIN ************************* */

main {
	position: relative;
	z-index: 1;
}

	main a {
		color: var(--red);
	}

	main a:hover {
		color: var(--color);
	}

article header h3 {
	grid-area: h3;
	font-size: 24px;
	margin: 0;
}

	article header h3 span,
	article header h3 time {
		color: var(--colorOffset);
	}
	
article .text {
	font-size: 17px;
	letter-spacing: 0.025em;
	line-height: 1.4em;
}

article footer hr {
	border: 0;
	border-bottom: 4px solid rgb(0 0 0 / 25%);
	margin: 30px auto;
	padding: 0;
	width: 30px;
}

/* ************************* HEADERS ************************* */

h4 {
	margin: 0;
}

h5 {
	font-size: 16px;
	margin: 0;
}

/* ************************* SCORE ************************* */

.scoreHolder {
	background: var(--tableOffset);
	border-bottom: 1px solid var(--borderColor);
	border-top: 1px solid var(--borderColor);
	display: grid;
	grid-template-columns: auto max-content;
	margin: 10px 0;
	padding: 20px 40px;
	position: relative;
}

.pricePoint img{
	width: 76px;
}

.scoreHolder p {
	margin: 5px 0 0;
}

.scoreHolder time.box {
	font-size: 13px;
	font-weight: bold;
	line-height: 1.1em;
	right: -5px;
	text-align: center;
	top: -5px;
	width: 80px;
}

.scoreHolder img {
	height: unset;
}

/* ************************* IMAGES ************************* */

figure {
	margin: 20px 0;
	position: relative;
}

.figureRight {
	float: right;
	margin: 10px 0 10px 25px;
	width: 50%;
}

figcaption.box {
	font-size: 17px;
	line-height: 1.1em;
	right: -5px;
	top: -5px;
}

.figureRight figcaption.box {
	font-size: 14px;
}

.double {
	display: grid;
	gap: 5px;
	grid-template-columns: repeat(2, 1fr);
}

.triangle {
	display: grid;
	gap: 5px;
	grid-template-areas: 'l1 l1' 'l2 l3';
}

.three {
	display: grid;
	gap: 5px;
	grid-template-areas: 'l1 l2 l3';
}

	:is(.triangle, .three) :first-of-type { grid-area: l1; line-height: 0; }
	:is(.triangle, .three) :nth-of-type(2) { grid-area: l2; line-height: 0; }
	:is(.triangle, .three) :nth-of-type(3) { grid-area: l3; line-height: 0; }
	

img {
	height: unset;
	max-width: 100%;
}

.text img {
	border: 1px solid var(--red);
}

.text figure img {
	width: 100%;
}

/* ************************* CONTACT ************************* */

table {
	border-top: 1px solid var(--borderColor);
	border-collapse: collapse;
	width: 100%;
}

th,
td {
	border-bottom: 1px solid var(--borderColor);
	padding: 10px;
}

	td:first-of-type {
		background: var(--tableOffset);
		border-right: 1px solid var(--borderColor);
	}

address {
	font-style: normal;
}

nav table {
	border: 1px solid var(--borderColor);
}

	nav td {
		background: var(--tableOffset);
		border: 1px solid var(--borderColor);
		text-align: center;
	}

nav .formColumns {
	grid-template-columns: auto max-content;
	margin: 0;
	max-width: unset;
}

nav ul {
	display: grid;
	gap: 5px 15px;
	grid-template-areas: 'about welcometext' 'bluesky abouttext' 'email emailtext' 'rss newsletter';
	grid-template-columns: min-content auto;
	/* grid-template-columns: repeat(3, auto); */
	/* grid-template-rows: repeat(2, auto); */
	list-style: none;
	margin: 0;
	padding: 0;
}

	nav li {
		list-style: none;
		margin: 0;
		padding: 0;
	}

	nav ul li:first-of-type { grid-area: about; }
	nav ul li:nth-of-type(2) { grid-area: bluesky; }
	nav ul li:nth-of-type(3) { grid-area: email; } 
	nav ul li:nth-of-type(4) { grid-area: rss; }
	nav ul li:nth-of-type(5) { grid-area: welcometext; padding-top: 9px; }
	nav ul li:nth-of-type(6) { grid-area: abouttext; padding-top: 9px; }
	nav ul li:nth-of-type(7) { grid-area: emailtext; padding-top: 9px; }
	nav ul li:last-of-type { grid-area: newsletter; }

	nav li .button {
		display: inline-block;
		height: unset;
		text-align: center;
		transform: unset;
		width: calc(100% - 30px);
	}

/* ************************* FORMS ************************* */

button,
input {
	border: 1px solid var(--red);
	border-radius: 0;
	font: 16px/1em adelle, serif;
	padding: 10px 10px;
}

	input {
		background: var(--inputBackground);
		color: var(--inputColor);
	}

	button {
		background: var(--red);
		color: var(--buttonColor);
	}

.formColumns {
	display: grid;
	grid-template-columns: repeat(2, max-content);
	margin: 20px auto;
	max-width: 350px;
}

/* ************************* PAGE NAV ************************* */

#pageNavigator,
#pageNavigator li {
	list-style: none;
	margin: 0;
	padding: 0;
}

#pageNavigator {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(3, 1fr);
	background: var(--tableOffset);
	border-bottom: 1px solid var(--borderColor);
	border-top: 1px solid var(--borderColor);
	margin: 30px 0 0;
	padding: 20px 40px;
}

#pageNavigator li:nth-of-type(2) {
	text-align: center;
}

#pageNavigator li:last-of-type {
	text-align: right;
}

#pageNavigator a {
	text-decoration: none;
}

#pageNavigator strong {
	color: var(--color);
	display: block;
}

#pageNavigator span {
	text-decoration: underline;
}

/* ************************* FOOTER ************************* */

footer a {
	color: var(--red);
}

footer a:hover {
	color: var(--color);
}

#scoreLegend h4 {
	line-height: 1.4em;
	margin-bottom: 16px;
	text-align: left;
}

#scoreLegend h4 span {
	font-weight: normal;
}

#scoreLegend img {
	height: unset;
}

#tHolder {
	--size: 64px;
	background: var(--buttonColor);
	border-radius: var(--size);
	border: 1px solid rgb(0 0 0 / 15%);
	height: var(--size);
	margin: 0 auto;
	overflow: hidden;
	width: var(--size);
}

	#tHolder img {
		height: var(--size);
		width: var(--size);
	}
	
/* ************************* RESPONSIVE ************************* */

	@media(max-width: 600px) {
		.scoreHolder {
			padding: 20px;
		}
		
		article .text {
			font-size: 18px;
			line-height: 1.3em;
		}
		
		#pageNavigator {
			font-size: 12px;
		}
		
		#scoreLegend {
			font-size: 80%;
		}
		
		#scoreLegend img {
			height: unset;
			max-width: unset;
			width: 90px;
		}
	}
	
	@media(max-width: 574px) {
		nav ul li:nth-of-type(7) { padding-top: 3px; line-height: 1.1em; }
	}
	
	@media(max-width: 455px) {
		nav .formColumns {
			grid-template-columns: 100%;
		}
		
		nav .formColumns button {
			display: none;
		}
	}
	
	@media(max-width: 450px) {
		nav ul li:nth-of-type(5) { padding-top: 1px; line-height: 1.1em; }
	}
	
	@media(max-width: 400px) {
		#frontPage table th:nth-of-type(3),
		#frontPage table td:nth-of-type(3)	{
			display: none;
		}
	}
	
	@media(max-width: 379px) {
		nav ul li:nth-of-type(3) { padding-top: 3px; }
	}
	
	@media(max-width: 360px) {
		.scoreHolder img {
			height: unset;
			width: 90px;
		}
		
		.scoreHolder .pricePoint img {
			height: 20px;
			width: 70px;
		}
	}