@import url("https://api.fonts.coollabs.io/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

:root {
	--font-family-sans: "Inter", sans-serif;
	--font-family-serif: "Fraunces", serif;

	--color-bg: #faefed;
	--color-text: #3d192f;
	--color-surface: #ebdcd9;
	--color-border-soft: rgba(61, 25, 47, 0.12);

	--size-nav-height: 60px;
	--size-heading: 38px;
	--radius-md: 8px;

	--space-20: 20px;
	--space-30: 30px;
	--space-40: 40px;

	--z-content: 10;
	--z-nav: 100;
	--z-overlay: 1000;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: var(--font-family-sans);
	font-weight: 300;
	letter-spacing: -7%;
}

body {
	background: var(--color-bg);
	color: var(--color-text);
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.main {
	height: 100vh;
	width: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.bottom-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: var(--size-nav-height);
	background-color: var(--color-text);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 var(--space-30);
	z-index: var(--z-nav);
	visibility: hidden;
}

.nav-links {
	display: flex;
	gap: 30px;
}

.nav-item {
	color: var(--color-bg);
	opacity: 0.5;
	cursor: pointer;
	transition: opacity 0.3s ease;
	font-size: var(--space-20);
	background-color: transparent;
	border: none;
	padding: 0;
	font-family: inherit;
	appearance: none;
	-webkit-appearance: none;
	outline: none;
}

.nav-item:hover,
.nav-item.active {
	opacity: 1;
}

.nav-estd {
	color: var(--color-bg);
	font-size: var(--space-20);
	opacity: 0.5;
}

.title-grid {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: var(--space-20);
	padding-bottom: 80px;
	flex-shrink: 0;
}

.horizontal1 {
	display: flex;
	flex-direction: row;
	width: 100%;
}

.horizontal2 {
	display: flex;
	flex-direction: row;
	width: 100%;
	margin-bottom: 20px;
}

.horizontal1 > div,
.horizontal2 > div {
	flex: 1;
}

h1 {
	font-family: var(--font-family-serif);
	font-weight: 400;
	font-variation-settings:
		"opsz" 144,
		"SOFT" 70;
	font-size: clamp(40px, 12vw, 240px);
	font-style: italic;
	letter-spacing: -4%;
	line-height: 0.9;
}

ion-icon[name="logo-instagram"] {
	vertical-align: middle;
}

.graphic {
	width: 100%;
	flex-grow: 1;
	min-height: 0;
	z-index: -1;
	background: url(./images/flower.svg);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: left bottom;
	opacity: 1;
	--mask-x: 50%;
	--mask-y: 100%;
	--mask-width: 150%;
	--mask-height: 120%;
	--mask-solid-stop: 52%;
	--mask-fade-stop: 78%;
	-webkit-mask-image: radial-gradient(
		ellipse var(--mask-width) var(--mask-height) at var(--mask-x)
			var(--mask-y),
		rgba(0, 0, 0, 1) 0%,
		rgba(0, 0, 0, 1) var(--mask-solid-stop),
		rgba(0, 0, 0, 0) var(--mask-fade-stop)
	);
	mask-image: radial-gradient(
		ellipse var(--mask-width) var(--mask-height) at var(--mask-x)
			var(--mask-y),
		rgba(0, 0, 0, 1) 0%,
		rgba(0, 0, 0, 1) var(--mask-solid-stop),
		rgba(0, 0, 0, 0) var(--mask-fade-stop)
	);
}

.text {
	font-size: var(--space-20);
}

.toptitle {
	flex-shrink: 0;
}

.text2 {
	font-size: clamp(14px, 2vw, var(--space-20));
	right: 0;
	position: fixed;
	padding: var(--space-20);
	text-align: right;
	z-index: var(--z-content);
}

/* View system */
.view {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.view.active {
	display: block;
}

/* Hide content elements until animated in */
.view .graphic,
.view .title-grid,
.view .toptitle,
.view .view-content h1,
.view .page-header h2,
.view .page-header p,
.view .gallery-item,
.view .about-text h2,
.view .about-text p,
.view .about-image {
	opacity: 0;
}

.onlyShowOnMobile {
	display: none;
}

.view-content {
	display: flex;
	align-items: center;
	justify-content: center;
	height: calc(100vh - var(--size-nav-height));
	padding: var(--space-40);
}

/* Preloader */
.preloader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--color-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: var(--z-overlay);
}

.preloader img {
	max-width: 200px;
	opacity: 0;
}

/* Page General & Responsive Additions */
.page-main {
	overflow-y: auto;
	justify-content: flex-start;
}

.page-header {
	padding: var(--space-40);
	margin-top: var(--size-nav-height);
}
.page-header h2 {
	font-family: var(--font-family-serif);
	font-size: var(--size-heading);
	margin-bottom: 10px;
}

/* Links */
.contact-link {
	color: var(--color-text);
	text-decoration: none;
	font-style: italic;
	transition: opacity 0.2s;
}
.contact-link:hover {
	opacity: 0.7;
}

/* Gallery Grid */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: var(--space-20);
	padding: 0 var(--space-40) var(--space-40) var(--space-40);
	margin-bottom: 60px;
}
.gallery-item {
	width: 100%;
	aspect-ratio: 4/5;
	border-radius: var(--radius-md);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 0.3s ease;
}

.gallery-item:nth-child(1) {
	background-image: url(./images/gallery/luminory-studio-1.jpg);
}

.gallery-item:nth-child(2) {
	background-image: url(./images/gallery/luminory-studio-2.jpg);
}
.gallery-item:nth-child(3) {
	background-image: url(./images/gallery/luminory-studio-3.jpg);
}
.gallery-item:nth-child(4) {
	background-image: url(./images/gallery/luminory-studio-4.jpg);
}
.gallery-item:nth-child(5) {
	background-image: url(./images/gallery/luminory-studio-5.jpg);
}
.gallery-item:nth-child(6) {
	background-image: url(./images/gallery/luminory-studio-6.jpg);
}
.gallery-item:nth-child(7) {
	background-image: url(./images/gallery/luminory-studio-7.jpg);
}
.gallery-item:nth-child(8) {
	background-image: url(./images/gallery/luminory-studio-8.jpg);
}
.gallery-item:nth-child(9) {
	background-image: url(./images/gallery/luminory-studio-9.jpg);
}
.gallery-item:nth-child(10) {
	background-image: url(./images/gallery/luminory-studio-10.jpg);
}
.gallery-item:nth-child(11) {
	background-image: url(./images/gallery/luminory-studio-11.jpg);
}

.gallery-item:hover {
	transform: scale(1.02);
}

/* About Section */
.about-container {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-40);
	padding: var(--space-40);
	align-items: center;
}
.about-text {
	flex: 1;
	min-width: 300px;
}
.about-text h2 {
	font-family: var(--font-family-serif);
	font-size: var(--size-heading);
	margin-bottom: 10px;
}
.about-text p {
	font-size: 18px;
	line-height: 1.6;
}
.about-image {
	flex: 0 0 auto;
	height: calc(100vh - 140px);
	width: auto;
	aspect-ratio: 3 / 4;
	min-width: 300px;
	max-width: 100%;
	background: url(./images/gloria.jpg);
	background-size: cover;
	background-position: top center;
	border-radius: var(--radius-md);
}

@media (max-width: 768px) {
	.about-image {
		flex: 1 1 100%;
		width: 100%;
		height: auto;
		min-width: 0;
		aspect-ratio: 3 / 4;
	}
}

.mobile-topnav {
	display: none;
	z-index: var(--z-nav);
}

.hamburger {
	margin-top: 5px;
	display: none;
	flex-direction: column;
	cursor: pointer;
	gap: 8px;
	padding: 10px;
	z-index: 100;
}

.hamburger span {
	width: 30px;
	height: 2px;
	background-color: var(--color-surface);
	border-radius: 2px;
}

.mobile-menu {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: var(--color-text);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 3rem;
	clip-path: inset(0 0 100% 0);
	visibility: hidden;
	z-index: 10;
}

.mobile-nav-item {
	color: var(--color-bg);
	font-size: var(--size-heading);
	cursor: pointer;
	opacity: 0;
	font-family: var(--font-family-serif);
	background-color: transparent;
	border: none;
	padding: 0;
	appearance: none;
	-webkit-appearance: none;
	outline: none;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
	opacity: 1;
}

.mobile-footer {
	display: none;
}

/* Responsive Overrides */
@media (max-width: 768px) {
	.mobile-topnav {
		display: flex;
		gap: var(--space-20);
		padding: var(--space-20);
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		background-color: var(--color-text);
		z-index: var(--z-nav);
	}
	.hamburger {
		display: flex;
	}

	.mobile-footer {
		display: block;
		flex-shrink: 0;
		margin-top: auto;
		padding: 24px var(--space-20) 36px;
		border-top: 1px solid var(--color-border-soft);
	}

	.mobile-footer-inner {
		display: flex;
		justify-content: space-between;
		align-items: center;
		flex-wrap: wrap;
		gap: 8px;
	}

	.mobile-footer-ig {
		font-style: normal;
		font-size: 13px;
		opacity: 0.6;
		display: flex;
		align-items: center;
		gap: 5px;
	}

	.about-text {
		margin-top: calc(20px + 87px);
	}

	.mobile-footer-ig ion-icon {
		font-size: 15px;
		vertical-align: middle;
	}

	.mobile-footer-meta {
		display: flex;
		align-items: center;
		gap: 6px;
		font-size: 13px;
		opacity: 0.45;
	}

	.footer-dot {
		opacity: 0.5;
	}

	.mobile-footer-meta a {
		font-style: normal;
	}

	.main {
		overflow: auto;
		display: block;
	}
	.toptitle .text2 {
		display: none;
	}
	.title-grid {
		padding-bottom: 90px;
		gap: 0;
	}

	.page-header {
		margin-top: calc(20px + 87px);
	}
	.horizontal1 {
		margin-bottom: 0px;
		display: none;
	}
	.horizontal2 h1:last-child {
		display: none;
	}

	.text p:first-child {
		display: none;
	}
	.text {
		margin-top: 15px;
		font-size: 18px !important;
		line-height: 1.5;
		border-top: 2.5px solid var(--color-text);
		padding-top: var(--space-40);
	}
	p.onlyShowOnMobile {
		font-family: var(--font-family-serif);
		font-size: var(--size-heading);
	}
	.onlyShowOnMobile {
		display: block;
	}
	.graphic {
		flex-grow: unset;
		margin-top: calc(80px + 50px);
		background-size: contain;
		background-position: center center;
		height: 30vh;
		background-image: url(./images/logo.svg);
		-webkit-mask-image: none;
		mask-image: none;
	}
	h1 {
		line-height: 0.95;
	}
	.page-header,
	.gallery-grid,
	.about-container {
		padding: var(--space-20);
	}
	.bottom-nav {
		display: none;
	}
}

.impressum-link {
	text-decoration: none;
	color: var(--color-text);
}
