/*
Theme Name:     Sande Jazzfestival
Version:        1.0.0
Author:         Webist AS
Author URI:     https://webist.no
Text Domain:    sandejazz
*/

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

html,
body {
	margin: 0;
	padding: 0;
	font-size: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: normal;
	line-height: 1.2;
	margin-top: 0;
	margin-bottom: 1rem;
}

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

li {
	padding: 0;
	margin: 0;
}

img {
	max-width: 100%;
	display: block;
	height: auto;
}

.container {
	max-width: 1280px;
	margin: auto;
	padding-inline: var(--wp--preset--spacing--50);
}

.sticky {
	position: sticky;
}

.absolute {
	position: absolute;
}

.flex {
	display: flex;
}

.flex-col {
	flex-direction: column;
}

.grid {
	display: grid;
}

.grid-cols-2 {
	grid-template-columns: 1fr;
}

@media all and (min-width: 768px) {
	.grid-cols-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.items-center {
	align-items: center;
}

.justify-between {
	justify-content: space-between;
}

.font-bold {
	font-weight: bold;
}

.font-heading {
	font-family: var(--wp--preset--font-family--heading);
}

.order-first {
	order: -9999;
}

@media all and (min-width: 768px) {
	.order-first {
		order: 0;
	}
}

.button {
	font-size: var(--wp--preset--font-size--x-small);
	padding: .5rem 1.2rem;
	text-decoration: none;
	font-weight: bold;
	text-transform: uppercase;
	font-size: 1.125rem;
}

.button--rounded {
	border-radius: 9999px;
}

.button--cta {
	background-color: var(--wp--custom--color--cta);
	color: var(--wp--custom--color--cta-text);
}

.button:hover {
	filter: brightness(150%);
	transition: .3s;
}

.text-shadow {
	text-shadow: -3px 3px 0 rgba(0, 0, 0, 1);
}

.site-header {
	padding: .75rem var(--wp--preset--spacing--30);
	z-index: 100;
	width: 100%;
	position: fixed;
	font-size: 1.375rem;
	transition: .3s;
}

@media all and (min-width: 768px) {
	.site-header {
		padding: 1rem var(--wp--preset--spacing--50);
		top: 0;
	}
}

.custom-logo-link {
	width: 50px;
	display: flex;
	transition: .3s;
}

.custom-logo-link img {
	max-width: 100%;
	height: auto;
}

@media all and (min-width: 768px) {
	.custom-logo-link {
		width: 100px;
	}
}

.site-header.scroll {
	background-color: rgba(0, 0, 0, .9);
}

.site-header.scroll .custom-logo-link {
	width: 50px;
}

.mobile-menu-toggle {
	display: none;
}

@media all and (max-width: 768px) {
	.main-menu .nav-menu {
		position: absolute;
		inset: 0;
		height: 100vh;
		display: flex;
		background-color: var(--wp--custom--color--orange);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		z-index: 500;
		transform: translateX(100%);
		transition: .3s ease-out;
	}

	.main-menu .nav-menu li {
		padding: .5rem 1rem;
		font-size: 2.5rem;
	}

	.main-menu .nav-menu a {
		color: var(--wp--custom--color--dark);
		text-transform: uppercase;
		font-weight: bold;
	}

	.mobile-menu-toggle {
		--button-size: 50px;

		display: block;
		background-color: transparent;
		border: none;
		width: var(--button-size);
		height: var(--button-size);
		margin-left: 20px;
		cursor: pointer;
		z-index: 1000;
		position: relative;
	}

	.mobile-menu-toggle .icon {
		width: 100%;
		height: 100%;
		display: block;
		position: absolute;
		top: 0;
		left: 50%;
		transform: translateX(-50%);
	}

	.mobile-menu-toggle .icon-close {
		opacity: 0;
	}

	body.show-mobile-menu .main-menu .nav-menu {
		transform: translateX(0);
	}

	body.show-mobile-menu .icon-menu {
		opacity: 0;
	}

	body.show-mobile-menu .icon-close {
		opacity: 1;
	}
}

@media all and (min-width: 768px) {
	.main-menu .nav-menu {
		display: flex;
		list-style: none;
		margin: 0;
		padding: 0;
		justify-content: center;
		margin-right: 2rem;
	}

	.main-menu .nav-menu a {
		color: #fff;
		text-decoration: none;
		padding: 0 1rem;
	}

	.main-menu .nav-menu a:hover {
		text-decoration: underline;
	}
}

body:not(.home) .site-content {
	padding: 10rem 0;
}

.site-footer {
	background-color: #000;
	color: #fff;
	padding: 4rem 0;
	font-size: 1.25rem;
}

@media all and (min-width: 768px) {
	.site-footer {
		padding: 7rem;
	}
}

.site-footer .logo {
	width: 100px;
	margin-bottom: 2rem;
}

@media all and (min-width: 768px) {
	.site-footer .logo {
		margin-bottom: 0;
	}
}

.site-footer a {
	color: #fff;
}

.site-footer a:hover {
	text-decoration: none;
	color: var(--wp--custom--color--cta);
}

.site-footer .flex {
	flex-direction: column;
	text-align: center;
}

@media all and (min-width: 768px) {
	.site-footer .flex {
		flex-direction: row;
		align-items: center;
		text-align: left;
	}
}

/* .single-artist {
	background-color: var(--wp--preset--color--blue);
} */

.artist-hero {
	height: 70vh;
	margin-bottom: 3rem;
}

.artist-hero img {
	height: 100%;
	width: 100%;
	object-fit: cover;
}

.artist-cover {
	height: 80%;
	aspect-ratio: 1;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	z-index: 5;
	border-radius: 50%;
}

.artist-content {
	max-width: 50rem;
	margin-inline: auto;
	margin-bottom: 8rem;
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.5;
}

.artist-content h1 {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--xxx-large);
	color: var(--wp--preset--color--orange);
	position: relative;
	z-index: 10;
}

.news-grid {
	display: grid;
	column-gap: 3rem;
	row-gap: 3rem;
	grid-template-columns: repeat(1, 1fr);
}

.news-item {
	text-decoration: none;
}

.news-item h2 {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--orange);
	text-transform: uppercase;
	line-height: 1.1;
	transition: .3s;
}

.news-item:hover h2 {
	color: var(--wp--preset--color--green);
}

.news-item:hover span {
	text-decoration: none;
}

.news-item img {
	width: 100%;
	aspect-ratio: 1;
	height: auto;
	object-fit: cover;
	display: block;
	margin-bottom: 2rem;
}

.news-item a,
.news-item span {
	color: #fff;
}

.news-item span {
	text-decoration: underline;
}

@media all and (min-width: 768px) {
	.news-grid {
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
		column-gap: 3rem;
		row-gap: 5rem;
	}
}

.single-post p {
	font-size: var(--wp--preset--font-size--base);
}

.single-post h1 {
	text-transform: uppercase;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--xx-large);
	color: var(--wp--preset--color--yellow);
	margin-bottom: 4rem;
}

.single-post h2 {
	text-transform: uppercase;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--green);
	margin: 2rem 0 1rem;
}

.single-post h3 {
	text-transform: uppercase;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--orange);
	margin: 2rem 0 1rem;
}

.single-post h4 {
	text-transform: uppercase;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	color: #fff;
	margin: 2rem 0 1rem;
}

.single-post blockquote {
	margin: 2rem .5rem;
}

.single-post .site-content a {
	color: var(--wp--preset--color--orange);
}

.single-post .site-content a:hover {
	color: var(--wp--preset--color--green);
}
