/* Rad Games: the game's Paste-Up look (src/ui/paste.gd) on a web page.
   Paper, ink, pink and teal; Anton for anything shouted, Archivo Narrow for
   reading, Kalam for notes in pen. Things are cut out and stuck down: torn
   edges, a few degrees off square, tape at the corners. */

@font-face {
	font-family: "Anton";
	src: url("fonts/Anton-Regular.ttf") format("truetype");
	font-display: swap;
}
@font-face {
	font-family: "Archivo Narrow";
	src: url("fonts/ArchivoNarrow-Variable.ttf") format("truetype");
	font-weight: 400 700;
	font-display: swap;
}
@font-face {
	font-family: "Kalam";
	src: url("fonts/Kalam-Bold.ttf") format("truetype");
	font-weight: 700;
	font-display: swap;
}

:root {
	--paper: #efe6d2;
	--paper-dark: #e2d7bf;
	--ink: #1e1b1a;
	--teal: #1f6f6b;
	--pink: #e8457c;
	--pink-dark: #b32a58;
	--grey: #6b635c;
	--torn: polygon(0.4% 2%, 6% 0.6%, 14% 2.2%, 23% 0.4%, 34% 1.8%, 47% 0.5%, 58% 2.1%, 70% 0.7%, 81% 1.9%, 92% 0.4%, 99.6% 1.6%,
		99% 12%, 99.8% 31%, 99.1% 52%, 99.7% 74%, 99.2% 97.6%,
		91% 99.4%, 79% 98%, 66% 99.5%, 52% 98.2%, 39% 99.6%, 26% 98.1%, 13% 99.4%, 0.6% 98.3%,
		1% 81%, 0.2% 60%, 0.9% 38%, 0.3% 17%);
}

* {
	box-sizing: border-box;
}

html {
	background: var(--paper);
	color: var(--ink);
	font-family: "Archivo Narrow", "Arial Narrow", sans-serif;
	font-size: 20px;
	line-height: 1.45;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
}

a {
	color: var(--teal);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
a:hover {
	color: var(--pink-dark);
}
a:focus-visible,
video:focus-visible {
	outline: 3px solid var(--pink);
	outline-offset: 3px;
}

h1,
h2,
h3 {
	font-family: "Anton", Impact, sans-serif;
	font-weight: 400;
	text-transform: uppercase;
	line-height: 1.02;
	margin: 0;
}

.page {
	max-width: 1120px;
	margin: 0 auto;
	padding: 28px 24px 56px;
}

/* The logo: U, S and G each on its own block, SKATEBOARDING on a strip of ink. */
.logo {
	display: inline-block;
	text-decoration: none;
	line-height: 1;
}
.logo .blocks {
	display: flex;
	gap: 8px;
}
.logo .blocks span {
	font-family: "Anton", Impact, sans-serif;
	font-size: 64px;
	color: var(--paper);
	background: var(--pink);
	width: 72px;
	height: 84px;
	display: grid;
	place-items: center;
	clip-path: var(--torn);
	transform: rotate(-3deg);
}
.logo .blocks span:nth-child(2) {
	background: var(--teal);
	transform: rotate(2deg);
}
.logo .blocks span:nth-child(3) {
	transform: rotate(-1.5deg);
}
.logo .strip {
	display: block;
	margin-top: -7px;
	position: relative;
	background: var(--ink);
	color: var(--paper);
	font-family: "Anton", Impact, sans-serif;
	font-size: 23px;
	text-transform: uppercase;
	letter-spacing: 0.23em;
	text-align: center;
	padding: 5px 0 5px 0.23em;
	width: 232px;
	clip-path: var(--torn);
	transform: rotate(-1.2deg);
}

.masthead {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.masthead nav {
	display: flex;
	gap: 22px;
	font-weight: 700;
}
.masthead nav a {
	color: var(--ink);
}

/* The front page: the words on the left, the game itself taped down on the right. */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
	gap: 56px;
	align-items: center;
	margin-top: 44px;
}
.hero h1 {
	font-size: clamp(54px, 8.4vw, 104px);
	letter-spacing: -0.005em;
}
.hero h1 span {
	display: block;
}
.hero p.lead {
	font-size: 24px;
	max-width: 30em;
	margin: 22px 0 0;
}
.note {
	font-family: "Kalam", cursive;
	font-weight: 700;
	color: var(--teal);
	font-size: 22px;
	transform: rotate(-2deg);
	display: inline-block;
	margin: 0;
}
.soon {
	display: inline-block;
	margin-top: 26px;
	background: var(--pink);
	color: var(--paper);
	font-family: "Anton", Impact, sans-serif;
	text-transform: uppercase;
	font-size: 30px;
	padding: 10px 26px 9px;
	clip-path: var(--torn);
	transform: rotate(-2deg);
}
.hero .where {
	margin: 14px 0 0;
	color: var(--grey);
	font-weight: 700;
}

.taped {
	position: relative;
	transform: rotate(1.6deg);
	filter: drop-shadow(4px 6px 0 rgba(30, 27, 26, 0.22));
}
.taped video,
.taped img {
	display: block;
	width: 100%;
	height: auto;
	clip-path: var(--torn);
	background: var(--paper-dark);
}
.taped::before,
.taped::after {
	content: "";
	position: absolute;
	width: 96px;
	height: 30px;
	background: rgba(31, 111, 107, 0.42);
	z-index: 1;
}
.taped::before {
	top: -12px;
	left: -30px;
	transform: rotate(-38deg);
}
.taped::after {
	top: -12px;
	right: -30px;
	transform: rotate(38deg);
}

section {
	margin-top: 88px;
}
section > h2 {
	font-size: clamp(38px, 5vw, 58px);
	color: var(--teal);
}
section > h2 + p {
	max-width: 34em;
	margin: 12px 0 0;
}

/* The five Chapters, as the photos they are in the game. */
.chapters {
	list-style: none;
	margin: 30px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 18px;
}
.chapters li {
	position: relative;
}
.chapters li:nth-child(odd) {
	transform: rotate(-1.5deg);
}
.chapters li:nth-child(even) {
	transform: rotate(1.2deg) translateY(10px);
}
.chapters img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	clip-path: var(--torn);
}
.chapters span {
	position: absolute;
	left: 6px;
	bottom: -12px;
	background: var(--ink);
	color: var(--paper);
	font-family: "Anton", Impact, sans-serif;
	text-transform: uppercase;
	font-size: 18px;
	padding: 3px 10px 2px;
	clip-path: var(--torn);
	transform: rotate(-3deg);
}

/* What's in it: three pictures of the game, each with what it shows. */
.inside {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 36px;
	margin-top: 34px;
}
.inside figure {
	margin: 0;
}
.inside img {
	display: block;
	width: 100%;
	height: auto;
	clip-path: var(--torn);
}
.inside figure:nth-child(2) img {
	transform: rotate(-1.2deg);
}
.inside figure:nth-child(3) img {
	transform: rotate(1deg);
}
.inside h3 {
	font-size: 28px;
	margin-top: 18px;
}
.inside p {
	margin: 6px 0 0;
}

.price {
	background: var(--teal);
	color: var(--paper);
	padding: 34px 40px 36px;
	clip-path: var(--torn);
	transform: rotate(-0.6deg);
}
.price h2 {
	color: var(--paper);
	font-size: clamp(34px, 4.4vw, 50px);
}
.price p {
	max-width: 36em;
	margin: 12px 0 0;
	font-size: 22px;
}

footer {
	margin-top: 96px;
	padding-top: 22px;
	border-top: 3px solid var(--ink);
	display: flex;
	justify-content: space-between;
	gap: 18px 32px;
	flex-wrap: wrap;
	font-weight: 700;
}
footer nav {
	display: flex;
	gap: 22px;
	flex-wrap: wrap;
}
footer p {
	margin: 0;
}

/* The reading pages: privacy, help. */
.sheet {
	max-width: 36em;
	margin-top: 52px;
}
.sheet h1 {
	font-size: clamp(46px, 7vw, 76px);
	color: var(--teal);
}
.sheet .dated {
	color: var(--grey);
	font-weight: 700;
	margin: 10px 0 0;
}
.sheet h2 {
	font-size: 30px;
	margin-top: 44px;
}
.sheet h3 {
	font-family: "Archivo Narrow", "Arial Narrow", sans-serif;
	font-weight: 700;
	text-transform: none;
	font-size: 21px;
	line-height: 1.3;
	margin-top: 22px;
}
.sheet p,
.sheet ul {
	margin: 10px 0 0;
}
.sheet ul {
	padding-left: 1.1em;
}
.sheet li + li {
	margin-top: 4px;
}
.sheet .short {
	background: var(--paper-dark);
	padding: 20px 26px 22px;
	clip-path: var(--torn);
	margin-top: 26px;
}
.sheet .short p:first-child {
	margin-top: 0;
}
.sheet .mail {
	display: inline-block;
	margin-top: 16px;
	background: var(--pink);
	color: var(--paper);
	font-family: "Anton", Impact, sans-serif;
	font-size: 28px;
	padding: 9px 22px 8px;
	text-decoration: none;
	clip-path: var(--torn);
	transform: rotate(-1.5deg);
}
.sheet .mail:hover {
	background: var(--pink-dark);
	color: var(--paper);
}

@media (max-width: 860px) {
	html {
		font-size: 18px;
	}
	.page {
		padding: 20px 16px 44px;
	}
	.hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
		margin-top: 30px;
	}
	.hero .taped {
		max-width: 400px;
		margin: 0 auto;
	}
	.chapters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 26px 16px;
	}
	.inside {
		grid-template-columns: minmax(0, 1fr);
	}
	.inside figure {
		max-width: 440px;
	}
	section {
		margin-top: 64px;
	}
	.price {
		padding: 28px 24px 30px;
	}
	.logo .blocks span {
		font-size: 50px;
		width: 56px;
		height: 66px;
	}
	.logo .strip {
		font-size: 18px;
		width: 184px;
	}
}
