/* IMPETO — madaxegames.com
   Palette and type match scripts/config.gd and assets/fonts/. */

@font-face {
	font-family: "Bangers";
	src: url("fonts/Bangers-Regular.ttf") format("truetype");
	font-display: swap;
}
@font-face {
	font-family: "Comic Neue";
	src: url("fonts/ComicNeue-Bold.ttf") format("truetype");
	font-weight: 700;
	font-display: swap;
}

:root {
	--paper: #f5e2b7;
	--cream: #fff3d6;
	--ink: #0b0a10;
	--red: #e83b2f;
	--red-dark: #a81c12;
	--orange: #ff5a1f;
	--gold: #ffd23f;
	--purple: #2f2545;
	--blue: #2f7fe0;
	--halftone: rgba(200, 112, 58, .30);
	--display: "Bangers", "Impact", sans-serif;
	--body: "Comic Neue", "Trebuchet MS", system-ui, sans-serif;
	--edge: 4px solid var(--ink);
	--pop: 8px 8px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-weight: 700;
	font-size: 18px;
	line-height: 1.55;
	overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--red-dark); }

/* The halftone dot field the whole game is printed on. */
.dots {
	background-image: radial-gradient(var(--halftone) 22%, transparent 23%);
	background-size: 14px 14px;
}

h1, h2, h3, .display {
	font-family: var(--display);
	font-weight: 400;
	letter-spacing: .02em;
	line-height: .95;
	text-transform: uppercase;
	margin: 0;
}

h2 {
	font-size: clamp(2.4rem, 6vw, 4rem);
	color: var(--red);
	-webkit-text-stroke: 3px var(--ink);
	paint-order: stroke fill;
	text-shadow: 5px 5px 0 var(--ink);
}

h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }

.wrap { width: min(1120px, 92vw); margin-inline: auto; }

/* ---------- top bar ---------- */

.bar {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--ink);
	border-bottom: 4px solid var(--red);
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 10px clamp(14px, 4vw, 34px);
}
.bar img { height: 34px; width: auto; }
.bar nav { display: flex; gap: clamp(12px, 2vw, 26px); margin-left: auto; align-items: center; }
.bar nav a {
	font-family: var(--display);
	font-size: 1.35rem;
	color: var(--cream);
	text-decoration: none;
	text-transform: uppercase;
}
.bar nav a:hover { color: var(--gold); }

/* ---------- buttons ---------- */

.btn {
	display: inline-block;
	font-family: var(--display);
	font-size: clamp(1.3rem, 2.4vw, 1.9rem);
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
	background: var(--gold);
	border: var(--edge);
	border-radius: 6px;
	padding: .42em 1.1em;
	box-shadow: 6px 6px 0 var(--ink);
	transform: rotate(-1deg);
	transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: rotate(-1deg) translate(-2px, -2px); box-shadow: 9px 9px 0 var(--ink); }
.btn:active { transform: rotate(-1deg) translate(5px, 5px); box-shadow: 1px 1px 0 var(--ink); }
.btn.red { background: var(--red); color: var(--cream); }
.btn.small { font-size: 1.2rem; box-shadow: 4px 4px 0 var(--ink); transform: none; }
.btn.small:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }

/* Not a link yet. Reads as a stamp, not as a button that ignores you. */
.btn.soon {
	cursor: default;
	line-height: .9;
	text-align: center;
	padding: .35em 1em;
	transform: rotate(-2.5deg);
}
.btn.soon:hover, .btn.soon:active { transform: rotate(-2.5deg); box-shadow: 6px 6px 0 var(--ink); }
.btn.soon em {
	display: block;
	font-style: normal;
	font-size: .62em;
	letter-spacing: .1em;
	color: var(--gold);
}

/* ---------- hero ---------- */

.hero {
	position: relative;
	min-height: min(88vh, 780px);
	display: grid;
	align-items: center;
	background: url("img/hero.jpg") center right / cover no-repeat, var(--paper);
	border-bottom: 6px solid var(--ink);
	overflow: hidden;
}
/* Left-side wash so the copy stays readable over the key art. */
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, var(--paper) 30%, rgba(245, 226, 183, .82) 44%, transparent 62%);
}
.hero .wrap { position: relative; padding: clamp(40px, 7vw, 90px) 0; }
.hero-logo { width: min(560px, 78%); filter: drop-shadow(6px 6px 0 rgba(11, 10, 16, .35)); }
.tagline {
	font-family: var(--display);
	font-size: clamp(1.5rem, 3.4vw, 2.5rem);
	color: var(--ink);
	margin: 18px 0 0;
	max-width: 16ch;
}
.hero p.lede { max-width: 34ch; margin: 14px 0 26px; font-size: clamp(1rem, 1.6vw, 1.15rem); }
.cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.cta-note { font-size: .85rem; opacity: .75; margin: 14px 0 0; }

/* ---------- beats ---------- */

.beats { padding: clamp(50px, 8vw, 96px) 0; }
.beat {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(24px, 5vw, 64px);
	align-items: center;
	margin-bottom: clamp(44px, 7vw, 86px);
}
.beat:nth-child(even) .beat-art { order: -1; }
.beat h3 { color: var(--red-dark); margin-bottom: 10px; }
.beat p { margin: 0; }
.beat .num {
	font-family: var(--display);
	font-size: 3.2rem;
	color: var(--gold);
	-webkit-text-stroke: 3px var(--ink);
	paint-order: stroke fill;
	line-height: 1;
	display: block;
}

/* Every screenshot is a printed panel: hard border, hard shadow, off-square. */
.panel {
	border: var(--edge);
	border-radius: 4px;
	box-shadow: var(--pop);
	background: var(--cream);
	transform: rotate(-1.2deg);
}
.beat:nth-child(even) .panel { transform: rotate(1.2deg); }

/* ---------- facts strip ---------- */

.facts {
	background: var(--ink);
	color: var(--cream);
	border-block: 6px solid var(--red);
	padding: clamp(28px, 5vw, 52px) 0;
}
.facts ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 26px;
	text-align: center;
}
.facts b {
	display: block;
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(2.6rem, 6vw, 3.8rem);
	color: var(--gold);
	line-height: 1;
}
.facts span { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- gallery ---------- */

.gallery { padding: clamp(50px, 8vw, 90px) 0; }
.grid {
	margin-top: 34px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 26px;
}
.grid a { display: block; border: var(--edge); border-radius: 4px; box-shadow: 6px 6px 0 var(--ink); transition: transform .1s; }
.grid a:hover { transform: translate(-3px, -3px); }

dialog {
	border: 6px solid var(--ink);
	border-radius: 6px;
	padding: 0;
	background: var(--ink);
	max-width: 94vw;
	max-height: 92vh;
}
dialog::backdrop { background: rgba(11, 10, 16, .86); }
dialog img { max-height: 88vh; width: auto; }

/* ---------- socials ---------- */

.socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.socials a {
	font-family: var(--display);
	font-size: 1.15rem;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
	background: var(--cream);
	border: 3px solid var(--ink);
	border-radius: 4px;
	padding: .28em .8em;
	box-shadow: 4px 4px 0 var(--ink);
}
.socials a:hover { background: var(--gold); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }

/* ---------- signup ---------- */

.sr-only {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip-path: inset(50%);
	white-space: nowrap;
}
.hp { position: absolute; left: -9999px; }

.signup {
	background: var(--red);
	color: var(--cream);
	border-block: 6px solid var(--ink);
	padding: clamp(40px, 6vw, 72px) 0;
	text-align: center;
}
.signup h2 { color: var(--gold); text-shadow: 5px 5px 0 var(--ink); }
.signup p { max-width: 46ch; margin-inline: auto; }
.signup form {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
	margin-top: 26px;
}
.signup input[type="email"] {
	font-family: var(--body);
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--ink);
	background: var(--cream);
	border: var(--edge);
	border-radius: 6px;
	box-shadow: 6px 6px 0 var(--ink);
	padding: .55em .9em;
	width: min(340px, 100%);
}
.signup input[type="email"]:focus-visible { outline: 4px solid var(--gold); outline-offset: 2px; }
.signup button { font-family: var(--display); cursor: pointer; }
.signup .note { min-height: 1.5em; margin-top: 16px; font-size: 1rem; color: var(--cream); }

/* ---------- banner + footer ---------- */

.banner { border-block: 6px solid var(--ink); }
.banner img { width: 100%; }

footer {
	background: var(--purple);
	color: var(--cream);
	padding: clamp(34px, 6vw, 64px) 0;
	text-align: center;
}
footer .socials { justify-content: center; }
footer p { font-size: .9rem; opacity: .85; }
footer a { color: var(--gold); }

/* ---------- press kit page ---------- */

.page-head {
	background: var(--ink);
	color: var(--cream);
	padding: clamp(40px, 7vw, 80px) 0;
	border-bottom: 6px solid var(--red);
}
.page-head h1 {
	font-size: clamp(3rem, 9vw, 6rem);
	color: var(--gold);
	text-shadow: 6px 6px 0 var(--red-dark);
}
.page-head p { max-width: 60ch; }

.press { padding: clamp(40px, 6vw, 76px) 0; }
.press section { margin-bottom: clamp(38px, 6vw, 64px); }
.press h2 { margin-bottom: 20px; }
.press p, .press li { max-width: 68ch; }

.sheet {
	width: 100%;
	border-collapse: collapse;
	background: var(--cream);
	border: var(--edge);
	box-shadow: var(--pop);
}
.sheet th, .sheet td { text-align: left; padding: 12px 16px; border-bottom: 2px solid rgba(11, 10, 16, .18); vertical-align: top; }
.sheet tr:last-child th, .sheet tr:last-child td { border-bottom: 0; }
.sheet th { font-family: var(--display); font-weight: 400; font-size: 1.2rem; width: 30%; white-space: nowrap; }

.rules { background: var(--cream); border: var(--edge); box-shadow: var(--pop); padding: 22px 26px; }
.rules li { margin-bottom: 8px; }

@media (max-width: 760px) {
	.beat { grid-template-columns: 1fr; }
	.beat:nth-child(even) .beat-art { order: 0; }
	.hero { background-position: 72% center; }
	.hero::before { background: linear-gradient(0deg, var(--paper) 42%, rgba(245, 226, 183, .8) 68%, transparent); }
	.sheet th { width: auto; white-space: normal; }
	/* Four Bangers links do not fit beside the logo on a phone. Drop them
	   to their own row rather than letting the bar push the page wider. */
	.bar { flex-wrap: wrap; row-gap: 8px; }
	.bar img { height: 26px; }
	.bar nav { margin-left: auto; width: 100%; justify-content: space-between; gap: 8px; }
	.bar nav a { font-size: 1.05rem; }
}
