/*
Theme Name:        Aicsol Coming Soon
Theme URI:         https://aicsol.co.zw
Author:            Aicsol
Author URI:        https://aicsol.co.zw
Description:       A single-page "Launching soon" holding page for aicsol.co.zw. The Aicsol logo sits at the centre of a night-sky backdrop. Its three golden spheres light up one after another, then a meteor launches from the largest sphere and races around the purple ring. Headline, domain label, contact email and footer text are editable under Appearance → Customize → Coming Soon Page. The theme also runs standalone: upload the folder to any PHP host and open index.php.
Version:           1.0.0
Requires at least: 5.8
Tested up to:      6.8
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:       aicsol-coming-soon
Tags:              one-column, custom-colors, dark, full-width-template
*/

/* ---------- Fonts (bundled, SIL Open Font License) ---------- */
@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/playfair-display-latin-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/montserrat-latin-500-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/montserrat-latin-600-normal.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
	--ac-ink: #f4f0ff;
	--ac-ink-soft: rgba(226, 218, 255, 0.62);
	--ac-gold: #f0b452;
	--ac-gold-soft: #ffe3a3;
	--ac-violet: #5a33bf;
	--ac-night-0: #030110;
	--ac-night-1: #07041a;
	--ac-night-2: #0f0733;
	--ac-night-3: #1c0e50;
	--ac-pad: clamp(3.75rem, 9vh, 6rem);
	--ac-text-block: clamp(6rem, 14vmin, 8.5rem);
	/* Logo fills what's left after the text rows, capped for very large screens */
	--ac-logo: clamp(200px, min(58vmin, calc(100vh - 2 * var(--ac-text-block) - 2 * var(--ac-pad))), 470px);
	--ac-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--ac-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

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

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

body.ac-body {
	min-height: 100vh;
	min-height: 100svh;
	overflow-x: hidden;
	color: var(--ac-ink);
	font-family: var(--ac-sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background-color: var(--ac-night-1);
	background-image:
		radial-gradient(120% 85% at 50% 46%, var(--ac-night-3) 0%, var(--ac-night-2) 34%, var(--ac-night-1) 66%, var(--ac-night-0) 100%);
}

/* ---------- Backdrop layers ---------- */
.ac-stars {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	pointer-events: none;
	z-index: 0;
}

.ac-nebula {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(38vmax 26vmax at 50% 48%, rgba(108, 70, 232, 0.26), transparent 70%),
		radial-gradient(18vmax 12vmax at 44% 54%, rgba(240, 180, 82, 0.08), transparent 70%),
		linear-gradient(to top, rgba(90, 51, 191, 0.16), transparent 32%);
	animation: ac-breathe 9s ease-in-out infinite alternate;
}

@keyframes ac-breathe {
	from { opacity: 0.75; transform: scale(1); }
	to   { opacity: 1;    transform: scale(1.04); }
}

/* ---------- Stage ---------- */
.ac-stage {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	min-height: 100svh;
	display: grid;
	place-items: center;
	padding: var(--ac-pad) 1.25rem;
}

@supports (height: 100svh) {
	:root {
		--ac-logo: clamp(200px, min(58vmin, calc(100svh - 2 * var(--ac-text-block) - 2 * var(--ac-pad))), 470px);
	}
}

.admin-bar .ac-stage {
	min-height: calc(100svh - 32px);
}

@media screen and (max-width: 782px) {
	.admin-bar .ac-stage {
		min-height: calc(100svh - 46px);
	}
}

.ac-top,
.ac-foot {
	position: absolute;
	left: 0;
	right: 0;
	text-align: center;
	padding: 0 1rem;
}

.ac-top {
	top: clamp(1.6rem, 5vh, 2.75rem);
}

.ac-foot {
	bottom: clamp(1.25rem, 4vh, 2.25rem);
}

.ac-domain {
	display: inline-block;
	font-family: var(--ac-sans);
	font-weight: 600;
	font-size: clamp(0.72rem, 1.5vw, 0.95rem);
	letter-spacing: 0.42em;
	margin-right: -0.42em; /* balance trailing tracking */
	text-transform: uppercase;
	color: rgba(244, 240, 255, 0.92);
	text-decoration: none;
	animation: ac-drop 1.2s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.ac-foot p {
	margin: 0;
	font-weight: 500;
	font-size: 0.7rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--ac-ink-soft);
	animation: ac-fade 1.4s 1.4s ease both;
}

/*
 * Centre column: [spacer][logo][text]. The spacer and the text row share the
 * same height, so the logo sits exactly in the middle of the screen.
 */
.ac-center {
	display: grid;
	grid-template-rows: var(--ac-text-block) auto var(--ac-text-block);
	justify-items: center;
	align-items: start;
	width: 100%;
}

.ac-logo {
	grid-row: 2;
	position: relative;
	width: var(--ac-logo);
	height: var(--ac-logo);
	animation: ac-arrive 1.6s cubic-bezier(0.16, 0.8, 0.24, 1) both;
}

.ac-logo-svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
	filter: drop-shadow(0 0 18px rgba(110, 76, 232, 0.35));
}

.ac-fx {
	position: absolute;
	inset: -25%;
	width: 150%;
	height: 150%;
	pointer-events: none;
	mix-blend-mode: screen;
}

@keyframes ac-arrive {
	from { opacity: 0; transform: scale(0.9) rotate(-4deg); filter: blur(6px); }
	to   { opacity: 1; transform: none; filter: none; }
}

.ac-text {
	grid-row: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: clamp(0.4rem, 2vh, 1.25rem);
	text-align: center;
}

.ac-headline {
	margin: 0;
	font-family: var(--ac-serif);
	font-weight: 400;
	font-size: clamp(2.1rem, 5.6vw, 3.9rem);
	line-height: 1.1;
	letter-spacing: 0.01em;
	color: var(--ac-ink);
	background: linear-gradient(100deg, var(--ac-ink) 0%, var(--ac-ink) 42%, var(--ac-gold-soft) 50%, var(--ac-ink) 58%, var(--ac-ink) 100%);
	background-size: 280% 100%;
	background-position: 100% 0;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: ac-rise 1.3s 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.ac-headline.is-shining {
	animation: ac-shine 1.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes ac-shine {
	from { background-position: 100% 0; }
	to   { background-position: 0% 0; }
}

.ac-rule {
	display: block;
	width: 64px;
	height: 1px;
	margin-top: clamp(0.9rem, 2.2vh, 1.4rem);
	background: linear-gradient(90deg, transparent, var(--ac-gold), transparent);
	transform-origin: center;
	animation: ac-grow 1.2s 1.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.ac-contact {
	margin-top: clamp(0.9rem, 2.2vh, 1.3rem);
	font-weight: 500;
	font-size: 0.8rem;
	letter-spacing: 0.16em;
	color: var(--ac-ink-soft);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.25s ease, border-color 0.25s ease;
	animation: ac-fade 1.2s 1.5s ease both;
}

.ac-contact:hover,
.ac-contact:focus-visible {
	color: var(--ac-gold-soft);
	border-bottom-color: rgba(240, 180, 82, 0.6);
	outline: none;
}

@keyframes ac-rise {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: none; }
}

@keyframes ac-drop {
	from { opacity: 0; transform: translateY(-10px); }
	to   { opacity: 1; transform: none; }
}

@keyframes ac-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes ac-grow {
	from { opacity: 0; transform: scaleX(0); }
	to   { opacity: 1; transform: scaleX(1); }
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Short landscape screens (phones on their side) */
@media (max-height: 520px) and (orientation: landscape) {
	:root,
	:root:root {
		--ac-pad: 2.4rem;
		--ac-text-block: 4.2rem;
		--ac-logo: clamp(150px, calc(100svh - 2 * 4.2rem - 2 * 2.4rem), 300px);
	}
	.ac-headline {
		font-size: clamp(1.6rem, 4vw, 2.4rem);
	}
	.ac-contact {
		display: none;
	}
}

/* Narrow portrait phones */
@media (max-width: 480px) {
	:root,
	:root:root {
		--ac-logo: min(80vw, 340px);
	}
	.ac-domain {
		letter-spacing: 0.32em;
		margin-right: -0.32em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ac-nebula,
	.ac-domain,
	.ac-foot p,
	.ac-logo,
	.ac-headline,
	.ac-headline.is-shining,
	.ac-rule,
	.ac-contact {
		animation: none !important;
	}
}
