/*=====
Theme Name: Pedro Gris
Author: Pedro Gris
Author URI: https://pedrogris.es
Description: A custom WordPress theme developed with ♥ by Pedro Gris. All rights reserved. This theme is not intended for redistribution, modification, or resale.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.6.1
Requires PHP: 7.0
License: Proprietary - All Rights Reserved
License URI: https://pedrogris.es/license
Text Domain: pedro-gris
Tags: custom, modern, responsive, SEO-friendly, accessible
=======*/



/* FONT */
@font-face {
	font-family: 'ClashGrotesk';
	src: url('assets/fonts/ClashGrotesk-Variable.woff2') format('woff2'),
		url('assets/fonts/ClashGrotesk-Variable.woff') format('woff'),
		url('assets/fonts/ClashGrotesk-Variable.ttf') format('truetype');
	font-weight: 200 700;
	font-display: swap;
	font-style: normal;
}

@font-face {
	font-family: 'Panchang';
	src: url('assets/fonts/Panchang-Variable.woff2') format('woff2'),
		url('assets/fonts/Panchang-Variable.woff') format('woff'),
		url('assets/fonts/Panchang-Variable.ttf') format('truetype');
	font-weight: 200 800;
	font-display: swap;
	font-style: normal;
}

@font-face {
	font-family: 'Albert';
	src: url('assets/fonts/Albert-extrabold.woff2') format('woff2'),
		url('assets/fonts/Albert-extrabold.woff') format('woff');
	font-weight: 200 800;
	font-display: swap;
	font-style: normal;
}

/* BASIC */

:root {
	--black: #000;
	--white: #DFDFDF;
	--cubic-bezier: cubic-bezier(0.5, 0, 0.5, 1);
	interpolate-size: allow-keywords;
}

::-moz-selection {
	color: var(--white);
	background: var(--black);
}
  
::selection {
	color: var(--white);
	background: var(--black);
}

.nojq  {
	display: none;
}

* {
	/* Designer mode */
	/* outline: 1px solid blue; */
	margin: 0;
	padding: 0;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}

body,
html {
	overflow-x:hidden;
}

body {
	width: 100%;
	height: 100%;
	font-family: 'ClashGrotesk', sans-serif;
	font-variation-settings: 'wght' 500;
	color: var(--black);
	background-color: var(--white);
	font-size: 14px;
	font-weight: 400;
	margin: 0;
	padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 700;
	line-height: 0.9;
	font-family: 'Albert', sans-serif;
}

h1 {
	font-size: 78.54px;
}

h2 {
	font-size: 58.92px;
}

h3 {  
	font-size: 44.2px;  
}

h4 {  
	font-size: 33.16px;  
}

h5 {  
	font-size: 24.88px;  
}

h6 {  
	font-size: 18.66px;  
}

p {
	font-size: 14px;
}

a {
	text-decoration: none;
	color: var(--white);
	width: fit-content;
	height: fit-content;
}

b {
	font-weight: 700;
}

header {
	position: fixed;
	inset: 0 0 auto 0;
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 10px;
	padding: 10px;
	mix-blend-mode: difference;
	z-index: 9999;

	.logo {
		width: 10vw;
		max-width: 150px;
		min-width: 100px;
		height: fit-content;
	}

	.menu {
		grid-column: 4 / 10;
		display: grid;
		grid-template-columns: repeat(6, 1fr);
		gap: 10px;

		a {
			text-transform: uppercase;

			&:nth-of-type(1) {
				grid-column: 1 / 3;
			}

			&:nth-of-type(2) {
				grid-column: 3 / 5;
			}

			&:nth-of-type(3) {
				grid-column: 5 / 7;
			}

			@media (min-width:950px) {
				&:hover {
					font-style: italic;
				}
			}
		}

		@media (max-width:950px) {
			& {
				grid-column: 4 / 6;
				grid-template-columns: repeat(3, 1fr);
			}
		}
	}

	.theme-toggle {
		grid-column: 13;
		justify-self: end;
		width: 25px;
		height: 25px;
		background-color: var(--white);
		border-radius: 50%;
		cursor: pointer;
	}

	@media (max-width:950px) {
		grid-template-columns: repeat(6, 1fr);

		.logo {
			width: 15vw;
			max-width: 120px;
			min-width: 80px;
		}

		.menu {
			grid-column: 3 / 6;
			display: flex;
			flex-direction: column;
			align-items: flex-end;
			gap: 5px;
        	margin-top: 5px;
		}

		.theme-toggle {
			grid-column: 6;
		}
	}
}

.banner {
	width: calc(100% - 20px);
	height: calc(100svh - 20px)	;
	overflow: hidden;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-end;
	position: relative;
	padding: 10px;

	h1 {
		font-size: 5vw;
		text-transform: uppercase;
		text-wrap: balance;
		max-width: 80vw;
	}

	h2 {
		font-family: 'ClashGrotesk', sans-serif;
		text-transform: uppercase;
		font-size: 30px;
		text-wrap: nowrap;
		width: fit-content;
		text-align: right;
	}

	.background {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;

		span {
			position: absolute;
			display: block;
			width: 120vw;
			transform: translate3d(-77%, 0%, 0);
			aspect-ratio: 1;
			background: var(--white);
			border-radius: 50%;
            mix-blend-mode: difference;
            filter: blur(50px);
			border: 15px solid #601010;
			animation: float 30s var(--cubic-bezier) infinite;
		}

		span:nth-child(2) {
			animation-delay: 2s;
		}

		&:before {
			content: "";
			top: -10rem;
			left: -10rem;
			width: calc(100% + 20rem);
			height: calc(100% + 20rem);
			z-index: 9999;
			position: fixed;
			background-image: url(https://upload.wikimedia.org/wikipedia/commons/5/5c/Image_gaussian_noise_example.png);
			opacity: 0.15;
			pointer-events: none;
			-webkit-animation: noise 1s steps(2) infinite;
			animation: noise 1s steps(2) infinite;
		}
	}

	@media (max-width:950px) {
		& {
			flex-direction: column;
            justify-content: flex-end;
            align-items: flex-start;
			gap: 50svh;

			h1 {
				font-size: 6vw;
			}

			h2 {
				text-align: left;
				font-size: 18px;
			}

			.background {
				span {
					width: 150vw;
				}
			}
		}
	}
}

@-webkit-keyframes noise {
	to { transform: translate3d(-7rem,0,0) }
}

@keyframes noise {
	0% { transform: translate3d(0,9rem,0) }
	10% { transform: translate3d(-1rem,-4rem,0) }
	20% { transform: translate3d(-8rem,2rem,0) }
	30% { transform: translate3d(9rem,-9rem,0) }
	40% { transform: translate3d(-2rem,7rem,0) }
	50% { transform: translate3d(-9rem,-4rem,0) }
	60% { transform: translate3d(2rem,6rem,0) }
	70% { transform: translate3d(7rem,-8rem,0) }
	80% { transform: translate3d(-9rem,1rem,0) }
	90% { transform: translate3d(6rem,-5rem,0) }
	to { transform: translate3d(-7rem,0,0) }
}

@keyframes float {
	0% { transform: translate3d(-77%, 0%, 0); }
	9% { transform: translate3d(-23%, -61%, 0); }
	18% { transform: translate3d(45%, -19%, 0); }
	27% { transform: translate3d(-67%, 54%, 0); }
	36% { transform: translate3d(33%, -72%, 0); }
	45% { transform: translate3d(-58%, 29%, 0); }
	54% { transform: translate3d(71%, -41%, 0); }
	63% { transform: translate3d(-39%, 68%, 0); }
	72% { transform: translate3d(56%, -83%, 0); }
	81% { transform: translate3d(-91%, 12%, 0); }
	90% { transform: translate3d(24%, -65%, 0); }
	100% { transform: translate3d(-77%, 0%, 0); }
}