@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&family=Manrope:wght@400;500;600;700&display=swap');

:root {
	--ink: #050615;
	--ink-soft: #0b0b25;
	--mist: #d7e8ff;
	--muted: #8e9cbf;
	--violet: #a47aff;
	--electric: #82f6e7;
	--rose: #ff8fd8;
	--line: rgba(208, 226, 255, 0.18);
	--glass: rgba(13, 16, 47, 0.55);
	--shadow: 0 20px 55px rgba(0, 0, 0, 0.42), 0 2px 0 rgba(255, 255, 255, 0.05) inset;
}

* { box-sizing: border-box; }

html {
	background: var(--ink);
	scroll-behavior: smooth;
	scrollbar-color: var(--violet) var(--ink);
	scrollbar-width: thin;
}

body {
	min-width: 320px;
	margin: 0;
	overflow-x: hidden;
	color: var(--mist);
	font-family: "Manrope", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.75;
	background:
		radial-gradient(circle at 4% 6%, rgba(130, 246, 231, 0.22), transparent 16rem),
		radial-gradient(circle at 87% 13%, rgba(164, 122, 255, 0.24), transparent 25rem),
		radial-gradient(ellipse at 45% 50%, #141147 0%, #07071d 42%, #03040e 100%);
}

body::before, body::after, .extra1, .extra2, .extra3, .extra4, .extra5, .extra6 {
	position: fixed;
	z-index: -2;
	pointer-events: none;
	content: "";
}

body::before {
	inset: 0;
	opacity: 0.52;
	background-image:
		radial-gradient(circle at 12% 17%, #fff 0 1px, transparent 1.7px),
		radial-gradient(circle at 23% 58%, #d4faff 0 1px, transparent 1.5px),
		radial-gradient(circle at 41% 8%, #fff 0 1px, transparent 1.5px),
		radial-gradient(circle at 67% 26%, #fff 0 1px, transparent 1.5px),
		radial-gradient(circle at 78% 76%, #cab9ff 0 1.5px, transparent 2px),
		radial-gradient(circle at 93% 44%, #fff 0 1px, transparent 1.5px);
	background-size: 210px 220px, 280px 290px, 330px 290px, 400px 390px, 330px 340px, 290px 300px;
	animation: star-drift 45s linear infinite alternate;
}

body::after {
	inset: -35vmax;
	z-index: -3;
	background: conic-gradient(from 35deg, transparent 0 15%, rgba(88, 75, 222, 0.14) 20%, transparent 28% 54%, rgba(236, 103, 226, 0.12) 63%, transparent 71%);
	filter: blur(70px);
	animation: aura-orbit 28s linear infinite;
}

.extra1 {
	top: 17vh;
	left: -10rem;
	width: 29rem;
	aspect-ratio: 1;
	border: 1px solid rgba(131, 246, 231, 0.2);
	border-radius: 48% 52% 65% 35% / 33% 42% 58% 67%;
	box-shadow: 0 0 70px rgba(65, 237, 224, 0.17), 0 0 160px rgba(130, 92, 255, 0.12) inset;
	filter: blur(0.2px);
	animation: float-orb 18s ease-in-out infinite;
}

.extra2 {
	right: -14rem;
	top: 42vh;
	width: 34rem;
	aspect-ratio: 1;
	border: 1px solid rgba(255, 156, 223, 0.16);
	border-radius: 50%;
	box-shadow: 0 0 100px rgba(236, 101, 209, 0.12), 0 0 100px rgba(154, 126, 255, 0.17) inset;
	animation: float-orb 23s ease-in-out -8s infinite reverse;
}

.extra3 {
	top: 9rem;
	left: 49%;
	width: 1px;
	height: 82vh;
	background: linear-gradient(transparent, rgba(184, 233, 255, 0.24), transparent);
	box-shadow: 0 0 14px 2px rgba(157, 204, 255, 0.21);
	transform: rotate(19deg);
}

.extra4 {
	inset: 0;
	z-index: 20;
	opacity: 0.08;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
	mix-blend-mode: soft-light;
}

.extra5, .extra6 { display: none; }

::selection { color: #060513; background: var(--electric); }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #050615; }
::-webkit-scrollbar-thumb { border: 2px solid #050615; border-radius: 999px; background: linear-gradient(var(--rose), var(--violet), var(--electric)); }

.page-wrapper {
	position: relative;
	width: min(1380px, calc(100% - 3rem));
	margin: 0 auto;
	padding: 2rem 0 6rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
	gap: clamp(2rem, 5vw, 6rem);
}

a {
	position: relative;
	color: var(--electric);
	font-weight: 700;
	text-decoration: none;
	transition: color 180ms ease, text-shadow 180ms ease;
}

a:not(.design-name)::after {
	position: absolute;
	right: 0;
	bottom: -0.08em;
	left: 0;
	height: 1px;
	content: "";
	background: currentColor;
	transform: scaleX(0.25);
	transform-origin: left;
	transition: transform 240ms cubic-bezier(.2, .8, .2, 1);
}

a:hover, a:focus-visible { color: #fff; text-shadow: 0 0 11px var(--electric), 0 0 23px rgba(130, 246, 231, 0.48); }
a:hover::after, a:focus-visible::after { transform: scaleX(1); }
a:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }
abbr { cursor: help; text-decoration: none; color: #f3ccff; }

.intro, .main { grid-column: 1; }
.intro { padding-top: 0.25rem; }

header {
	position: relative;
	min-height: min(76vh, 780px);
	padding: clamp(4rem, 13vw, 10rem) clamp(0.25rem, 3vw, 3rem) 5rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	isolation: isolate;
	animation: rise-in 900ms cubic-bezier(.16, 1, .3, 1) both;
}

header::before {
	position: absolute;
	top: 50%; left: 50%; z-index: -1;
	width: min(56vw, 700px); aspect-ratio: 1;
	content: "";
	border: 1px solid rgba(222, 236, 255, 0.28);
	border-radius: 49% 51% 46% 54% / 58% 40% 60% 42%;
	background: radial-gradient(circle at 50% 50%, rgba(196, 172, 255, 0.24), rgba(116, 91, 230, 0.11) 36%, transparent 68%);
	box-shadow: 0 0 50px rgba(159, 100, 255, 0.22), 0 0 120px rgba(76, 124, 255, 0.16) inset;
	transform: translate(-50%, -50%) rotate(-10deg);
	animation: portal-warp 13s ease-in-out infinite alternate;
}

header::after {
	position: absolute;
	top: 50%; left: 50%; z-index: -1;
	width: min(45vw, 560px); aspect-ratio: 1;
	content: "";
	border: 1px dashed rgba(130, 246, 231, 0.35);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	animation: spin 36s linear infinite;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 400; }

h1 {
	max-width: 8ch;
	margin-bottom: 0.2rem;
	color: #f7f3ff;
	font-family: "Instrument Serif", Georgia, serif;
	font-size: clamp(5rem, 14vw, 11.5rem);
	font-style: italic;
	line-height: 0.78;
	letter-spacing: 0;
	text-shadow: 0 0 2px white, 0 0 25px rgba(203, 181, 255, 0.75), 0 0 80px rgba(113, 87, 254, 0.42);
}

h2 {
	max-width: 24ch;
	margin: 1.7rem 0 0 0.75rem;
	color: #bfcde8;
	font-family: "DM Mono", monospace;
	font-size: clamp(0.75rem, 1.4vw, 1rem);
	font-weight: 400;
	letter-spacing: 0.15em;
	line-height: 1.5;
	text-transform: uppercase;
}

h2 abbr { color: var(--electric); }

.summary, .preamble, .main > div {
	position: relative;
	width: min(100%, 860px);
	margin-bottom: clamp(4.5rem, 9vw, 9rem);
	padding: clamp(1.75rem, 4vw, 3.75rem);
	border: 1px solid var(--line);
	border-radius: 3px;
	background: linear-gradient(135deg, rgba(26, 27, 67, 0.62), rgba(7, 8, 32, 0.62));
	box-shadow: var(--shadow);
	backdrop-filter: blur(18px) saturate(120%);
	animation: appear linear both;
	animation-timeline: view();
	animation-range: entry 5% cover 28%;
}

.summary {
	margin: -3.5rem 0 clamp(5.5rem, 12vw, 10rem) auto;
	border-color: rgba(130, 246, 231, 0.25);
	clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
}

.summary::before, .preamble::before, .main > div::before {
	position: absolute;
	top: 0; left: 0;
	width: 4.5rem; height: 3px;
	content: "";
	background: linear-gradient(90deg, var(--electric), transparent);
	box-shadow: 0 0 16px var(--electric);
}

.summary p:last-child { margin-bottom: 0; font-family: "DM Mono", monospace; font-size: 0.77rem; line-height: 1.75; color: var(--muted); }

.preamble {
	margin-left: clamp(0rem, 8vw, 7rem);
	background: linear-gradient(150deg, rgba(54, 27, 85, 0.5), rgba(8, 12, 38, 0.72));
	clip-path: polygon(0 0, 97% 4%, 100% 95%, 4% 100%);
}

h3 {
	margin-bottom: 1.5rem;
	font-family: "DM Mono", monospace;
	font-size: 0.76rem;
	font-weight: 500;
	letter-spacing: 0.17em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--electric);
}

h3::before { margin-right: 0.7rem; color: var(--rose); content: "//"; }
p { max-width: 70ch; margin-bottom: 1.35rem; color: #c5cce1; }
.main { padding-top: 3rem; }
.main > div:nth-child(even) { margin-left: auto; }

.main > div:nth-child(1) { background: linear-gradient(120deg, rgba(9, 47, 71, 0.64), rgba(10, 12, 43, 0.7)); clip-path: polygon(0 3%, 97% 0, 100% 97%, 3% 100%); }
.main > div:nth-child(2) { width: min(100%, 780px); margin-right: clamp(0rem, 7vw, 6rem); background: linear-gradient(130deg, rgba(58, 21, 74, 0.64), rgba(11, 10, 39, 0.7)); clip-path: polygon(3% 0, 100% 5%, 96% 100%, 0 95%); }
.main > div:nth-child(3) { width: min(100%, 630px); background: linear-gradient(145deg, rgba(22, 49, 77, 0.63), rgba(11, 9, 40, 0.74)); clip-path: polygon(0 0, 100% 7%, 93% 100%, 5% 94%); }
.main > div:nth-child(4) { background: linear-gradient(130deg, rgba(41, 22, 75, 0.7), rgba(9, 14, 41, 0.72)); clip-path: polygon(4% 0, 100% 0, 95% 97%, 0 100%); }

.requirements p[role="contentinfo"] {
	margin: 2.5rem -0.5rem -0.5rem;
	padding: 1.2rem 0.5rem 0;
	border-top: 1px solid rgba(208, 226, 255, 0.16);
	font-family: "DM Mono", monospace;
	font-size: 0.71rem;
	line-height: 1.7;
	color: var(--muted);
}

footer {
	width: min(100%, 860px);
	margin: 0 0 4rem auto;
	padding: 1rem;
	display: flex;
	justify-content: center;
	gap: 0.6rem;
	border: 1px solid rgba(208, 226, 255, 0.18);
	background: rgba(10, 12, 38, 0.56);
	box-shadow: var(--shadow);
	backdrop-filter: blur(16px);
	clip-path: polygon(4% 0, 96% 0, 100% 26%, 100% 74%, 96% 100%, 4% 100%, 0 74%, 0 26%);
}

footer a {
	width: 2.5rem;
	aspect-ratio: 1;
	display: grid;
	place-items: center;
	border: 1px solid rgba(208, 226, 255, 0.16);
	border-radius: 50%;
	font-family: "DM Mono", monospace;
	font-size: 0.65rem;
	color: var(--muted);
	transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease;
}

footer a::after { display: none; }
footer a:hover, footer a:focus-visible { border-color: var(--electric); background: rgba(130, 246, 231, 0.14); color: #fff; transform: translateY(-4px) rotate(8deg); }

.sidebar { grid-column: 2; grid-row: 1 / span 2; padding-top: 14rem; }

.sidebar .wrapper {
	position: sticky;
	top: 2rem;
	border: 1px solid rgba(208, 226, 255, 0.19);
	background: linear-gradient(160deg, rgba(38, 31, 79, 0.57), rgba(7, 9, 31, 0.75));
	box-shadow: 0 27px 60px rgba(0, 0, 0, 0.43), 0 1px rgba(255, 255, 255, 0.08) inset;
	backdrop-filter: blur(18px) saturate(120%);
	clip-path: polygon(0 0, 100% 3%, 96% 100%, 4% 97%);
}

.sidebar .wrapper > div { padding: 1.7rem 1.5rem; border-bottom: 1px solid rgba(208, 226, 255, 0.14); }
.sidebar .wrapper > div:last-child { border-bottom: 0; }
.sidebar h3 { margin-bottom: 1.2rem; font-size: 0.65rem; color: #d9d2ff; }
.sidebar h3::before { content: "*"; }
.sidebar ul { margin: 0; padding: 0; list-style: none; }
.sidebar li { margin-bottom: 0.65rem; font-family: "DM Mono", monospace; font-size: 0.7rem; line-height: 1.45; color: var(--muted); }
.sidebar li:last-child { margin-bottom: 0; }

.design-selection li { padding: 0.5rem 0 0.65rem; border-bottom: 1px solid rgba(208, 226, 255, 0.09); }
.design-selection li:last-child { border-bottom: 0; }
.design-name, .designer-name { display: block; }
.design-name { font-family: "Manrope", sans-serif; font-size: 0.82rem; line-height: 1.35; color: #e6edff; }
.design-name::before { margin-right: 0.45rem; color: var(--rose); content: "["; }
.design-name::after { color: var(--rose); content: "]"; }
.designer-name { padding-left: 1.1rem; font-size: 0.64rem; font-weight: 400; color: var(--violet); }
.design-archives li, .zen-resources li { position: relative; padding-left: 1rem; }
.design-archives li::before, .zen-resources li::before { position: absolute; left: 0; color: var(--rose); content: "+"; }

@keyframes rise-in { from { opacity: 0; transform: translateY(3rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes appear { from { opacity: 0; transform: translateY(4rem) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes aura-orbit { to { transform: rotate(360deg); } }
@keyframes star-drift { to { background-position: 90px -80px, -50px 120px, 130px 60px, -140px -60px, 110px -100px, -70px 60px; } }
@keyframes portal-warp {
	0% { border-radius: 49% 51% 46% 54% / 58% 40% 60% 42%; transform: translate(-50%, -50%) rotate(-10deg) scale(0.94); }
	100% { border-radius: 62% 38% 61% 39% / 43% 57% 43% 57%; transform: translate(-50%, -50%) rotate(18deg) scale(1.08); }
}
@keyframes float-orb { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(5vw, -7vh, 0) rotate(22deg); } }

@media (max-width: 980px) {
	.page-wrapper { width: min(100% - 2rem, 760px); display: block; }
	header { min-height: 68svh; }
	.sidebar { padding-top: 0; }
	.sidebar .wrapper { position: relative; top: auto; margin-top: 1rem; display: grid; grid-template-columns: 2fr 1fr 1fr; }
	.sidebar .wrapper > div { border-bottom: 0; border-right: 1px solid rgba(208, 226, 255, 0.14); }
	.sidebar .wrapper > div:last-child { border-right: 0; }
}

@media (max-width: 640px) {
	body { font-size: 15px; }
	.page-wrapper { width: min(100% - 1.25rem, 760px); padding-top: 0.6rem; }
	header { min-height: 72svh; padding: 5rem 0.5rem 3rem; }
	header::before { width: 85vw; }
	header::after { width: 72vw; }
	h1 { font-size: clamp(4.1rem, 20vw, 7rem); }
	h2 { margin-left: 0.3rem; letter-spacing: 0.1em; }
	.summary, .preamble, .main > div { margin-bottom: 3.5rem; padding: 1.5rem 1.35rem; clip-path: none; }
	.summary, .preamble, .main > div:nth-child(even) { margin-right: 0; margin-left: 0; }
	.main { padding-top: 0; }
	footer { margin-bottom: 3rem; }
	.sidebar .wrapper { display: block; clip-path: none; }
	.sidebar .wrapper > div { border-right: 0; border-bottom: 1px solid rgba(208, 226, 255, 0.14); }
	.extra3 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}