/*
Theme Name: Opium Coming Soon
Description: Single-page "Coming Soon" placeholder for the Opium app. Every front-end URL shows this page; the WordPress dashboard keeps working as usual.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: opium-coming-soon
*/

@font-face {
	font-family: "Oswald";
	src: url("fonts/Oswald-VariableFont_wght.ttf") format("truetype");
	font-weight: 200 700;
	font-display: swap;
}

:root {
	--ink: #ffffff;
	--ink-muted: rgba(255, 255, 255, 0.55);
	--rule: rgba(255, 255, 255, 0.35);
	--page: #000000;
}

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

html,
body {
	margin: 0;
	min-height: 100%;
}

body {
	background: var(--page);
	color: var(--ink);
	font-family: "Oswald", "Arial Narrow", sans-serif;
	-webkit-font-smoothing: antialiased;
}

.coming-soon {
	position: relative;
	isolation: isolate;
	display: grid;
	place-items: center;
	align-content: center;
	gap: clamp(1.25rem, 4vh, 2rem);
	min-height: 100vh;
	min-height: 100svh;
	padding: 4rem 1rem 5rem;
	overflow: hidden;
	text-align: center;
}

/* The splash artwork from the app, softened behind a dark vignette. */
.coming-soon::before,
.coming-soon::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
}

.coming-soon::before {
	background: url("assets/background.jpg") center / cover no-repeat;
	filter: blur(4px) saturate(0.9);
	transform: scale(1.08);
}

.coming-soon::after {
	background:
		radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.92) 75%),
		rgba(0, 0, 0, 0.25);
}

.coming-soon__logo {
	display: block;
	width: clamp(160px, 42vw, 280px);
	height: auto;
	/* The logo is white on solid black; screen blending drops the black box. */
	mix-blend-mode: screen;
}

.coming-soon__title {
	margin: 0;
	padding-top: clamp(1.25rem, 4vh, 2rem);
	border-top: 1px solid var(--rule);
	font-size: clamp(1.5rem, 6vw, 2.75rem);
	font-weight: 300;
	line-height: 1.1;
	letter-spacing: 0.35em;
	/* Match the trailing letter-spacing so the text sits optically centred. */
	padding-left: 0.35em;
	text-transform: uppercase;
}

.coming-soon__footer {
	position: absolute;
	right: 0;
	bottom: 1.5rem;
	left: 0;
	color: var(--ink-muted);
	font-size: 0.8125rem;
	font-weight: 300;
	letter-spacing: 0.12em;
	text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
	.coming-soon__logo,
	.coming-soon__title {
		animation: coming-soon-in 1.2s ease-out both;
	}

	.coming-soon__title {
		animation-delay: 0.3s;
	}

	@keyframes coming-soon-in {
		from {
			opacity: 0;
			transform: translateY(12px);
		}
	}
}
