*,
*::before,
*::after {
    	box-sizing: border-box;
}

body {
    	font-family: "Josefin Sans", sans-serif;
    	margin: 0px;
    	justify-items: center;
    	background:
    		radial-gradient(circle at center, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 1)) no-repeat center center,
		url(images/compressed-final-image-01.webp) no-repeat center center / cover;
}

.wrapper {
    	max-width: 1000px;
    	margin: 100px auto;
    	display: grid;
    	gap: 25px;
    	padding: 15px;
	background-color: rgba(255, 255, 255, 0.25);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	border: 5px outset rgba(255, 255, 255, 0.25);
	border-radius: 25px;
}

header {
	display: flex;
	flex-direction: column;
	justify-content: right;
	border-radius: 10px;
	border: hidden;
	margin: 20px;
	background:
	    radial-gradient(ellipse at center, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 1)) no-repeat center center,
	    url(images/ark-racer-header-banner-image.webp) no-repeat center center / cover;
	text-align: right;
	padding-right: 10px;
}

header h1 {
	font-variant-caps: small-caps;
}

header h1,
header h2 {
	padding-bottom: 5px;
	padding-top: 5px;
	text-shadow: #fff 0 0 2em;
}

/* START - .nav-main */
.nav-main {
	position: fixed;
	z-index: 9999;
	line-height: 0;
	background: none;
}

.nav-main-menu-toggle {
	background: rgba(255, 255, 255, 0.25);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
	border: hidden;
	border-radius: 25px;
	margin-bottom: -2.5px;
	margin-top: 10px;
	margin-left: 10px;
	cursor: pointer;
	padding: 0;
	line-height: 0;
}

/* SET SVG TRANSFORMS - based on individual elements not SVG box */
.nav-main-menu-toggle svg * {
	transform-box: fill-box;
}

/* HAMBURGER MENU ICON */
.nav-main-menu-toggle rect:nth-child(1) {
	transition: all 2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
	transform-origin: center;
}

.nav-main-menu-toggle rect:nth-child(2) {
	transition: all 2.25s linear;
	transform-origin: center;
}

.nav-main-menu-toggle rect:nth-child(3) {
	transition: all 2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
	transform-origin: center;
}

/* JAVASCRIPT WILL ADD - aria-expanded="true" - to .nav-main-menu-toggle */
.nav-main-menu-toggle[aria-expanded="true"] rect:nth-child(1) {
	rotate: 1.125turn;
	translate: 0 10px;
}

.nav-main-menu-toggle[aria-expanded="true"] rect:nth-child(2) {
	scale: 0;
}

.nav-main-menu-toggle[aria-expanded="true"] rect:nth-child(3) {
	rotate: -1.125turn;
	translate: 0 -10px;
}

/* END - .nav-main-menu-toggle */

#nav-main-menu {
	transform: translateX(-110%);
	transition: all 1s ease-in-out;
	position: absolute;
	width: fit-content;
	background: rgba(255, 255, 255, 0.312);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
	margin: 0;
	margin-top: 10px;
	padding: 0;
	list-style: none;
	display: flex;
	visibility: hidden;
	flex-wrap: nowrap;
	flex-direction: column;
	font-variant-caps: small-caps;
	border: hidden;
	border-radius: 25px;
}

#nav-main-menu:not([hidden]) {
	visibility: visible;
	transform: translateX(10px);
	transition: all 1.8s ease-in-out;
}

#nav-main-menu li a {
	color: inherit;
	display: flex;
	line-height: 3;
	padding: 0 2em;
	transition: all .25s ease-in-out;
	text-decoration: none;
	border: hidden;
	border-radius: 25px;
}

#nav-main-menu li a:hover,
#nav-main-menu li a:focus {
	background: #fff;
}

/* END - .nav-main */

.main-subheading {
	text-align: center;
	margin-top: 10px;
}

.posts-subheading {
	padding-top: 1.5em;
	padding-bottom: 1.5em;
	background-image: radial-gradient(circle 2em, rgba(255, 255, 255, 1.0), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.0));
}

.cards {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	padding: 0;
}

.cards-item {
	flex: 1 1 auto;
	display: flex;
	margin: 10px;
	min-width: 0;
	background-color: maroon;
}

.cards-item-link {
	text-decoration: none;
	color: #fff;
}

.cards-item-figure {
	position: relative;
	margin: 0;
	line-height: 0;
	overflow: hidden;
}

.cards-item-figure-image {
	width: 100%;
	height: 200px;
	object-fit: cover;
	transform-origin: 80% 12%;
	transform: rotate(0) scale(1);
	transition: all 2s;
	filter: grayscale(100);
	background-color: maroon;
}

.cards-item-figure-caption {
	padding: 0 10px;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0px;
	background: hsla(228, 3%, 34%, 0.5);
	color: hsla(0, 0%, 100%, 1);
	backdrop-filter: blur(5px);
	line-height: 2;
	font-style: italic;
}

.cards-item-link:hover .cards-item-figure-image {
	transform: rotate(6deg) scale(2);
	filter: grayscale(0);
}

.cards-item-details {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	padding: 10px;
	background-color: maroon;
}

.cards-item-details-title {
	margin-bottom: 0;
	border-bottom: 1px solid;
	font-variant-caps: small-caps;
}

.cards-item-details-meta {
	display: flex;
	flex-wrap: wrap;
}

.cards-item-details-meta * {
	flex: 0 0 50%;
	font-size: .8em;
	line-height: 2;
}

.cards-item-details-meta > span:nth-child(even) {
	text-align: right;
}

.cards-item-details-excerpt {
	flex-grow: 1;
}

.cards-item-details-button {
	align-self: flex-end;
	margin: 10px;
	padding: 0 1em;
	border-radius: 1em;
	border: 1px solid;
	line-height: 2;
}

.cta {
	display: flex;
	flex-wrap: nowrap;
	flex-direction: column;
	padding-left: 5px;
	padding-right: 5px;
	padding-bottom: 20px;
	margin: 20px;
	clear: both;
	border: 2.5px solid #000;
	border-radius: 10px;
	justify-content: center;
	background-color: powderblue;
}

.cta-heading {
	color: #000;
	text-align: center;
	margin-bottom: 10px;
}

.cta-button {
	height: 2em;
	width: 7em;
	align-self: center;
	line-height: 2;
	padding: 0 1em;
	margin: 10px;
	border: 0.125em solid;
	border-radius: 1em;
	text-align: center;
	font-size: 3em;
	text-decoration: none;
	font-weight: 700;
	letter-spacing: 0.015625em;
	transition: all 0.25s ease-in-out;
}

.cta-button:hover {
	box-shadow: 0 0 5px 5px;
}

.cta-button:active {
	box-shadow: inset 0 0 5px 5px;
}

.cta-button-primary {
	background-color: darkred;
	color: #fff;
}

.cta-button-secondary {
	background-color: darkgreen;
	color: #fff;
}

.cta-button-tertiary {
	background-color: gold;
	color: darkred;
}

.cta-button-quaternary {
	background-color: darkred;
	color: gold;
}

.cta-button-large {
	font-size: 5em;
}

.cta-button-small {
	font-size: 1em;
}

.callout {
	background-color: #000;
	border: 5px double #3a00da;
	border-radius: 10px;
	box-shadow: 0 0 0 10px #000;
	padding: 12px;
	margin-left: 25px;
	margin-right: 25px;
}

.callout-heading {
	color: white;
	font-size: 3em;
	margin: 0 0 32px;
	text-align: center;
}

.callout-intro {
	color: white;
	font-size: 1.5em;
	margin: 0 0 16px;
	text-align: center;
}

.subscribe-newsletter {
	--color-white-20: hsla(0, 0%, 100%, 0.20);
	--color-white-40: hsla(0, 0%, 100%, 0.40);
	--color-white-60: hsla(0, 0%, 100%, 0.60);
	--color-white-80: hsla(0, 0%, 100%, 0.80);
	--color-black-20: hsla(0, 0%, 0%, 0.20);
	--color-black-40: hsla(0, 0%, 0%, 0.40);
	--color-black-60: hsla(0, 0%, 0%, 0.60);
	--color-black-80: hsla(0, 0%, 0%, 0.80);
	--color-button-dark: #3a00da;
	--color-button-light: #ffc500;
	--z-index: -1;
}

.subscribe-newsletter {
	transition: all 1s ease-in;
	background: var(--color-white-20);
	border-radius: .5em;
}

.subscribe-newsletter {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
	overflow: hidden;
}

.subscribe-newsletter fieldset {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0;
	margin: 0;
	border: none;
}

.subscribe-newsletter fieldset:first-child {
	flex: 1 1 auto;
}

.subscribe-newsletter fieldset:last-child::after {
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	background: url("images/loader-03.svg") no-repeat center;
	background-size: 25%;
	z-index: var(--z-index, -1);
}

.subscribe-newsletter input:not([type="radio"]):not([type="checkbox"]) {
	-webkit-appearance: none;
	appearance: none;
	border: none;
	border-radius: 0;
}

.subscribe-newsletter input {
	position: relative;
	font-family: inherit;
	font-size: 1.2em;
	line-height: 2.4;
	letter-spacing: 0.05em;
	padding: 0 .5em;
	margin: 0;
	color: #fff;
}

.subscribe-newsletter input[type=email] {
	background: var(--color-white-20);
}

.subscribe-newsletter input[type=email]:focus {
	outline: none;
	box-shadow: inset 0 0 0 2px var(--color-button-dark);
}

.subscribe-newsletter input::placeholder {
	position: relative;
	color: #fff;
	opacity: 0.75;
}

.subscribe-newsletter input::placeholder {
	transition: 2s cubic-bezier(1, 1.65, 0.35, 1.32), opacity .25s ease;
}

.subscribe-newsletter input:focus::placeholder {
	transform: translateX(100%);
	transition: transform 1s cubic-bezier(0.15, 0.69, 0.7, -0.42), opacity 2s ease;
	opacity: 0
}

.subscribe-newsletter input[type=submit],
.subscribe-newsletter input[type=submit]:invalid {
	background: var(--color-button-dark);
	color: white;
	font-weight: bold;
	text-transform: uppercase;
	padding: 0 1em;
	transition: all 1s .5s ease-in;
	transform-origin: right center;
	transform: scale(1);
	box-shadow: 0 0 0px 0px var(--color-black-60);
}

.subscribe-newsletter:valid input[type=submit] {
	color: var(--color-button-dark);
	background: var(--color-button-light);
	transform: scale(1);
	box-shadow: -2px 2px 4px var(--color-black-60), -2px -2px 4px var(--color-black-60);
}

.subscribe-newsletter fieldset input[type=submit]:disabled {
	background: var(--color-white-80);
	color: black;
	transform: scale(1);
	box-shadow: 0 0 0px 0px var(--color-black-60);
}

.subscribe-newsletter label {
	color: #fff;
	line-height: 1.625em;
	padding: 0 .5em;
}

.subscribe-newsletter.sending {
	background: var(--color-white-60);
}

.subscribe-newsletter.received {
	background: var(--color-white-20);
}

.subscribe-newsletter .subscribe-newsletter-message-error {
	background: var(--color-button-dark);
}

.subscribe-newsletter .subscribe-newsletter-message-success {
	background: var(--color-white-80);
	color: var(--color-button-dark);
	font-size: 1.6em;
	flex: 1;
	text-align: center;
}

footer {
	padding: 25px;
}

#footer-container {
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

#footer-container > a {
	padding-left: 20px;
	padding-right: 20px;
}

#footer-container > a:link {
	color: white;
}

#footer-container > a:visited {
	color: white;
}

#footer-container > a:hover {
	color: white;
}

#footer-container > a:focus {
	color: white;
}

#footer-container > a:active {
	color: white;
}

@media (min-width: 810px) {
	.nav-main {
		position: static;
		top: auto;
		left: auto;
		z-index: auto;
		background: none;
		border: none;
	}

	.nav-main-menu-toggle {
		display: none;
	}

	#nav-main-menu {
		position: relative;
		visibility: visible;
		transform: translateX(0);
		transition: none;
		background: darkred;
		display: flex;
		flex-direction: row;
		font-variant-caps: small-caps;
		justify-content: space-evenly;
		justify-self: center;
		margin: 0;
		border: 5px solid #fff;
		border-radius: 10px;
	}

	#nav-main-menu li a {
		color: #fff;
		border: 5px hidden;
		border-radius: 5px;
	}

	#nav-main-menu li a:hover,
	#nav-main-menu li a:focus {
		background: darkgreen;
	}

	.cards {
		display: flex;
		flex-wrap: wrap;
		list-style: none;
		padding: 0;
	}

	.cards-item {
		flex: 0 0 calc(25% - 20px);
		flex: 0 0 calc(33.333% - 20px);
		flex: 0 0 calc(50% - 20px);
	}

	.callout {
		padding: 80px;
	}

	.subscribe-newsletter {
		flex-direction: row;
		height: 8em;
		align-items: center;
	}

	.subscribe-newsletter:valid input[type=submit] {
		transform: scale(1.2);
	}
}