/*
Theme Name: Plate & Thyme
Theme URI: https://plateandthyme.com/
Author: Muse for plateandthyme.com
Author URI: https://plateandthyme.com/
Description: A fresh, light child theme for Plate & Thyme — food and recipes with clear recipe formatting and Pinterest-ready images.
Version: 1.0.1
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: generatepress
Text Domain: plateandthyme-child
Tags: blog, custom-colors, one-column, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* Design tokens. */
:root {
	--color-bg: #fbfaf5;
	--color-surface: #ffffff;
	--color-text: #263026;
	--color-muted: #5f6d5f;
	--color-accent: #3f7d4e;
	--color-accent-dark: #33663f;
	--color-border: #e3e8dd;
	--radius: 12px;
	--font-head: 'Fraunces', Georgia, serif;
	--font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Base. */
body {
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6,
.entry-title {
	font-family: var(--font-head);
	color: var(--color-text);
}

a {
	color: var(--color-accent);
}

a:hover,
a:focus {
	color: var(--color-accent-dark);
}

.entry-content img,
.post-image img {
	max-width: 100%;
	height: auto;
}

/* Logo size cap — the uploaded wordmarks are 1200px wide. GeneratePress
   outputs the custom logo inside .site-logo with class .custom-logo; never
   let it render at full natural width. */
.site-header .site-logo {
	max-width: 220px;
}

.site-logo img,
.custom-logo {
	max-width: 220px !important;
	height: auto !important;
}

/* Ad slots — only rendered when ad code is configured (see functions.php);
   no markup is output at all while the slots are empty, so nothing shows. */
.ad-slot {
	margin: 2rem auto;
	max-width: 728px;
	text-align: center;
}

.ad-slot--header {
	margin-top: 0;
	margin-bottom: 1.5rem;
}

/* Pinterest "Pin it" button (added by assets/js/main.js). */
.pin-wrap {
	position: relative;
	display: inline-block;
	max-width: 100%;
}

.pin-wrap img {
	display: block;
}

.pin-btn {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #e60023;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1;
	padding: 0.55rem 0.85rem;
	border-radius: 999px;
	text-decoration: none;
	opacity: 0;
	transition: opacity 0.2s ease;
	z-index: 2;
}

.pin-wrap:hover .pin-btn,
.pin-wrap:focus-within .pin-btn,
.pin-btn:focus {
	opacity: 1;
	color: #fff;
}

/* Back-to-top button (added by assets/js/main.js). */
.back-to-top {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	width: 2.75rem;
	height: 2.75rem;
	border: none;
	border-radius: 50%;
	background: var(--color-accent);
	color: #fff;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	z-index: 50;
}

.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
}

.back-to-top:hover,
.back-to-top:focus {
	background: var(--color-accent-dark);
}

/* Front page + blog index (front-page.php / home.php). */
.fp-hero {
	background: var(--color-surface);
	border-bottom: 1px solid var(--color-border);
	text-align: center;
	padding: 4rem 1rem 3.5rem;
}

.fp-hero-title {
	font-family: var(--font-head);
	font-size: clamp(2rem, 5vw, 3.25rem);
	line-height: 1.15;
	margin: 0 0 1rem;
}

.fp-hero-tagline {
	color: var(--color-muted);
	font-size: 1.15rem;
	max-width: 640px;
	margin: 0 auto 2rem;
}

.fp-hero-rule {
	width: 72px;
	height: 4px;
	background: var(--color-accent);
	border: none;
	margin: 0 auto 1.5rem;
}

.fp-cta {
	display: inline-block;
	background: var(--color-accent);
	color: #fff;
	font-weight: 600;
	padding: 0.85rem 2rem;
	border-radius: 999px;
	text-decoration: none;
}

.fp-cta:hover,
.fp-cta:focus {
	background: var(--color-accent-dark);
	color: #fff;
}

.fp-section {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2.5rem 1rem;
}

.fp-section-title {
	font-family: var(--font-head);
	font-size: 1.75rem;
	margin: 0 0 1.5rem;
}

.fp-cats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fp-cat-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 1.25rem;
}

.fp-cat-card a {
	display: block;
	text-decoration: none;
	color: var(--color-text);
}

.fp-cat-card a:hover .fp-cat-name,
.fp-cat-card a:focus .fp-cat-name {
	color: var(--color-accent);
}

.fp-cat-name {
	font-family: var(--font-head);
	font-size: 1.15rem;
	font-weight: 700;
	display: block;
	margin-bottom: 0.25rem;
}

.fp-cat-count {
	color: var(--color-muted);
	font-size: 0.85rem;
}

.fp-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.fp-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.fp-card-img {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--color-bg);
}

.fp-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fp-card-body {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1;
}

.fp-card-title {
	font-family: var(--font-head);
	font-size: 1.1rem;
	line-height: 1.35;
	margin: 0;
}

.fp-card-title a {
	color: var(--color-text);
	text-decoration: none;
}

.fp-card-title a:hover,
.fp-card-title a:focus {
	color: var(--color-accent);
}

.fp-card-meta {
	color: var(--color-muted);
	font-size: 0.85rem;
}

.fp-card-excerpt {
	color: var(--color-muted);
	font-size: 0.95rem;
	margin: 0;
}

.fp-empty {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 2.5rem 1.5rem;
	text-align: center;
	color: var(--color-muted);
}

.fp-pagination {
	margin-top: 2rem;
	text-align: center;
}

@media (max-width: 900px) {
	.fp-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.fp-grid {
		grid-template-columns: 1fr;
	}

	.fp-hero {
		padding: 3rem 1rem 2.5rem;
	}
}

/* Responsive tweaks. */
@media (max-width: 767px) {
	.ad-slot {
		margin-left: 0.75rem;
		margin-right: 0.75rem;
	}
}

@media (min-width: 1024px) {
	.site-content {
		padding-top: 2rem;
		padding-bottom: 2rem;
	}
}

/* Reduced motion. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}

/* Plate & Thyme — recipe post styling. */
.featured-image img {
	border-radius: var(--radius);
}

.recipe-jump {
	display: inline-block;
	background: var(--color-accent);
	color: #fff;
	padding: 0.6rem 1.2rem;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
}

.recipe-jump:hover,
.recipe-jump:focus {
	background: var(--color-accent-dark);
	color: #fff;
}

.recipe-ingredients {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 1.25rem 1.5rem;
}

.recipe-ingredients li {
	list-style: none;
	padding-left: 1.5rem;
	position: relative;
	margin-bottom: 0.4rem;
}

.recipe-ingredients li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: var(--color-accent);
	font-weight: 700;
}

.recipe-steps {
	counter-reset: step;
	padding-left: 0;
}

.recipe-steps li {
	list-style: none;
	counter-increment: step;
	padding-left: 2.75rem;
	position: relative;
	margin-bottom: 1rem;
}

.recipe-steps li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: 0;
	width: 1.9rem;
	height: 1.9rem;
	line-height: 1.9rem;
	text-align: center;
	border-radius: 50%;
	background: var(--color-accent);
	color: #fff;
	font-weight: 700;
	font-size: 0.9rem;
}

@media (min-width: 768px) {
	.recipe-ingredients ul {
		column-count: 2;
		column-gap: 2rem;
	}
}

