/* main.css */
/* Reset */
/* Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Remove default margin */
* {
  margin: 0;
}

/* Typographic tweaks (add accessible line-height & improve text rendering) */
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* Remove built-in form typography style */
input, button, textarea, select {
  font: inherit;
}

/* Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Variables */
:root {
	--background-color: #efefef;
	--text-color: #202020;
	--white-color: #ffffff;
	--error-color: #c75b7a;
	--info-color: #808080;

	--shadow-color: rgba(0, 0, 0, 0.12);
}

/* Root */
body {
	margin: 1rem;
	font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
	background: var(--background-color);
}

p {
	line-height: 1.625;
}

.container {
	position: relative;
	width: 100%;
	max-width: 480px;
}

.logo {
	font-size: 1.275rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.625rem;
	margin: 0 0 0.75rem;
}

.info {
	font-size: 0.875rem;
	margin: 1rem 0;
	color: var(--info-color);
}

/* Waitlist */
.response-container {
	& p {
		color: var(--error-color);
		font-size: 1rem;
		padding: 0.5rem 0;
		margin-top: 0.5rem;
	}
}

& .input-field {
	margin: 0.5rem 0;

	& input[type="email"] {
		font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
		width: 100%;
		display: block;
		border: 0;
		outline: 0;
		font-size: 1rem;
		padding: 0.625rem;
	}

	& label {
		display: flex;
		font-weight: 500;
		letter-spacing: 0.25px;
		margin-bottom: 0.25rem;
	}

	& button {
		border: 0;
		background: var(--text-color);
		color: var(--white-color);
		font-weight: 600;
		padding: 0.5rem 0.75rem;
		cursor: pointer;
		transition: all 0.2s ease;
		width: 100%;

		& svg {
			margin: 0 auto;
			fill: var(--white-color);
		}

		&:hover {
			box-shadow: 8px 8px 0 var(--shadow-color);
		}

		&:disabled {
			cursor: not-allowed;
			opacity: 0.6;
		}
	}
}

/* Footer */
.copyright {
	margin-top: 1.5rem;
	font-size: 0.8125rem;
	color: var(--info-color);
	padding-top: 0.75rem;
	border-top: 1px solid #dfdfdf;

	& a {
		color: var(--text-color);
		text-decoration: none;
		font-weight: 600;

		&:hover {
			text-decoration: underline;
		}
	}
}

/* 404 */
.page404 {
	& h1 {
		font-size: 6rem;
	}

	& a {
		color: var(--text-color);
		text-decoration: none;

		&:hover {
			text-decoration: underline;
		}

		&:hover,
		&:visited,
		&:focus {
			color: var(--text-color);
		}
	}
}
