/*
Theme Name: Quite Puppy Calm
Theme URI: https://quitepuppy.com/
Author: Quite Puppy
Description: A calm, accessible editorial theme for the Quite Puppy dog-care website.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: quitepuppy-calm
*/

:root {
	--qp-ink: #26352e;
	--qp-muted: #64736a;
	--qp-green: #285b45;
	--qp-deep: #173d30;
	--qp-sage: #eaf2eb;
	--qp-cream: #fbfaf6;
	--qp-paper: #fff;
	--qp-line: #e1e8e1;
	--qp-clay: #b86f4a;
	--qp-content-width: 760px;
	--qp-wide-width: 1160px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--qp-cream);
	color: var(--qp-ink);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.7;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--qp-green);
	text-underline-offset: .18em;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

a:hover {
	color: var(--qp-deep);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid var(--qp-clay);
	outline-offset: 3px;
}

.qp-skip-link {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 1000;
	padding: 10px 14px;
	transform: translateY(-160%);
	border-radius: 6px;
	background: var(--qp-deep);
	color: #fff;
}

.qp-skip-link:focus {
	transform: translateY(0);
	color: #fff;
}

.qp-site-header {
	position: relative;
	z-index: 10;
	border-bottom: 1px solid var(--qp-line);
	background: var(--qp-paper);
}

.qp-header-inner,
.qp-container,
.qp-footer-inner {
	width: min(calc(100% - 40px), var(--qp-wide-width));
	margin-inline: auto;
}

.qp-header-inner {
	display: flex;
	min-height: 78px;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.qp-brand {
	display: inline-flex;
	min-width: 0;
	align-items: center;
	gap: 11px;
	color: var(--qp-deep);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.qp-brand:hover {
	color: var(--qp-green);
	text-decoration: none;
}

.qp-brand img {
	display: block;
	width: auto;
	max-width: min(230px, 42vw);
	max-height: 58px;
	object-fit: contain;
}

.qp-brand-mark {
	display: grid;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	place-items: center;
	border-radius: 50%;
	background: var(--qp-sage);
	color: var(--qp-green);
}

.qp-brand-mark svg {
	width: 25px;
	height: 25px;
	fill: currentColor;
}

.qp-primary-nav {
	display: flex;
	align-items: center;
	gap: 5px;
}

.qp-primary-nav ul,
.qp-footer-nav ul {
	display: flex;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	list-style: none;
}

.qp-primary-nav a {
	display: block;
	padding: 9px 11px;
	border-radius: 6px;
	color: var(--qp-ink);
	font-size: 14px;
	font-weight: 650;
	text-decoration: none;
}

.qp-primary-nav a:hover,
.qp-primary-nav .current-menu-item > a,
.qp-primary-nav .current_page_item > a {
	background: var(--qp-sage);
	color: var(--qp-deep);
}

.qp-header-search {
	flex: 0 0 auto;
}

.qp-search-form {
	display: flex;
	align-items: center;
	gap: 6px;
}

.qp-search-form label {
	display: block;
}

.qp-search-form input[type="search"] {
	width: 145px;
	min-height: 39px;
	padding: 7px 12px;
	border: 1px solid var(--qp-line);
	border-radius: 22px;
	background: var(--qp-paper);
	color: var(--qp-ink);
	font: inherit;
	font-size: 13px;
}

.qp-search-form input[type="submit"] {
	min-height: 39px;
	padding: 7px 12px;
	border: 0;
	border-radius: 22px;
	background: var(--qp-green);
	color: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.qp-main {
	min-height: 55vh;
	padding-block: 34px 68px;
}

.qp-hero {
	display: grid;
	overflow: hidden;
	grid-template-columns: 1.1fr .9fr;
	gap: 24px;
	align-items: stretch;
}

.qp-hero-copy {
	padding: clamp(28px, 5vw, 58px);
	border-radius: 16px;
	background: var(--qp-sage);
}

.qp-eyebrow,
.qp-category-label {
	margin: 0 0 10px;
	color: var(--qp-green);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1.35px;
	text-transform: uppercase;
}

.qp-hero h1 {
	max-width: 620px;
	margin: 0 0 15px;
	color: var(--qp-deep);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(36px, 5vw, 55px);
	letter-spacing: -1px;
	line-height: 1.12;
}

.qp-hero-copy > p:not(.qp-eyebrow) {
	max-width: 550px;
	margin: 0 0 22px;
	color: #4d5d53;
	font-size: 18px;
}

.qp-hero-art {
	display: grid;
	min-height: 290px;
	place-items: center;
	overflow: hidden;
	border-radius: 16px;
	background:
		radial-gradient(ellipse at 50% 70%, rgba(86, 122, 82, .2), transparent 49%),
		linear-gradient(145deg, #d8e6d9, #f3dfc5);
}

.qp-hero-art img {
	width: 100%;
	height: 100%;
	min-height: 290px;
	object-fit: cover;
}

.qp-button {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 10px 17px;
	border: 1px solid var(--qp-green);
	border-radius: 7px;
	background: var(--qp-green);
	color: #fff;
	font-size: 14px;
	font-weight: 750;
	text-decoration: none;
}

.qp-button:hover {
	background: var(--qp-deep);
	color: #fff;
	text-decoration: none;
}

.qp-button-secondary {
	margin-left: 7px;
	background: transparent;
	color: var(--qp-green);
}

.qp-button-secondary:hover {
	background: var(--qp-green);
}

.qp-section-heading {
	display: flex;
	margin: 40px 0 17px;
	align-items: end;
	justify-content: space-between;
	gap: 18px;
}

.qp-section-heading h2,
.qp-content-card h2,
.qp-trust h2 {
	margin: 0;
	color: var(--qp-deep);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(27px, 3.2vw, 35px);
	line-height: 1.2;
}

.qp-section-heading > p {
	margin: 0;
	color: var(--qp-muted);
}

.qp-topic-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
}

.qp-topic-card {
	display: flex;
	min-height: 180px;
	padding: 0 0 14px;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	border: 1px solid var(--qp-line);
	border-radius: 11px;
	background: var(--qp-paper);
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease;
}

.qp-topic-card:hover,
.qp-post-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(30, 66, 45, .08);
	text-decoration: none;
}

.qp-topic-photo {
	display: block;
	width: 100%;
	height: 126px;
	overflow: hidden;
	background: var(--qp-sage);
}

.qp-topic-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.qp-topic-title {
	display: block;
	padding: 10px 14px 0;
	color: var(--qp-green);
	font-size: 14px;
	font-weight: 750;
}

.qp-feature {
	display: grid;
	margin-top: 32px;
	padding: 22px;
	grid-template-columns: 60px minmax(0, 1fr) auto;
	gap: 17px;
	align-items: center;
	border-radius: 12px;
	background: #f2e7d9;
}

.qp-feature-icon {
	display: grid;
	width: 58px;
	height: 58px;
	place-items: center;
	border-radius: 50%;
	background: #fff8ee;
	font-size: 28px;
}

.qp-feature-image {
	width: 60px;
	height: 60px;
	overflow: hidden;
	border-radius: 9px;
	background: var(--qp-sage);
}

.qp-feature-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.qp-feature h2 {
	margin: 0 0 4px;
	color: var(--qp-deep);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 21px;
	line-height: 1.3;
}

.qp-feature p {
	margin: 0;
	color: #586258;
	font-size: 14px;
}

.qp-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 17px;
}

.qp-post-card {
	overflow: hidden;
	border: 1px solid var(--qp-line);
	border-radius: 12px;
	background: var(--qp-paper);
	transition: transform .15s ease, box-shadow .15s ease;
}

.qp-post-card > a {
	color: inherit;
	text-decoration: none;
}

.qp-post-card-image {
	display: grid;
	min-height: 155px;
	place-items: center;
	overflow: hidden;
	background: var(--qp-sage);
}

.qp-post-card-image:empty {
	display: none;
}

.qp-post-card-image img {
	display: block;
	width: 100%;
	height: 175px;
	object-fit: cover;
}

.qp-post-card-content {
	padding: 18px;
}

.qp-post-card-content .qp-category-label {
	margin-bottom: 6px;
	color: var(--qp-clay);
	font-size: 10px;
}

.qp-post-card h3 {
	margin: 0 0 8px;
	color: var(--qp-deep);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 21px;
	line-height: 1.25;
}

.qp-post-card p {
	margin: 0 0 11px;
	color: var(--qp-muted);
	font-size: 14px;
}

.qp-read-more {
	color: var(--qp-green);
	font-size: 14px;
	font-weight: 750;
}

.qp-trust,
.qp-content-card {
	margin-top: 30px;
	padding: clamp(20px, 4vw, 32px);
	border: 1px solid var(--qp-line);
	border-radius: 12px;
	background: var(--qp-paper);
}

.qp-trust h2 {
	font-size: 25px;
}

.qp-trust p {
	max-width: 850px;
	margin: 9px 0 0;
	color: var(--qp-muted);
}

.qp-breadcrumbs {
	margin: 0 0 20px;
	color: var(--qp-muted);
	font-size: 13px;
}

.qp-breadcrumbs a {
	text-decoration: none;
}

.qp-entry-title {
	margin: 0 0 14px;
	color: var(--qp-deep);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(34px, 5vw, 48px);
	letter-spacing: -.7px;
	line-height: 1.15;
}

.qp-entry-meta {
	margin-bottom: 24px;
	color: var(--qp-muted);
	font-size: 13px;
}

.qp-featured-image {
	margin: 22px 0;
}

.qp-featured-image img {
	display: block;
	width: 100%;
	max-height: 490px;
	border-radius: 10px;
	object-fit: cover;
}

.qp-content-card :where(h2, h3, h4) {
	margin-top: 1.7em;
	color: var(--qp-deep);
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1.25;
}

.qp-content-card h2 {
	font-size: 29px;
}

.qp-content-card h3 {
	font-size: 23px;
}

.qp-content-card :where(p, ul, ol, blockquote, table) {
	margin-top: 0;
	margin-bottom: 1.25em;
}

.qp-content-card blockquote {
	margin-inline: 0;
	padding: 15px 20px;
	border-left: 4px solid var(--qp-green);
	background: var(--qp-sage);
}

.qp-content-card table {
	width: 100%;
	border-collapse: collapse;
}

.qp-content-card th,
.qp-content-card td {
	padding: 10px;
	border: 1px solid var(--qp-line);
	text-align: left;
}

.qp-content-card th {
	background: var(--qp-sage);
}

.qp-pagination {
	margin-top: 28px;
}

.qp-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.qp-pagination a,
.qp-pagination span {
	display: inline-block;
	padding: 7px 12px;
	border: 1px solid var(--qp-line);
	border-radius: 5px;
	background: var(--qp-paper);
	text-decoration: none;
}

.qp-pagination .current {
	background: var(--qp-green);
	color: #fff;
}

.qp-no-results {
	padding: 24px;
	border: 1px solid var(--qp-line);
	border-radius: 10px;
	background: var(--qp-paper);
}

.qp-site-footer {
	padding: 26px 0;
	background: var(--qp-deep);
	color: #edf3ee;
}

.qp-footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.qp-footer-brand {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
}

.qp-footer-nav a {
	display: block;
	padding: 5px 8px;
	color: #edf3ee;
	font-size: 13px;
	text-decoration: none;
}

.qp-footer-nav a:hover {
	text-decoration: underline;
}

.alignwide {
	max-width: var(--qp-wide-width);
	margin-right: auto;
	margin-left: auto;
}

.alignfull {
	width: 100%;
	max-width: none;
}

.wp-caption,
.gallery-caption {
	color: var(--qp-muted);
	font-size: 14px;
}

.wp-caption img {
	display: block;
}

.sticky {
	display: block;
}

@media (max-width: 980px) {
	.qp-header-inner {
		flex-wrap: wrap;
		padding-block: 12px;
	}

	.qp-primary-nav {
		order: 3;
		width: 100%;
	}

	.qp-primary-nav ul {
		width: 100%;
	}

	.qp-primary-nav a {
		padding-inline: 9px;
	}

	.qp-header-search {
		margin-left: auto;
	}

	.qp-topic-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	body {
		font-size: 16px;
	}

	.qp-header-inner,
	.qp-container,
	.qp-footer-inner {
		width: min(calc(100% - 28px), var(--qp-wide-width));
	}

	.qp-header-inner {
		gap: 8px 12px;
	}

	.qp-brand {
		font-size: 21px;
	}

	.qp-header-search {
		display: none;
	}

	.qp-primary-nav {
		overflow-x: auto;
	}

	.qp-primary-nav ul {
		flex-wrap: nowrap;
	}

	.qp-primary-nav a {
		padding: 7px 9px;
		white-space: nowrap;
		font-size: 13px;
	}

	.qp-main {
		padding-block: 20px 46px;
	}

	.qp-hero {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.qp-hero-copy {
		padding: 25px 21px;
	}

	.qp-hero h1 {
		font-size: clamp(34px, 10vw, 44px);
	}

	.qp-hero-copy > p:not(.qp-eyebrow) {
		font-size: 16px;
	}

	.qp-hero-art,
	.qp-hero-art img {
		min-height: 205px;
		max-height: 250px;
	}

	.qp-section-heading {
		display: block;
		margin-top: 32px;
	}

	.qp-section-heading > p {
		margin-top: 5px;
	}

	.qp-topic-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
	}

	.qp-topic-card {
		min-height: 155px;
	}

	.qp-topic-photo {
		height: 104px;
	}

	.qp-topic-title {
		padding: 8px 11px 0;
		font-size: 13px;
	}

	.qp-feature {
		padding: 17px;
		grid-template-columns: 48px minmax(0, 1fr);
		gap: 12px;
	}

	.qp-feature-icon {
		width: 46px;
		height: 46px;
		font-size: 23px;
	}

	.qp-feature h2 {
		font-size: 19px;
	}

	.qp-feature .qp-button {
		grid-column: 2;
		justify-self: start;
	}

	.qp-post-grid {
		grid-template-columns: 1fr;
	}

	.qp-post-card-image {
		min-height: 130px;
	}

	.qp-post-card-image img {
		height: 170px;
	}

	.qp-entry-title {
		font-size: 34px;
	}

	.qp-content-card {
		padding: 21px 18px;
	}

	.qp-content-card h2 {
		font-size: 25px;
	}

	.qp-footer-inner {
		flex-direction: column;
		text-align: center;
	}

	.qp-footer-nav ul {
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}
