/*
Theme Name:  Aurora Standby
Theme URI:   http://localhost/TESTSITE/
Author:      Mark
Description: A single-purpose, premium "Coming soon / Being updated" theme. One beautifully composed screen with an animated aurora backdrop, a glass panel, a 72-hour standby countdown and full Customizer control. No posts, no menus, no clutter.
Version:     1.0.0
Requires at least: 6.0
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: aurora-standby
Tags:        one-column, custom-logo, custom-colors, full-width-template
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	--as-bg:       #06070c;
	--as-ink:      #f5f7fc;
	--as-muted:    #98a1b8;
	--as-line:     rgba(255, 255, 255, 0.09);
	--as-accent:   #7c5cff;
	--as-accent-2: #22d3ee;
	--as-accent-3: #ff7a59;
	--as-radius:   28px;
	--as-shadow:   0 40px 120px -30px rgba(0, 0, 0, 0.9), inset 0 2px 0 0 rgba(255, 255, 255, 0.04);
	--as-sans:     "Segoe UI Variable Display", "Segoe UI", Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
	--as-serif:    "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
	--as-ease:     cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; }

body.aurora-standby {
	margin: 0;
	min-height: 100vh;
	min-height: 100svh;
	display: grid;
	place-items: center;
	padding: clamp(20px, 5vw, 64px);
	background: var(--as-bg);
	color: var(--as-ink);
	font-family: var(--as-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible {
	outline: 2px solid var(--as-accent-2);
	outline-offset: 3px;
	border-radius: 6px;
}

.as-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;
}

/* ==========================================================================
   3. Aurora backdrop
   ========================================================================== */

.as-aurora {
	position: fixed;
	inset: -20%;
	z-index: 0;
	pointer-events: none;
	filter: blur(90px) saturate(140%);
}

.as-aurora span {
	position: absolute;
	display: block;
	border-radius: 50%;
	opacity: 0.55;
	will-change: transform;
}

.as-aurora span:nth-child(1) {
	width: 46vmax;
	height: 46vmax;
	top: 2%;
	left: 4%;
	background: radial-gradient(circle at 50% 50%, var(--as-accent) 0%, rgba(124, 92, 255, 0) 68%);
	animation: as-drift-a 26s var(--as-ease) infinite alternate;
}

.as-aurora span:nth-child(2) {
	width: 40vmax;
	height: 40vmax;
	right: 2%;
	bottom: 0;
	opacity: 0.4;
	background: radial-gradient(circle at 50% 50%, var(--as-accent-2) 0%, rgba(34, 211, 238, 0) 68%);
	animation: as-drift-b 32s var(--as-ease) infinite alternate;
}

.as-aurora span:nth-child(3) {
	width: 34vmax;
	height: 34vmax;
	top: 36%;
	left: 42%;
	opacity: 0.28;
	background: radial-gradient(circle at 50% 50%, var(--as-accent-3) 0%, rgba(255, 122, 89, 0) 68%);
	animation: as-drift-c 38s var(--as-ease) infinite alternate;
}

@keyframes as-drift-a { to { transform: translate3d(14vw, 10vh, 0) scale(1.18); } }
@keyframes as-drift-b { to { transform: translate3d(-16vw, -12vh, 0) scale(1.24); } }
@keyframes as-drift-c { to { transform: translate3d(8vw, -16vh, 0) scale(0.86); } }

/* Vignette and grain sit above the aurora, below the content. */
.as-veil {
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		radial-gradient(120% 95% at 50% 8%, rgba(6, 7, 12, 0) 45%, rgba(6, 7, 12, 0.8) 100%),
		linear-gradient(180deg, rgba(6, 7, 12, 0.35) 0%, rgba(6, 7, 12, 0.05) 42%, rgba(6, 7, 12, 0.6) 100%);
}

.as-grain {
	position: fixed;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	opacity: 0.05;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   4. Panel
   ========================================================================== */

.as-stage {
	position: relative;
	z-index: 3;
	width: 100%;
	max-width: 760px;
}

.as-panel {
	position: relative;
	overflow: hidden;
	padding: clamp(32px, 6vw, 68px);
	text-align: center;
	border: 1px solid var(--as-line);
	border-radius: var(--as-radius);
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02) 42%, rgba(255, 255, 255, 0.045));
	-webkit-backdrop-filter: blur(28px) saturate(160%);
	backdrop-filter: blur(28px) saturate(160%);
	box-shadow: var(--as-shadow);
}

/* Hairline highlight across the top edge of the glass. */
.as-panel::before {
	content: "";
	position: absolute;
	top: 0;
	right: 12%;
	left: 12%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
}

/* ==========================================================================
   5. Content
   ========================================================================== */

.as-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 30px;
}

.as-brand img {
	max-height: 56px;
	width: auto;
}

.as-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 16px 7px 12px;
	border: 1px solid var(--as-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #cfd6e6;
}

.as-dot {
	position: relative;
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--as-accent-2);
	box-shadow: 0 0 12px var(--as-accent-2);
}

.as-dot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--as-accent-2);
	animation: as-ping 2.4s var(--as-ease) infinite;
}

@keyframes as-ping {
	0%   { transform: scale(1);   opacity: 0.7; }
	70%  { transform: scale(3.6); opacity: 0; }
	100% { transform: scale(3.6); opacity: 0; }
}

.as-title {
	margin: 26px 0 0;
	font-size: clamp(2.1rem, 6.4vw, 3.9rem);
	line-height: 1.06;
	font-weight: 600;
	letter-spacing: -0.035em;
	text-wrap: balance;
	background: linear-gradient(180deg, #ffffff 12%, #b9c0d4 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.as-title em {
	font-family: var(--as-serif);
	font-style: italic;
	font-weight: 400;
	letter-spacing: -0.01em;
}

.as-text {
	margin: 22px auto 0;
	max-width: 54ch;
	font-size: clamp(1rem, 1.6vw, 1.075rem);
	text-wrap: pretty;
	color: var(--as-muted);
}

/* Progress hairline with a travelling shimmer. */
.as-progress {
	position: relative;
	overflow: hidden;
	height: 2px;
	max-width: 320px;
	margin: 38px auto 0;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.08);
}

.as-progress::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 42%;
	height: 100%;
	border-radius: 2px;
	background: linear-gradient(90deg, transparent, var(--as-accent), var(--as-accent-2), transparent);
	animation: as-sweep 2.8s var(--as-ease) infinite;
}

/* Closing note — the quietest line on the page. */
.as-note {
	margin: 26px auto 0;
	max-width: 48ch;
	font-size: 13px;
	letter-spacing: 0.01em;
	text-wrap: pretty;
	color: rgba(152, 161, 184, 0.78);
}

@keyframes as-sweep {
	from { transform: translateX(-110%); }
	to   { transform: translateX(360%); }
}

/* ==========================================================================
   6. Countdown
   ========================================================================== */

.as-countdown {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(8px, 2vw, 14px);
	max-width: 440px;
	margin: 36px auto 0;
	padding: 0;
	list-style: none;
}

.as-countdown li {
	padding: 14px 8px 12px;
	border: 1px solid var(--as-line);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.03);
}

.as-count-num {
	display: block;
	font-size: clamp(1.5rem, 4vw, 2.1rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
	color: #fff;
}

.as-count-label {
	display: block;
	margin-top: 4px;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--as-muted);
}

/* ==========================================================================
   7. Entrance choreography
   ========================================================================== */

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

.as-panel     { animation: as-rise 1.1s var(--as-ease) both; }
.as-brand     { animation: as-rise 0.9s var(--as-ease) 0.14s both; }
.as-pill      { animation: as-rise 0.9s var(--as-ease) 0.22s both; }
.as-title     { animation: as-rise 0.9s var(--as-ease) 0.30s both; }
.as-text      { animation: as-rise 0.9s var(--as-ease) 0.38s both; }
.as-countdown { animation: as-rise 0.9s var(--as-ease) 0.46s both; }
.as-progress  { animation: as-rise 0.9s var(--as-ease) 0.52s both; }
.as-note      { animation: as-rise 0.9s var(--as-ease) 0.60s both; }

/* ==========================================================================
   8. Preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.as-panel,
	.as-brand,
	.as-pill,
	.as-title,
	.as-text,
	.as-countdown,
	.as-progress,
	.as-note {
		opacity: 1;
		transform: none;
	}
}

@media print {
	.as-aurora,
	.as-veil,
	.as-grain,
	.as-progress { display: none; }

	body.aurora-standby { background: #fff; color: #000; }
	.as-panel { border-color: #ccc; box-shadow: none; }
	.as-title { background: none; color: #000; -webkit-text-fill-color: #000; }
}
