/* Aethon — main styles. Light/dark tokens; html.ae-dark is set before first paint (inc/setup.php). */

:root {
	--ae-bg: #e0deda;
	--ae-text: #1a1a1a;
	--ae-text-2: #6b6b6b;
	--ae-accent: #c45d3e;
	--ae-light: #eae7e2;
	--ae-rule: rgba(0, 0, 0, 0.08);
	--ae-footer-bg: rgba(224, 222, 218, 0.8);
	--ae-toggle-bg: rgba(255, 255, 255, 0.25);
	--ae-toggle-bg-hover: rgba(255, 255, 255, 0.45);
	--ae-toggle-border: rgba(0, 0, 0, 0.15);
	--ae-font-text: 'Inter', system-ui, sans-serif;
	--ae-font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
	--ae-gutter: 48px;
	--ae-admin-bar: 0px;
}

html.ae-dark {
	--ae-bg: #141414;
	--ae-text: #e8e8e8;
	--ae-text-2: #888888;
	--ae-accent: #e07050;
	--ae-light: #1e1e1e;
	--ae-rule: rgba(255, 255, 255, 0.08);
	--ae-footer-bg: rgba(20, 20, 20, 0.8);
	--ae-toggle-bg: rgba(0, 0, 0, 0.35);
	--ae-toggle-bg-hover: rgba(0, 0, 0, 0.55);
	--ae-toggle-border: rgba(255, 255, 255, 0.15);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--ae-font-text);
	background: var(--ae-bg);
	color: var(--ae-text);
	overflow-x: hidden;
	transition: background-color 0.4s, color 0.4s;
}

body.admin-bar {
	--ae-admin-bar: 32px;
}

@media (max-width: 782px) {
	body.admin-bar {
		--ae-admin-bar: 46px;
	}
}

h1,
h2,
h3,
p,
ul {
	margin: 0;
	padding: 0;
}

a {
	color: inherit;
}

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

.ae-skip-link {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 1000;
	padding: 8px 16px;
	background: var(--ae-text);
	color: var(--ae-bg);
}

.ae-skip-link:focus {
	left: 16px;
}

/* 3D SCENE */
.ae-scene {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	z-index: 1;
	cursor: grab;
	touch-action: pan-y;
}

.ae-scene:active {
	cursor: grabbing;
}

.ae-scroll {
	position: relative;
	z-index: 2;
	pointer-events: none;
}

.ae-scroll section {
	pointer-events: none;
}

.ae-scroll a,
.ae-scroll button,
.ae-info__block,
.ae-hero__content,
.ae-specs__grid {
	pointer-events: auto;
}

/* NAV */
.ae-nav {
	position: fixed;
	top: var(--ae-admin-bar);
	left: 0;
	width: 100%;
	z-index: 100;
	padding: 24px var(--ae-gutter);
	display: flex;
	justify-content: space-between;
	align-items: center;
	mix-blend-mode: difference;
	pointer-events: none;
}

.ae-nav a {
	pointer-events: auto;
}

.ae-nav__logo {
	font-family: var(--ae-font-head);
	font-weight: 700;
	font-size: 18px;
	color: #fff;
	letter-spacing: -0.5px;
	text-decoration: none;
}

.ae-nav .custom-logo {
	display: block;
	width: auto;
	max-height: 28px;
}

.ae-nav__links {
	display: flex;
	gap: 32px;
	margin-right: 60px;
}

.ae-nav__link {
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.ae-nav__link:hover,
.ae-nav__link:focus-visible {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* LIGHT / DARK TOGGLE */
.ae-mode-toggle {
	position: fixed;
	top: calc(20px + var(--ae-admin-bar));
	right: var(--ae-gutter);
	z-index: 200;
	width: 32px;
	height: 32px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--ae-toggle-border);
	background: var(--ae-toggle-bg);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.4s, border-color 0.4s;
}

.ae-mode-toggle:hover {
	background: var(--ae-toggle-bg-hover);
}

.ae-mode-toggle svg {
	width: 14px;
	height: 14px;
	fill: var(--ae-text);
	color: var(--ae-text);
	transition: fill 0.4s;
}

.ae-mode-toggle__sun,
html.ae-dark .ae-mode-toggle__moon {
	display: none;
}

html.ae-dark .ae-mode-toggle__sun {
	display: block;
}

/* SHARED */
.ae-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 3px;
	color: var(--ae-accent);
	margin-bottom: 16px;
	font-weight: 600;
}

/* HERO */
.ae-hero {
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: var(--ae-gutter);
	position: relative;
}

.ae-hero__content {
	max-width: 500px;
}

.ae-hero__title {
	font-family: var(--ae-font-head);
	font-size: 72px;
	font-weight: 700;
	line-height: 0.95;
	letter-spacing: -3px;
	margin-bottom: 20px;
}

.ae-hero__text {
	font-size: 15px;
	color: var(--ae-text-2);
	line-height: 1.7;
	max-width: 380px;
}

.ae-hero__hint {
	position: absolute;
	bottom: var(--ae-gutter);
	right: var(--ae-gutter);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.ae-hero__hint span {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--ae-text-2);
	writing-mode: vertical-rl;
}

.ae-hero__line {
	width: 1px;
	height: 60px;
	background: var(--ae-text-2);
	animation: ae-scroll-pulse 2s ease-in-out infinite;
}

@keyframes ae-scroll-pulse {
	0%,
	100% {
		opacity: 0.3;
		transform: scaleY(0.5);
	}
	50% {
		opacity: 1;
		transform: scaleY(1);
	}
}

/* INFO SECTIONS */
.ae-info {
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding: 80px var(--ae-gutter);
	position: relative;
}

.ae-info__block {
	max-width: 420px;
}

.ae-info--left .ae-info__block {
	margin-right: auto;
}

.ae-info--right .ae-info__block {
	margin-left: auto;
}

.ae-info__title {
	font-family: var(--ae-font-head);
	font-size: 42px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -1.5px;
	margin-bottom: 20px;
}

.ae-info p {
	font-size: 15px;
	color: var(--ae-text-2);
	line-height: 1.8;
}

.ae-stats {
	display: flex;
	gap: 40px;
	margin-top: 32px;
}

.ae-stat__number {
	font-family: var(--ae-font-head);
	font-size: 36px;
	font-weight: 700;
	color: var(--ae-text);
}

.ae-stat__label {
	font-size: 12px;
	color: var(--ae-text-2);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-top: 4px;
}

/* SPECS STRIP */
.ae-specs {
	min-height: 50vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px var(--ae-gutter);
}

.ae-specs__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--ae-rule);
	width: 100%;
	max-width: 1000px;
}

.ae-spec {
	background: var(--ae-bg);
	padding: 40px 32px;
	text-align: center;
	transition: background-color 0.4s;
}

.ae-spec__value {
	font-family: var(--ae-font-head);
	font-size: 28px;
	font-weight: 600;
	margin-bottom: 8px;
}

.ae-spec__name {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--ae-text-2);
}

/* FEATURES */
.ae-features__list {
	list-style: none;
	margin-top: 32px;
}

.ae-features__list li {
	padding: 20px 0;
	border-bottom: 1px solid var(--ae-rule);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	font-size: 15px;
}

.ae-features__dot {
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ae-accent);
}

/* FOOTER */
.ae-footer {
	position: relative;
	z-index: 2;
	padding: 60px var(--ae-gutter);
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	border-top: 1px solid var(--ae-rule);
	background: var(--ae-footer-bg);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.ae-footer__logo {
	font-family: var(--ae-font-head);
	font-weight: 700;
	font-size: 24px;
	letter-spacing: -1px;
}

.ae-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.ae-footer__link {
	font-size: 13px;
	color: var(--ae-text-2);
	text-decoration: none;
}

.ae-footer__link:hover,
.ae-footer__link:focus-visible {
	color: var(--ae-text);
}

.ae-footer__copy {
	font-size: 12px;
	color: var(--ae-text-2);
}

/* FADE-IN (only when the script runs; see ae_head_flags) */
.ae-js .ae-fade {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.ae-js .ae-fade.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* INNER PAGES (index.php) */
.ae-page {
	max-width: 760px;
	margin: 0 auto;
	padding: calc(140px + var(--ae-admin-bar)) 24px 96px;
	min-height: 70vh;
}

.ae-page__header {
	margin-bottom: 40px;
}

.ae-page__title {
	font-family: var(--ae-font-head);
	font-size: 48px;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -1.5px;
}

.ae-entry__media {
	margin: 0 0 40px;
}

.ae-entry__content {
	font-size: 17px;
	line-height: 1.8;
}

.ae-entry__content > * + * {
	margin-top: 1.2em;
}

.ae-entry__content h2,
.ae-entry__content h3 {
	font-family: var(--ae-font-head);
	letter-spacing: -0.5px;
	line-height: 1.2;
	margin-top: 2em;
}

.ae-entry__content a {
	color: var(--ae-accent);
}

.ae-list {
	list-style: none;
}

.ae-list__item {
	border-bottom: 1px solid var(--ae-rule);
}

.ae-list__link {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 20px 0;
	text-decoration: none;
}

.ae-list__title {
	font-family: var(--ae-font-head);
	font-size: 22px;
	font-weight: 600;
}

.ae-list__link:hover .ae-list__title {
	color: var(--ae-accent);
}

.ae-list__date {
	flex: none;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--ae-text-2);
}

/* RESPONSIVE */
@media (max-width: 768px) {
	:root {
		--ae-gutter: 24px;
	}

	.ae-nav {
		padding: 16px var(--ae-gutter);
	}

	.ae-nav__links,
	.ae-hero__hint {
		display: none;
	}

	.ae-mode-toggle {
		top: calc(12px + var(--ae-admin-bar));
	}

	.ae-hero__title {
		font-size: 48px;
	}

	.ae-info {
		padding: 60px var(--ae-gutter);
	}

	.ae-info__title {
		font-size: 32px;
	}

	.ae-specs__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ae-spec {
		padding: 32px 16px;
	}

	.ae-footer {
		padding: 40px var(--ae-gutter);
		flex-direction: column;
		align-items: flex-start;
	}

	.ae-page__title {
		font-size: 36px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.ae-js .ae-fade {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.ae-hero__line {
		animation: none;
	}
}
