/* ================================================================
   HEISTDOKU — the landing page. The game's own look: cream paper, navy ink, the keyword red, Source Serif headlines
   and Inter labels (the game's fonts, served from fonts/). Images: tools/website.py.
================================================================ */
@font-face {
	font-family: 'Source Serif';
	font-weight: 200 900;
	font-display: swap;
	src: url(fonts/serif-latin.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
}

@font-face {
	font-family: 'Source Serif';
	font-weight: 200 900;
	font-display: swap;
	src: url(fonts/serif-latin-ext.woff2) format('woff2');
	unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF
}

@font-face {
	font-family: 'Inter';
	font-weight: 100 900;
	font-display: swap;
	src: url(fonts/inter-latin.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
}

@font-face {
	font-family: 'Inter';
	font-weight: 100 900;
	font-display: swap;
	src: url(fonts/inter-latin-ext.woff2) format('woff2');
	unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF
}

:root {
	--bg: #f7f4ee;
	--paper: #fffdf8;
	--ink: #16224d;
	--ink-soft: #4b5677;
	--line: #e3dccd;
	--red: #d0443a;
	--blue: #2c5fd0;
	--teal: #1fa3b3;
	--teal-d: #11798a;
	--gold: #e2a93b;
	--royal: #2b1446;
	--royal-2: #4a2373;
	--f-head: 'Source Serif', Georgia, 'Times New Roman', serif;
	--f-text: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--wrap: 1120px;
	--gutter: 20px;
	--shadow: 0 10px 30px rgba(22, 34, 77, .12)
}

* {
	box-sizing: border-box
}

html {
	scroll-behavior: smooth
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--f-text);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden
}

img {
	display: block;
	max-width: 100%;
	height: auto
}

h1,
h2,
h3 {
	font-family: var(--f-head);
	font-weight: 800;
	line-height: 1.08;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: -.005em
}

h1 em,
h2 em {
	font-style: normal;
	color: var(--red)
}

/* the line over a headline: spaced capitals between two hairlines, like the store images */
.kicker {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 14px;
	font-family: var(--f-text);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--teal-d)
}

.kicker::after {
	content: '';
	width: 44px;
	height: 1.5px;
	background: currentColor;
	opacity: .6
}

.kicker.center {
	justify-content: center
}

.kicker.center::before {
	content: '';
	width: 44px;
	height: 1.5px;
	background: currentColor;
	opacity: .6
}

.kicker.gold {
	color: #f2cf6b
}

/* a keyword in red, a subject in blue: as the game writes its clues */
.kw {
	color: var(--red);
	font-weight: 800
}

.sj {
	color: var(--blue);
	font-weight: 800
}

/* ---- the store button: black, the Play mark, two lines ---- */
.play {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	padding: 10px 22px 10px 16px;
	border-radius: 12px;
	background: #000;
	color: #fff;
	text-decoration: none;
	border: 1.5px solid #3a3a3a;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
	transition: transform .15s ease, box-shadow .15s ease
}

.play:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, .28)
}

.play:focus-visible {
	outline: 3px solid var(--teal);
	outline-offset: 3px
}

.play .glyph {
	width: 30px;
	height: 30px;
	flex: 0 0 auto
}

.play span {
	display: flex;
	flex-direction: column;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -.01em
}

.play small {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .08em
}

.play.small {
	padding: 6px 14px 6px 10px;
	border-radius: 10px;
	box-shadow: none
}

.play.small .glyph {
	width: 20px;
	height: 20px
}

.play.small span {
	font-size: 14px
}

.play.small small {
	font-size: 7.5px
}

/* ---- the bar ---- */
.top {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px max(var(--gutter), calc((100% - var(--wrap)) / 2));
	background: rgba(247, 244, 238, .88);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(22, 34, 77, .08)
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	text-decoration: none;
	font-family: var(--f-head);
	font-weight: 800;
	font-size: 21px;
	letter-spacing: .02em
}

.brand img {
	width: 36px;
	height: 36px;
	border-radius: 9px;
	box-shadow: 0 2px 6px rgba(22, 34, 77, .25)
}

/* ---- sections share a width ---- */
main>section {
	width: min(var(--wrap), 100% - 2 * var(--gutter));
	margin: 0 auto
}

/* ---- HERO ---- */
.hero {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	align-items: center;
	gap: 48px;
	padding: 64px 0 72px
}

.hero h1 {
	font-size: clamp(42px, 6.2vw, 76px);
	margin-bottom: 22px
}

.lead {
	max-width: 33em;
	font-size: 18px;
	color: var(--ink-soft);
	margin: 0 0 30px
}

.cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px
}

.cta-note {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--ink-soft)
}

.hero-art {
	position: relative;
	padding: 0 0 40px 0
}

/* the scene in a gilded frame, the game on a phone in front of it */
.scene {
	width: 100%;
	border-radius: 26px;
	border: 6px solid var(--paper);
	box-shadow: var(--shadow), 0 0 0 1.5px var(--line)
}

.phone {
	position: absolute;
	right: -14px;
	bottom: 0;
	width: 230px;
	padding: 8px;
	border-radius: 34px;
	background: #10172f;
	box-shadow: 0 24px 50px rgba(16, 23, 47, .38);
	transform: rotate(4deg)
}

.phone img {
	border-radius: 27px
}

/* a rubber stamp, slightly crooked */
.stamp {
	position: absolute;
	left: -16px;
	top: -14px;
	padding: 10px 16px 8px;
	border: 4px solid var(--red);
	border-radius: 10px;
	color: var(--red);
	font-family: var(--f-head);
	font-weight: 900;
	font-size: 22px;
	line-height: 1;
	letter-spacing: .08em;
	text-align: center;
	background: rgba(255, 253, 248, .82);
	transform: rotate(-9deg);
	mix-blend-mode: multiply
}

/* ---- HOW IT WORKS ---- */
.how {
	padding: 24px 0 80px
}

.steps {
	list-style: none;
	margin: 26px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px
}

.steps li {
	position: relative;
	padding: 34px 26px 26px;
	background: var(--paper);
	border: 1.5px solid var(--line);
	border-radius: 22px;
	box-shadow: 0 4px 14px rgba(22, 34, 77, .06)
}

/* an evidence tag clipped to the card's edge */
.tag {
	position: absolute;
	top: -13px;
	left: 22px;
	padding: 5px 12px 4px;
	border-radius: 6px;
	background: var(--gold);
	color: #3b2a07;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .16em;
	box-shadow: 0 3px 8px rgba(0, 0, 0, .12)
}

.steps h3 {
	font-size: 22px;
	margin-bottom: 12px
}

.steps p {
	margin: 0;
	color: var(--ink-soft);
	font-size: 15px
}

.steps .quote {
	margin-bottom: 12px;
	padding: 12px 14px;
	border-radius: 14px;
	background: #f3efe6;
	color: var(--ink);
	font-size: 15.5px;
	line-height: 1.5
}

/* ---- SCREENSHOTS ---- */
.shots {
	padding: 0 0 84px
}

.shots-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 24px;
	margin-bottom: 22px
}

.shots-head h2 {
	font-size: clamp(30px, 4vw, 44px)
}

.shots-head p {
	margin: 0;
	color: var(--ink-soft)
}

/* a reel the width of the page: swipe it, or scroll it sideways */
.reel {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 6px 4px 22px;
	scrollbar-width: thin;
	scrollbar-color: var(--line) transparent
}

.reel:focus-visible {
	outline: 3px solid var(--teal);
	outline-offset: 4px;
	border-radius: 18px
}

.reel figure {
	flex: 0 0 260px;
	margin: 0;
	scroll-snap-align: start
}

.reel img {
	border-radius: 22px;
	box-shadow: var(--shadow)
}

/* ---- FEATURES ---- */
.features {
	padding: 0 0 90px
}

.grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-top: 26px
}

.grid article {
	padding: 26px 22px;
	background: var(--paper);
	border: 1.5px solid var(--line);
	border-radius: 22px
}

.big {
	display: block;
	font-family: var(--f-head);
	font-weight: 900;
	font-size: 54px;
	line-height: 1;
	color: var(--red);
	margin-bottom: 10px
}

.grid h3 {
	font-size: 19px;
	margin-bottom: 10px
}

.grid p {
	margin: 0;
	font-size: 15px;
	color: var(--ink-soft)
}

/* ---- THE KING DRAWERS: royal purple and gold ---- */
.royal {
	display: grid;
	grid-template-columns: 1fr 1fr;
	overflow: hidden;
	border-radius: 30px;
	background: linear-gradient(135deg, var(--royal), var(--royal-2));
	color: #fff;
	box-shadow: 0 20px 50px rgba(43, 20, 70, .3);
	margin-bottom: 90px !important
}

.royal-art img {
	width: 100%;
	height: 100%;
	object-fit: cover
}

.royal-copy {
	padding: 44px 44px 40px
}

.royal h2 {
	font-size: clamp(30px, 3.6vw, 44px);
	margin-bottom: 16px
}

.royal p:not(.kicker) {
	margin: 0 0 24px;
	color: #e3d6f2
}

.court {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px
}

.court img {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	box-shadow: 0 0 0 2.5px #d4a83a, 0 6px 14px rgba(0, 0, 0, .35)
}

/* ---- HOLIDAY PACKS ---- */
.packs {
	padding: 0 0 90px;
	text-align: center
}

.packs-lead {
	margin: -4px 0 26px;
	color: var(--ink-soft)
}

.pack-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	text-align: left
}

.pack-row figure {
	margin: 0;
	overflow: hidden;
	background: var(--paper);
	border: 1.5px solid var(--line);
	border-radius: 22px
}

.pack-row img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover
}

.pack-row figcaption {
	padding: 16px 18px 18px;
	font-size: 14.5px;
	color: var(--ink-soft)
}

.pack-row figcaption b {
	display: block;
	margin-bottom: 4px;
	font-family: var(--f-head);
	font-size: 19px;
	text-transform: uppercase;
	color: var(--ink)
}

/* ---- THE WAY IN ---- */
.final {
	padding: 70px 24px 80px;
	margin-bottom: 40px !important;
	text-align: center;
	border-radius: 30px;
	background: var(--ink);
	color: #fff
}

.final h2 {
	font-size: clamp(34px, 5vw, 58px);
	margin-bottom: 30px
}

.final h2 em {
	color: #ff7a6e
}

.final .play {
	border-color: #555
}

/* ---- FOOTER ---- */
.foot {
	padding: 10px var(--gutter) 40px;
	text-align: center;
	font-size: 13px;
	color: var(--ink-soft)
}

.foot p {
	margin: 4px 0
}

.foot .fine {
	font-size: 11.5px;
	opacity: .8
}

/* ---- narrower screens ---- */
@media (max-width: 960px) {
	.grid {
		grid-template-columns: repeat(2, 1fr)
	}

	.royal {
		grid-template-columns: 1fr
	}

	.royal-art img {
		aspect-ratio: 16 / 8
	}
}

@media (max-width: 820px) {
	.hero {
		grid-template-columns: 1fr;
		gap: 36px;
		padding: 40px 0 56px
	}

	.hero-art {
		max-width: 520px
	}

	.steps,
	.pack-row {
		grid-template-columns: 1fr
	}

	.steps {
		gap: 30px
	}
}

@media (max-width: 560px) {
	:root {
		--gutter: 16px
	}

	.lead {
		font-size: 16.5px
	}

	.phone {
		width: 46%;
		right: -6px;
		padding: 6px;
		border-radius: 24px
	}

	.phone img {
		border-radius: 19px
	}

	.stamp {
		font-size: 16px;
		left: -6px;
		top: -10px
	}

	.grid {
		grid-template-columns: 1fr
	}

	.reel figure {
		flex-basis: 62vw
	}

	.royal-copy {
		padding: 30px 22px
	}

	.play.small small {
		display: none
	}

	.brand {
		font-size: 18px
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto
	}

	.play {
		transition: none
	}
}

/* ---- footer links ---- */
.foot a {
	color: inherit;
	text-underline-offset: 2px
}

.foot a:hover {
	color: var(--teal-d)
}

/* ---- text pages (privacy) ---- */
.doc {
	max-width: 760px;
	margin: 0 auto;
	padding: 30px var(--gutter) 60px
}

.doc h1 {
	font-size: clamp(30px, 5vw, 44px);
	margin-bottom: 8px
}

.doc h2 {
	font-size: 20px;
	margin: 34px 0 10px
}

.doc .updated {
	color: var(--ink-soft);
	font-size: 14px;
	margin: 0 0 24px
}

.doc a {
	color: var(--teal-d)
}

.doc ul {
	padding-left: 22px
}

.doc li {
	margin: 6px 0
}
