/* GN33's home page: the dark look of the GN33 web apps (near-black surfaces, a lime accent). */

:root {
	--surface: #101415;
	--surface-low: #191c1e;
	--surface-high: #272a2c;
	--line: #434938;
	--ink: #e0e3e5;
	--soft: #c3c9b2;
	--lime: #bef264;
	--on-lime: #233600;
	--purple: #e9a1f5;
	--orange: #ffa66b;
	--red: #ff6b6b;
	--blue: #5ec3f5;
	--radius: 24px;
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
	font-size: 18px;
	line-height: 1.6;
	color: var(--ink);
	background: radial-gradient(1200px 520px at 50% -120px, #26301a 0, transparent 70%) var(--surface);
	background-repeat: no-repeat;
}

h1,
h2,
h3 {
	line-height: 1.15;
	margin: 0;
	font-weight: 700;
	text-wrap: balance;
}

p {
	margin: 0;
}

a {
	color: var(--lime);
	text-underline-offset: 3px;
}

a:focus-visible {
	outline: 3px solid var(--lime);
	outline-offset: 3px;
	border-radius: 4px;
}

.wrap {
	width: 100%;
	max-width: 1040px;
	margin: 0 auto;
	padding: 0 16px;
}

main {
	flex: 1;
}

/* The top bar: the logo and the name. */

.top {
	padding-top: 20px;
	padding-bottom: 20px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #fff;
	text-decoration: none;
}

.brand img {
	width: 48px;
	height: 48px;
}

/* The opening: who GN33 is, in a few words. */

.hero {
	padding-top: 40px;
	padding-bottom: 64px;
}

.hero h1 {
	font-size: clamp(40px, 7vw, 68px);
	letter-spacing: -0.01em;
	color: #fff;
	max-width: 14em;
}

.hero h1 em {
	font-style: normal;
	color: var(--lime);
}

.hero .lead {
	margin-top: 24px;
	max-width: 34em;
	font-size: 21px;
	color: var(--soft);
}

/* Where else to find Nicu: LinkedIn and email, as pills under the opening. */

.hero .links {
	list-style: none;
	margin: 28px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hero .links a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 20px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 17px;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	background: var(--surface-low);
	transition: border-color 0.12s ease, background 0.12s ease;
}

.hero .links a:hover {
	border-color: var(--lime);
	background: var(--surface-high);
}

.hero .links a:focus-visible {
	border-radius: 999px;
}

.hero .links svg {
	flex: none;
	color: var(--lime);
}

/* A group of cards under a heading. */

.group + .group {
	margin-top: 56px;
}

.group h2 {
	font-size: 16px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--lime);
	margin-bottom: 20px;
}

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

.cards.two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards.three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* The whole card is the link, for a large target. */

.card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
	text-decoration: none;
	background: var(--surface-low);
	transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
	--accent: var(--lime);
}

/* Each Android app's card takes a color from the app's own icon: Call Hole's red phone, Pod Digger's blue sea. */

.card.call-hole {
	--accent: var(--red);
}

.card.pod-digger {
	--accent: var(--blue);
}

/* Each web app has the GN33 logo in its own color, and its card takes that color. */

.card.shop {
	--accent: var(--purple);
}

.card.blog {
	--accent: var(--orange);
}

.card:hover {
	border-color: var(--accent);
	background: var(--surface-high);
	transform: translateY(-2px);
}

.card:focus-visible {
	border-radius: var(--radius);
	outline-color: var(--accent);
}

.card .head {
	display: flex;
	align-items: center;
	gap: 16px;
}

.card .head img {
	flex: none;
	width: 64px;
	height: 64px;
	border-radius: 16px;
}

.card h3 {
	font-size: 26px;
	color: #fff;
}

.card .kind {
	margin-top: 4px;
	font-size: 15px;
	color: var(--soft);
}

.card .text {
	margin-top: 16px;
	color: var(--soft);
}

/* What you can do there, as a short list with a dot in the card's color. */

.card .can {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: grid;
	gap: 8px;
	font-size: 16px;
	line-height: 1.45;
}

.card .can li {
	position: relative;
	padding-left: 20px;
}

.card .can li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
}

.card .go {
	margin-top: auto;
	padding-top: 20px;
	font-weight: 700;
	color: var(--accent);
}

.card .go::after {
	content: " \2192";
}

/* Long text: the privacy page and the page for a wrong address. */

.prose {
	max-width: 760px;
	padding-top: 24px;
	padding-bottom: 24px;
}

.prose h1 {
	font-size: clamp(32px, 6vw, 44px);
	color: #fff;
	margin-bottom: 8px;
}

.prose h2 {
	font-size: 24px;
	color: #fff;
	margin: 32px 0 10px;
}

.prose p + p {
	margin-top: 14px;
}

.prose .soft {
	color: var(--soft);
	font-size: 16px;
}

/* The footer. */

footer {
	margin-top: 72px;
	padding: 28px 0 36px;
	border-top: 1px solid var(--surface-high);
	color: var(--soft);
	font-size: 16px;
}

footer .wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 32px;
}

footer a {
	color: #fff;
}

footer nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

@media (max-width: 860px) {
	.cards.three {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 680px) {
	.cards.two {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero {
		padding-top: 24px;
		padding-bottom: 48px;
	}

	.hero .lead {
		font-size: 19px;
	}

	.card {
		padding: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.card,
	.hero .links a {
		transition: none;
	}

	.card:hover {
		transform: none;
	}
}
