@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Syne:wght@400;500;600;700;800&display=swap');

:root {
	--void: #070611;
	--void-blue: #0a0d1d;
	--ink: #eeebff;
	--soft-ink: #c4c0dc;
	--muted: #85819d;
	--cyan: #8ef5ff;
	--pink: #ff79c8;
	--violet: #ad8cff;
	--acid: #deff7a;
	--line: rgba(222, 216, 255, 0.18);
	--line-bright: rgba(222, 216, 255, 0.34);
	--display: 'Syne', 'Trebuchet MS', sans-serif;
	--mono: 'DM Mono', 'Courier New', monospace;
	--ease-silk: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
	background: var(--void);
	color-scheme: dark;
	scroll-behavior: smooth;
}

* {
	box-sizing: border-box;
}

*::selection {
	background: var(--cyan);
	color: var(--void);
}

body {
	position: relative;
	min-width: 320px;
	min-height: 100vh;
	margin: 0;
	overflow-x: hidden;
	background-color: var(--void);
	background-image:
		radial-gradient(ellipse at 14% 10%, rgba(142, 245, 255, 0.16) 0, rgba(142, 245, 255, 0) 27%),
		radial-gradient(ellipse at 86% 9%, rgba(255, 121, 200, 0.15) 0, rgba(255, 121, 200, 0) 24%),
		radial-gradient(ellipse at 49% 89%, rgba(222, 255, 122, 0.09) 0, rgba(222, 255, 122, 0) 30%),
		linear-gradient(126deg, #070611 0%, #0c0b1d 47%, #091522 100%),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 6rem),
		repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 6rem);
	background-attachment: fixed;
	background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
	color: var(--soft-ink);
	font-family: var(--display);
	font-size: 16px;
	line-height: 1.7;
	isolation: isolate;
}

body::before,
body::after {
	position: fixed;
	display: block;
	content: '';
	pointer-events: none;
}

body::before {
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(116deg, transparent 0 46.9%, rgba(142, 245, 255, 0.14) 47% 47.08%, transparent 47.18%),
		linear-gradient(116deg, transparent 0 72.7%, rgba(255, 121, 200, 0.12) 72.8% 72.88%, transparent 72.98%),
		linear-gradient(180deg, transparent 0 38%, rgba(222, 255, 122, 0.06) 38.1% 38.2%, transparent 38.3%);
	clip-path: polygon(0 0, 100% 0, 100% 75%, 82% 72%, 63% 83%, 38% 72%, 17% 89%, 0 78%);
	mix-blend-mode: screen;
	opacity: 0.72;
}

body::after {
	inset: -12%;
	z-index: -2;
	background: conic-gradient(
		from -28deg at 62% 24%,
		transparent 0deg 42deg,
		rgba(142, 245, 255, 0.12) 67deg,
		transparent 96deg 208deg,
		rgba(255, 121, 200, 0.1) 234deg,
		transparent 282deg
	);
	filter: blur(38px);
	mix-blend-mode: screen;
	opacity: 0.8;
	animation: void-drift 28s ease-in-out infinite alternate;
}

a {
	position: relative;
	color: var(--cyan);
	text-decoration-color: rgba(142, 245, 255, 0.42);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color 180ms ease, text-decoration-color 180ms ease, filter 180ms ease;
}

a:hover {
	color: var(--pink);
	text-decoration-color: var(--pink);
	filter: drop-shadow(0 0 0.65rem rgba(255, 121, 200, 0.42));
}

a:focus-visible {
	outline: 2px solid var(--acid);
	outline-offset: 5px;
}

abbr {
	text-decoration-color: var(--violet);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

p {
	max-width: 65ch;
	margin: 0 0 1.35rem;
}

.page-wrapper {
	position: relative;
	display: grid;
	grid-template-areas:
		'intro sidebar'
		'support sidebar';
	grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
	column-gap: clamp(3rem, 7vw, 8rem);
	max-width: 1500px;
	margin: 0 auto;
	padding: 0 clamp(1.25rem, 5vw, 5.5rem) 6rem;
}

.page-wrapper::before {
	position: absolute;
	top: 0;
	bottom: 0;
	left: clamp(1.25rem, 5vw, 5.5rem);
	display: block;
	width: 1px;
	content: '';
	background: linear-gradient(180deg, transparent, rgba(142, 245, 255, 0.34) 10%, rgba(255, 121, 200, 0.18) 72%, transparent);
	opacity: 0.8;
	transform-origin: top;
}

.page-wrapper::after {
	position: fixed;
	right: 1rem;
	bottom: 1.4rem;
	display: block;
	content: 'FIELD STUDY 08  /  CSS /  NO DOM ALTERATIONS';
	color: rgba(196, 192, 220, 0.52);
	font-family: var(--mono);
	font-size: 0.58rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	transform: rotate(-90deg) translateX(100%);
	transform-origin: bottom right;
	white-space: nowrap;
}

.intro {
	position: relative;
	grid-area: intro;
}

.intro header {
	position: relative;
	display: grid;
	align-content: end;
	min-height: 76vh;
	padding: 7.5rem 0 4.25rem;
}

.intro header::before {
	position: absolute;
	top: 3.2rem;
	left: 0;
	display: block;
	content: 'SPECIMEN 08  /  A STUDY IN STYLESHEET ALCHEMY';
	color: var(--acid);
	font-family: var(--mono);
	font-size: 0.62rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.intro header::after {
	position: absolute;
	top: 18%;
	right: 5%;
	display: block;
	width: min(23rem, 38vw);
	height: min(23rem, 38vw);
	border: 1px solid rgba(142, 245, 255, 0.34);
	border-radius: 50%;
	box-shadow:
		0 0 0 1.5rem rgba(142, 245, 255, 0.03),
		0 0 0 3rem rgba(255, 121, 200, 0.035),
		inset 0 0 4rem rgba(142, 245, 255, 0.08),
		0 0 5rem rgba(142, 245, 255, 0.08);
	content: '';
	mix-blend-mode: screen;
	transform: rotate(-18deg);
	animation: halo-turn 24s linear infinite;
}

.intro header h1 {
	position: relative;
	z-index: 1;
	max-width: 7ch;
	margin: 0;
	color: transparent;
	font-family: var(--display);
	font-size: 7.6rem;
	font-weight: 800;
	line-height: 0.84;
	letter-spacing: 0;
	text-transform: uppercase;
	background: linear-gradient(118deg, #ffffff 4%, var(--cyan) 34%, var(--violet) 63%, var(--pink) 91%);
	-webkit-background-clip: text;
	background-clip: text;
	filter: drop-shadow(0 1.2rem 2.2rem rgba(108, 83, 255, 0.18));
}

.intro header h2 {
	position: relative;
	z-index: 1;
	max-width: 29rem;
	margin: 2.3rem 0 0;
	color: var(--soft-ink);
	font-family: var(--mono);
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0.15em;
	line-height: 1.6;
	text-transform: uppercase;
}

.intro header h2 abbr {
	color: var(--pink);
}

.summary {
	position: relative;
	max-width: 46rem;
	margin: 0 0 0 auto;
	padding: 2.25rem 2.5rem 2rem;
	border: 1px solid rgba(222, 216, 255, 0.24);
	background:
		linear-gradient(135deg, rgba(142, 245, 255, 0.1), transparent 34%),
		linear-gradient(315deg, rgba(255, 121, 200, 0.1), rgba(255, 255, 255, 0.025) 52%, rgba(7, 6, 17, 0.7));
	box-shadow:
		1.2rem 1.2rem 0 rgba(7, 6, 17, 0.24),
		0 0 4rem rgba(142, 245, 255, 0.06),
		inset 0 0 2.5rem rgba(255, 255, 255, 0.025);
	clip-path: polygon(0 0, 97% 0, 100% 16%, 100% 100%, 3% 100%, 0 84%);
	backdrop-filter: blur(12px);
}

.summary::before {
	position: absolute;
	top: 1rem;
	right: 1.5rem;
	display: block;
	content: '01 / ORIGIN';
	color: rgba(222, 255, 122, 0.8);
	font-family: var(--mono);
	font-size: 0.58rem;
	letter-spacing: 0.15em;
}

.summary::after {
	position: absolute;
	bottom: 0;
	left: 0;
	display: block;
	width: 42%;
	height: 2px;
	content: '';
	background: linear-gradient(90deg, var(--cyan), var(--pink), transparent);
	box-shadow: 0 0 1rem rgba(142, 245, 255, 0.55);
}

.summary p:first-child {
	max-width: 39rem;
	margin-bottom: 1.5rem;
	color: var(--ink);
	font-size: 1.35rem;
	line-height: 1.45;
}

.summary p:last-child {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin-bottom: 0;
	font-family: var(--mono);
	font-size: 0.68rem;
	letter-spacing: 0.04em;
	line-height: 1.8;
	text-transform: uppercase;
}

.preamble {
	position: relative;
	max-width: 52rem;
	margin: 8rem 0 0;
	padding: 0 0 0 2.4rem;
	border-left: 1px solid var(--line-bright);
}

.preamble::before {
	position: absolute;
	top: -0.2rem;
	left: -0.35rem;
	display: block;
	width: 0.65rem;
	height: 0.65rem;
	content: '';
	background: var(--acid);
	box-shadow: 0 0 1.2rem rgba(222, 255, 122, 0.82);
	clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.preamble h3,
.supporting h3 {
	margin: 0 0 1.35rem;
	color: var(--ink);
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.08;
}

.preamble h3::first-letter,
.supporting h3::first-letter {
	color: var(--cyan);
}

.main.supporting {
	grid-area: support;
	margin-top: 8rem;
	counter-reset: section;
}

.supporting > div {
	position: relative;
	display: grid;
	grid-template-columns: minmax(8rem, 0.35fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 5vw, 5rem);
	padding: 3.5rem 0 4rem;
	border-top: 1px solid var(--line);
	counter-increment: section;
}

.supporting > div::before {
	position: absolute;
	top: -1px;
	left: 0;
	display: block;
	width: 5.5rem;
	height: 2px;
	content: '';
	background: linear-gradient(90deg, var(--pink), transparent);
	box-shadow: 0 0 1rem rgba(255, 121, 200, 0.34);
}

.supporting > div h3 {
	position: relative;
	align-self: start;
	font-size: 1.65rem;
}

.supporting > div h3::before {
	display: block;
	margin-bottom: 0.8rem;
	content: '0' counter(section);
	color: var(--acid);
	font-family: var(--mono);
	font-size: 0.63rem;
	font-weight: 400;
	letter-spacing: 0.15em;
}

.supporting > div p {
	color: var(--soft-ink);
}

.supporting > div p:last-child {
	margin-bottom: 0;
}

.supporting .participation {
	margin: 0 -1.4rem;
	padding-right: 1.4rem;
	padding-left: 1.4rem;
	border-top-color: transparent;
	background:
		linear-gradient(90deg, rgba(255, 121, 200, 0.08), transparent 24%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 55%);
	clip-path: polygon(1.5% 0, 100% 6%, 98.5% 100%, 0 93%);
}

.supporting .participation::before {
	left: 1.4rem;
	background: linear-gradient(90deg, var(--cyan), transparent);
	box-shadow: 0 0 1rem rgba(142, 245, 255, 0.34);
}

.supporting .benefits {
	grid-template-columns: minmax(8rem, 0.35fr) minmax(0, 0.8fr);
	background: linear-gradient(135deg, transparent 34%, rgba(142, 245, 255, 0.035));
}

.supporting .requirements {
	padding-bottom: 3rem;
	background:
		repeating-linear-gradient(135deg, transparent 0 2.2rem, rgba(222, 255, 122, 0.025) 2.2rem 2.25rem),
		linear-gradient(135deg, rgba(173, 140, 255, 0.06), transparent 38%);
}

.supporting .requirements::after {
	position: absolute;
	right: 0;
	bottom: 0;
	display: block;
	width: 7rem;
	height: 7rem;
	content: '';
	border-top: 1px solid rgba(222, 255, 122, 0.44);
	border-right: 1px solid rgba(222, 255, 122, 0.44);
	clip-path: polygon(100% 0, 100% 100%, 0 100%);
	opacity: 0.55;
}

.supporting footer {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	padding-top: 2.25rem;
	border-top: 1px solid var(--line-bright);
}

.supporting footer a {
	display: grid;
	place-items: center;
	min-width: 3.7rem;
	height: 3.7rem;
	padding: 0.5rem;
	border: 1px solid rgba(142, 245, 255, 0.26);
	background: linear-gradient(145deg, rgba(142, 245, 255, 0.12), rgba(255, 121, 200, 0.04));
	font-family: var(--mono);
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-decoration: none;
	clip-path: polygon(0 12%, 88% 0, 100% 88%, 12% 100%);
	box-shadow: 0 0 1.2rem rgba(142, 245, 255, 0.06);
	transition: transform 180ms var(--ease-silk), border-color 180ms ease, background 180ms ease;
}

.supporting footer a:nth-child(even) {
	border-color: rgba(255, 121, 200, 0.3);
	clip-path: polygon(12% 0, 100% 12%, 88% 100%, 0 88%);
}

.supporting footer a:hover {
	background: linear-gradient(145deg, rgba(255, 121, 200, 0.18), rgba(142, 245, 255, 0.08));
	transform: translateY(-0.3rem) rotate(-2deg);
}

.sidebar {
	grid-area: sidebar;
	align-self: start;
	position: sticky;
	top: 2rem;
	margin-top: 8rem;
}

.sidebar .wrapper {
	position: relative;
	padding: 1.3rem 0 1.5rem 2.1rem;
	border-left: 1px solid var(--line-bright);
	background: linear-gradient(90deg, rgba(142, 245, 255, 0.035), transparent 75%);
}

.sidebar .wrapper::before {
	position: absolute;
	top: 0;
	left: -2px;
	display: block;
	width: 3px;
	height: 4.5rem;
	content: '';
	background: linear-gradient(var(--cyan), var(--pink), transparent);
	box-shadow: 0 0 1rem rgba(142, 245, 255, 0.35);
}

.sidebar h3 {
	margin: 0 0 1.15rem;
	color: var(--acid);
	font-family: var(--mono);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
}

.sidebar ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.design-selection ul {
	counter-reset: design;
}

.design-selection li {
	position: relative;
	padding: 0.8rem 0 0.9rem;
	border-bottom: 1px solid rgba(222, 216, 255, 0.11);
	color: var(--muted);
	font-family: var(--mono);
	font-size: 0.68rem;
	line-height: 1.55;
	counter-increment: design;
}

.design-selection li::before {
	position: absolute;
	top: 0.85rem;
	left: -2.1rem;
	content: '0' counter(design);
	color: rgba(142, 245, 255, 0.62);
	font-family: var(--mono);
	font-size: 0.58rem;
	letter-spacing: 0.05em;
}

.design-selection li:last-child {
	border-bottom: 0;
}

.design-selection .design-name {
	display: block;
	margin-bottom: 0.18rem;
	color: var(--ink);
	font-family: var(--display);
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
}

.design-selection .designer-name {
	color: var(--violet);
	text-decoration: none;
}

.design-archives,
.zen-resources {
	margin-top: 3.3rem;
	padding-top: 1.6rem;
	border-top: 1px solid var(--line);
}

.design-archives li,
.zen-resources li {
	margin-bottom: 0.75rem;
}

.design-archives a,
.zen-resources a {
	display: inline-block;
	color: var(--soft-ink);
	font-family: var(--mono);
	font-size: 0.72rem;
	line-height: 1.45;
	text-decoration: none;
}

.design-archives a::before,
.zen-resources a::before {
	display: inline-block;
	margin-right: 0.65rem;
	color: var(--pink);
	content: '↳';
	transition: transform 180ms var(--ease-silk);
}

.design-archives a:hover::before,
.zen-resources a:hover::before {
	transform: translateX(0.25rem) rotate(-12deg);
}

.indicator {
	color: var(--cyan);
	font-size: 1.2rem;
	line-height: 0;
}

@keyframes void-drift {
	0% {
		transform: translate3d(-2%, -1%, 0) rotate(0deg) scale(1);
	}
	100% {
		transform: translate3d(3%, 2%, 0) rotate(9deg) scale(1.08);
	}
}

@keyframes halo-turn {
	0% {
		transform: rotate(-18deg) scale(1);
	}
	50% {
		transform: rotate(18deg) scale(1.04);
	}
	100% {
		transform: rotate(342deg) scale(1);
	}
}

@keyframes signal-in {
	from {
		opacity: 0;
		transform: translateY(1.5rem);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes rail-sweep {
	from {
		transform: scaleY(0.08);
		transform-origin: top;
	}
	to {
		transform: scaleY(1);
		transform-origin: top;
	}
}

.intro header,
.summary,
.preamble {
	animation: signal-in 1.1s var(--ease-silk) both;
}

.summary {
	animation-delay: 120ms;
}

.preamble {
	animation-delay: 240ms;
}

@supports (animation-timeline: view()) {
	.supporting > div,
	.sidebar .wrapper > div {
		animation: signal-in linear both;
		animation-timeline: view();
		animation-range: entry 0% cover 34%;
	}
}

@supports (animation-timeline: scroll(root block)) {
	.page-wrapper::before {
		animation: rail-sweep linear both;
		animation-timeline: scroll(root block);
		animation-range: 0 70%;
	}
}

@media (max-width: 1050px) {
	.page-wrapper {
		column-gap: 3rem;
		grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem);
	}

	.intro header h1 {
		font-size: 6rem;
	}

	.intro header::after {
		right: 0;
	}
}

@media (max-width: 820px) {
	.page-wrapper {
		grid-template-areas:
			'intro'
			'support'
			'sidebar';
		grid-template-columns: minmax(0, 1fr);
		padding-right: clamp(1.25rem, 6vw, 3rem);
		padding-left: clamp(1.25rem, 6vw, 3rem);
	}

	.page-wrapper::before {
		left: clamp(1.25rem, 6vw, 3rem);
	}

	.page-wrapper::after {
		display: none;
	}

	.intro header {
		min-height: 70vh;
	}

	.intro header::after {
		top: 13%;
		right: 2%;
		width: 15rem;
		height: 15rem;
	}

	.sidebar {
		position: relative;
		top: auto;
		margin-top: 4rem;
	}

	.sidebar .wrapper {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 2rem;
		padding: 2rem 0 0;
		border-top: 1px solid var(--line-bright);
		border-left: 0;
		background: linear-gradient(180deg, rgba(142, 245, 255, 0.035), transparent 70%);
	}

	.sidebar .wrapper::before {
		top: -2px;
		left: 0;
		width: 4.5rem;
		height: 3px;
		background: linear-gradient(90deg, var(--cyan), var(--pink), transparent);
	}

	.design-archives,
	.zen-resources {
		margin-top: 0;
		padding-top: 0;
		border-top: 0;
	}
}

@media (max-width: 600px) {
	body {
		font-size: 15px;
		background-image:
			radial-gradient(ellipse at 4% 4%, rgba(142, 245, 255, 0.15) 0, rgba(142, 245, 255, 0) 35%),
			radial-gradient(ellipse at 100% 16%, rgba(255, 121, 200, 0.14) 0, rgba(255, 121, 200, 0) 35%),
			linear-gradient(140deg, #070611, #0d0c1e 62%, #091522),
			repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 4rem);
	}

	.page-wrapper {
		padding-bottom: 4rem;
	}

	.intro header {
		min-height: 77vh;
		padding: 6rem 0 3rem;
	}

	.intro header::before {
		top: 2rem;
		max-width: 15rem;
		font-size: 0.54rem;
		line-height: 1.5;
	}

	.intro header::after {
		top: 15%;
		right: -2rem;
		width: 12rem;
		height: 12rem;
	}

	.intro header h1 {
		max-width: 6ch;
		font-size: 4.4rem;
	}

	.intro header h2 {
		max-width: 16rem;
		margin-top: 1.7rem;
		font-size: 0.72rem;
	}

	.summary {
		padding: 2.15rem 1.35rem 1.65rem;
		clip-path: polygon(0 0, 96% 0, 100% 12%, 100% 100%, 4% 100%, 0 88%);
	}

	.summary::before {
		right: 1.1rem;
		font-size: 0.5rem;
	}

	.summary p:first-child {
		font-size: 1.14rem;
	}

	.summary p:last-child {
		font-size: 0.6rem;
	}

	.preamble {
		margin-top: 5.5rem;
		padding-left: 1.35rem;
	}

	.preamble h3,
	.supporting h3 {
		font-size: 1.55rem;
	}

	.main.supporting {
		margin-top: 5.5rem;
	}

	.supporting > div,
	.supporting .benefits {
		display: block;
		padding: 2.75rem 0 3rem;
	}

	.supporting > div h3 {
		margin-bottom: 1.5rem;
	}

	.supporting .participation {
		margin-right: -0.5rem;
		margin-left: -0.5rem;
		padding-right: 0.5rem;
		padding-left: 0.5rem;
		clip-path: polygon(2% 0, 100% 3%, 98% 100%, 0 97%);
	}

	.supporting .participation::before {
		left: 0.5rem;
	}

	.supporting footer a {
		min-width: 3.2rem;
		height: 3.2rem;
		font-size: 0.62rem;
	}

	.sidebar .wrapper {
		display: block;
		padding-top: 2rem;
	}

	.design-archives,
	.zen-resources {
		margin-top: 2.5rem;
		padding-top: 1.5rem;
		border-top: 1px solid var(--line);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

@media print {
	body {
		background: #fff;
		color: #111;
	}

	body::before,
	body::after,
	.page-wrapper::before,
	.page-wrapper::after,
	.intro header::before,
	.intro header::after {
		display: none;
	}

	.page-wrapper {
		display: block;
		max-width: none;
		padding: 0;
	}

	.sidebar {
		position: static;
	}
}