:root {
	--bg: #000000;
	--panel: #070707;
	--ink: #f4f1e8;
	--muted: rgba(244, 241, 232, 0.58);
	--line: rgba(244, 241, 232, 0.18);
	--ad-bg: rgba(244, 241, 232, 0.04);
	--radius: 4px;
	--font: "Inter", system-ui, sans-serif;
	--display: "Cormorant Garamond", "Times New Roman", serif;
	--brand: "Cinzel Decorative", "Palatino Linotype", serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	color: var(--ink);
	font: 16px/1.55 var(--font);
	background: var(--bg);
}

a {
	color: inherit;
	text-decoration: none;
}

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

.page {
	width: min(920px, calc(100% - 32px));
	margin: 0 auto;
	padding: 28px 0 48px;
}

.top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--line);
}

.logo-word,
.wordmark {
	font-family: var(--brand);
	font-weight: 400;
	text-transform: uppercase;
	color: var(--ink);
}

.logo-word {
	font-size: 1.05rem;
	letter-spacing: 0.18em;
}

.nav {
	display: flex;
	align-items: center;
	gap: 18px;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted);
}

.nav a:hover {
	color: var(--ink);
}

.nav-cta {
	padding: 9px 14px;
	border: 1px solid var(--ink);
	color: var(--ink);
}

.nav-cta:hover {
	background: var(--ink);
	color: var(--bg);
}

.hero {
	padding: 88px 0 36px;
	text-align: center;
}

.hero h1 {
	margin: 0;
}

.lockup {
	display: block;
	width: min(680px, 100%);
	height: auto;
	margin: 0 auto;
}

.kicker {
	margin: 0 0 10px;
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--muted);
}

h2,
h3 {
	font-family: var(--display);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.08;
	margin: 0;
}

h2 {
	font-size: clamp(2rem, 5vw, 3.1rem);
}

.lede {
	max-width: 34rem;
	margin: 28px auto 0;
	color: var(--muted);
	font-size: 1.02rem;
}

.hero-actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border: 1px solid var(--ink);
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-size: 0.72rem;
}

.btn-primary {
	background: var(--ink);
	color: var(--bg);
}

.btn-primary:hover {
	background: transparent;
	color: var(--ink);
}

.btn-ghost:hover {
	background: var(--ink);
	color: var(--bg);
}

.ad-slot {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 96px;
	margin: 36px 0;
	padding: 22px 12px 12px;
	border: 1px dashed var(--line);
	background: var(--ad-bg);
	overflow: hidden;
}

.ad-slot ins {
	width: 100%;
	min-height: 90px;
}

.ad-rect {
	min-height: 250px;
	max-width: 336px;
	margin-left: auto;
	margin-right: auto;
}

.ad-footer {
	margin-top: 0;
}

.ad-label {
	position: absolute;
	top: 6px;
	left: 10px;
	font-size: 0.6rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted);
}

.section-head {
	margin-bottom: 22px;
}

.section-head h2 {
	max-width: 16ch;
}

.game-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.game-card {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 18px;
	padding: 18px;
	border: 1px solid var(--line);
	background: var(--panel);
	color: var(--ink);
}

.game-card:hover {
	border-color: rgba(244, 241, 232, 0.42);
}

.game-card:hover .game-go {
	transform: translateX(4px);
}

.game-icon {
	width: 92px;
	height: 92px;
	border: 1px solid var(--line);
	display: grid;
	place-items: center;
	flex-shrink: 0;
}

.game-icon.letreiro {
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(3, 1fr);
	place-items: stretch;
	gap: 5px;
	padding: 16px;
}

.game-icon.letreiro span {
	background: #2c2c2c;
}

.game-icon.letreiro span:nth-child(1),
.game-icon.letreiro span:nth-child(5),
.game-icon.letreiro span:nth-child(9) {
	background: var(--ink);
}

.game-icon.letreiro span:nth-child(3),
.game-icon.letreiro span:nth-child(7) {
	background: #7a776e;
}

.game-icon.codesafio {
	grid-template-columns: 1fr;
	gap: 8px;
	padding: 14px;
	font-size: 0.58rem;
	font-weight: 600;
	letter-spacing: 0.16em;
}

.game-icon.codesafio span {
	display: grid;
	place-items: center;
	height: 28px;
	border: 1px solid var(--line);
}

.game-icon.codesafio span:last-child {
	background: var(--ink);
	color: var(--bg);
	border-color: var(--ink);
}

.game-icon.enseada {
	color: var(--ink);
}

.game-icon.enseada svg {
	width: 58px;
	height: 58px;
}

.game-copy p {
	margin: 8px 0 0;
	color: var(--muted);
	font-size: 0.95rem;
}

.game-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.game-meta h3 {
	font-size: 1.7rem;
}

.badge {
	padding: 3px 8px;
	border: 1px solid var(--line);
	font-size: 0.62rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.game-go {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--line);
	border-radius: 50%;
	font-size: 1.2rem;
	transition: transform 0.15s ease;
}

.about {
	padding: 40px 0 8px;
}

.about h2 {
	max-width: 16ch;
	margin-bottom: 16px;
}

.about p {
	max-width: 40rem;
	color: var(--muted);
	font-size: 1.05rem;
}

.foot {
	margin-top: 28px;
	padding-top: 8px;
}

.foot-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.foot-row nav {
	display: flex;
	gap: 16px;
}

.foot-row a:hover {
	color: var(--ink);
}

.legal {
	padding: 48px 0 24px;
}

.legal h1 {
	font-family: var(--display);
	font-weight: 500;
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	margin: 0 0 18px;
}

.legal p {
	color: var(--muted);
	max-width: 42rem;
}

.legal a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 720px) {
	.page {
		width: min(100% - 20px, 920px);
	}

	.hero {
		padding-top: 56px;
	}

	.ad-slot,
	.ad-slot ins {
		min-height: 72px;
	}

	.ad-rect {
		min-height: 180px;
	}

	.game-card {
		grid-template-columns: auto 1fr;
	}

	.game-go {
		display: none;
	}
}

@media (max-width: 480px) {
	.nav a:not(.nav-cta) {
		display: none;
	}

	.game-icon {
		width: 72px;
		height: 72px;
	}
}
