/*
Theme Name: AnchorHub Landing
Description: Public front door for AnchorHub — one quiet page with a Sign in button. Nautical dark-teal, matching the AnchorHub Authentik login.
Author: AnchorHub
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: anchorhub-landing
*/

:root {
	--ah-ink: #e7f0f5;
	--ah-muted: #a9bdc8;
	--ah-faint: #8fa6b3;
	--ah-teal: #2dd4bf;
	--ah-sky: #38bdf8;
	--ah-coral: #ff7a59;
	--ah-deep: #04141a;
}

html, body { min-height: 100%; }

body {
	margin: 0;
	color: var(--ah-ink);
	background:
		radial-gradient(1100px 700px at 22% 18%, rgba(45,212,191,0.12), transparent 60%),
		radial-gradient(900px 650px at 82% 78%, rgba(56,189,248,0.10), transparent 60%),
		linear-gradient(160deg, #050c14 0%, #0a1826 45%, #071019 100%);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
}

.wp-site-blocks {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
	padding: 0 !important;
}

/* chart rings + swell lines, drawn behind everything */
.wp-site-blocks::before,
.wp-site-blocks::after {
	content: "";
	position: absolute;
	pointer-events: none;
	z-index: 0;
}
.wp-site-blocks::before {
	left: 50%;
	top: 46%;
	width: 1400px;
	height: 1400px;
	transform: translate(-50%, -50%);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 1400' fill='none' stroke='%238fa6b3' stroke-opacity='0.07'%3E%3Ccircle cx='700' cy='700' r='260'/%3E%3Ccircle cx='700' cy='700' r='380'/%3E%3Ccircle cx='700' cy='700' r='520'/%3E%3Ccircle cx='700' cy='700' r='680'/%3E%3Cline x1='700' y1='0' x2='700' y2='1400'/%3E%3Cline x1='0' y1='700' x2='1400' y2='700'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wp-site-blocks::after {
	left: 0;
	right: 0;
	bottom: 20px;
	height: 110px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 110' preserveAspectRatio='none' fill='none' stroke-width='1.5'%3E%3Cpath d='M0 20 C 180 0, 300 40, 480 20 S 780 0, 960 20 S 1260 40, 1440 15' stroke='%232dd4bf' stroke-opacity='0.16'/%3E%3Cpath d='M0 52 C 200 34, 320 72, 520 52 S 820 34, 1000 52 S 1280 72, 1440 48' stroke='%2338bdf8' stroke-opacity='0.12'/%3E%3Cpath d='M0 84 C 160 68, 340 102, 540 84 S 860 66, 1040 84 S 1300 100, 1440 80' stroke='%238fa6b3' stroke-opacity='0.08'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* ---- the landing column ---- */
.ah-landing {
	position: relative;
	z-index: 1;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 48px 24px 64px;
	margin: 0 !important;
	max-width: none !important;
}
.ah-landing > * { margin-block: 0; }

.ah-mark { line-height: 0; margin-bottom: 28px !important; }
.ah-mark svg { width: 112px; height: 112px; }

.ah-wordmark {
	font-family: var(--wp--preset--font-family--fraunces);
	font-weight: 600;
	font-size: clamp(48px, 7vw, 76px);
	line-height: 1;
	letter-spacing: -0.5px;
	background: linear-gradient(90deg, #eaf6f4, var(--ah-teal) 60%, var(--ah-sky));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.ah-tagline {
	margin-top: 20px !important;
	font-size: clamp(17px, 1.6vw, 20px);
	line-height: 1.5;
	color: var(--ah-muted);
}

.ah-actions { margin-top: 44px !important; justify-content: center; }

.ah-signin .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 56px;
	padding: 0 34px;
	box-sizing: border-box;
	border-radius: 14px;
	background: linear-gradient(90deg, #1fb8a6, #34a6d6);
	color: var(--ah-deep);
	font-size: 17px;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 14px 34px rgba(45,212,191,0.26);
	transition: filter 0.15s ease;
}
.ah-signin .wp-block-button__link::before {
	content: "";
	width: 20px;
	height: 20px;
	background-color: var(--ah-deep);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ah-signin .wp-block-button__link:hover,
.ah-signin .wp-block-button__link:focus {
	filter: brightness(1.08);
	color: var(--ah-deep);
}
.ah-signin .wp-block-button__link:focus-visible {
	outline: 3px solid rgba(45,212,191,0.55);
	outline-offset: 4px;
}

.ah-note {
	margin-top: 18px !important;
	font-size: 14px;
	color: var(--ah-faint);
}

/* ---- footer ---- */
.ah-footer {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	padding: 0 56px 32px !important;
	margin: 0 !important;
	font-size: 13px;
	color: var(--ah-faint);
}
.ah-footer p { margin: 0; }

@media (max-width: 640px) {
	.ah-mark svg { width: 84px; height: 84px; }
	.ah-mark { margin-bottom: 22px !important; }
	.ah-actions { align-self: stretch; margin-top: 40px !important; }
	.ah-signin { width: 100%; }
	.ah-signin .wp-block-button__link { width: 100%; justify-content: center; }
	.ah-footer { flex-direction: column; text-align: center; font-size: 12px; padding: 0 24px 28px !important; gap: 4px; }
	.wp-site-blocks::after { bottom: 70px; height: 70px; }
}

/* ---- plain pages/posts, should any exist on this site ---- */
.ah-content {
	position: relative;
	z-index: 1;
	flex-grow: 1;
	padding: 64px 24px;
}
.ah-content a { color: var(--ah-teal); }
.ah-content h1, .ah-content h2 { font-family: var(--wp--preset--font-family--fraunces); }
