/* @layer typography {} */
@font-face {
	font-family: 'Cormorant Garamond';
	src:
		url('../fonts/CormorantGaramond-VariableFont_wght.woff2') format('woff2'),
		url('../fonts/CormorantGaramond-VariableFont_wght.ttf') format('truetype');
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
}

@font-face {
	font-family: 'Cormorant Garamond';
	src:
		url('../fonts/CormorantGaramond-Italic-VariableFont_wght.woff2') format('woff2'),
		url('../fonts/CormorantGaramond-Italic-VariableFont_wght.ttf') format('truetype');
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
}

@font-face {
	font-family: 'Cinzel';
	src:
		url('../fonts/Cinzel-VariableFont_wght.woff2') format('woff2'),
		url('../fonts/Cinzel-VariableFont_wght.ttf') format('truetype');
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
}

@font-face {
	font-family: 'Jost';
	src:
		url('../fonts/Jost-VariableFont_wght.woff2') format('woff2'),
		url('../fonts/Jost-VariableFont_wght.ttf') format('truetype');
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
}

@font-face {
	font-family: 'Jost';
	src:
		url('../fonts/Jost-Italic-VariableFont_wght.woff2') format('woff2'),
		url('../fonts/Jost-Italic-VariableFont_wght.ttf') format('truetype');
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
}

/* @layer base {} */
:root {
	--gold: #c9a84c; /* #c9a84c; */ /* #a6b979 */
	--gold-light: #e2c47a; /* #e2c47a; */
	--gold-dim: #7a6230;
	--text-primary: #f0e8d5; /* #f0e8d5; */
	--text-secondary: #9a8f78; /* b0a48c */
	--text-dim: #5a5145; /* 947b59 */
	--border: rgba(201, 168, 76, 0.15); /* rgba(201, 168, 76, 0.2) */
	--border-hover: rgba(201, 168, 76, 0.35);
	--bg-dark: #0d0b09;
	--bg-panel: #111009;
	--bg-card: #1a1712;
	--bg-card-hover: #201e18;
	/* --section-bg: #161410; */
}

/* @layer globals {} */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html,
body {
	height: 100%;
	height: 100dvh;
	font-family: 'Jost', sans-serif;
	color: var(--text-primary);
	font-weight: 300;
	background: var(--bg-dark);
}

header {
	padding: 28px 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 100;

	nav {
		display: inline-flex;
		align-items: center;
		background: rgba(10, 8, 5, 0.65);
		backdrop-filter: blur(20px);
		border: 1px solid rgba(240, 232, 213, 0.1);
		border-radius: 100px;
		padding: 8px;
		gap: 4px;
		position: relative;

		.site-logo {
			display: flex;
			align-items: center;
			text-decoration: none;
			padding: 4px 12px 4px 8px;
			flex-shrink: 0;

			.logo-text {
				display: flex;
				flex-direction: column;
				align-items: center;
				line-height: 1.15;

				.logo-babu {
					font-family: 'Cinzel', serif;
					font-size: 1.1rem;
					color: var(--text-primary);
					font-weight: 600;
					letter-spacing: 0.12em;
					text-transform: uppercase;

					@media (width <= 768px) {
						font-size: 1rem;
					}
				}

				.logo-juures {
					font-family: 'Jost', sans-serif;
					font-size: 0.58rem;
					color: var(--gold);
					font-weight: 300;
					letter-spacing: 0.38em;
					text-transform: uppercase;

					@media (width <= 768px) {
						font-size: 0.52rem;
					}
				}
			}
		}

		.nav-divider {
			width: 1px;
			height: 20px;
			background: rgba(240, 232, 213, 0.15);
			margin: 0 4px;
		}

		.nav-links {
			display: flex;
			align-items: center;
			list-style: none;

			li {
				a {
					font-family: 'Jost', sans-serif;
					font-size: 0.78rem;
					letter-spacing: 0.1em;
					text-transform: uppercase;
					color: var(--text-secondary);
					text-decoration: none;
					padding: 8px 16px;
					border-radius: 100px;
					transition:
						color 0.2s,
						background 0.2s;
					white-space: nowrap;

					&:hover {
						color: var(--text-primary);
						background: rgba(240, 232, 213, 0.07);
					}

					&.active {
						color: var(--gold-light);
					}
				}
			}
		}
	}

	@media (max-width: 600px) {
	}

	@media (max-width: 900px) {
	}

	@media (max-width: 1024px) {
	}
}

/* @layer components {} */
.img-slider {
	position: absolute;
	inset: 0;
	z-index: 0;

	/* Grain - generates noise to add texture to background  */
	&::before {
		content: '';
		position: absolute;
		inset: 0;
		z-index: 2;
		background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
		pointer-events: none;
		opacity: 0.5;
	}

	.img-slide {
		position: absolute;
		inset: 0;
		opacity: 0;
		transition: opacity 1.6s ease;
		background-size: cover;
		background-position: center;

		&.active {
			opacity: 1;
		}

		/* Cinematic img overlay */
		&::after {
			content: '';
			position: absolute;
			inset: 0;
			background: linear-gradient(to top, rgba(8, 6, 4, 0.92) 0%, rgba(8, 6, 4, 0.3) 35%, rgba(8, 6, 4, 0.1) 60%, rgba(8, 6, 4, 0.45) 100%), linear-gradient(to right, rgba(8, 6, 4, 0.5) 0%, transparent 40%, transparent 60%, rgba(8, 6, 4, 0.3) 100%);
		}
	}
}
