/*
 * THE DAWN
 *
 * The background is a hallucination. Everything laid on top of it is flat,
 * quiet and typographic: one family, one button, one rule width. The contrast
 * between the two is the design, so nothing here competes with the canvas.
 */

:root {
	--ink: #fff;
	--ink-dim: rgba( 255, 255, 255, 0.55 );
	--rule: rgba( 255, 255, 255, 0.14 );
	--pad: clamp( 1.5rem, 5vw, 4.5rem );
	--stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--ease: cubic-bezier( 0.16, 1, 0.3, 1 );

	/* Raised by the scenes so the canvas burns through the page. */
	--veil: 1;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	background: #000;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	color: var( --ink );
	font-family: var( --stack );
	font-size: 16px;
	line-height: 1.5;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

p {
	margin: 0;
}

/* ---- The two background layers ---------------------------------------- */

.void {
	position: fixed;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	background: #000;
}

/*
 * Not a shadow. A single fixed luminance floor over the whole canvas, darkest
 * where the largest type sits, so white text keeps its contrast without any
 * per-element treatment.
 */
.veil {
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	opacity: var( --veil );
	transition: opacity 0.9s linear;
	background:
		linear-gradient(
			180deg,
			rgba( 0, 0, 0, 0.72 ) 0%,
			rgba( 0, 0, 0, 0.34 ) 34%,
			rgba( 0, 0, 0, 0.34 ) 66%,
			rgba( 0, 0, 0, 0.76 ) 100%
		);
}

/* ---- The gate ---------------------------------------------------------- */

/*
 * Hidden until the inline bootstrap marks the document as scripted, so a page
 * without JavaScript shows the site instead of a screen it cannot dismiss.
 */
.gate {
	display: none;
}

.js[data-gated] .gate {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var( --pad );
	background: #000;
}

.js[data-gated] body {
	overflow: hidden;
}

.js[data-gated] .shell {
	visibility: hidden;
}

.gate__panel {
	width: 100%;
	max-width: 30rem;
}

.gate__name {
	margin: 0 0 2.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.42em;
	text-indent: 0.42em;
	text-align: center;
	color: var( --ink-dim );
}

.gate__note {
	margin-bottom: 1.5rem;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: rgba( 255, 255, 255, 0.72 );
}

.gate__note p + p {
	margin-top: 0.75rem;
}

.gate__note + .gate__note {
	padding-top: 1.5rem;
	border-top: 1px solid var( --rule );
}

.gate__ask {
	margin: 2.5rem 0 1.5rem;
	font-size: 1.0625rem;
	font-weight: 500;
	letter-spacing: -0.01em;
}

.gate__ask span + span {
	color: var( --ink-dim );
}

/* ---- The one button ---------------------------------------------------- */

.button {
	display: inline-block;
	padding: 0.875rem 2.25rem;
	border: 0;
	border-radius: 980px;
	background: var( --ink );
	color: #000;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	cursor: pointer;
	transition: opacity 0.25s var( --ease );
}

.button:hover,
.button:focus-visible {
	opacity: 0.82;
}

/* ---- The page ---------------------------------------------------------- */

.shell {
	position: relative;
	z-index: 2;
	padding: 0 var( --pad );
}

.hero {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 100svh;
	padding: clamp( 5rem, 12vh, 9rem ) 0 clamp( 4rem, 10vh, 8rem );
}

.hero__title {
	margin: 0;
	font-size: clamp( 4.5rem, 21vw, 21rem );
	font-weight: 800;
	line-height: 0.78;
	letter-spacing: -0.045em;
	text-transform: uppercase;
}

.hero__date {
	margin-top: clamp( 2rem, 5vh, 3.5rem );
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.3em;
	color: var( --ink-dim );
}

.countdown {
	margin-top: 0.75rem;
	font-size: clamp( 1.125rem, 3.5vw, 2rem );
	font-weight: 300;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
}

.countdown[hidden] {
	display: none;
}

.section-title {
	margin: 0 0 clamp( 2.5rem, 6vh, 4rem );
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.34em;
	text-indent: 0.34em;
	text-transform: uppercase;
	color: var( --ink-dim );
}

.works {
	padding: clamp( 7rem, 20vh, 15rem ) 0;
}

.works__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var( --rule );
}

.works__item {
	border-bottom: 1px solid var( --rule );
}

.work {
	display: flex;
	align-items: baseline;
	gap: clamp( 1.25rem, 4vw, 3rem );
	padding: clamp( 1.25rem, 3vh, 2.25rem ) 0;
	color: inherit;
	text-decoration: none;
	transition: opacity 0.35s var( --ease );
}

.work:hover,
.work:focus-visible {
	opacity: 0.55;
}

.work__index {
	flex: none;
	font-size: 0.75rem;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.1em;
	color: var( --ink-dim );
}

.work__title {
	font-size: clamp( 1.5rem, 4.5vw, 3.25rem );
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.links {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	padding-bottom: clamp( 6rem, 16vh, 12rem );
	font-size: 0.9375rem;
	font-weight: 500;
}

.links__link {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.25s var( --ease );
}

.links__link:hover,
.links__link:focus-visible {
	opacity: 0.55;
}

.colophon {
	position: relative;
	z-index: 2;
	padding: 0 var( --pad ) clamp( 2rem, 6vh, 4rem );
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	color: rgba( 255, 255, 255, 0.3 );
}

/* ---- Built by script --------------------------------------------------- */

/* Full-bleed flash. Above the type, because the strobes hit the whole frame. */
.strobe {
	position: fixed;
	inset: 0;
	z-index: 50;
	pointer-events: none;
	opacity: 0;
	background: #fff;
}

.player {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	padding: var( --pad );
	background: #000;
}

.player__frame {
	width: min( 100%, 78rem );
	aspect-ratio: 16 / 9;
	border: 0;
	background: #000;
	opacity: 0;
	transition: opacity 1.2s linear;
}

.player__frame.is-lit {
	opacity: 1;
}

/* ---- Focus ------------------------------------------------------------- */

:focus-visible {
	outline: 1px solid var( --ink );
	outline-offset: 4px;
}
