/*
Theme Name: TL2026
Description: Custom TIGERLYFE theme based on the 2026 Adobe XD designs.
Author: CZECHCLICK
Version: 0.12.0
Text Domain: tl2026
*/

:root {
	--header-height: 66.049px;
	--header-width: 1452px;
	--gold: #ecdc78;
	--admin-offset: 0px;
	color-scheme: dark;
}

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

html {
	background: #000;
}

body {
	margin: 0;
	/* Keep the negative background layer above the page canvas, below all content. */
	isolation: isolate;
	background: #000;
	color: #e3e3e3;
	font-family: Roboto, Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

/* An empty fixed element avoids iOS background-attachment and tall-child clipping.
 * Existing PNGs already contain the XD opacity and blur; no live blur or scroll JS.
 * XD sizes and relative offsets stay intact; the pair is centered vertically.
 * lvh stays stable as Safari's bars move.
 * Keep html/body free of transforms, filters and layout/paint containment. */
.site-backdrop {
	--glow-unit: min(calc(100vw / 1920), 1px);
	--glow-left: max(0px, calc((100vw - 1920px) / 2));
	position: fixed;
	z-index: -1;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	height: 100lvh;
	pointer-events: none;
	background-color: #000;
	background-image:
		url("assets/xd-export/home-desktop/pink%20blur.png"),
		url("assets/xd-export/home-desktop/blue%20blur.png");
	background-repeat: no-repeat;
	background-size:
		calc(1429 * var(--glow-unit)) calc(1515 * var(--glow-unit)),
		calc(1177 * var(--glow-unit)) calc(1247 * var(--glow-unit));
	background-position:
		calc(var(--glow-left) + 367 * var(--glow-unit)) calc(50% - 29.5 * var(--glow-unit)),
		calc(var(--glow-left) + 121 * var(--glow-unit)) calc(50% + 163.5 * var(--glow-unit));
	/* The XD pair spans y=-312..1262, with group center y=475.
	 * Background-position 50% centers each image; retain its offset from that center. */
	/* Composite just the decoration, never a wrapper around the fixed layer. */
	transform: translateZ(0);
}

/* Move the cached composition, not the image pixels or blur. The small zoom
 * provides enough overscan that drifting never reveals a hard viewport edge. */
@keyframes ambient-drift {
	0%, 100% {
		transform: translate3d(0, 0, 0) scale(1.12) rotate(0deg);
	}
	35% {
		transform: translate3d(min(4vw, 64px), max(-4vh, -36px), 0) scale(1.2) rotate(2deg);
	}
	70% {
		transform: translate3d(max(-3vw, -48px), min(4vh, 36px), 0) scale(1.16) rotate(-1.5deg);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.site-backdrop {
		animation: ambient-drift 20s ease-in-out infinite;
	}

	html.menu-open .site-backdrop {
		animation-play-state: paused;
	}
}

a {
	color: inherit;
}

[hidden] {
	display: none !important;
}

:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 5px;
}

.skip-link {
	position: fixed;
	z-index: 100001;
	top: calc(var(--admin-offset) + 8px);
	left: 16px;
	padding: 12px 20px;
	transform: translateY(-200%);
	background: #000;
	color: var(--gold);
}

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

.admin-bar {
	--admin-offset: 32px;
}

.site-header {
	position: sticky;
	z-index: 1000;
	top: var(--admin-offset);
	background: rgb(0 0 0 / 50%);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
}

.site-header__inner {
	position: relative;
	z-index: 1;
	width: min(calc(100% - 48px), var(--header-width));
	height: var(--header-height);
	margin-inline: auto;
}

.site-header__wordmark {
	position: absolute;
	top: 10.359px;
	left: 0;
	display: flex;
	align-items: center;
	width: 137.302px;
	height: 44px;
}

.site-header__wordmark img {
	display: block;
	width: 137.302px;
	height: auto;
}

.site-header__monogram {
	position: absolute;
	top: 11.98px;
	left: calc(50% + 3px);
	display: flex;
	align-items: center;
	width: 50.198px;
	height: 44.042px;
	transform: translateX(-50%);
}

.site-header__monogram img {
	display: block;
	width: 50.198px;
	height: 40.042px;
}

.menu-toggle {
	position: absolute;
	top: 12px;
	right: 0;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: transparent;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.menu-toggle__line {
	position: absolute;
	top: 11px;
	left: 0;
	width: 44px;
	height: 4px;
	border-radius: 2px;
	background: linear-gradient(90deg, #785b1a, #d4bf71);
	transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle__line:nth-child(2) {
	top: 20px;
}

.menu-toggle__line:nth-child(3) {
	top: 29px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:first-child {
	transform: translateY(9px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:last-child {
	transform: translateY(-9px) rotate(-45deg);
}

/* The original site's overlay, mirrored to the right of the new XD header. */
.site-navigation {
	font-family: "Avenir Menu", Roboto, Arial, sans-serif;
	background: rgb(0 0 0 / 86%);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

.site-header--enhanced .site-navigation {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	height: calc(100dvh - var(--header-height) - var(--admin-offset));
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
}

.site-navigation__inner {
	display: flex;
	justify-content: flex-end;
	width: min(calc(100% - 48px), var(--header-width));
	min-height: 100%;
	margin-inline: auto;
}

.site-navigation__panel {
	width: min(100%, 360px);
	padding-block: 20px 32px;
	text-align: right;
}

.site-header--menu-open .site-navigation {
	animation: menu-backdrop-in 220ms ease-out both;
}

.site-header--menu-open .site-navigation__panel {
	animation: menu-panel-in 240ms ease-out both;
}

html.menu-open,
html.menu-open body {
	overflow: hidden;
	overscroll-behavior: none;
}

html.menu-open body {
	position: fixed;
	top: var(--menu-body-top, 0px);
	left: 0;
	width: 100%;
	padding-top: var(--header-height);
	padding-right: var(--menu-scrollbar-width, 0px);
}

html.menu-open .site-header {
	position: fixed;
	left: 0;
	right: var(--menu-scrollbar-width, 0px);
}

.site-menu,
.site-menu .sub-menu {
	display: grid;
	gap: 17px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-menu a {
	display: block;
	width: fit-content;
	min-height: 44px;
	margin-left: auto;
	padding: 8px 0;
	color: #cbcbcb;
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 28px;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 160ms ease;
}

.site-menu a:hover,
.site-menu a:focus-visible,
.site-menu .current-menu-item > a {
	color: var(--gold);
}

.site-menu .sub-menu {
	gap: 8px;
	padding-block: 12px;
	padding-inline-end: 20px;
}

.menu-socials {
	display: flex;
	justify-content: flex-end;
	gap: 2px;
	margin: 27px -13px 0 0;
	padding: 0;
	list-style: none;
}

.menu-socials a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
}

.menu-socials img {
	display: block;
	width: 18px;
	height: 18px;
	transition: filter 160ms ease;
}

.menu-socials a:hover img,
.menu-socials a:focus-visible img {
	filter: brightness(1.7) sepia(1) saturate(1.5);
}

@keyframes menu-backdrop-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes menu-panel-in {
	from { opacity: 0; transform: translateX(32px); }
	to { opacity: 1; transform: translateX(0); }
}

.home-stage {
	min-height: calc(100svh - var(--header-height));
}

.site-content {
	width: min(calc(100% - 48px), 1200px);
	min-height: calc(100svh - var(--header-height));
	margin-inline: auto;
	padding-block: 48px;
}

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

/* Shared XD footer: 183 × 35 buttons; the mobile version stacks both menus. */
.site-footer {
	position: relative;
	padding: 45px 24px 32px;
	background: #000;
	color: #fff;
	text-align: center;
}

.footer-discover,
.footer-pages,
.footer-socials {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-discover {
	gap: 16px;
}

/* Compact size variant of the shared TL button component. */
.footer-discover {
	--button-width: 183px;
	--button-height: 35px;
	--button-font-size: 12px;
	--button-padding-y: 8px;
	--button-glow: #029cfe;
}

.footer-pages a {
	font-size: 12px;
	font-weight: 900;
	line-height: 16px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
}

.footer-pages-nav {
	margin-top: 20px;
}

.footer-pages {
	gap: 24px;
}

.footer-pages a {
	display: block;
	padding-block: 8px;
}

.footer-pages a:hover,
.footer-pages a[aria-current="page"] {
	color: var(--gold);
}

.footer-socials {
	gap: 12px;
	margin-top: 26px;
}

.footer-socials a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
}

.footer-socials img {
	display: block;
	width: 35.7px;
	height: 35.7px;
}

.footer-socials a:hover img {
	filter: brightness(1.5);
}

.footer-copyright {
	margin: 24px 0 0;
	font-size: 8px;
	font-weight: 300;
	line-height: 10px;
	letter-spacing: 0.05em;
}

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

/* At the supplied 390px artboard: wordmark x=19, monogram x=173.9, menu x=321. */
@media (max-width: 767px) {
	.site-footer {
		padding-top: 48px;
		padding-bottom: 20px;
	}

	.footer-discover {
		flex-direction: column;
		gap: 15px;
	}

	.footer-pages-nav {
		margin-top: 13px;
	}

	.footer-pages {
		flex-direction: column;
		gap: 0;
	}

	.footer-socials {
		gap: 2px;
		margin-top: 15px;
	}

	.footer-socials img {
		width: 30px;
		height: 30px;
	}

	.footer-copyright {
		margin-top: 25px;
	}

	.site-backdrop {
		--glow-unit: min(calc(100vw / 390), 1.5px);
		--glow-left: max(0px, calc((100vw - 585px) / 2));
		background-image:
			url("assets/xd-export/home-mobile/pink%20blur.png"),
			url("assets/xd-export/home-mobile/blue%20blur.png");
		background-size:
			calc(669 * var(--glow-unit)) calc(710 * var(--glow-unit)),
			calc(551 * var(--glow-unit)) calc(584 * var(--glow-unit));
		background-position:
			calc(var(--glow-left) - 73 * var(--glow-unit)) calc(50% - 13.5 * var(--glow-unit)),
			calc(var(--glow-left) - 188 * var(--glow-unit)) calc(50% + 76.5 * var(--glow-unit));
		/* Mobile group bounds: y=-84..653, center y=284.5. */
	}

	.site-header__inner,
	.site-navigation__inner {
		width: auto;
		margin-left: 19px;
		margin-right: 25px;
	}

	.site-header__wordmark {
		top: 12px;
		width: 107.258px;
	}

	.site-header__wordmark img {
		width: 107.258px;
	}

	.site-header__monogram {
		/* The asymmetric side insets shift the inner midpoint 3px to the left. */
		left: calc(50% + 7px);
	}
}

@media (max-width: 600px) {
	.admin-bar {
		/* WordPress's admin toolbar scrolls away at this width. */
		--admin-offset: 0px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.menu-toggle__line,
	.site-menu a,
	.menu-socials img {
		transition: none;
	}

	.site-header--menu-open .site-navigation,
	.site-header--menu-open .site-navigation__panel {
		animation: none;
	}
}
