@font-face {
	font-family: Comfortaa;
	src: url("assets/comfortaa.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}

:root {
	color-scheme: light dark;
	--background: #08090e;
	--text: #f5f5f7;
	--secondary: #b5b5cd;
	--accent: #b4a0ff;
	--hover: #e0d7ff;
	--domain: #a29bcc;
	--headline-accent: #d1c1ff;
	--description: #c0bfd6;
	--footer-text: #aca8cb;
	--footer-border: #777196;
	--page-glow: #14132b55;
	--map-filter: none;
	--brand-filter: drop-shadow(0 0 9px #8c6dfb65);
	--gutter: clamp(24px, 3.65vw, 64px);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	background: var(--background);
	color: var(--text);
}

/* Keep the original night palette; native media queries also follow live preference changes. */
@media (prefers-color-scheme: light) {
	:root {
		--background: #f8f7fc;
		--text: #222035;
		--secondary: #55506b;
		--accent: #6550ae;
		--hover: #4f358f;
		--domain: #655780;
		--headline-accent: #6550ae;
		--description: #55506b;
		--footer-text: #5f5876;
		--footer-border: #c1bbd2;
		--page-glow: #ded5f455;
		/* Darken the existing transparent artwork so coastlines remain visible on light surfaces. */
		--map-filter: brightness(0.55) saturate(1.4);
		/* Preserve the indigo artwork's original color without the nighttime glow. */
		--brand-filter: none;
	}
}

* { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: 3px; }
::selection { background: #5856c7; color: white; }

.page {
	max-width: 1920px;
	min-height: 100svh;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	background: radial-gradient(ellipse at 50% 62%, var(--page-glow), transparent 65%);
}

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px var(--gutter);
	position: relative;
	z-index: 2;
}

.brand { display: flex; align-items: center; gap: 13px; }
.brand picture, .brand img { display: block; }
.brand img { object-fit: contain; filter: var(--brand-filter); }
.brand-name { font-family: Comfortaa, sans-serif; font-size: 32px; letter-spacing: -1.8px; }
.brand-domain { font-family: inherit; font-size: 20px; letter-spacing: -1px; color: var(--domain); }
nav { display: flex; gap: clamp(24px, 4vw, 62px); font-size: 15px; color: var(--secondary); }
nav a, footer a { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; }
a svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

main { flex: 1; position: relative; }
.hero-copy { position: relative; z-index: 1; text-align: center; padding: 5px var(--gutter) 0; }
h1 { margin: 0; font-size: clamp(48px, 6.1vw, 94px); font-weight: 760; letter-spacing: -0.04em; line-height: 0.95; }
h1 span { color: var(--headline-accent); }
.hero-copy p { margin: 19px auto 18px; font-size: clamp(16px, 1.55vw, 24px); line-height: 1.5; color: var(--description); }
.world {
	position: relative;
	width: 100%;
	max-width: 1600px;
	margin: -7px auto 18px;
	aspect-ratio: 1440 / 520;
	/* Contain the decorative sweep so it never creates horizontal scrolling. */
	overflow: hidden;
	mask-image: linear-gradient(transparent, black 6%, black 91%, transparent);
}
.world-map { position: relative; display: block; width: 100%; height: 100%; object-fit: fill; filter: var(--map-filter); }
.world-atmosphere { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, #5545b11f, transparent 65%); }
.world-sweep { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, #a19cff08 48%, #aaa3ff18 50%, #a19cff08 52%, transparent 60%); transform: translateX(-100%); animation: survey 18s linear infinite; pointer-events: none; }
/* Provide the generated locations to screen readers without changing the map layout. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@keyframes survey { 0%, 12% { transform: translateX(-100%); } 75%, 100% { transform: translateX(100%); } }

footer { display: flex; align-items: center; justify-content: space-between; margin: 0 var(--gutter); padding: 8px 0 20px; border-top: 1px solid var(--footer-border); color: var(--footer-text); font-size: 15px; }
footer p { margin: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 10; padding: 12px 18px; background: var(--text); color: var(--background); }
.skip-link:focus { top: 16px; }

/* Keep the complete world visible on phones rather than cropping future locations. */
@media (min-width: 701px) and (max-width: 1000px) {
	main { display: flex; flex-direction: column; justify-content: center; }
	.world { margin-top: 24px; }
}
@media (max-width: 700px) {
	.site-header { padding-block: 22px; }
	.brand { gap: 8px; }
	.brand img { width: 28px; height: 28px; }
	.brand-name { font-size: 26px; }
	.brand-domain { font-size: 16px; }
	nav { gap: 18px; font-size: 13px; }
	nav a { gap: 5px; }
	nav svg { width: 12px; height: 12px; }
	main { display: flex; flex-direction: column; justify-content: center; }
	.hero-copy { padding-top: 32px; }
	h1 { font-size: clamp(40px, 8.5vw, 59px); line-height: 1.06; letter-spacing: -0.05em; }
	.hero-copy p { max-width: 300px; margin-top: 22px; margin-bottom: 25px; }
	.world { margin: 30px auto 44px; }
	footer { font-size: 12px; padding-bottom: 18px; gap: 16px; flex-wrap: wrap; }
	footer a { gap: 6px; }
}
@media (max-width: 360px) {
	.site-header { flex-wrap: wrap; gap: 12px; }
	nav { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
	.world-sweep { display: none; animation: none; }
}
