:root {
	--bg: #0b0b12;
	--fg: #e9e9f2;
	--muted: #8c8ca3;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
}

body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 2.5rem;
	padding: 2rem 1rem;
	overflow-x: hidden;
	background: radial-gradient(ellipse at 50% 40%, #16162a 0%, var(--bg) 70%);
	color: var(--fg);
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Loggan ---------- */

svg.art {
	width: min(78vw, 420px);
	height: auto;
	overflow: visible;
	margin-bottom: 2.25rem;
	cursor: default;
	user-select: none;
	-webkit-user-select: none;
}

svg.art * {
	cursor: default;
	user-select: none;
	-webkit-user-select: none;
}

.art text {
	text-anchor: middle;
	dominant-baseline: central;
	font-family: "Limelight", "Righteous", sans-serif;
	font-size: 300px;
}

.art .layer {
	mix-blend-mode: screen;
	transform-origin: 0 0;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
	filter: url(#glow);
}

/* Startvinklar (JS slumpar dem vid laddning, men det här är reservläget) */
.rot-35 { rotate: 35deg; }
.rot-50 { rotate: 50deg; }
.rot-140 { rotate: 140deg; }
.rot-n20 { rotate: -20deg; }
.rot-n70 { rotate: -70deg; }
.rot-n110 { rotate: -110deg; }

.par {
	transition: transform 0.25s ease-out;
}

@keyframes spinA {
	to { transform: rotate(360deg); }
}

@keyframes spinB {
	to { transform: rotate(-360deg); }
}

@keyframes breathe {
	0%, 100% { opacity: 0.55; }
	50% { opacity: 1; }
}

.a {
	animation: spinA 60s linear infinite, breathe 7s ease-in-out infinite;
}

.b {
	animation: spinB 90s linear infinite, breathe 9s ease-in-out infinite reverse;
}

.c {
	animation: spinA 120s linear infinite, breathe 11s ease-in-out infinite;
}

.d {
	animation: spinB 150s linear infinite, breathe 13s ease-in-out infinite;
}

/* ---------- Länkar ---------- */

.links {
	margin: 0;
	font-family: "Orbitron", ui-sans-serif, system-ui, sans-serif;
	font-weight: 500;
	font-size: clamp(0.68rem, 2.7vw, 0.85rem);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
	text-align: center;
	line-height: 2;
}

.links a {
	color: var(--fg);
	text-decoration: none;
	padding: 0 0.35rem;
	white-space: nowrap;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s, color 0.2s;
}

.links a:hover,
.links a:focus-visible {
	border-color: currentColor;
	color: #fff;
}

.links .sep {
	opacity: 0.5;
}

/* ---------- Minskad rörelse ---------- */

@media (prefers-reduced-motion: reduce) {
	.a, .b, .c, .d {
		animation: none;
	}

	.par {
		transition: none;
	}
}
