/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* Coffee With Allan custom 404 page */
.cwa-404 {
	--cwa-ink: #2e2118;
	--cwa-accent: #6f3f1f;
	--cwa-line: #d8c7b5;
	--cwa-paper: #fffdf9;
	max-width: 1180px;
	margin: 0 auto;
	padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 3vw, 2rem);
	color: var(--cwa-ink);
}

.cwa-404__hero {
	display: grid;
	grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center;
}

.cwa-404__illustration img {
	display: block;
	width: 100%;
	height: auto;
	filter: sepia(.18);
}

.cwa-404__code {
	margin: 0 0 .5rem;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .22em;
	color: var(--cwa-accent);
}

.cwa-404 h1,
.cwa-404 h2,
.cwa-404__label {
	font-family: Georgia, "Times New Roman", serif;
	color: var(--cwa-ink);
}

.cwa-404 h1 {
	max-width: 13ch;
	margin: 0;
	font-size: clamp(2.7rem, 6vw, 5.2rem);
	line-height: .98;
	letter-spacing: -.035em;
}

.cwa-404__subtitle {
	margin: 1.5rem 0 2rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.35rem, 2.5vw, 2rem);
	line-height: 1.35;
	color: var(--cwa-accent);
}

.cwa-404__copy {
	max-width: 640px;
	font-size: clamp(1rem, 1.6vw, 1.18rem);
	line-height: 1.75;
}

.cwa-404__routes {
	margin-top: clamp(3rem, 7vw, 6rem);
	padding-top: 2rem;
	border-top: 1px solid var(--cwa-line);
	text-align: center;
}

.cwa-404__routes h2 {
	margin: 0 auto 2rem;
	font-size: clamp(1.35rem, 2.5vw, 2rem);
	font-weight: 500;
}

.cwa-404__links {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-top: 1px solid var(--cwa-line);
	border-bottom: 1px solid var(--cwa-line);
}

.cwa-404__link {
	display: flex;
	min-height: 215px;
	padding: 2rem 1rem;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: .7rem;
	color: inherit;
	text-decoration: none;
	border-right: 1px solid var(--cwa-line);
	transition: background-color .2s ease, transform .2s ease;
}

.cwa-404__link:last-child {
	border-right: 0;
}

.cwa-404__link:hover,
.cwa-404__link:focus-visible {
	background: #faf4ed;
	transform: translateY(-2px);
}

.cwa-404__icon {
	width: 46px;
	height: 46px;
	color: var(--cwa-accent);
}

.cwa-404__icon svg,
.cwa-404__cup svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.55;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cwa-404__label {
	font-size: 1.25rem;
	font-weight: 700;
}

.cwa-404__desc {
	max-width: 15ch;
	font-size: .93rem;
	line-height: 1.45;
}

.cwa-404__search {
	display: grid;
	grid-template-columns: 1fr 180px;
	gap: 2rem;
	align-items: center;
	margin-top: 2.5rem;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border: 1px solid var(--cwa-line);
	border-radius: 10px;
	background: var(--cwa-paper);
}

.cwa-404__search h2 {
	margin: 0 0 .5rem;
	font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.cwa-404__search p {
	margin: 0 0 1rem;
}

.cwa-404__search form {
	max-width: 620px;
}

.cwa-404__cup {
	width: 140px;
	color: var(--cwa-accent);
	justify-self: center;
}

@media (max-width: 900px) {
	.cwa-404__hero {
		grid-template-columns: 1fr;
	}

	.cwa-404__illustration {
		max-width: 620px;
		margin: 0 auto;
	}

	.cwa-404__intro {
		text-align: center;
	}

	.cwa-404 h1,
	.cwa-404__copy {
		margin-left: auto;
		margin-right: auto;
	}
}

@media (max-width: 760px) {
	.cwa-404__links {
		grid-template-columns: repeat(2, 1fr);
	}

	.cwa-404__link:nth-child(2) {
		border-right: 0;
	}

	.cwa-404__link:nth-child(-n+2) {
		border-bottom: 1px solid var(--cwa-line);
	}

	.cwa-404__search {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.cwa-404__search form {
		margin-inline: auto;
	}

	.cwa-404__cup {
		width: 110px;
	}
}

@media (max-width: 480px) {
	.cwa-404 {
		padding-inline: 1rem;
	}

	.cwa-404__links {
		grid-template-columns: 1fr;
	}

	.cwa-404__link,
	.cwa-404__link:nth-child(2) {
		min-height: auto;
		border-right: 0;
		border-bottom: 1px solid var(--cwa-line);
	}

	.cwa-404__link:last-child {
		border-bottom: 0;
	}
}
