/* The product page at unhaunt.dev (deploy/site/page/index.html). Dark and
   lamp-lit, as the game is: the letter's paper on black, the lamp's amber.
   System fonts only: a font from another host would break the privacy line. */
:root {
	--dark: #0a0806;
	--paper: #d9cbb5;
	--lamp: #e3a957;
	--quiet: #8a7d6b;
	color-scheme: dark;
}
* {
	box-sizing: border-box;
}
html {
	background: #0a0806;
	-webkit-text-size-adjust: 100%;
}
body {
	margin: 0;
	background: var(--dark);
	color: var(--paper);
	font: clamp(1rem, 0.85rem + 0.45vw, 1.6rem)/1.6 system-ui, sans-serif;
	overflow-x: hidden;
}
h1, h2 {
	font-family: ui-serif, Georgia, serif;
	font-weight: normal;
	margin: 0 0 0.6em;
	overflow-wrap: anywhere;
}
h2 {
	font-size: 1.6em;
	color: var(--paper);
}
p {
	margin: 0 0 1em;
	max-width: 38em;
}

#hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	padding: max(1.5rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) max(2.5rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
}
#clip {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
	background: var(--dark);
}
#hero .shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to bottom, rgba(10, 8, 6, 0.15) 0%, rgba(10, 8, 6, 0.55) 45%, #0a0806 100%);
}
#hero .lead {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 46em;
	margin: 0 auto;
	text-align: center;
}
#hero .lead p {
	margin-left: auto;
	margin-right: auto;
}
h1 {
	font-size: clamp(2rem, min(0.5rem + 8vw, 14vh), 9rem);
	letter-spacing: 0.18em;
	margin-right: -0.18em;
	white-space: nowrap;
	color: var(--paper);
	text-shadow: 0 0 0.6em rgba(227, 169, 87, 0.25);
}
.pitch {
	font-size: 1.15em;
}
.free {
	margin-top: 1.2em;
	margin-bottom: 0.3em;
}
.advice, footer, .name {
	color: var(--quiet);
}

.play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	max-width: 100%;
	padding: 0.55em 1.6em;
	border: 2px solid var(--lamp);
	border-radius: 0.3em;
	background: var(--lamp);
	color: var(--dark);
	font-size: 1.25em;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 0 1.5em rgba(227, 169, 87, 0.35);
}
.play:hover, .play:focus-visible {
	background: #f0bd70;
	outline: none;
	box-shadow: 0 0 2.2em rgba(227, 169, 87, 0.6);
}

#sound {
	position: absolute;
	z-index: 3;
	top: max(1rem, env(safe-area-inset-top));
	right: max(1rem, env(safe-area-inset-right));
	min-height: 44px;
	padding: 0.4em 1em;
	border: 1px solid var(--quiet);
	border-radius: 0.3em;
	background: rgba(10, 8, 6, 0.6);
	color: var(--paper);
	font: inherit;
	font-size: 0.9em;
	cursor: pointer;
}

main, footer {
	max-width: 80em;
	margin: 0 auto;
	padding: 0 max(1.5rem, env(safe-area-inset-right)) 0 max(1.5rem, env(safe-area-inset-left));
}
section {
	padding: 3.5em 0 1em;
}
#pictures {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
	gap: 1.5em;
}
figure {
	margin: 0;
	min-width: 0;
}
figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0.2em;
	background: #15110d;
}
figcaption {
	margin-top: 0.5em;
	color: var(--quiet);
	font-family: ui-serif, Georgia, serif;
	font-style: italic;
}
#demo .play {
	margin-top: 0.5em;
}
#support {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2em;
}
.support {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	max-width: 100%;
	padding: 0.55em 1.6em;
	border: 2px solid var(--lamp);
	border-radius: 0.3em;
	background: transparent;
	color: var(--lamp);
	font-size: 1.25em;
	font-weight: 600;
	text-decoration: none;
}
.support:hover, .support:focus-visible {
	outline: none;
	box-shadow: 0 0 2.2em rgba(227, 169, 87, 0.6);
}
.address {
	margin: 0.8em 0 0.4em;
	color: var(--quiet);
	font-family: ui-serif, Georgia, serif;
	letter-spacing: 0.05em;
}
.note {
	color: var(--quiet);
	font-size: 0.9em;
	max-width: 32em;
}
.code img {
	display: block;
	width: 196px;
	height: 196px;
	background: #fff;
	border-radius: 0.2em;
}
@media (max-width: 40rem) {
	.code img {
		width: 147px;
		height: 147px;
	}
}
footer {
	padding-top: 4em;
	padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
	font-size: 0.9em;
}
.name {
	font-family: ui-serif, Georgia, serif;
	letter-spacing: 0.2em;
}

@media (prefers-reduced-motion: reduce) {
	#clip {
		display: none;
	}
	#hero {
		background: var(--dark) url("/media/clip.jpg") center / cover no-repeat;
	}
}

#trailer video { display: block; width: 100%; height: auto; background: #000; }
