/* Manrope (SIL Open Font License), self-hosted */
@font-face {
	font-family: "Manrope";
	src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

:root {
	--bg: #03070d;
	--text: #e9f0f7;
	--muted: #9fb2c6;
	--line: rgba(255, 255, 255, 0.12);
	--radius: 22px;
	--movie: #29c7d6;
	--piff: #f4a82b;
}

* {
	box-sizing: border-box;
}

html {
	color-scheme: dark;
	background: var(--bg);
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font: 400 1rem/1.6 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--text);
}

/* background image from the previous site */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: var(--bg) url("../img/bg.jpg") center / cover no-repeat;
}

a {
	color: inherit;
}

.wrap {
	width: min(1100px, 100% - 2 * clamp(1rem, 4vw, 2rem));
	margin-inline: auto;
}

/* header */
.site-header {
	padding: clamp(5rem, 14vw, 10rem) 0 1.5rem;
	text-align: center;
}

.logo {
	display: inline-block;
}

.logo img {
	display: block;
	width: clamp(72px, 12vw, 104px);
	height: auto;
}

.site-header h1 {
	margin: 1.25rem 0 0.75rem;
	font-size: clamp(1.5rem, 4vw, 2.1rem);
	font-weight: 700;
	letter-spacing: 0.02em;
}

.intro {
	max-width: 36rem;
	margin: 0 auto;
	color: var(--muted);
	font-size: clamp(1rem, 2.2vw, 1.2rem);
}

/* tiles */
main {
	flex: 1;
}

.tiles {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(1rem, 2.5vw, 1.75rem);
	margin: clamp(2rem, 6vw, 4rem) 0;
}

.tile {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: clamp(280px, 38vw, 420px);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	isolation: isolate;
	text-decoration: none;
	color: inherit;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tile::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--tile-bg);
}

.tile:hover,
.tile:focus-visible {
	transform: translateY(-4px);
	border-color: var(--accent);
	box-shadow: 0 18px 50px -18px var(--accent);
}

.tile:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 4px;
}

.tile--movie {
	--accent: var(--movie);
	--tile-bg:
		radial-gradient(120% 90% at 85% 0%, rgba(41, 199, 214, 0.35), transparent 60%),
		radial-gradient(90% 80% at 0% 100%, rgba(255, 122, 107, 0.22), transparent 55%),
		linear-gradient(160deg, #0b1a2a, #070d16);
}

.tile--piff {
	--accent: var(--piff);
	--tile-bg:
		radial-gradient(110% 90% at 15% 0%, rgba(244, 168, 43, 0.3), transparent 60%),
		linear-gradient(160deg, #353535, #202020);
}

.tile-kicker {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
}

.tile-title {
	margin: 0.25rem 0 0.6rem;
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.01em;
}

.tile-logo {
	display: block;
	width: auto;
	height: var(--logo-h);
	max-width: 100%;
}

.tile-logo-box {
	display: grid;
	align-items: center;
	justify-items: start;
	align-self: flex-start;
	height: 88px;
	margin-bottom: auto;
}

/* two stacked versions: a baked glass look (default) and the colour logo (hover) */
.tile-logo-box .tile-logo {
	grid-area: 1 / 1;
	transition: opacity 0.3s ease;
}

.tile-logo--color {
	opacity: 0;
}

.tile:hover .tile-logo--glass,
.tile:focus-visible .tile-logo--glass {
	opacity: 0;
}

.tile:hover .tile-logo--color,
.tile:focus-visible .tile-logo--color {
	opacity: 1;
}

/* touch devices have no hover, so show the colour logos there */
@media (hover: none) {
	.tile-logo--glass {
		opacity: 0;
	}

	.tile-logo--color {
		opacity: 1;
	}
}

.tile--movie {
	--logo-h: 44px;
}

.tile--piff {
	--logo-h: 88px;
}

.tile-text {
	margin: 0;
	max-width: 26rem;
	min-height: 3.2em;
	color: #cdd8e4;
}

.tile-cta span {
	transition: transform 0.25s ease;
}

.tile:hover .tile-cta span,
.tile:focus-visible .tile-cta span {
	transform: translateX(4px);
}

.tile-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1.5rem;
	font-weight: 600;
	color: var(--accent);
}


/* footer */
.site-footer {
	padding: 1.5rem 0 2rem;
	text-align: center;
	font-size: 0.85rem;
	color: var(--muted);
}

.site-footer a {
	text-decoration: none;
	white-space: nowrap;
}

.site-footer a:hover,
.site-footer a:focus-visible {
	text-decoration: underline;
}

.site-footer .copy {
	white-space: nowrap;
}

.site-footer .sep {
	margin: 0 0.5em;
	opacity: 0.5;
}

/* legal pages */
.legal {
	width: min(46rem, 100% - 2 * clamp(1rem, 4vw, 2rem));
	margin: 0 auto clamp(2rem, 6vw, 4rem);
}

.legal h1 {
	margin: 0 0 1.5rem;
	font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.legal h2 {
	margin: 2rem 0 0.5rem;
	font-size: 1.15rem;
}

.legal p,
.legal li {
	color: #d4dfea;
}

.legal ul {
	padding-left: 1.25rem;
}

.legal a {
	color: var(--movie);
}

.back {
	display: inline-block;
	margin-bottom: 1.5rem;
	font-size: 0.9rem;
	color: var(--muted);
	text-decoration: none;
}

.back:hover,
.back:focus-visible {
	color: var(--text);
}

@media (max-width: 720px) {
	.tiles {
		grid-template-columns: 1fr;
	}

	.tile {
		min-height: 260px;
	}

	.tile-text {
		min-height: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.logo img {
	width: clamp(184px, 32.1vw, 337px);
}

.site-header .intro {
	margin-top: 3.1rem;
}

.legal-page .logo img {
	width: clamp(160px, 30vw, 240px);
}
