/*
Theme Name: Snowflake Publications
Theme URI: https://snowflake-publications.test
Author: Snowflake Publications
Description: Editorial block theme for an independent publishing house.
Version: 0.1.0
Requires at least: 6.7
Requires PHP: 8.2
Text Domain: snowflake-publications
*/

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&family=Work+Sans:wght@500;600&display=swap");

:root {
	--sp-ink: #171413;
	--sp-paper: #f5f0e8;
	--sp-paper-deep: #e7ded2;
	--sp-rose: #d43d68;
	--sp-moss: #66705a;
	--sp-gold: #d3a947;
	--sp-line: rgba(23, 20, 19, 0.22);
}

html {
	scroll-behavior: smooth;
}

body {
	overflow-x: hidden;
	background: var(--sp-paper);
}

a,
button,
.wp-element-button {
	transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

a:focus-visible,
button:focus-visible,
.wp-element-button:focus-visible {
	outline: 3px solid var(--sp-gold);
	outline-offset: 4px;
}

.sp-site-header {
	position: relative;
	z-index: 20;
	min-height: 5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.24);
	background: var(--sp-ink);
	color: var(--sp-paper);
}

.sp-header-inner {
	min-height: 5rem;
}

.sp-wordmark a {
	color: inherit;
	font-family: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
}

.sp-navigation {
	font-family: "Work Sans", "Helvetica Neue", sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: uppercase;
}

.sp-navigation a {
	color: inherit;
}

.sp-navigation a:hover {
	color: var(--sp-gold);
}

.sp-hero {
	position: relative;
	display: flex;
	min-height: calc(100svh - 9rem);
	align-items: center;
	isolation: isolate;
	background-color: var(--sp-ink);
	background-image: url("assets/images/editorial-library.jpg");
	background-position: center 48%;
	background-size: cover;
	color: #fffaf3;
	box-shadow: inset 0 0 0 100vmax rgba(16, 13, 12, 0.66);
	clip-path: inset(0 -100vmax);
}

.sp-hero-inner {
	width: 100%;
	padding-top: 5rem;
	padding-bottom: 5rem;
}

.sp-hero-copy {
	max-width: 58rem;
}

.sp-eyebrow {
	margin-bottom: 1.5rem;
	font-family: "Work Sans", "Helvetica Neue", sans-serif;
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: uppercase;
}

.sp-hero h1 {
	max-width: 13ch;
	margin: 0;
	font-size: 7.25rem;
	font-weight: 500;
	line-height: 0.82;
}

.sp-hero-intro {
	max-width: 40rem;
	margin-top: 2rem;
	color: rgba(255, 250, 243, 0.9);
	font-size: 1.12rem;
	line-height: 1.75;
}

.sp-button-row {
	margin-top: 2rem;
}

.wp-block-button .wp-block-button__link {
	border: 1px solid transparent;
	border-radius: 0;
	font-family: "Work Sans", "Helvetica Neue", sans-serif;
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: uppercase;
}

.wp-block-button .wp-block-button__link:hover {
	background: var(--sp-gold);
	color: var(--sp-ink);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border-color: currentColor;
	color: inherit;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--sp-gold);
	background: var(--sp-gold);
	color: var(--sp-ink);
}

.sp-section {
	padding-top: 7rem;
	padding-bottom: 7rem;
}

.sp-section-heading {
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--sp-line);
}

.sp-section-heading h2 {
	margin: 0;
	font-size: 3.5rem;
	font-weight: 500;
	line-height: 0.95;
}

.sp-section-link {
	font-family: "Work Sans", "Helvetica Neue", sans-serif;
	font-size: 0.74rem;
	font-weight: 600;
	text-transform: uppercase;
}

.sp-book-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin-top: 3rem;
	padding: 0;
	background: var(--sp-line);
	border: 1px solid var(--sp-line);
	list-style: none;
}

.sp-product-catalogue-grid {
	clear: both;
}

.sp-book-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 31rem;
	justify-content: flex-end;
	padding: 2.25rem;
	background: var(--sp-paper-deep);
}

.sp-book-grid > li:nth-child(3n + 1) .sp-book-card {
	background: #d9b5bd;
}

.sp-book-grid > li:nth-child(3n + 2) .sp-book-card {
	background: #cad0bd;
}

.sp-book-grid > li:nth-child(3n) .sp-book-card {
	background: #e5c987;
}

.sp-book-card::before {
	position: absolute;
	top: 2rem;
	left: 2.25rem;
	width: 2.4rem;
	height: 2.4rem;
	border: 1px solid currentColor;
	content: "";
	transform: rotate(45deg);
}

.sp-book-card .wp-block-post-terms,
.sp-book-card .wp-block-post-date {
	font-family: "Work Sans", "Helvetica Neue", sans-serif;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
}

.sp-book-card .wp-block-post-title {
	margin: 0.75rem 0 1.25rem;
	font-size: 2.8rem;
	line-height: 0.98;
}

.sp-book-card .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.sp-book-card .wp-block-post-title a:hover {
	color: #7b1736;
}

.sp-book-card .wp-block-post-excerpt {
	margin: 0;
	font-size: 0.92rem;
}

.sp-book-meta {
	margin: -0.75rem 0 1.25rem;
	font-family: "Work Sans", "Helvetica Neue", sans-serif;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
}

.sp-book-card .wp-block-post-excerpt__more-link {
	display: inline-block;
	margin-top: 1.25rem;
	font-family: "Work Sans", "Helvetica Neue", sans-serif;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
}

.sp-catalogue-filters {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	align-items: end;
	margin: 0 0 3rem;
	padding: 1.25rem;
	border: 1px solid var(--sp-line);
	background: rgba(255, 250, 243, 0.42);
}

.sp-catalogue-filters label {
	display: grid;
	gap: 0.45rem;
	font-family: "Work Sans", "Helvetica Neue", sans-serif;
	font-size: 0.68rem;
	font-weight: 600;
	text-transform: uppercase;
}

.sp-catalogue-filters input,
.sp-catalogue-filters select {
	width: 100%;
	min-height: 2.75rem;
	box-sizing: border-box;
	border: 1px solid var(--sp-line);
	border-radius: 0;
	background: #fffaf3;
	color: var(--sp-ink);
	font: 500 0.9rem "Work Sans", "Helvetica Neue", sans-serif;
}

.sp-catalogue-filter-actions {
	display: flex;
	gap: 0.75rem;
	align-items: center;
}

.sp-catalogue-filter-actions button,
.sp-catalogue-filter-actions a {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--sp-ink);
	padding: 0 1rem;
	background: var(--sp-ink);
	color: var(--sp-paper);
	cursor: pointer;
	font-family: "Work Sans", "Helvetica Neue", sans-serif;
	font-size: 0.72rem;
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
}

.sp-catalogue-filter-actions a {
	background: transparent;
	color: var(--sp-ink);
}

.sp-catalogue-empty {
	margin-top: 3rem;
	font-size: 1.2rem;
}

.sp-manifesto {
	padding-top: 7rem;
	padding-bottom: 7rem;
	background: var(--sp-ink);
	color: var(--sp-paper);
}

.sp-manifesto-copy {
	max-width: 1040px;
}

.sp-manifesto h2 {
	margin: 0;
	color: inherit;
	font-size: 5rem;
	font-weight: 400;
	line-height: 0.98;
}

.sp-manifesto-mark {
	color: var(--sp-rose);
}

.sp-journal-grid {
	gap: 2.5rem;
	margin-top: 3rem;
}

.sp-journal-card {
	padding-top: 1.25rem;
	border-top: 4px solid var(--sp-ink);
}

.sp-journal-card .wp-block-post-title {
	margin: 1rem 0;
	font-size: 2rem;
	line-height: 1.05;
}

.sp-journal-card .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.sp-journal-card .wp-block-post-title a:hover {
	color: var(--sp-rose);
}

.sp-journal-card .wp-block-post-date {
	font-family: "Work Sans", "Helvetica Neue", sans-serif;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
}

.sp-cta {
	padding-top: 5rem;
	padding-bottom: 5rem;
	background: var(--sp-rose);
	color: #fffaf3;
}

.sp-cta h2 {
	max-width: 16ch;
	margin: 0;
	color: inherit;
	font-size: 3.5rem;
	line-height: 0.98;
}

.sp-page-header {
	padding-top: 7rem;
	padding-bottom: 4rem;
	background: var(--sp-paper-deep);
}

.sp-page-header h1 {
	max-width: 16ch;
	margin: 0;
	font-size: 5rem;
	font-weight: 500;
	line-height: 0.9;
}

.sp-content {
	padding-top: 5rem;
	padding-bottom: 7rem;
}

.sp-content > * + * {
	margin-top: 1.5em;
}

.sp-post-meta {
	margin-top: 1.5rem;
	font-family: "Work Sans", "Helvetica Neue", sans-serif;
	font-size: 0.74rem;
	font-weight: 600;
	text-transform: uppercase;
}

.sp-pagination {
	margin-top: 4rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--sp-line);
	font-family: "Work Sans", "Helvetica Neue", sans-serif;
	font-size: 0.76rem;
	font-weight: 600;
	text-transform: uppercase;
}

.sp-site-footer {
	padding-top: 4rem;
	padding-bottom: 3rem;
	background: var(--sp-ink);
	color: var(--sp-paper);
}

.sp-footer-wordmark {
	margin: 0;
	color: inherit;
	font-size: 3.4rem;
	line-height: 0.9;
}

.sp-footer-rule {
	margin: 3rem 0 1.5rem;
	border-color: rgba(255, 255, 255, 0.24);
}

.sp-footer-meta {
	color: rgba(245, 240, 232, 0.72);
	font-family: "Work Sans", "Helvetica Neue", sans-serif;
	font-size: 0.7rem;
	text-transform: uppercase;
}

@media (max-width: 900px) {
	.sp-hero h1 {
		font-size: 5.25rem;
	}

	.sp-section-heading h2,
	.sp-cta h2 {
		font-size: 3rem;
	}

	.sp-manifesto h2 {
		font-size: 4rem;
	}

	.sp-book-grid,
	.sp-journal-grid {
		grid-template-columns: 1fr 1fr;
	}

	.sp-catalogue-filters {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	.sp-site-header,
	.sp-header-inner {
		min-height: 4.5rem;
	}

	.sp-wordmark a {
		font-size: 1.38rem;
	}

	.sp-hero {
		min-height: calc(100svh - 6rem);
		background-position: 58% center;
	}

	.sp-hero-inner {
		padding-top: 4rem;
		padding-bottom: 3rem;
	}

	.sp-hero h1 {
		font-size: 3.55rem;
		line-height: 0.88;
	}

	.sp-hero-intro {
		font-size: 1rem;
		line-height: 1.6;
	}

	.sp-button-row {
		align-items: stretch;
	}

	.sp-button-row .wp-block-button,
	.sp-button-row .wp-block-button__link {
		width: 100%;
		text-align: center;
	}

	.sp-section {
		padding-top: 4.5rem;
		padding-bottom: 4.5rem;
	}

	.sp-section-heading {
		align-items: flex-start;
		gap: 1rem;
	}

	.sp-section-heading h2,
	.sp-cta h2 {
		font-size: 2.55rem;
	}

	.sp-book-grid,
	.sp-journal-grid {
		grid-template-columns: 1fr;
	}

	.sp-catalogue-filters {
		grid-template-columns: 1fr;
	}

	.sp-catalogue-filter-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.sp-book-card {
		min-height: 25rem;
	}

	.sp-manifesto {
		padding-top: 5rem;
		padding-bottom: 5rem;
	}

	.sp-manifesto h2 {
		font-size: 3rem;
	}

	.sp-page-header h1 {
		font-size: 3.5rem;
	}

	.sp-footer-wordmark {
		font-size: 2.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}