:root {
	/* ### Primary */
	--Desaturated-Green: #698E49;
	--Soft-Green: #b7c4ac;
	/* ### Neutral */
	--Dark-Grayish-Green: #788a69;
	--Error-Red: #b3564a;

	--Font-size: 16px;
	--Family: "Josefin Sans", sans-serif;
	/* - Weights: 300, 400, 600 */
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: var(--Family);
}

html {
	overflow-x: hidden;
	font-size: var(--Font-size);
	min-height: 100vh;
	background: linear-gradient(135deg, hsl(0, 0%, 100%), hsl(0, 100%, 98%));
	background-attachment: fixed;
}

body {
	overflow-x: hidden;
	min-height: 100vh;
	background: url(../assets/img/bg-fabric.jpg) right top no-repeat;
	background-size: contain;
}

.container {
	min-height: 100vh;
	background: linear-gradient(135deg, hsl(0, 0%, 100%), hsl(0, 100%, 98%));
}

img {
	max-width: 100%;
}

.logo {
	padding-top: 2rem;
	width: 80%;
	margin: 0 0 2rem 2rem;
}

.hero img {
	width: 100%;
	display: block;
}

main {
	display: flex;
	justify-content: center;
	align-items: center;
}

.wrapper {
	width: 100%;
	padding: 0 0 5rem 0;
	display: flex;
	flex-direction: column;
}

.heading {
	font-size: 3rem;
	text-transform: uppercase;
	font-weight: 600;
	color: #000;
	letter-spacing: 0.6rem;
	line-height: 1.05;
	text-align: center;
	margin: 2.5rem 0 1rem 0;
}

.heading span {
	font-weight: 300;
	color: var(--Desaturated-Green);
}

.lead {
	margin: 0 2.3rem 2.3rem 2.3rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	text-align: center;
	color: var(--Desaturated-Green);
}

/* ---------- Signup form ---------- */

.signup {
	width: 84%;
	margin: 1rem auto 0 auto;
}

.signup form {
	display: flex;
}

input[type="email"] {
	flex: 1;
	min-width: 0;
	background: transparent;
	height: 3rem;
	padding-left: 1.5rem;
	font-size: 1rem;
	outline: none;
	border: 0.09rem solid var(--Desaturated-Green);
}

input[type="email"].error {
	border-color: var(--Error-Red);
}

::placeholder {
	color: var(--Desaturated-Green);
}

/* honeypot field — hidden from real visitors */
#website {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.btn {
	height: 3rem;
	background: var(--Desaturated-Green);
	color: rgb(252, 243, 229);
	font-weight: 600;
	font-size: 1rem;
	padding: 0 2rem;
	outline: none;
	border: none;
	cursor: pointer;
	user-select: none;
	transition: all 0.1s ease;
}

.btn:hover {
	box-shadow: 4px 4px 15px var(--Soft-Green);
}

.btn:disabled {
	opacity: 0.6;
	cursor: default;
	box-shadow: none;
}

#form-message {
	margin: 0.4rem 0 0 0.2rem;
	min-height: 1.4rem;
	font-size: 0.95rem;
	opacity: 0;
	transition: opacity 0.1s linear;
}

#form-message.error {
	opacity: 1;
	color: var(--Error-Red);
}

#form-message.success {
	opacity: 1;
	color: var(--Desaturated-Green);
}

/* ---------- Socials ---------- */

.socials {
	display: flex;
	margin: 1.5rem auto 1rem auto;
	justify-content: center;
	gap: 20px;
}

.socials a {
	color: var(--Desaturated-Green);
	transition: color 0.1s ease;
}

.socials a:hover {
	color: var(--Dark-Grayish-Green);
}

.icon {
	width: 28px;
	height: 28px;
}

/* ---------- Cookie banner ---------- */

#cookie-banner {
	position: fixed;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	z-index: 100;
	max-width: 20rem;
	padding: 0.8rem 1rem;
	background: hsl(0, 0%, 100%);
	border: 1px solid var(--Soft-Green);
	border-radius: 6px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#cookie-banner[hidden] {
	display: none;
}

#cookie-banner p {
	margin: 0 0 0.6rem 0;
	font-size: 0.85rem;
	line-height: 1.4;
	color: var(--Dark-Grayish-Green);
}

.cookie-actions {
	display: flex;
	gap: 0.6rem;
}

.cookie-actions .btn {
	height: 2rem;
	padding: 0 1rem;
	font-size: 0.85rem;
}

.btn-ghost {
	background: transparent;
	color: var(--Desaturated-Green);
	border: 0.09rem solid var(--Desaturated-Green);
}

.btn-ghost:hover {
	box-shadow: none;
	background: hsl(0, 100%, 98%);
}

/* ---------- Desktop ---------- */

@media (min-width: 549px) {
	.hero {
		display: none;
	}

	.container {
		width: 61%;
		min-width: 400px;
		max-width: 850px;
	}

	.logo {
		margin: 0 0 2rem 8vw;
	}

	.logo img {
		width: 90%;
	}

	.heading {
		text-align: left;
		margin: 2.5rem 2rem 1rem 8vw;
	}

	.lead {
		width: 65%;
		margin: 0 0 2.3rem 8vw;
		text-align: left;
	}

	.signup {
		width: 65%;
		margin: 2rem 8vw;
	}

	.btn {
		padding: 0 2.7rem;
	}

	.socials {
		margin: 1rem 8vw;
		justify-content: flex-start;
	}
}
