:root {
	--plaster: #e9dcc8;
	--adobe: #c49a6c;
	--viga: #6e4b33;
	--pinon: #2e2620;
	--turquoise: #2f8f8b;
	--chile: #93200c;
	--display: "Fraunces", Georgia, serif;
	--text: "Jost", "Futura", sans-serif;
	--chrome-font: var(--text);
	--chrome-fg: var(--pinon);
	--chrome-bg: rgba(233, 220, 200, 0.78);
	--chrome-line: rgba(46, 38, 32, 0.4);
	--sun-x: 0;
	--sun-skew: 0deg;
	--sun-e: 1;
	--warm: 0;
	--night: 0;
}

html {
	background: var(--plaster);
	color: var(--pinon);
}

body {
	font-family: var(--text);
	font-size: 18px;
	line-height: 1.55;
}

.room-world {
	image-rendering: auto;
}

/* Lime plaster: low-frequency trowel mottling over fine grit. */
.plaster {
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	mix-blend-mode: multiply;
	background:
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='m' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='fractalNoise' baseFrequency='.006 .009' numOctaves='4' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .55  0 0 0 0 .42  0 0 0 0 .3  0 0 0 .5 -.05'/></filter><rect width='100%' height='100%' filter='url(%23m)'/></svg>"),
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='g' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .4  0 0 0 0 .3  0 0 0 0 .2  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
	opacity: 0.6;
}

/* The window: a sheared patch of sun with viga and mullion shadows, sliding across the day. */
.window {
	position: fixed;
	top: -20vh;
	left: 0;
	width: 64vw;
	height: 140vh;
	z-index: 1;
	pointer-events: none;
	mix-blend-mode: soft-light;
	opacity: calc(var(--sun-e) * 0.95);
	transform: translateX(calc(var(--sun-x) * 1vw)) skewX(var(--sun-skew));
	background:
		repeating-linear-gradient(180deg, transparent 0 15vh, rgba(40, 20, 8, 0.85) 15vh 19vh, transparent 19vh 34vh),
		linear-gradient(90deg, transparent 0 48%, rgba(40, 20, 8, 0.8) 48% 50.5%, transparent 50.5%),
		linear-gradient(180deg, rgba(255, 236, 200, 1), rgba(255, 214, 160, 1));
	filter: blur(14px);
	-webkit-mask-image: radial-gradient(ellipse 50% 46% at 50% 50%, #000 70%, transparent 100%);
	mask-image: radial-gradient(ellipse 50% 46% at 50% 50%, #000 70%, transparent 100%);
}

.tint {
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	mix-blend-mode: multiply;
	background:
		linear-gradient(180deg, rgba(80, 40, 20, 0.22), transparent 30%),
		var(--tint, #fff);
}

.vigas {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 20px;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(46, 38, 32, 0.35), transparent);
}

.room-main {
	z-index: 3;
	padding: 0 clamp(40px, 6vw, 110px);
}

.clock {
	position: fixed;
	right: 20px;
	top: 16px;
	z-index: 40;
	margin: 0;
	font-family: var(--text);
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: right;
	display: grid;
	gap: 2px;
	color: var(--pinon);
}

.clock small {
	opacity: 0.65;
	font-size: 11px;
}

.eyebrow {
	margin: 0 0 1.4rem;
	font-size: 13px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 500;
}

[data-block] {
	position: relative;
}

.arrival {
	min-height: 100vh;
	display: flex;
	align-items: flex-end;
	padding-bottom: 10vh;
}

.arrival-text {
	max-width: 50vw;
}

h1 {
	margin: 0;
	font-family: var(--display);
	font-weight: 340;
	font-size: clamp(5rem, 12.5vw, 14rem);
	line-height: 0.88;
	letter-spacing: -0.035em;
	font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
	hyphens: manual;
}

.lede {
	margin: 1.6rem 0 0;
	font-family: var(--display);
	font-style: italic;
	font-weight: 380;
	font-variation-settings: "opsz" 48, "SOFT" 100;
	font-size: clamp(1.6rem, 2.6vw, 2.5rem);
	line-height: 1.12;
	max-width: 16em;
}


/* Empty stretches of wall so the day has room to pass. */
.day {
	min-height: 180vh;
}

.refs {
	padding: 20vh 0 10vh;
	display: grid;
	gap: 22vh;
}

.print {
	margin: 0;
	display: grid;
	gap: 14px;
	width: min(38vw, 560px);
}

.print img {
	width: 100%;
	height: auto;
	box-shadow: 0 30px 50px -30px rgba(50, 25, 10, 0.6), 0 0 0 10px #f3ead9, 0 0 0 11px rgba(46, 38, 32, 0.2);
}

.print-a {
	margin-left: 4vw;
	transform: rotate(-1.5deg);
}

.print-a img {
	image-rendering: pixelated;
}

.print-c {
	margin-left: 18vw;
	width: min(48vw, 760px);
	transform: rotate(-0.6deg);
}

.print figcaption {
	font-size: 14px;
	max-width: 32em;
	background: rgba(233, 220, 200, 0.85);
	padding: 4px 8px;
	margin-top: 12px;
}

[data-reveal].print:not(.in) {
	opacity: 0;
	transform: translateY(6vh) rotate(4deg);
}


.colophon {
	padding: 40vh 0 18vh;
}

.colophon-inner {
	max-width: 620px;
	background: rgba(233, 220, 200, 0.82);
	padding: 1.6rem 1.8rem;
	font-size: 15px;
	opacity: 0.85;
}

.spec-fraunces {
	margin: 0;
	font-family: var(--display);
	font-size: clamp(2.4rem, 4vw, 3.6rem);
	font-weight: 300;
	line-height: 1;
	letter-spacing: -0.03em;
	font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}

.spec-jost {
	margin: 0.3rem 0 0;
	font-size: 1.2rem;
	font-weight: 300;
}

.materials {
	margin: 1rem 0 1.4rem;
	max-width: 36em;
}

.credits {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 13px;
	display: grid;
	gap: 0.3rem;
	opacity: 0.8;
}

.nav {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(46, 38, 32, 0.4);
	font-family: var(--display);
	font-size: 1.3rem;
}

@media (max-width: 900px) {
	.arrival-text {
		max-width: none;
	}
	.print,
	.print-c {
		width: auto;
		margin: 0;
	}
}
