@font-face {
	font-family: "Cardo";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("media/wlp_gwjKBV1pqiv_-e4d3a4c7b9.ttf") format("truetype");
}

@font-face {
	font-family: "Cardo";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("media/wlpxgwjKBV1pqhv93IQ-3b87f23c63.ttf") format("truetype");
}

@font-face {
	font-family: "Aleo";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("media/c4m61nF8G8_s6gHhIOX0IYBo_KJFGmP9-0befe8cd43.ttf") format("truetype");
}

:root {
	--page-width: 1120px;
	--section-padding-x: 20px;
	--section-padding-y: 100px;
	--dark-surface: #212121;
	--body-surface: #f9fafb;
	--body-text: #374151;
	--heading-text: #111827;
	--soft-white: #fff;
	--transition-speed: 300ms;
}

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

html {
	line-height: 1.4;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--body-surface);
	color: var(--body-text);
	font-family: "Cardo", serif;
	font-size: 19px;
	-webkit-font-smoothing: antialiased;
}

body.menu-open {
	overflow: hidden;
}

img {
	display: inline-block;
	max-width: 100%;
	height: auto;
	border: 0;
	vertical-align: middle;
}

h1,
p {
	margin: 0;
}

h1 {
	color: var(--heading-text);
	font-family: "Cardo", serif;
	font-size: 56px;
	font-weight: 400;
	line-height: 1.2;
}

button,
input {
	font: inherit;
}

.site-header {
	position: fixed;
	top: 0;
	z-index: 200;
	width: 100%;
	background: transparent;
	box-shadow: none;
	transition: background var(--transition-speed) ease, backdrop-filter var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.site-header.scrolled {
	background: rgba(0, 0, 0, 0.68);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	max-width: var(--page-width);
	margin: 0 auto;
	padding: 8px var(--section-padding-x);
}

.brand-logo {
	width: 220px;
}

.primary-navigation {
	position: relative;
	display: flex;
	-webkit-tap-highlight-color: transparent;
}

.menu-toggle {
	position: relative;
	display: none;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
	position: absolute;
	display: block;
	width: 32px;
	height: 4px;
	border-radius: 0;
	background: var(--soft-white);
	transition: transform 130ms ease, top 160ms ease, bottom 160ms ease, opacity 100ms ease, background 100ms ease;
}

.menu-toggle-icon {
	top: 14px;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
	content: "";
	left: 0;
}

.menu-toggle-icon::before {
	top: -10px;
}

.menu-toggle-icon::after {
	bottom: -10px;
}

.menu-open .menu-toggle-icon {
	background: transparent;
	transform: rotate(-45deg);
}

.menu-open .menu-toggle-icon::before {
	top: 0;
	transform: rotate(-90deg);
}

.menu-open .menu-toggle-icon::after {
	bottom: 0;
	opacity: 0;
}

.menu-list {
	display: flex;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu-list a {
	display: flex;
	align-items: center;
	padding: 20px;
	color: var(--soft-white);
	font-size: 19px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--transition-speed) ease, background-color var(--transition-speed) ease;
}

.section-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	max-width: var(--page-width);
	margin: 0 auto;
	padding: var(--section-padding-y) var(--section-padding-x);
}

.dark-section {
	background: var(--dark-surface);
}

.inner-shadow {
	box-shadow: inset 0 0 8px #000;
}

.centered-section {
	align-items: center;
	text-align: center;
}

.animated-background {
	position: relative;
	overflow: hidden;
}

.animated-background canvas {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.hero-section .section-inner {
	padding-top: 156px;
}

.hero-layout,
.author-layout,
.signup-layout {
	display: flex;
	flex-wrap: nowrap;
	width: 100%;
	gap: 32px;
}

.hero-copy {
	display: flex;
	flex: 0 1 70%;
	flex-direction: column;
	justify-content: center;
}

.hero-copy h1,
.hero-copy p,
.author-copy h1,
.author-copy p,
.signup-copy p,
.site-footer p {
	color: var(--soft-white);
}

.hero-copy p {
	margin-top: 28px;
	font-size: 26px;
}

.hero-actions {
	display: flex;
	flex-flow: row nowrap;
	gap: 28px;
	margin-top: 28px;
}

.hero-cover {
	flex: 0 1 30%;
}

.outline-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	margin: 0;
	padding: 14px 24px;
	border: 1px solid currentColor;
	border-radius: 3px;
	background: transparent;
	color: currentColor;
	font-weight: 500;
	line-height: 1;
	text-align: center;
	cursor: pointer;
	transition: all 180ms ease-in-out;
}

.light-button {
	color: var(--soft-white);
	font-size: 22px;
}

.light-button:hover {
	background: rgba(0, 0, 0, 0.6);
}

.award-strip .section-inner {
	padding-top: 38px;
	padding-bottom: 38px;
}

.award-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	align-items: center;
	width: 100%;
	gap: 32px;
}

.award-badge {
	justify-self: center;
}

.small-badge {
	width: 116px;
}

.wide-badge {
	width: 156px;
}

.section-title {
	margin-bottom: 18px;
	color: #3c3c3c;
	font-family: "Aleo", serif;
	font-size: 38px;
	font-weight: 500;
	text-align: left;
}

.section-intro {
	margin-bottom: 36px;
	color: #3c3c3c;
	font-size: 24px;
}

.book-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	width: 100%;
	gap: 32px;
}

.dark-button {
	margin-top: 28px;
	color: #000;
	font-size: 24px;
}

.author-layout {
	align-items: center;
	gap: 36px;
}

.author-layout > .framed-image {
	flex: 0 1 32%;
	width: 32%;
}

.author-copy {
	display: flex;
	flex: 0 1 68%;
	flex-direction: column;
	justify-content: center;
}

.author-copy h1 {
	margin-bottom: 18px;
	font-size: 38px;
	font-weight: 500;
}

.author-copy p {
	font-size: 22px;
}

.framed-image {
	border-radius: 8px;
	box-shadow: -10px 10px 20px 10px #23232325;
}

.signup-layout {
	align-items: center;
	gap: 60px;
}

.signup-copy {
	display: flex;
	flex: 0 1 65%;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	text-align: left;
}

.signup-copy p {
	margin-bottom: 36px;
	font-size: 24px;
}

.signup-layout > .framed-image {
	flex: 0 1 35%;
	width: 35%;
}

.signup-form {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 16px;
	width: 100%;
	color: var(--soft-white);
}

.form-field {
	grid-column: span 12;
	width: 100%;
}

.signup-form input {
	display: block;
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #d1d5db;
	border-radius: 3px;
	background: #313131;
	color: var(--soft-white);
	font-size: 20px;
	line-height: 1.15;
	transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.signup-form input::placeholder {
	color: #dedede;
}

.signup-form input:focus {
	border-color: var(--soft-white);
	box-shadow: 0 0 2px var(--soft-white);
	outline: 0;
}

.submit-button {
	grid-column: span 12;
	justify-self: flex-start;
	color: var(--soft-white);
	font-size: 20px;
}

.submit-button:hover {
	background: #5828c1;
}

.form-message {
	margin-top: 16px;
	padding: 12px 16px;
	border-radius: 4px;
	background: #d1fae5;
	color: #047857;
	font-size: 16px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	border: 0;
	clip: rect(0 0 0 0);
}

.site-footer {
	background: #000;
}

.site-footer .section-inner {
	padding-top: 36px;
	padding-bottom: 36px;
}

.site-footer p {
	font-size: 18px;
}

@media (max-width: 1023px) {
	.menu-toggle {
		display: flex;
	}

	.menu-list {
		position: fixed;
		top: 58px;
		left: 0;
		z-index: 1000;
		display: none;
		flex-direction: column;
		align-items: stretch;
		width: calc(100vw - var(--menu-scrollbar-width, 0px));
		max-height: calc(100vh - 15px);
		overflow-y: auto;
		background: #000;
	}

	.menu-open .menu-list {
		display: flex;
	}

	.menu-list a {
		justify-content: center;
		padding-top: 26px;
		padding-bottom: 26px;
		background: #000;
		border-top: 1px solid rgba(255, 255, 255, 0.18);
		font-size: 26px;
	}

	.menu-list li:last-child a {
		border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	}
}

@media (max-width: 767px) {
	.hero-layout {
		flex-direction: column;
	}

	.hero-copy,
	.hero-cover {
		flex-basis: auto;
		width: 100%;
	}

	.author-layout,
	.signup-layout {
		flex-direction: column;
	}

	.author-layout > .framed-image,
	.author-copy,
	.signup-copy,
	.signup-layout > .framed-image {
		flex-basis: auto;
		width: 100%;
	}

	.author-layout > .framed-image,
	.signup-layout > .framed-image {
		height: auto;
	}
}

@media (max-width: 479px) {
	.award-grid,
	.book-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
