/*
Theme Name: Orion Audio
Author: Orion Audio
Description: A "coming soon" landing page for Orion Audio custom guitar amplifiers. Black and brushed-silver design matched to the Orion Audio logo. All text is editable in Appearance → Editor.
Version: 1.0.0
Requires at least: 6.6
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: orion-audio
Tags: one-column, block-styles, full-site-editing, dark
*/

/* ---------- Base ---------- */

html {
	background: #000;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

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

::selection {
	background: var(--wp--preset--color--silver);
	color: #000;
}

/* ---------- Landing page stage ---------- */

.orion-stage {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
	margin: 0;
	isolation: isolate;
	overflow: hidden;
}

/* Soft "spotlight on brushed metal" glow behind the logo */
.orion-stage::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(ellipse 60% 45% at 50% 40%, rgba(240, 237, 236, 0.075), transparent 70%),
		radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.9) 100%);
}

.orion-hero {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding-block: clamp(3rem, 12vh, 8rem) clamp(2rem, 6vh, 4rem);
}

.orion-hero > * {
	width: 100%;
}

/* Logo */
.orion-hero .orion-logo {
	max-width: min(760px, 100%);
	margin-inline: auto;
}

.orion-hero .orion-logo img {
	display: block;
	width: 100%;
	height: auto;
}

/* Tagline — mirrors the wide, thin lettering under the logo */
.orion-tagline {
	margin-block-start: clamp(0.75rem, 2vw, 1.25rem) !important;
	color: var(--wp--preset--color--chrome);
	font-size: clamp(0.6875rem, 0.55rem + 0.6vw, 0.9375rem);
	font-weight: 400;
	line-height: 1.9;
	letter-spacing: 0.42em;
	text-transform: uppercase;
	/* letter-spacing adds space after the last letter; balance it so the line is truly centered */
	padding-inline-start: 0.42em;
	text-wrap: balance;
}

/* "Coming Soon" heading */
.orion-hero h1 {
	margin-block-start: clamp(3rem, 9vh, 5.5rem) !important;
	font-size: clamp(1.0625rem, 0.75rem + 1.6vw, 1.75rem);
	font-weight: 400;
	letter-spacing: 0.5em;
	line-height: 1.4;
}

/* Heading style: "Flanked lines" (choose it in the block's Styles panel) */
.is-style-orion-flanked {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(0.875rem, 3vw, 1.75rem);
	max-width: 680px;
	margin-inline: auto;
	padding-inline-start: 0.5em;
	text-align: center;
	color: var(--wp--preset--color--chrome);
	background-image: linear-gradient(100deg, #8a8480 0%, #f4f1ef 30%, #a9a39f 50%, #ffffff 70%, #8a8480 100%);
	background-size: 250% 100%;
	background-position: 100% 0;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	caret-color: var(--wp--preset--color--chrome);
}

/* Tapered rules like the ones beside AUDIO in the logo */
.is-style-orion-flanked::before,
.is-style-orion-flanked::after {
	content: "";
	flex: 1 1 0;
	min-width: 1.5rem;
	height: 2px;
	border-radius: 2px;
	-webkit-text-fill-color: initial;
}

.is-style-orion-flanked::before {
	background: linear-gradient(90deg, transparent, rgba(240, 237, 236, 0.85));
	/* the heading's own left padding is optical centering, offset it for the rule */
	margin-inline-start: -0.5em;
}

.is-style-orion-flanked::after {
	background: linear-gradient(270deg, transparent, rgba(240, 237, 236, 0.85));
}

/* Short message */
.orion-message {
	max-width: 34em;
	margin-inline: auto;
	margin-block-start: clamp(1rem, 3vh, 1.75rem) !important;
	color: var(--wp--preset--color--silver);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 300;
	letter-spacing: 0.02em;
	text-wrap: balance;
}

/* ---------- Footer ---------- */

.orion-footer {
	padding-block: 1.75rem calc(1.75rem + env(safe-area-inset-bottom, 0px));
	text-align: center;
	color: var(--wp--preset--color--steel);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 400;
	letter-spacing: 0.3em;
	text-transform: uppercase;
}

.orion-footer p {
	margin: 0;
	padding-inline-start: 0.3em;
}

.orion-footer a {
	color: inherit;
}

/* ---------- Other pages (blog posts, regular pages) ---------- */

.orion-header {
	padding-block: 2rem;
	border-bottom: 1px solid rgba(191, 186, 183, 0.15);
}

.orion-header .orion-header-logo {
	width: clamp(140px, 30vw, 220px);
	margin-inline: auto;
}

.orion-content {
	padding-block: clamp(2.5rem, 8vh, 5rem);
}

.orion-content .wp-block-post-title {
	font-size: var(--wp--preset--font-size--x-large);
}

.orion-content .wp-block-post-title a {
	text-decoration: none;
}

/* ---------- Motion ---------- */

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

@keyframes orion-sheen {
	0%, 15% { background-position: 100% 0; }
	55%, 100% { background-position: 0% 0; }
}

@media (prefers-reduced-motion: no-preference) {
	.orion-hero > * {
		animation: orion-rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}
	.orion-hero > *:nth-child(2) { animation-delay: 0.25s; }
	.orion-hero > *:nth-child(3) { animation-delay: 0.5s; }
	.orion-hero > *:nth-child(4) { animation-delay: 0.7s; }

	.orion-hero .is-style-orion-flanked {
		animation:
			orion-rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s both,
			orion-sheen 7s ease-in-out 1.6s infinite alternate;
	}
}

/* Keep the editor still, so editing doesn't fight the animations */
.editor-styles-wrapper .orion-hero > *,
.editor-styles-wrapper .orion-hero .is-style-orion-flanked {
	animation: none !important;
}

/* ---------- Small phones ---------- */

@media (max-width: 480px) {
	.orion-tagline {
		letter-spacing: 0.28em;
		padding-inline-start: 0.28em;
	}

	.orion-hero h1 {
		letter-spacing: 0.38em;
	}

	.is-style-orion-flanked {
		padding-inline-start: 0.38em;
	}

	.is-style-orion-flanked::before {
		margin-inline-start: -0.38em;
	}
}
