/*
Theme Name: NUOIR Coming Soon
Theme URI: https://nuoir.space/
Description: A full-screen home and editorial pages for the independent ambient project NUOIR.
Version: 1.1.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: nuoir-coming-soon
*/

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

body {
	margin: 0;
	background: #04090f;
	color: #f6f5fa;
	font-family: system-ui, sans-serif;
}

a {
	color: inherit;
	text-underline-offset: .25em;
}

a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 4px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.nuoir-home {
	--nuoir-accent: #ffb84f;
	--nuoir-admin-height: 0px;
	--nuoir-screen: calc(100vh - var(--nuoir-admin-height));
	--nuoir-screen: calc(100svh - var(--nuoir-admin-height));
}

.admin-bar .nuoir-home {
	--nuoir-admin-height: 32px;
}

@media (max-width: 782px) {
	.admin-bar .nuoir-home {
		--nuoir-admin-height: 46px;
	}
}

.nuoir-stage {
	position: relative;
	display: grid;
	min-height: var(--nuoir-screen);
	place-items: center;
	isolation: isolate;
	background: radial-gradient(ellipse at 55% 50%, #151d2a, #04090f 79%);
}

.nuoir-frame {
	position: relative;
	width: min(100%, calc(var(--nuoir-screen) * 1.9));
	height: min(var(--nuoir-screen), 62.5vw);
	overflow: hidden;
}

.nuoir-art {
	position: absolute;
	top: 50%;
	left: 50%;
	width: max(100%, min(calc(var(--nuoir-screen) * 1.772824), 110.8015vw));
	aspect-ratio: 1670 / 942;
	transform: translate(-50%, -50%);
}

.nuoir-art picture,
.nuoir-art img {
	display: block;
	width: 100%;
	height: 100%;
}

.nuoir-glow {
	position: absolute;
	inset: 0 auto 0 57.1%;
	width: 7%;
	transform: translateX(-50%);
	background: linear-gradient(90deg, transparent, var(--nuoir-accent), transparent);
	opacity: .07;
	mix-blend-mode: screen;
	pointer-events: none;
	animation: nuoir-breathe 4.5s ease-in-out both;
}

@keyframes nuoir-breathe {
	0%, 100% { opacity: .07; }
	55% { opacity: .16; }
}

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

@media (max-aspect-ratio: 5/4) {
	.nuoir-frame {
		width: min(100%, calc(var(--nuoir-screen) * .75));
		height: min(var(--nuoir-screen), 177.7778vw);
	}

	.nuoir-art {
		width: max(100%, min(calc(var(--nuoir-screen) * .75), 133.3333vw));
		aspect-ratio: 3 / 4;
	}

	.nuoir-glow {
		left: 50%;
	}
}

.nuoir-stage--custom {
	grid-template: minmax(var(--nuoir-screen), auto) / minmax(0, 1fr);
}

.nuoir-stage--custom .nuoir-frame,
.nuoir-stage--custom .nuoir-art {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transform: none;
	aspect-ratio: auto;
}

.nuoir-stage--custom img {
	object-fit: cover;
}

.nuoir-identity {
	position: relative;
	max-width: min(calc(100% - 2rem), 37rem);
	margin: 1rem;
	padding: clamp(1.25rem, 4vw, 2.5rem);
	border-bottom: 2px solid var(--nuoir-accent);
	background: rgb(4 9 15 / .88);
	text-align: center;
	overflow-wrap: anywhere;
}

.nuoir-identity h1 {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 8vw, 5rem);
	font-weight: 500;
	letter-spacing: .15em;
}

.nuoir-identity .nuoir-logo {
	display: block;
	width: min(100%, 28rem);
	height: auto;
	max-height: 9rem;
	margin-inline: auto;
	object-fit: contain;
}

.nuoir-identity p {
	margin: .7rem 0 0;
	line-height: 1.5;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.nuoir-links {
	display: flex;
	justify-content: center;
	padding: .75rem 1rem;
	border-top: 1px solid #26303c;
}

.nuoir-links a {
	padding: .75rem;
	text-align: center;
	text-decoration-color: var(--nuoir-accent);
	overflow-wrap: anywhere;
}

.nuoir-content {
	width: min(100% - 2rem, 46rem);
	margin-inline: auto;
	padding-block: 2rem;
	line-height: 1.65;
	overflow-wrap: anywhere;
}

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

.nuoir-skip {
	position: fixed;
	z-index: 100000;
	inset-block-start: 1rem;
	inset-inline-start: 1rem;
	padding: .65rem 1rem;
	background: #161025;
	color: #fff;
	transform: translateY(-200%);
}

.nuoir-skip:focus {
	transform: none;
}

.nuoir-header {
	position: relative;
	z-index: 2;
	border-block-end: 1px solid rgb(194 178 225 / .2);
	background: rgb(4 9 15 / .85);
	color: #eeebf7;
}

.nuoir-header--home {
	position: absolute;
	inset-inline: 0;
}

.nuoir-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	width: min(100% - 2rem, 72rem);
	min-height: 3rem;
	margin-inline: auto;
}

.nuoir-wordmark {
	font-size: .83rem;
	font-weight: 600;
	letter-spacing: .2em;
	text-decoration: none;
}

.nuoir-menu {
	display: flex;
	flex-wrap: wrap;
	gap: .125rem clamp(.1rem, 1vw, .6rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.nuoir-menu a,
.nuoir-menu-toggle {
	display: flex;
	align-items: center;
	min-height: 2.75rem;
	padding: .4rem .75rem;
	border-radius: .25rem;
	color: inherit;
	font: inherit;
	font-size: .875rem;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.nuoir-menu-toggle {
	gap: .5rem;
	border: 1px solid rgb(194 178 225 / .24);
	background: transparent;
	cursor: pointer;
}

.nuoir-header [hidden] {
	display: none;
}

.nuoir-menu a:hover,
.nuoir-menu-toggle:hover {
	background: rgb(166 127 255 / .14);
}

.nuoir-menu [aria-current="page"],
.nuoir-menu .current-menu-item > a {
	background: rgb(166 127 255 / .18);
	box-shadow: inset 0 -1px #be9cf9;
	color: #eee2ff;
}

.nuoir-header :focus-visible {
	outline: 2px solid #d8bdff;
	outline-offset: 2px;
}

@media (max-width: 42rem) {
	.nuoir-header-inner {
		flex-wrap: wrap;
	}

	.nuoir-header--home:not(.nuoir-header--interactive):has(.nuoir-navigation) {
		position: relative;
	}

	.nuoir-navigation {
		width: 100%;
		padding-block-end: .4rem;
	}

	.nuoir-header--interactive .nuoir-navigation {
		position: absolute;
		inset: 100% 0 auto;
		max-height: 60vh;
		overflow: auto;
		padding: .5rem max(1rem, calc((100% - 72rem) / 2));
		border-block-end: 1px solid rgb(194 178 225 / .24);
		background: #0c0c19;
	}

	.nuoir-header--interactive .nuoir-menu {
		flex-direction: column;
	}
}

.nuoir-content {
	min-height: 60vh;
	padding-block: clamp(2.5rem, 9vw, 6rem);
	color: #ddd9e8;
	font-size: clamp(1rem, .95rem + .3vw, 1.125rem);
	line-height: 1.75;
}

.nuoir-content h1 {
	margin: 0 0 1.5rem;
	color: #f6f5fa;
	font: 400 clamp(2rem, 1.4rem + 3vw, 3.75rem)/1.12 Georgia, serif;
}

.nuoir-content h2,
.nuoir-content h3 {
	line-height: 1.3;
	color: #f6f5fa;
}

.nuoir-content a {
	color: #dbc5ff;
}

.nuoir-content blockquote {
	margin-inline: 0;
	padding-inline-start: 1rem;
	border-inline-start: 2px solid #9e77d7;
}
