/*
Theme Name: Cyventine
Theme URI: http://localhost:8888/
Author: Cyventine
Description: Minimal placeholder theme with a centered Cyventine logo on the brand gradient.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: cyventine
*/

:root {
	--cyventine-blue: #144b93;
	--cyventine-teal: #027b53;
	--cyventine-mid: #0c7078;
}

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

html {
	min-height: 100%;
	background: var(--cyventine-mid);
}

body.cyventine-placeholder-page {
	min-height: 100vh;
	min-height: 100svh;
	margin: 0;
	overflow: hidden;
	color: #fff;
	background: var(--cyventine-mid);
}

.cyventine-placeholder {
	--cyventine-gradient-angle: 100deg;

	display: grid;
	position: relative;
	overflow: hidden;
	width: 100%;
	min-height: 100vh;
	min-height: 100svh;
	padding: 40px 24px;
	place-items: center;
	background-color: var(--cyventine-mid);
	background-image: linear-gradient(var(--cyventine-gradient-angle), var(--cyventine-blue) 0%, var(--cyventine-mid) 50%, var(--cyventine-teal) 100%);
	background-position: center;
	background-repeat: no-repeat;
	background-size: 100% 100%;
}

.cyventine-placeholder__logo {
	display: block;
	width: min(330px, 64vw);
	max-width: 100%;
	height: auto;
	pointer-events: none;
	-webkit-user-drag: none;
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
	animation: cyventine-logo-fade-in 1400ms ease-out 160ms both;
}

@keyframes cyventine-logo-fade-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cyventine-placeholder__logo {
		animation: none;
	}
}

body.admin-bar .cyventine-placeholder {
	min-height: calc(100vh - 32px);
	min-height: calc(100svh - 32px);
}

@supports (min-height: 100dvh) {
	body.cyventine-placeholder-page,
	.cyventine-placeholder {
		min-height: 100dvh;
	}

	body.admin-bar .cyventine-placeholder {
		min-height: calc(100dvh - 32px);
	}
}

@media (max-width: 782px) {
	body.admin-bar .cyventine-placeholder {
		min-height: calc(100vh - 46px);
		min-height: calc(100svh - 46px);
	}

	@supports (min-height: 100dvh) {
		body.admin-bar .cyventine-placeholder {
			min-height: calc(100dvh - 46px);
		}
	}
}

@media (max-width: 600px) {
	.cyventine-placeholder {
		padding: 32px 24px;
	}

	.cyventine-placeholder__logo {
		width: min(210px, 76vw);
	}
}
