/*
Theme Name: Ptaru
Theme URI: https://ptaru.com/
Author: Ptaru
Description: A warm, editorial recipe theme made for Ptaru — Recipes, Comfort Food & Meal Inspiration. Pie-crust edges, a cosy cream palette, bundled fonts, random Popular Topics under every post, theme-only widgets and a Header widget area for Google Analytics and AdSense code.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ptaru
Tags: blog, food-and-drink, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ---------- Fonts (bundled, latin) ---------- */
@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("assets/fonts/fraunces.woff2") format("woff2");
}
@font-face {
	font-family: "Fraunces";
	font-style: italic;
	font-weight: 300 800;
	font-display: swap;
	src: url("assets/fonts/fraunces-italic.woff2") format("woff2");
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/inter.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
	--pt-cream: #fbf6ee;
	--pt-paper: #ffffff;
	--pt-crust: #f3e6d0;
	--pt-crust-deep: #ead6b5;
	--pt-ink: #2a1f1a;
	--pt-ink-soft: #4a3c33;
	--pt-muted: #6e5f54;
	--pt-line: #eadfcf;
	--pt-tomato: #c8442b;
	--pt-tomato-deep: #a5341f;
	--pt-mustard: #e8a33d;
	--pt-olive: #56652f;

	--pt-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
	--pt-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--pt-radius-s: 10px;
	--pt-radius: 18px;
	--pt-radius-l: 28px;
	--pt-shadow: 0 1px 2px rgb(42 31 26 / 6%), 0 8px 24px -12px rgb(42 31 26 / 18%);
	--pt-shadow-hover: 0 2px 4px rgb(42 31 26 / 6%), 0 22px 40px -18px rgb(120 52 24 / 35%);
	--pt-wrap: 1180px;
	--pt-narrow: 780px;
	--pt-gutter: clamp(16px, 4vw, 32px);
	--pt-ease: cubic-bezier(.2, .7, .2, 1);

}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 90px;
}

body {
	margin: 0;
	background: var(--pt-cream);
	color: var(--pt-ink);
	font: 400 1rem/1.6 var(--pt-sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img,
svg,
video,
iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--pt-tomato); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pt-tomato-deep); }

:focus-visible {
	outline: 3px solid var(--pt-mustard);
	outline-offset: 3px;
	border-radius: 6px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--pt-serif);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: var(--pt-ink);
	font-variation-settings: "SOFT" 60, "WONK" 0;
	text-wrap: balance;
}

button,
input,
textarea,
select { font: inherit; color: inherit; }

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

.skip-link {
	position: absolute;
	left: 16px; top: -60px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--pt-ink);
	color: var(--pt-cream);
	border-radius: var(--pt-radius-s);
	text-decoration: none;
	transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--pt-cream); }

.pt-wrap {
	width: 100%;
	max-width: calc(var(--pt-wrap) + var(--pt-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--pt-gutter);
}
.pt-wrap--narrow { max-width: calc(var(--pt-narrow) + var(--pt-gutter) * 2); }

.pt-main { display: block; outline: none; padding-bottom: 8px; }

.pt-icon { flex: none; }

/* ---------- Header ---------- */
.pt-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--pt-cream);
	padding-bottom: 12px;
}
.admin-bar .pt-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .pt-header { top: 0; position: relative; } }

.pt-header::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -11px;
	height: 12px;
	background: var(--pt-cream);
	-webkit-mask: radial-gradient(circle at 12px 0, #000 11.5px, transparent 12px) 0 0 / 24px 100% repeat-x;
	        mask: radial-gradient(circle at 12px 0, #000 11.5px, transparent 12px) 0 0 / 24px 100% repeat-x;
	filter: drop-shadow(0 3px 2px rgb(42 31 26 / 7%));
	pointer-events: none;
}

.pt-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 76px;
	padding-top: 10px;
}

.pt-header__brand { flex: none; }

.site-logo { display: inline-flex; align-items: center; }
.site-logo__img { height: 50px; width: auto; }

.pt-header__tagline {
	margin: 0;
	flex: 1;
	font: italic 400 1.02rem/1.3 var(--pt-serif);
	color: var(--pt-muted);
	padding-left: 24px;
	border-left: 1px solid var(--pt-line);
}

.pt-search-toggle {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	padding: 0 20px 0 16px;
	background: var(--pt-paper);
	border: 1px solid var(--pt-line);
	border-radius: 999px;
	color: var(--pt-ink-soft);
	font-size: .95rem;
	font-weight: 500;
	cursor: pointer;
	box-shadow: var(--pt-shadow);
	transition: border-color .2s, color .2s, transform .2s var(--pt-ease);
}
.pt-search-toggle:hover { border-color: var(--pt-tomato); color: var(--pt-tomato); }
.pt-search-toggle[aria-expanded="true"] { background: var(--pt-ink); color: var(--pt-cream); border-color: var(--pt-ink); }

.pt-search-panel { padding: 14px 0 6px; }
.pt-search-panel[hidden] { display: none; }

@media (max-width: 860px) {
	.pt-header__tagline { display: none; }
}
@media (max-width: 560px) {
	.pt-header__inner { min-height: 64px; gap: 12px; }
	.site-logo__img { height: 40px; }
	.pt-search-toggle { width: 46px; padding: 0; justify-content: center; }
	.pt-search-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
}

/* ---------- Search form ---------- */
.pt-search {
	display: flex;
	align-items: center;
	background: var(--pt-paper);
	border: 1.5px solid var(--pt-line);
	border-radius: 999px;
	padding: 5px;
	transition: border-color .2s, box-shadow .2s;
}
.pt-search:focus-within { border-color: var(--pt-tomato); box-shadow: 0 0 0 4px rgb(200 68 43 / 12%); }
.pt-search__input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 10px 16px;
	font-size: 1rem;
	outline: none;
}
.pt-search__input::placeholder { color: #9a8a7e; }
.pt-search__btn {
	flex: none;
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--pt-tomato);
	color: #fff;
	cursor: pointer;
	transition: background .2s;
}
.pt-search__btn:hover { background: var(--pt-tomato-deep); }

/* ---------- Cards ---------- */
.pt-card { position: relative; min-width: 0; }
.pt-card > a {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
	background: var(--pt-paper);
	border-radius: var(--pt-radius);
	overflow: hidden;
	box-shadow: var(--pt-shadow);
	transition: transform .35s var(--pt-ease), box-shadow .35s var(--pt-ease);
}
.pt-card > a:hover { transform: translateY(-4px); box-shadow: var(--pt-shadow-hover); }
.pt-card > a:hover .pt-card__title { color: var(--pt-tomato); }
.pt-card > a:hover .pt-media__img { transform: scale(1.045); }

.pt-media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--pt-crust);
}
.pt-media__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s var(--pt-ease);
}

/* Designed placeholder, never an empty box. */
.pt-media__ph {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at 30% 25%, rgb(255 255 255 / 35%), transparent 45%),
		repeating-linear-gradient(45deg, rgb(255 255 255 / 9%) 0 10px, transparent 10px 20px),
		var(--ph, var(--pt-tomato));
}
.pt-media__ph span {
	font: italic 600 clamp(2.6rem, 6vw, 4rem)/1 var(--pt-serif);
	color: rgb(255 255 255 / 92%);
	text-shadow: 0 2px 10px rgb(0 0 0 / 15%);
}
.pt-media__ph--0 { --ph: var(--pt-tomato); }
.pt-media__ph--1 { --ph: #b7792a; }
.pt-media__ph--2 { --ph: var(--pt-olive); }
.pt-media__ph--3 { --ph: #8a4a3a; }

.pt-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px 22px;
	flex: 1;
}
.pt-card__title {
	font: 600 1.22rem/1.25 var(--pt-serif);
	color: var(--pt-ink);
	letter-spacing: -.01em;
	transition: color .2s;
	text-wrap: balance;
}
.pt-card__excerpt {
	color: var(--pt-muted);
	font-size: .93rem;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Feature card (hero) */
.pt-card--feature > a { position: relative; border-radius: var(--pt-radius-l); }
.pt-card--feature .pt-media { aspect-ratio: auto; height: 100%; min-height: 440px; }
.pt-card--feature .pt-card__body {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: clamp(22px, 4vw, 40px);
	background: linear-gradient(to top, rgb(30 20 15 / 88%) 0%, rgb(30 20 15 / 55%) 55%, transparent 100%);
	gap: 12px;
}
.pt-card--feature .pt-card__body::before {
	content: "Latest recipe";
	align-self: flex-start;
	padding: 6px 12px;
	background: var(--pt-mustard);
	color: var(--pt-ink);
	border-radius: 999px;
	font: 700 .72rem/1 var(--pt-sans);
	letter-spacing: .12em;
	text-transform: uppercase;
}
.pt-card--feature .pt-card__title {
	color: #fff;
	font-size: clamp(1.7rem, 3.4vw, 2.7rem);
	line-height: 1.08;
	max-width: 20ch;
}
.pt-card--feature .pt-card__excerpt { color: rgb(255 255 255 / 85%); font-size: 1rem; max-width: 56ch; -webkit-line-clamp: 2; }
.pt-card--feature > a:hover .pt-card__title { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Side card (hero) */
.pt-card--side > a { flex-direction: row; align-items: stretch; }
.pt-card--side .pt-media { flex: 0 0 44%; aspect-ratio: auto; min-height: 150px; }
.pt-card--side .pt-card__body { justify-content: center; padding: 18px; }
.pt-card--side .pt-card__title { font-size: 1.15rem; }

/* Compact card (popular) */
.pt-card--compact .pt-card__body { padding: 14px 16px 18px; }
.pt-card--compact .pt-card__title {
	font-size: 1.05rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Mini card (widgets) */
.pt-minilist { display: grid; gap: 12px; }
.pt-card--mini > a { flex-direction: row; align-items: center; gap: 0; box-shadow: none; border: 1px solid var(--pt-line); border-radius: 14px; }
.pt-card--mini > a:hover { transform: none; box-shadow: var(--pt-shadow); }
.pt-card--mini .pt-media { flex: 0 0 84px; width: 84px; aspect-ratio: 1; }
.pt-card--mini .pt-media__ph span { font-size: 1.8rem; }
.pt-card--mini .pt-card__body { padding: 10px 14px; }
.pt-card--mini .pt-card__title {
	font-size: .98rem;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------- Home ---------- */
.pt-hero { padding: clamp(28px, 5vw, 52px) 0 12px; }
.pt-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
	gap: 24px;
}
.pt-hero__side { display: grid; gap: 24px; grid-auto-rows: 1fr; }
@media (max-width: 900px) {
	.pt-hero__grid { grid-template-columns: 1fr; }
	.pt-card--feature .pt-media { min-height: 360px; }
}
@media (max-width: 560px) {
	.pt-card--feature .pt-media { min-height: 400px; }
	.pt-card--side .pt-media { flex-basis: 38%; min-height: 120px; }
	.pt-card--side .pt-card__title { font-size: 1.02rem; }
}

.pt-section-head {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: clamp(36px, 6vw, 64px);
	margin-bottom: 24px;
}
.pt-section-head__title {
	margin: 0;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	font-style: italic;
	font-weight: 500;
}
.pt-section-head__rule {
	flex: 1;
	height: 10px;
	background: radial-gradient(circle, var(--pt-crust-deep) 2px, transparent 2.5px) 0 50% / 12px 10px repeat-x;
}

.pt-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(18px, 2.4vw, 28px);
}
@media (max-width: 960px) { .pt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pt-grid { grid-template-columns: 1fr; } }

/* No orphan gaps: a lonely last card spans the row as a wide horizontal card. */@media (min-width: 961px) {
	.pt-grid > .pt-card:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
	.pt-grid > .pt-card:last-child:nth-child(3n+2) { grid-column: span 2; }
	.pt-grid > .pt-card:last-child:nth-child(3n+1) > a,
	.pt-grid > .pt-card:last-child:nth-child(3n+2) > a { flex-direction: row; }
	.pt-grid > .pt-card:last-child:nth-child(3n+1) .pt-media,
	.pt-grid > .pt-card:last-child:nth-child(3n+2) .pt-media { flex: 0 0 48%; aspect-ratio: auto; min-height: 260px; }
	.pt-grid > .pt-card:last-child:nth-child(3n+1) .pt-card__body,
	.pt-grid > .pt-card:last-child:nth-child(3n+2) .pt-card__body { justify-content: center; padding: clamp(20px, 3vw, 36px); }
	.pt-grid > .pt-card:last-child:nth-child(3n+1) .pt-card__title { font-size: 1.7rem; }
}
@media (min-width: 561px) and (max-width: 960px) {
	.pt-grid > .pt-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.pt-grid > .pt-card:last-child:nth-child(odd) > a { flex-direction: row; }
	.pt-grid > .pt-card:last-child:nth-child(odd) .pt-media { flex: 0 0 48%; aspect-ratio: auto; min-height: 220px; }
	.pt-grid > .pt-card:last-child:nth-child(odd) .pt-card__body { justify-content: center; }
}

.pt-empty { font-size: 1.1rem; color: var(--pt-muted); margin: 0 0 20px; }

/* ---------- Page heads ---------- */
.pt-pagehead { padding: clamp(36px, 6vw, 64px) 0 clamp(20px, 3vw, 32px); text-align: center; }
.pt-pagehead__eyebrow {
	display: inline-block;
	margin-bottom: 10px;
	color: var(--pt-tomato);
	font: 700 .78rem/1 var(--pt-sans);
	letter-spacing: .16em;
	text-transform: uppercase;
}
.pt-pagehead__title { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); }
.pt-pagehead__desc { max-width: 640px; margin: 14px auto 0; color: var(--pt-muted); font-size: 1.05rem; }
.pt-pagehead__desc p { margin: 0; }
.pt-pagehead__search { max-width: 640px; margin-bottom: 36px; }

/* ---------- Pagination ---------- */
.pt-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: clamp(32px, 5vw, 48px) 0 0;
}
.pt-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding: 0 14px;
	border-radius: 999px;
	background: var(--pt-paper);
	border: 1px solid var(--pt-line);
	color: var(--pt-ink);
	font-weight: 600;
	text-decoration: none;
	transition: background .2s, color .2s, border-color .2s;
}
.pt-pagination a.page-numbers:hover { border-color: var(--pt-tomato); color: var(--pt-tomato); }
.pt-pagination .current { background: var(--pt-ink); border-color: var(--pt-ink); color: var(--pt-cream); }
.pt-pagination .dots { background: transparent; border-color: transparent; }

/* ---------- Single ---------- */
.pt-single__head { padding: clamp(32px, 6vw, 64px) 0 clamp(22px, 3vw, 34px); text-align: center; }
.pt-kicker {
	display: inline-block;
	margin-bottom: 18px;
	padding: 7px 14px;
	border-radius: 999px;
	background: rgb(200 68 43 / 10%);
	color: var(--pt-tomato-deep);
	font: 700 .75rem/1 var(--pt-sans);
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background .2s;
}
.pt-kicker:hover { background: rgb(200 68 43 / 18%); color: var(--pt-tomato-deep); }
.pt-single__title {
	margin: 0;
	font-size: clamp(2.1rem, 5.4vw, 3.6rem);
	line-height: 1.06;
	font-weight: 600;
	letter-spacing: -.02em;
	font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.pt-single__dek {
	max-width: 620px;
	margin: 18px auto 0;
	font: italic 400 1.2rem/1.5 var(--pt-serif);
	color: var(--pt-ink-soft);
}
.pt-meta {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 20px;
	color: var(--pt-muted);
	font-size: .92rem;
}
.pt-meta__sep { width: 5px; height: 5px; border-radius: 50%; background: var(--pt-mustard); }
.pt-meta__read { display: inline-flex; align-items: center; gap: 6px; }
.pt-meta .pt-icon { width: 17px; height: 17px; }

.pt-single__hero { margin: 0 auto clamp(28px, 4vw, 44px); }
.pt-single__hero-img {
	width: 100%;
	max-height: 680px;
	object-fit: cover;
	border-radius: var(--pt-radius-l);
	box-shadow: var(--pt-shadow);
}

.pt-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	justify-content: center;
	gap: 48px;
}
.pt-single__body { max-width: var(--pt-narrow); width: 100%; margin-inline: auto; }
.has-sidebar .pt-single__layout { grid-template-columns: minmax(0, var(--pt-narrow)) 320px; }
.has-sidebar .pt-single__body { margin: 0; }
@media (max-width: 1080px) {
	.has-sidebar .pt-single__layout { grid-template-columns: minmax(0, 1fr); }
	.has-sidebar .pt-single__body { margin-inline: auto; }
}

.pt-sidebar__inner { position: sticky; top: 112px; display: grid; gap: 24px; }
@media (max-width: 1080px) { .pt-sidebar__inner { position: static; } }

/* ---------- Post content typography ---------- */
.pt-content {
	font-size: 1.125rem;
	line-height: 1.78;
	color: var(--pt-ink-soft);
}
.pt-content > * { margin-top: 0; margin-bottom: 1.35em; }
.pt-content > :last-child { margin-bottom: 0; }
.pt-content h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-top: 1.9em; margin-bottom: .6em; }
.pt-content h3 { font-size: clamp(1.3rem, 2.4vw, 1.55rem); margin-top: 1.6em; margin-bottom: .5em; }
.pt-content h4 { font-size: 1.2rem; margin-top: 1.4em; margin-bottom: .4em; }
.pt-content h2::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	margin-top: 12px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--pt-tomato) 0 60%, var(--pt-mustard) 60%);
}
.pt-content a { color: var(--pt-tomato-deep); font-weight: 500; }
.pt-content strong { color: var(--pt-ink); }

.pt-content ul { padding-left: 0; list-style: none; }
.pt-content ul li { position: relative; padding-left: 1.6em; margin-bottom: .45em; }
.pt-content ul li::before {
	content: "";
	position: absolute;
	left: .3em; top: .7em;
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--pt-mustard);
	box-shadow: 0 0 0 3px rgb(232 163 61 / 22%);
}
.pt-content ol { padding-left: 0; list-style: none; counter-reset: pt-step; }
.pt-content ol li { position: relative; padding-left: 3em; margin-bottom: .9em; counter-increment: pt-step; min-height: 2em; }
.pt-content ol li::before {
	content: counter(pt-step);
	position: absolute;
	left: 0; top: .05em;
	width: 2em; height: 2em;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--pt-ink);
	color: var(--pt-cream);
	font: 600 .9rem/1 var(--pt-serif);
}

.pt-content img,
.pt-content .wp-block-image img { border-radius: var(--pt-radius); }
.pt-content figure { margin-left: 0; margin-right: 0; }
.pt-content figcaption,
.pt-content .wp-element-caption { margin-top: 10px; font-size: .88rem; color: var(--pt-muted); text-align: center; font-style: italic; }
.pt-content .alignwide { margin-inline: calc(-1 * min(80px, 6vw)); max-width: none; }
.pt-content .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.pt-content .aligncenter { margin-left: auto; margin-right: auto; }
.pt-content .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.pt-content .alignright { float: right; margin: .3em 0 1em 1.4em; }

.pt-content blockquote {
	position: relative;
	margin-left: 0; margin-right: 0;
	padding: 26px 28px 26px 70px;
	background: var(--pt-paper);
	border-radius: var(--pt-radius);
	box-shadow: var(--pt-shadow);
	font: italic 400 1.25rem/1.55 var(--pt-serif);
	color: var(--pt-ink);
}
.pt-content blockquote::before {
	content: "“";
	position: absolute;
	left: 20px; top: 6px;
	font: 700 4.2rem/1 var(--pt-serif);
	color: var(--pt-tomato);
}
.pt-content blockquote p:last-child { margin-bottom: 0; }

.pt-content table { width: 100%; border-collapse: collapse; font-size: .98rem; background: var(--pt-paper); border-radius: var(--pt-radius-s); overflow: hidden; }
.pt-content th,
.pt-content td { padding: 12px 14px; border-bottom: 1px solid var(--pt-line); text-align: left; }
.pt-content th { background: var(--pt-crust); color: var(--pt-ink); font-weight: 600; }
.pt-content hr { border: 0; height: 10px; background: radial-gradient(circle, var(--pt-crust-deep) 2px, transparent 2.5px) 50% 50% / 14px 10px repeat-x; margin: 2.4em 0; }
.pt-content pre,
.pt-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--pt-crust); border-radius: 6px; }
.pt-content code { padding: .1em .35em; }
.pt-content pre { padding: 18px; overflow: auto; }
.pt-content iframe { border-radius: var(--pt-radius); }
.pt-content .wp-block-button__link { background: var(--pt-tomato); color: #fff; border-radius: 999px; padding: .8em 1.5em; text-decoration: none; }

/* Recipe card plugins (WP Recipe Maker, Tasty, etc.) */
.pt-content .wprm-recipe-container,
.pt-content .tasty-recipes {
	background: var(--pt-paper);
	border: 0;
	border-radius: var(--pt-radius-l);
	box-shadow: var(--pt-shadow);
	padding: clamp(18px, 3vw, 32px);
	border-top: 6px solid var(--pt-tomato);
}

.pt-pagelinks { display: flex; gap: 8px; flex-wrap: wrap; margin: 32px 0; font-weight: 600; }
.pt-pagelinks .post-page-numbers { padding: 6px 14px; border-radius: 999px; background: var(--pt-paper); border: 1px solid var(--pt-line); text-decoration: none; color: var(--pt-ink); }
.pt-pagelinks .current { background: var(--pt-ink); color: var(--pt-cream); }

/* ---------- Widgets ---------- */
.pt-area { margin: 0 0 28px; display: grid; gap: 20px; }
.pt-area--after { margin: 36px 0 0; }
.pt-widget {
	background: var(--pt-paper);
	border-radius: var(--pt-radius);
	padding: 22px;
	box-shadow: var(--pt-shadow);
}
.pt-widget__title {
	margin: 0 0 16px;
	font-size: 1.25rem;
	font-style: italic;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 10px;
}
.pt-widget__title::before {
	content: "";
	width: 10px; height: 10px;
	border-radius: 50%;
	background: var(--pt-tomato);
	box-shadow: 14px 0 0 var(--pt-mustard);
	margin-right: 14px;
}
.pt-widget--ad { background: transparent; box-shadow: none; padding: 0; text-align: center; }
.pt-widget--ad .pt-widget__title { justify-content: center; font-size: .75rem; font-family: var(--pt-sans); font-style: normal; text-transform: uppercase; letter-spacing: .14em; color: var(--pt-muted); }
.pt-widget--ad .pt-widget__title::before { display: none; }
.pt-ad { min-height: 0; overflow: hidden; }
.pt-widget--about { text-align: center; }
.pt-widget--about .pt-widget__title { justify-content: center; }
.pt-about__img { width: 96px; height: 96px; margin: 0 auto 14px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 5px var(--pt-crust); }
.pt-about__text { color: var(--pt-muted); font-size: .97rem; }
.pt-about__text p { margin: 0 0 .8em; }
.pt-about__text p:last-child { margin: 0; }

/* ---------- Popular Topics ---------- */
.pt-popular {
	position: relative;
	margin-top: clamp(56px, 8vw, 96px);
	padding: clamp(44px, 6vw, 72px) 0 clamp(48px, 6vw, 80px);
	background:
		radial-gradient(circle at 10% 0%, rgb(255 255 255 / 45%), transparent 40%),
		var(--pt-crust);
}
.pt-popular::before,
.pt-popular::after {
	content: "";
	position: absolute;
	left: 0; right: 0;
	height: 12px;
	background: var(--pt-crust);
	pointer-events: none;
}
.pt-popular::before {
	top: -11px;
	-webkit-mask: radial-gradient(circle at 12px 12px, #000 11.5px, transparent 12px) 0 0 / 24px 100% repeat-x;
	        mask: radial-gradient(circle at 12px 12px, #000 11.5px, transparent 12px) 0 0 / 24px 100% repeat-x;
}
.pt-popular::after {
	bottom: -11px;
	-webkit-mask: radial-gradient(circle at 12px 0, #000 11.5px, transparent 12px) 0 0 / 24px 100% repeat-x;
	        mask: radial-gradient(circle at 12px 0, #000 11.5px, transparent 12px) 0 0 / 24px 100% repeat-x;
}
.pt-popular__head { text-align: center; margin-bottom: clamp(26px, 4vw, 40px); }
.pt-popular__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--pt-tomato-deep);
	font: 700 .78rem/1 var(--pt-sans);
	letter-spacing: .18em;
	text-transform: uppercase;
}
.pt-popular__eyebrow::before,
.pt-popular__eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; opacity: .5; border-radius: 2px; }
.pt-popular__title {
	margin: 10px 0 0;
	font-size: clamp(2rem, 4.4vw, 3rem);
	font-style: italic;
	font-weight: 500;
	font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.pt-popular__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(14px, 2vw, 24px);
}
@media (max-width: 960px) { .pt-popular__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .pt-popular__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
	.pt-card--compact .pt-card__body { padding: 12px 12px 14px; }
	.pt-card--compact .pt-card__title { font-size: .95rem; }
}

/* ---------- Comments ---------- */
.pt-comments { margin-top: clamp(40px, 6vw, 64px); padding-top: 8px; }
.pt-comments__title { font-size: 1.6rem; font-style: italic; font-weight: 500; margin: 0 0 22px; }
.pt-comments__list,
.pt-comments__list .children { list-style: none; margin: 0; padding: 0; }
.pt-comments__list .children { margin-left: clamp(16px, 4vw, 44px); }
.pt-comment__card { background: var(--pt-paper); border-radius: var(--pt-radius); padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--pt-shadow); }
.pt-comment__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.pt-comment__avatar { border-radius: 50%; }
.pt-comment__author { display: block; font-weight: 600; color: var(--pt-ink); }
.pt-comment__author a { color: inherit; text-decoration: none; }
.pt-comment__date { font-size: .85rem; color: var(--pt-muted); text-decoration: none; }
.pt-comment__text { color: var(--pt-ink-soft); }
.pt-comment__text p { margin: 0 0 .7em; }
.pt-comment__pending { font-style: italic; color: var(--pt-olive); }
.comment-reply-link { font-size: .88rem; font-weight: 600; text-decoration: none; }
.comment-respond { margin-top: 32px; padding: clamp(20px, 3vw, 30px); background: var(--pt-paper); border-radius: var(--pt-radius-l); box-shadow: var(--pt-shadow); }
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--pt-line);
	border-radius: var(--pt-radius-s);
	background: var(--pt-cream);
	transition: border-color .2s;
}
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--pt-tomato); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; }
.comment-form-cookies-consent label { font-weight: 400; }
.pt-btn,
.comment-form .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 26px;
	border: 0;
	border-radius: 999px;
	background: var(--pt-tomato);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s, transform .2s var(--pt-ease);
}
.pt-btn:hover,
.comment-form .submit:hover { background: var(--pt-tomato-deep); }

/* ---------- 404 ---------- */
.pt-404 { padding: clamp(48px, 8vw, 96px) 0 0; text-align: center; }
.pt-404 .pt-wrap { max-width: 640px; }
.pt-404__mark { width: 96px; height: 96px; margin: 0 auto 20px; }
.pt-404__title { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 12px; }
.pt-404 p { color: var(--pt-muted); margin: 0 0 24px; }

/* ---------- Footer ---------- */
.pt-footer {
	position: relative;
	margin-top: clamp(56px, 8vw, 96px);
	background: var(--pt-ink);
	color: #e9dccb;
	padding-top: clamp(44px, 6vw, 64px);
}
.pt-popular + .pt-footer,
.pt-main:has(> .pt-popular:last-child) + .pt-footer { margin-top: 0; }
.pt-main:has(> .pt-popular:last-child) { padding-bottom: 0; }
.pt-main:has(> .pt-popular:last-child) > .pt-popular::after { display: none; }
.pt-footer__wave {
	position: absolute;
	left: 0; right: 0; top: -11px;
	height: 12px;
	background: var(--pt-ink);
	-webkit-mask: radial-gradient(circle at 12px 12px, #000 11.5px, transparent 12px) 0 0 / 24px 100% repeat-x;
	        mask: radial-gradient(circle at 12px 12px, #000 11.5px, transparent 12px) 0 0 / 24px 100% repeat-x;
}
.pt-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}
.pt-footer__grid:has(.pt-footer__widgets) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); }
.pt-footer .site-logo__img { height: 58px; }
.pt-footer__desc { margin: 16px 0 0; color: #cdbba7; max-width: 38ch; font: italic 400 1.05rem/1.5 var(--pt-serif); }
.pt-footer .pt-widget { background: rgb(255 255 255 / 5%); box-shadow: none; color: #e9dccb; }
.pt-footer .pt-widget__title { color: var(--pt-cream); }
.pt-footer .pt-card--mini > a { background: rgb(255 255 255 / 6%); border-color: rgb(255 255 255 / 10%); }
.pt-footer .pt-card--mini .pt-card__title { color: var(--pt-cream); }
.pt-footer__nav { justify-self: end; }
.pt-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pt-menu a,
.pt-menu__link {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	color: #e9dccb;
	text-decoration: none;
	font-size: .97rem;
	transition: color .2s;
}
.pt-menu a:hover { color: var(--pt-mustard); }
.pt-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 44px;
	padding-top: 22px;
	padding-bottom: 28px;
	border-top: 1px solid rgb(255 255 255 / 10%);
	font-size: .88rem;
	color: #b8a593;
}
.pt-footer__bottom p { margin: 0; }
.pt-totop {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid rgb(255 255 255 / 16%);
	color: #e9dccb;
	text-decoration: none;
	transition: border-color .2s, color .2s;
}
.pt-totop:hover { border-color: var(--pt-mustard); color: var(--pt-mustard); }
.pt-totop .pt-icon { width: 16px; height: 16px; }
@media (max-width: 820px) {
	.pt-footer__grid,
	.pt-footer__grid:has(.pt-footer__widgets) { grid-template-columns: 1fr; gap: 28px; }
	.pt-footer__nav { justify-self: start; }
	.pt-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
}
@media (max-width: 480px) {
	.pt-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- WordPress core classes ---------- */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .88rem; color: var(--pt-muted); text-align: center; }
.sticky,
.bypostauthor,
.gallery-caption { display: revert; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.pt-card > a:hover,
	.pt-card > a:hover .pt-media__img { transform: none; }
}

@media print {
	.pt-header,
	.pt-footer,
	.pt-popular,
	.pt-sidebar,
	.pt-area,
	.pt-comments { display: none !important; }
	body { background: #fff; }
}
