/*
Theme Name: Pet Town
Theme URI: https://pettown.co.uk/
Author: Dave Elliott
Description: A warm, playful custom theme for Pet Town: reader pets named after TV and film characters, pet name guides and UK pet food recall alerts. Designed to work with the Pet Town Core plugin.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: pettown
*/

/* ---------- Fonts (self-hosted, SIL Open Font Licence) ---------- */

@font-face { font-family: "Fredoka"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/fredoka-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-style: italic; font-display: swap; src: url("assets/fonts/nunito-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/nunito-latin-700-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */

:root {
	--pt-cream: #fff7ec;
	--pt-paper: #ffffff;
	--pt-ink: #2b2118;
	--pt-muted: #6b5b4f;
	--pt-line: #2b2118;
	--pt-coral: #e8553a;
	--pt-coral-dark: #c23b25;
	--pt-blush: #ffe1d4;
	--pt-teal: #137a6f;
	--pt-mint: #d5f1ea;
	--pt-sun: #ffc93c;
	--pt-sun-soft: #fff0c4;
	--pt-plum: #7b4bb7;
	--pt-lilac: #ece2fa;

	--pt-font-head: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
	--pt-font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

	--pt-radius: 22px;
	--pt-radius-sm: 12px;
	--pt-shadow: 4px 5px 0 var(--pt-line);
	--pt-shadow-lg: 6px 8px 0 var(--pt-line);
	--pt-wrap: 1200px;
	--pt-gap: clamp(16px, 2.4vw, 28px);
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
	margin: 0;
	background: var(--pt-cream);
	color: var(--pt-ink);
	font-family: var(--pt-font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
}

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

a { color: var(--pt-coral-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--pt-ink); }

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

h1, h2, h3, h4 { font-family: var(--pt-font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}

.pt-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--pt-ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.pt-skip:focus { left: 8px; }

.pt-wrap { width: min(100% - 2 * var(--pt-gap), var(--pt-wrap)); margin-inline: auto; }
.pt-section { padding-block: clamp(32px, 5vw, 64px); }
.pt-main { min-height: 60vh; }

/* ---------- Buttons & chips ---------- */

.pt-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	background: var(--pt-coral-dark); color: #fff;
	font-family: var(--pt-font-head); font-weight: 600; font-size: 1rem; line-height: 1;
	padding: .8em 1.3em; border: 2px solid var(--pt-line); border-radius: 999px;
	box-shadow: 3px 4px 0 var(--pt-line);
	text-decoration: none; cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.pt-button:hover { color: #fff; background: var(--pt-coral); transform: translate(-1px, -1px); box-shadow: 4px 6px 0 var(--pt-line); }
.pt-button:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--pt-line); }
.pt-button[disabled] { opacity: .7; cursor: progress; }
.pt-button--big { font-size: 1.125rem; padding: .95em 1.6em; }
.pt-button--small { font-size: .9rem; padding: .65em 1.05em; box-shadow: 2px 3px 0 var(--pt-line); }
.pt-button--ghost { background: var(--pt-paper); color: var(--pt-ink); }
.pt-button--ghost:hover { background: var(--pt-sun); color: var(--pt-ink); }

.pt-chip {
	display: inline-block; padding: .35em .9em; border: 2px solid var(--pt-line); border-radius: 999px;
	background: var(--pt-paper); color: var(--pt-ink); font-weight: 700; font-size: .9rem; text-decoration: none;
}
.pt-chip:hover, .pt-chip.is-active { background: var(--pt-sun); color: var(--pt-ink); }
.pt-chip--small { font-size: .75rem; padding: .2em .7em; border-width: 1.5px; }

.pt-kicker {
	display: inline-block; margin: 0 0 .75rem; font-family: var(--pt-font-head); font-weight: 600; font-size: .95rem;
	color: var(--pt-coral-dark); letter-spacing: .02em;
}
.pt-badge {
	display: inline-block; margin: 0 0 .75rem; padding: .3em .85em; border-radius: 999px; border: 2px solid var(--pt-line);
	background: var(--pt-sun); font-family: var(--pt-font-head); font-weight: 600; font-size: .85rem;
}
.pt-badge--alert { background: var(--pt-coral-dark); color: #fff; }

/* ---------- Header ---------- */

.pt-header { position: sticky; top: 0; z-index: 50; background: var(--pt-cream); border-bottom: 2px solid var(--pt-line); }
.pt-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }

.pt-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--pt-ink); text-decoration: none; }
.pt-logo__mark { width: 44px; height: 44px; color: var(--pt-coral); }
.pt-logo__text { font-family: var(--pt-font-head); font-weight: 600; font-size: 1.6rem; letter-spacing: -0.02em; }
.pt-logo__custom { max-height: 56px; width: auto; }
.pt-logo:hover { color: var(--pt-ink); }
.pt-logo:hover .pt-logo__mark { transform: rotate(-8deg); }
.pt-logo__mark { transition: transform .2s ease; }

.pt-nav { display: flex; align-items: center; gap: 20px; }
.pt-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.pt-logo, .pt-nav__cta { white-space: nowrap; flex-shrink: 0; }
@media (min-width: 901px) { .pt-nav__list { flex-wrap: wrap; justify-content: flex-end; } .pt-nav__list a { white-space: nowrap; } }
.pt-nav__list a { display: block; padding: .5em .8em; border-radius: 999px; color: var(--pt-ink); font-weight: 700; text-decoration: none; }
.pt-nav__list a:hover, .pt-nav__list .current-menu-item > a, .pt-nav__list .current_page_item > a { background: var(--pt-blush); }

.pt-nav-toggle { display: none; }

@media (max-width: 900px) {
	.pt-nav-toggle {
		display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
		border: 2px solid var(--pt-line); border-radius: 14px; background: var(--pt-paper); cursor: pointer; box-shadow: 2px 3px 0 var(--pt-line);
	}
	.pt-nav-toggle__bars, .pt-nav-toggle__bars::before, .pt-nav-toggle__bars::after {
		display: block; width: 22px; height: 3px; border-radius: 3px; background: var(--pt-ink); position: relative; transition: transform .2s ease;
	}
	.pt-nav-toggle__bars::before, .pt-nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
	.pt-nav-toggle__bars::before { top: -7px; }
	.pt-nav-toggle__bars::after { top: 7px; }
	.pt-nav-open .pt-nav-toggle__bars { background: transparent; }
	.pt-nav-open .pt-nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
	.pt-nav-open .pt-nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

	.pt-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 12px;
		padding: 16px var(--pt-gap) 24px; background: var(--pt-cream); border-bottom: 2px solid var(--pt-line);
	}
	.pt-nav-open .pt-nav { display: flex; }
	.pt-nav__list { flex-direction: column; }
	.pt-nav__list a { font-size: 1.15rem; padding: .7em .9em; }
	.pt-logo__text { font-size: 1.4rem; }
}

/* ---------- Hero ---------- */

.pt-hero { background: var(--pt-blush); border-bottom: 2px solid var(--pt-line); overflow: hidden; position: relative; }
.pt-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background-image: radial-gradient(circle at 1px 1px, rgba(43, 33, 24, .14) 1.5px, transparent 0);
	background-size: 22px 22px;
}
.pt-hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(40px, 7vw, 96px); }
.pt-hero__title { font-size: clamp(2.4rem, 5.4vw, 4.3rem); margin-bottom: .35em; }
.pt-hero__lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34em; margin: 0 0 1.6rem; }
.pt-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.pt-hero__art { position: relative; min-height: 400px; }
.pt-polaroid {
	position: absolute; margin: 0; width: 62%; background: var(--pt-paper); padding: 10px 10px 0;
	border: 2px solid var(--pt-line); border-radius: 8px; box-shadow: var(--pt-shadow-lg);
	transition: transform .25s ease;
}
.pt-polaroid img, .pt-polaroid .pt-placeholder { border-radius: 4px; aspect-ratio: 1300 / 735; width: 100%; object-fit: cover; }
.pt-polaroid figcaption { font-family: var(--pt-font-head); font-weight: 600; font-size: 1.15rem; text-align: center; padding: 8px 0 10px; }
.pt-polaroid--1 { top: 0; left: 0; transform: rotate(-5deg); z-index: 2; }
.pt-polaroid--2 { top: 22%; right: 0; transform: rotate(4deg); z-index: 3; }
.pt-polaroid--3 { bottom: 0; left: 14%; transform: rotate(-1.5deg); z-index: 1; }
.pt-hero__art:hover .pt-polaroid--1 { transform: rotate(-7deg) translateY(-4px); }
.pt-hero__art:hover .pt-polaroid--2 { transform: rotate(6deg) translateY(-4px); }

@media (max-width: 860px) {
	.pt-hero__inner { grid-template-columns: 1fr; }
	.pt-hero__art { min-height: 300px; max-width: 520px; width: 100%; margin-inline: auto; }
}

/* ---------- Placeholders ---------- */

.pt-placeholder { display: grid; place-items: center; aspect-ratio: 1300 / 735; width: 100%; }
.pt-placeholder__mark { width: 34%; opacity: .9; }
.pt-placeholder--coral { background: var(--pt-blush); color: var(--pt-coral); }
.pt-placeholder--teal { background: var(--pt-mint); color: var(--pt-teal); }
.pt-placeholder--sun { background: var(--pt-sun-soft); color: #c99300; }
.pt-placeholder--plum { background: var(--pt-lilac); color: var(--pt-plum); }

/* ---------- Sections & grids ---------- */

.pt-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.pt-section__title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.pt-section__more { font-weight: 700; text-decoration: none; color: var(--pt-ink); border-bottom: 3px solid var(--pt-sun); }
.pt-section__more:hover { color: var(--pt-coral-dark); }

.pt-band { border-block: 2px solid var(--pt-line); }
.pt-band--mint { background: var(--pt-mint); }

.pt-grid { display: grid; gap: var(--pt-gap); }
.pt-grid--pets { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.pt-grid--guides { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pt-grid--posts { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 600px) {
	.pt-grid--pets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.pt-grid--pets .pt-card__body { padding: 10px 12px 14px; }
	.pt-grid--pets .pt-card__title { font-size: 1.1rem; }
	.pt-grid--pets .pt-card__meta { font-size: .82rem; }
	.pt-grid--posts { grid-template-columns: 1fr; }
}

/* ---------- Cards ---------- */

.pt-card {
	position: relative; display: flex; flex-direction: column; background: var(--pt-paper);
	border: 2px solid var(--pt-line); border-radius: var(--pt-radius); overflow: hidden;
	box-shadow: var(--pt-shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.pt-card:hover { transform: translate(-2px, -3px) rotate(-.4deg); box-shadow: var(--pt-shadow-lg); }
.pt-card:nth-child(even):hover { transform: translate(-2px, -3px) rotate(.4deg); }
.pt-card__media { display: block; border-bottom: 2px solid var(--pt-line); }
.pt-card__img { width: 100%; aspect-ratio: 1300 / 735; object-fit: cover; }
.pt-card__body { padding: 16px 18px 20px; }
.pt-card__kicker { margin: 0 0 .3rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--pt-muted); }
.pt-card__title { font-size: 1.35rem; margin: 0 0 .25rem; }
.pt-card__title a { color: var(--pt-ink); text-decoration: none; }
.pt-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.pt-card__title a:focus-visible { outline: none; }
.pt-card:has(.pt-card__title a:focus-visible) { outline: 3px solid var(--pt-teal); outline-offset: 3px; }
.pt-card__meta { margin: 0; color: var(--pt-muted); font-size: .95rem; line-height: 1.45; }

.pt-card--guide .pt-card__body { padding: 22px 22px 24px; flex: 1; }
.pt-card--guide .pt-card__title { font-size: 1.5rem; }
.pt-card--guide.pt-card--coral { background: var(--pt-blush); }
.pt-card--guide.pt-card--teal { background: #e8f7f3; }
.pt-card--guide.pt-card--sun { background: var(--pt-sun-soft); }
.pt-card--guide.pt-card--plum { background: var(--pt-lilac); }

/* ---------- Feature (pet of the month) ---------- */

.pt-feature {
	display: grid; grid-template-columns: 1.3fr 1fr; background: var(--pt-sun-soft);
	border: 2px solid var(--pt-line); border-radius: var(--pt-radius); overflow: hidden; box-shadow: var(--pt-shadow-lg);
}
.pt-feature__img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1300 / 735; }
.pt-feature__media { border-right: 2px solid var(--pt-line); }
.pt-feature__body { padding: clamp(20px, 3vw, 40px); align-self: center; }
.pt-feature__title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .2em; }
.pt-feature__title a { color: var(--pt-ink); text-decoration: none; }
.pt-feature__meta { font-family: var(--pt-font-head); font-size: 1.2rem; color: var(--pt-coral-dark); }
@media (max-width: 760px) {
	.pt-feature { grid-template-columns: 1fr; }
	.pt-feature__media { border-right: 0; border-bottom: 2px solid var(--pt-line); }
}

/* ---------- Alerts band ---------- */

.pt-alerts-band {
	display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(20px, 4vw, 48px);
	background: var(--pt-paper); border: 2px solid var(--pt-line); border-radius: var(--pt-radius);
	padding: clamp(20px, 4vw, 44px); box-shadow: var(--pt-shadow-lg);
	background-image: linear-gradient(90deg, var(--pt-sun-soft) 0 40%, transparent 40%);
}
@media (max-width: 860px) {
	.pt-alerts-band { grid-template-columns: 1fr; background-image: none; background: var(--pt-sun-soft); }
}
.pt-alerts-band__list { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.pt-alerts-band__list .pt-recall-row { width: 100%; }

/* ---------- Recall rows ---------- */

.pt-recall-row {
	position: relative; display: flex; gap: 16px; align-items: flex-start;
	padding: 14px 16px; background: var(--pt-paper); border: 2px solid var(--pt-line); border-radius: var(--pt-radius-sm);
	transition: transform .12s ease, box-shadow .12s ease;
}
.pt-recall-row:hover { transform: translate(-1px, -2px); box-shadow: var(--pt-shadow); }
.pt-recall-row__date {
	flex: 0 0 64px; text-align: center; background: var(--pt-coral-dark); color: #fff;
	border-radius: 10px; padding: 6px 4px; line-height: 1.1;
}
.pt-recall-row__day { display: block; font-family: var(--pt-font-head); font-size: 1.6rem; font-weight: 600; }
.pt-recall-row__month { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.pt-recall-row__title { font-size: 1.08rem; margin: 0 0 .35rem; line-height: 1.3; font-family: var(--pt-font-body); font-weight: 700; }
.pt-recall-row__title a { color: var(--pt-ink); text-decoration: none; }
.pt-recall-row__title a::after { content: ""; position: absolute; inset: 0; }
.pt-recall-row__tags { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }

.pt-recalls { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.pt-recalls__list { display: flex; flex-direction: column; gap: 12px; }
.pt-recalls__aside { position: sticky; top: 100px; }
@media (max-width: 900px) {
	.pt-recalls { grid-template-columns: 1fr; }
	.pt-recalls__aside { position: static; }
}

.pt-recall__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.pt-recall__meta { color: var(--pt-muted); font-weight: 700; }
.pt-recall-lead { font-size: 1.2rem; }
.pt-recall-products { display: grid; gap: 12px; margin-bottom: 1.5rem; }
.pt-recall-product { background: var(--pt-paper); border: 2px solid var(--pt-line); border-radius: var(--pt-radius-sm); padding: 16px 18px; }
.pt-recall-product h3 { font-size: 1.2rem; margin: 0 0 .5rem; }
.pt-recall-product > :first-child { margin-top: 0; }
.pt-recalls__aside .pt-signup__row { flex-direction: column; }
.pt-recalls__aside .pt-signup__row .pt-button { width: 100%; }
.pt-recall-product dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
.pt-recall-product dt { font-weight: 700; color: var(--pt-muted); }
.pt-recall-product dd { margin: 0; }
.pt-recall-vet { background: var(--pt-blush); border-left: 6px solid var(--pt-coral-dark); padding: 12px 16px; border-radius: 0 10px 10px 0; font-weight: 700; }
.pt-recall__source { margin: 2rem 0 1rem; }
.pt-ogl { font-size: .8rem; color: var(--pt-muted); }

/* ---------- Boxes ---------- */

.pt-box { border: 2px solid var(--pt-line); border-radius: var(--pt-radius); padding: 22px; box-shadow: var(--pt-shadow); background: var(--pt-paper); }
.pt-box--sun { background: var(--pt-sun-soft); }
.pt-box__title { font-size: 1.4rem; }

/* ---------- Page heads ---------- */

.pt-page-head { padding-block: clamp(36px, 6vw, 72px) clamp(24px, 4vw, 40px); border-bottom: 2px solid var(--pt-line); background: var(--pt-cream); }
.pt-page-head--pets { background: var(--pt-blush); }
.pt-page-head--names, .pt-page-head--guide { background: var(--pt-mint); }
.pt-page-head--alert { background: var(--pt-sun-soft); }
.pt-page-head__title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: .3em; }
.pt-page-head__lede { font-size: 1.2rem; max-width: 40em; margin: 0 0 1rem; }
.pt-page-head__narrow { max-width: 780px; }
.pt-page-head + .pt-page-head__narrow { margin-top: 0; }

.pt-crumbs { font-weight: 700; font-size: .95rem; margin-bottom: 1rem; color: var(--pt-muted); }
.pt-crumbs a { color: var(--pt-ink); }

.pt-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.25rem; }

/* ---------- Single pet ---------- */

.pt-pet { padding-block: clamp(24px, 4vw, 48px); }
.pt-pet__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.pt-pet__photo { margin: 0; background: var(--pt-paper); border: 2px solid var(--pt-line); border-radius: var(--pt-radius); padding: 12px; box-shadow: var(--pt-shadow-lg); transform: rotate(-1deg); }
.pt-pet__img { border-radius: 12px; width: 100%; aspect-ratio: 1300 / 735; object-fit: cover; }
.pt-pet__name { font-size: clamp(2.6rem, 6vw, 4.4rem); margin: .4rem 0 .1em; }
.pt-pet__tagline { font-family: var(--pt-font-head); font-weight: 500; font-size: 1.35rem; color: var(--pt-coral-dark); margin: 0 0 1rem; }
.pt-pet__owner { font-weight: 700; color: var(--pt-muted); }
@media (max-width: 860px) { .pt-pet__grid { grid-template-columns: 1fr; } .pt-pet__photo { transform: none; } }

.pt-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 1.25rem 0; }
.pt-share__label { font-weight: 700; margin-right: 4px; }
.pt-share__link {
	font: inherit; font-size: .85rem; font-weight: 700; padding: .35em .85em; border-radius: 999px; border: 2px solid var(--pt-line);
	background: var(--pt-paper); color: var(--pt-ink); text-decoration: none; cursor: pointer;
}
.pt-share__link:hover { background: var(--pt-mint); color: var(--pt-ink); }

.pt-mini-card {
	display: block; margin-top: 1.25rem; padding: 14px 18px; background: var(--pt-mint);
	border: 2px solid var(--pt-line); border-radius: var(--pt-radius-sm); text-decoration: none; color: var(--pt-ink); box-shadow: 3px 4px 0 var(--pt-line);
}
.pt-mini-card:hover { color: var(--pt-ink); background: #c2ebe1; }
.pt-mini-card--inline { display: inline-block; }
.pt-mini-card__kicker { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--pt-teal); }
.pt-mini-card__title { display: block; font-family: var(--pt-font-head); font-weight: 600; font-size: 1.2rem; }

/* ---------- Prose ---------- */

.pt-prose { font-size: 1.125rem; }
.pt-prose > * + * { margin-top: 1em; }
.pt-prose h2 { font-size: 1.8rem; margin-top: 1.8em; }
.pt-prose h3 { font-size: 1.35rem; margin-top: 1.4em; }
.pt-prose p { margin: 0 0 1em; }
.pt-prose blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 6px solid var(--pt-sun); background: var(--pt-paper); border-radius: 0 12px 12px 0; }
.pt-prose img { border-radius: var(--pt-radius-sm); }
.pt-prose .alignwide { width: min(100vw - 2 * var(--pt-gap), 1100px); margin-inline: calc(50% - min(50vw - var(--pt-gap), 550px)); }

.pt-article__hero { margin: clamp(20px, 3vw, 36px) auto 0; max-width: 1100px; }
.pt-article__img { width: 100%; border-radius: var(--pt-radius); border: 2px solid var(--pt-line); box-shadow: var(--pt-shadow-lg); }
.pt-article__meta { color: var(--pt-muted); font-weight: 700; margin: 0; }
.pt-article .pt-prose { padding-block: clamp(24px, 4vw, 48px); }

/* Name lists inside guides */
.pt-guide { padding-block: clamp(24px, 4vw, 48px); }
.pt-name-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pt-prose .pt-name-list { margin-top: 1rem; }
.pt-name-list li {
	background: var(--pt-paper); border: 2px solid var(--pt-line); border-radius: var(--pt-radius-sm);
	padding: 12px 16px; font-size: 1rem; line-height: 1.45; margin: 0;
}
.pt-name-list li strong { display: block; font-family: var(--pt-font-head); font-weight: 600; font-size: 1.4rem; color: var(--pt-coral-dark); margin-bottom: 2px; }

/* ---------- CTA ---------- */

.pt-cta {
	display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; margin-top: clamp(32px, 5vw, 56px);
	background: var(--pt-coral-dark); color: #fff; border: 2px solid var(--pt-line); border-radius: var(--pt-radius);
	padding: clamp(20px, 3vw, 32px); box-shadow: var(--pt-shadow-lg);
}
.pt-cta__mark { width: 72px; height: 72px; color: var(--pt-sun); }
.pt-cta__title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 .25em; }
.pt-cta p { margin: 0; }
.pt-cta .pt-button { background: var(--pt-sun); color: var(--pt-ink); }
.pt-cta .pt-button:hover { background: #fff; }
@media (max-width: 760px) { .pt-cta { grid-template-columns: 1fr; text-align: left; } .pt-cta__mark { width: 52px; height: 52px; } }

/* ---------- Empty states, notices, pagination ---------- */

.pt-empty { text-align: center; padding: 40px 20px; border: 2px dashed var(--pt-line); border-radius: var(--pt-radius); background: rgba(255, 255, 255, .6); }
.pt-empty p { font-size: 1.15rem; font-weight: 700; }
.pt-empty--small { padding: 20px; }

.pt-notice { padding: 14px 18px; border: 2px solid var(--pt-line); border-radius: var(--pt-radius-sm); margin-bottom: 1.25rem; font-weight: 700; }
.pt-notice h2 { margin-top: 0; }
.pt-notice--success { background: var(--pt-mint); }
.pt-notice--error { background: var(--pt-blush); border-color: var(--pt-coral-dark); }

.pt-pagination { margin-top: 32px; }
.pt-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pt-pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 2px solid var(--pt-line); border-radius: 999px;
	background: var(--pt-paper); color: var(--pt-ink); font-weight: 700; text-decoration: none;
}
.pt-pagination .page-numbers.current, .pt-pagination a.page-numbers:hover { background: var(--pt-sun); }
.pt-pagination .page-numbers.dots { border: 0; background: none; }

/* ---------- Forms (submission + alerts) ---------- */

.pt-form { background: var(--pt-paper); border: 2px solid var(--pt-line); border-radius: var(--pt-radius); padding: clamp(18px, 3vw, 32px); box-shadow: var(--pt-shadow-lg); }
.pt-form fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
.pt-form legend { font-family: var(--pt-font-head); font-weight: 600; font-size: 1.4rem; margin-bottom: .75rem; padding: 0; }
.pt-field { margin-bottom: 1rem; }
.pt-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .pt-field-row { grid-template-columns: 1fr; } }
.pt-field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.pt-req { color: var(--pt-coral-dark); }

.pt-form input[type="text"], .pt-form input[type="email"], .pt-form select, .pt-form textarea,
.pt-signup input[type="email"], .pt-search input[type="search"], .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; font: inherit; color: var(--pt-ink); background: var(--pt-cream);
	border: 2px solid var(--pt-line); border-radius: var(--pt-radius-sm); padding: .7em .9em;
}
.pt-form textarea { resize: vertical; min-height: 120px; }
.pt-form input:focus, .pt-form select:focus, .pt-form textarea:focus, .pt-signup input:focus, .pt-search input:focus { outline: 3px solid var(--pt-teal); outline-offset: 1px; background: #fff; }
.pt-form input[type="file"] { font: inherit; padding: 12px; border: 2px dashed var(--pt-line); border-radius: var(--pt-radius-sm); width: 100%; background: var(--pt-sun-soft); cursor: pointer; }
.pt-photo-preview img { margin-top: 12px; max-height: 240px; width: auto; border-radius: var(--pt-radius-sm); border: 2px solid var(--pt-line); }
.pt-help { font-size: .9rem; color: var(--pt-muted); margin: .35rem 0 0; }
.pt-check { display: flex; gap: 10px; align-items: flex-start; margin: .6rem 0; font-weight: 600; cursor: pointer; }
.pt-check input { margin-top: .3em; width: 20px; height: 20px; accent-color: var(--pt-coral-dark); flex: 0 0 auto; }
.pt-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }

.pt-signup form { margin: 0; }
.pt-signup__row { display: flex; gap: 8px; }
.pt-signup__row input { flex: 1; min-width: 0; }
.pt-signup__row .pt-button { flex: 0 0 auto; }
.pt-signup--compact .pt-signup__row { flex-wrap: wrap; }
@media (max-width: 480px) { .pt-signup__row { flex-direction: column; } }
.pt-signup__prefs { border: 0; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pt-signup__prefs legend { font-weight: 700; margin-bottom: 6px; padding: 0; width: 100%; }
.pt-chip-check { position: relative; cursor: pointer; }
.pt-chip-check input { position: absolute; opacity: 0; }
.pt-chip-check span { display: inline-block; padding: .35em .9em; border: 2px solid var(--pt-line); border-radius: 999px; background: var(--pt-paper); font-weight: 700; font-size: .9rem; }
.pt-chip-check input:checked + span { background: var(--pt-teal); color: #fff; }
.pt-chip-check input:focus-visible + span { outline: 3px solid var(--pt-teal); outline-offset: 2px; }

.pt-search { display: flex; gap: 8px; max-width: 520px; margin: 1rem auto; }

/* ---------- Comments ---------- */

.pt-comments { margin-top: 48px; max-width: 780px; }
.comment-form textarea { min-height: 140px; height: 140px; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent input { margin-top: .35em; }
.comment-form-cookies-consent label { font-weight: 400; }
.pt-comments__list { list-style: none; padding: 0; }
.pt-comments__list .comment-body { background: var(--pt-paper); border: 2px solid var(--pt-line); border-radius: var(--pt-radius-sm); padding: 16px; margin-bottom: 12px; }
.pt-comments__list .children { list-style: none; padding-left: 24px; }
.comment-form label { display: block; font-weight: 700; }

/* ---------- Footer ---------- */

.pt-footer { margin-top: clamp(40px, 6vw, 80px); background: var(--pt-ink); color: #f4e9dc; padding-top: clamp(40px, 5vw, 64px); }
.pt-footer a { color: #fff; }
.pt-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: clamp(24px, 4vw, 56px); }
@media (max-width: 860px) { .pt-footer__grid { grid-template-columns: 1fr; } }
.pt-logo--footer { color: #fff; }
.pt-logo--footer:hover { color: #fff; }
.pt-logo--footer .pt-logo__mark { color: var(--pt-sun); }
.pt-footer__heading { font-size: 1.15rem; color: var(--pt-sun); }
.pt-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pt-footer__list a { text-decoration: none; font-weight: 700; }
.pt-footer__list a:hover { text-decoration: underline; }
.pt-footer .pt-help { color: #d8c8b8; }
.pt-footer .pt-signup input[type="email"] { background: #fff; }
.pt-footer .pt-button { background: var(--pt-sun); color: var(--pt-ink); border-color: var(--pt-sun); box-shadow: none; }
.pt-footer .pt-button:hover { background: #fff; border-color: #fff; }
.pt-footer .pt-notice { color: var(--pt-ink); }
.pt-footer__base { margin-top: 40px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .9rem; color: #d8c8b8; }
.pt-footer__base p { margin: 0; }

/* ---------- 404 ---------- */

.pt-404 { text-align: center; }
.pt-404__mark { width: 96px; height: 96px; color: var(--pt-coral); margin: 0 auto 16px; animation: pt-wiggle 2.4s ease-in-out infinite; }
@keyframes pt-wiggle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

/* ---------- WordPress core classes ---------- */

.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .9rem; color: var(--pt-muted); }
.sticky .pt-card__title::before { content: "★ "; color: var(--pt-sun); }
