/* Typography */
:root {
	--sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	--serif: "Instrument Serif", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
	--bg: #01100F; /* deep greenish background */
	--fg: #eef1ef;
	--muted: #b9c0bd;
	--accent: #e3d5c9;
	--card: #0f221e;
	--border: #18322c;
}

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

html, body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}
.container.narrow { max-width: 800px; }

/* Header */
.site-header {
	position: fixed;
	top: 0;
	z-index: 10;
	width: 100%;
}
.header-grid {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	min-height: 72px;
}
.header-link {
	color: var(--muted);
	text-decoration: none;
	font-size: 14px;
}
.header-link.left { justify-self: start; }
.header-link.right { justify-self: end; }
.header-link:hover { color: var(--fg); }
.brand-name {
	font-family: var(--serif);
	font-size: 18px;
	letter-spacing: 0.3px;
	justify-self: center;
}

/* Hero */
.hero {
	position: relative;
	height: 100vh;
	width: 100vw;
	display: flex;
	align-items: flex-end; /* orient content towards bottom */
}
.hero-bg {
	position: absolute;
	inset: 0;
	background-image: url('./img/background_image.webp');
	background-size: cover;
	background-position: center;
	mix-blend-mode: multiply;
}
.hero-inner {
	position: relative;
	padding-top: 0;
	padding-bottom: 0;
	margin-bottom: 15vh; /* 15% margin from the bottom */
	text-align: center;
}
.display {
	font-family: var(--serif);
	font-size: clamp(32px, 5.6vw, 56px);
	font-weight: 400;
	margin: 18px 0 10px 0;
}
.lede {
	color: var(--muted);
	font-size: clamp(32px, 3.6vw, 32px);
	max-width: 60ch;
	margin: 0 auto;
}
.portrait {
	display: inline-block;
	border-radius: 2px;
	overflow: hidden;
}
.portrait img {
	max-height: 300px;
	height: auto;
	width: auto;
}

/* Mobile adjustments */
@media (max-width: 640px) {
	/* Show only brand name in header */
	.header-link { display: none; }
	.header-grid {
		display: flex;
		justify-content: center;
		align-items: center;
	}

	/* Smaller hero text */
	.display { font-size: clamp(22px, 7.2vw, 30px); }
	.lede { font-size: clamp(16px, 4.2vw, 20px); }

	/* Center and constrain portrait image */
	.portrait {
		max-width: 70vw;
		margin: 0 auto;
	}
	.portrait img {
		width: 100%;
		max-width: 80vw;
		height: auto;
	}
	.brand-name {font-size: clamp(22px, 7.2vw, 30px);}
}

.actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: center;
}
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 16px;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
}
.button.primary {
	background: var(--fg);
	color: #111;
}
.button.ghost {
	border: 1px solid var(--border);
	color: var(--fg);
}
.button:hover { transform: translateY(-1px); }

/* Sections */
.section {
	padding: 72px 0;
}
.section.alt {
	background: #0d1f1b;
}
.section-title {
	font-family: var(--serif);
	font-size: clamp(24px, 3vw, 36px);
	margin: 0 0 24px 0;
}

/* Grid */
.grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}
@media (min-width: 640px) {
	.grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
	.grid { grid-template-columns: repeat(3, 1fr); }
}
.card {
	display: block;
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
	background: var(--card);
	color: inherit;
	text-decoration: none;
	transition: transform 160ms ease, border-color 160ms ease;
}
.card:hover {
	transform: translateY(-2px);
	border-color: #2d2d2d;
}
.card-media {
	aspect-ratio: 4 / 3;
	background-size: cover;
	background-position: center;
}
.card-body {
	padding: 14px 14px 18px 14px;
}
.card-title {
	margin: 0 0 6px 0;
	font-size: 18px;
}
.card-text {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

/* Two column section */
.two-col {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	align-items: start;
}
@media (min-width: 860px) {
	.two-col {
		grid-template-columns: 1fr 2fr;
	}
}

/* Footer */
.site-footer {
	border-top: 1px solid var(--border);
	padding: 28px 0;
	color: var(--muted);
	font-size: 14px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.button:hover,
	.card:hover {
		transform: none;
	}
}

/* CO2 counter badge */
.co2-counter {
	position: fixed;
	right: 14px;
	bottom: 14px;
	z-index: 20;
	background: rgba(15, 34, 30, 0.9);
	border: 1px solid var(--border);
	backdrop-filter: saturate(160%) blur(4px);
	color: var(--muted);
	font-size: 12px;
	padding: 8px 10px;
	border-radius: 10px;
}


