/*
Theme Name: Trailnest Daily
Author: Rowan Vale Studio
Description: A classic PHP editorial theme for flexible pet travel publishing.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ptg-theme
*/

:root {
	--ptg-page-bg: #f8e7d4;
	--ptg-hero-bg: #f8f2ec;
	--ptg-card-bg: #ffffff;
	--ptg-text: #111111;
	--ptg-muted: #6c675f;
	--ptg-border: rgba(17, 17, 17, 0.1);
	--ptg-accent: #c35439;
	--ptg-accent-contrast: #ffffff;
	--ptg-soft-accent: #f6d7c4;
	--ptg-footer-bg: #111111;
	--ptg-footer-text: #ffffff;
	--ptg-font-family: "Inter Tight", "Urbanist", Arial, sans-serif;
	--ptg-heading-size: 54px;
	--ptg-body-size: 17px;
	--ptg-radius: 34px;
	--ptg-hero-height: 620px;
	--ptg-container: 1200px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background:
		radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.75), transparent 28%),
		radial-gradient(circle at 90% 12%, var(--ptg-soft-accent), transparent 34%),
		var(--ptg-page-bg);
	color: var(--ptg-text);
	font-family: var(--ptg-font-family);
	font-size: var(--ptg-body-size);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.ptg-menu-open {
	overflow: hidden;
}

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

a {
	color: inherit;
	text-decoration: none;
}

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

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

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

.ptg-skip-link {
	position: fixed;
	left: 16px;
	top: 16px;
	z-index: 1000;
	transform: translateY(-140%);
	background: var(--ptg-text);
	color: var(--ptg-card-bg);
	border-radius: 999px;
	padding: 10px 16px;
	font-weight: 700;
}

.ptg-skip-link:focus {
	transform: translateY(0);
}

.ptg-site {
	min-height: 100vh;
}

.ptg-container {
	width: min(calc(100% - 32px), var(--ptg-container));
	margin-inline: auto;
}

.ptg-site-header {
	position: sticky;
	top: 14px;
	z-index: 100;
	padding: 14px 0 0;
}

.ptg-header-shell {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	min-height: 76px;
	padding: 12px 12px 12px 22px;
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(255, 255, 255, 0.76);
	border-radius: 999px;
	box-shadow: 0 18px 70px rgba(32, 24, 17, 0.11);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}

.ptg-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	color: var(--ptg-text);
	font-weight: 800;
	font-size: 24px;
	line-height: 1;
	letter-spacing: 0;
}

.ptg-brand img {
	max-height: 42px;
	width: auto;
}

.ptg-brand-mark {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--ptg-text);
	color: var(--ptg-card-bg);
	font-size: 14px;
	font-weight: 800;
}

.ptg-brand-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ptg-nav {
	display: none;
}

.ptg-nav-list,
.ptg-mobile-nav-list,
.ptg-footer-nav-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ptg-nav-list {
	align-items: center;
	gap: 6px;
}

.ptg-nav-list a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 16px;
	border-radius: 999px;
	color: var(--ptg-muted);
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	transition: background-color 180ms ease, color 180ms ease;
}

.ptg-nav-list a:hover,
.ptg-nav-list a:focus-visible,
.ptg-nav-list .current-menu-item > a,
.ptg-nav-list .current-cat > a {
	background: rgba(195, 84, 57, 0.1);
	color: var(--ptg-text);
}

.ptg-menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 98px;
	min-height: 52px;
	padding: 14px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--ptg-accent);
	color: var(--ptg-accent-contrast);
	font-weight: 800;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.ptg-menu-icon {
	position: relative;
	display: inline-block;
	width: 18px;
	height: 12px;
}

.ptg-menu-icon::before,
.ptg-menu-icon::after {
	content: "";
	position: absolute;
	left: 0;
	width: 18px;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
	transition: transform 180ms ease, top 180ms ease;
}

.ptg-menu-icon::before {
	top: 1px;
}

.ptg-menu-icon::after {
	top: 9px;
}

.ptg-menu-toggle[aria-expanded="true"] .ptg-menu-icon::before {
	top: 5px;
	transform: rotate(45deg);
}

.ptg-menu-toggle[aria-expanded="true"] .ptg-menu-icon::after {
	top: 5px;
	transform: rotate(-45deg);
}

.ptg-mobile-panel {
	position: fixed;
	inset: 104px 16px auto;
	z-index: 99;
	max-height: calc(100vh - 124px);
	overflow: auto;
	padding: 18px;
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 24px 80px rgba(32, 24, 17, 0.2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-12px);
	transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}

.ptg-mobile-panel.ptg-is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.ptg-mobile-nav-list {
	display: grid;
	gap: 8px;
}

.ptg-mobile-nav-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 54px;
	padding: 15px 16px;
	border-radius: 18px;
	background: #f5eee8;
	color: var(--ptg-text);
	font-weight: 700;
}

.ptg-mobile-nav-list a::after {
	content: "\2197";
	color: var(--ptg-accent);
	font-weight: 800;
}

.ptg-hero {
	padding: 30px 0 56px;
}

.ptg-hero-shell {
	position: relative;
	min-height: var(--ptg-hero-height);
	overflow: hidden;
	padding: 18px;
	border: 8px solid rgba(255, 255, 255, 0.88);
	border-radius: calc(var(--ptg-radius) + 26px);
	background:
		linear-gradient(120deg, rgba(255, 255, 255, 0.78), rgba(247, 228, 217, 0.62)),
		var(--ptg-hero-bg);
	box-shadow: 0 30px 90px rgba(63, 39, 24, 0.13);
}

.ptg-hero-shell::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle, rgba(195, 84, 57, 0.12) 1.2px, transparent 1.2px);
	background-size: 34px 34px;
	opacity: 0.55;
	pointer-events: none;
}

.ptg-hero-media {
	position: absolute;
	inset: 18px;
	overflow: hidden;
	border-radius: var(--ptg-radius);
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(246, 215, 196, 0.75)),
		var(--ptg-hero-bg);
}

.ptg-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	filter: saturate(1.03) contrast(0.98);
}

.ptg-hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(248, 242, 236, 0.96), rgba(248, 242, 236, 0.64) 42%, rgba(248, 242, 236, 0.12) 72%),
		linear-gradient(0deg, rgba(17, 17, 17, 0.08), transparent 45%);
}

.ptg-hero-placeholder {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 78% 25%, rgba(195, 84, 57, 0.22), transparent 22%),
		radial-gradient(circle at 24% 85%, rgba(255, 255, 255, 0.96), transparent 32%),
		linear-gradient(135deg, #fbefe4, #f4d4c0);
}

.ptg-hero-card {
	position: relative;
	z-index: 2;
	width: min(100%, 640px);
	margin: 290px 0 0;
	padding: 26px;
	border: 1px solid rgba(255, 255, 255, 0.82);
	border-radius: calc(var(--ptg-radius) - 4px);
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 22px 72px rgba(57, 35, 24, 0.18);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}

.ptg-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	max-width: 100%;
	padding: 6px 14px 6px 6px;
	margin-bottom: 18px;
	border: 1px solid rgba(195, 84, 57, 0.24);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.66);
	color: var(--ptg-text);
	font-size: 14px;
	font-weight: 700;
	white-space: normal;
}

.ptg-eyebrow-dots {
	display: inline-flex;
	flex: 0 0 auto;
}

.ptg-eyebrow-dot {
	width: 28px;
	height: 28px;
	margin-left: -7px;
	border: 2px solid var(--ptg-card-bg);
	border-radius: 50%;
	background: var(--ptg-accent);
}

.ptg-eyebrow-dot:first-child {
	margin-left: 0;
	background: #e7ac91;
}

.ptg-eyebrow-dot:nth-child(2) {
	background: #111111;
}

.ptg-hero-title {
	max-width: 12ch;
	margin: 0;
	color: var(--ptg-text);
	font-size: clamp(40px, 8vw, var(--ptg-heading-size));
	font-weight: 800;
	line-height: 0.94;
	letter-spacing: 0;
	text-wrap: balance;
}

.ptg-hero-intro {
	max-width: 590px;
	margin: 18px 0 0;
	color: var(--ptg-muted);
	font-size: clamp(16px, 2vw, calc(var(--ptg-body-size) + 1px));
	line-height: 1.55;
}

.ptg-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 26px;
}

.ptg-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 58px;
	padding: 16px 18px 16px 24px;
	border: 0;
	border-radius: 999px;
	background: var(--ptg-accent);
	color: var(--ptg-accent-contrast);
	font-weight: 800;
	line-height: 1;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.76);
}

.ptg-button:hover,
.ptg-button:focus-visible {
	color: var(--ptg-accent-contrast);
	transform: translateY(-1px);
}

.ptg-button-icon {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-right: -10px;
	border-radius: 50%;
	background: var(--ptg-card-bg);
	color: var(--ptg-text);
	font-size: 22px;
	font-weight: 800;
}

.ptg-section {
	padding: 44px 0;
}

.ptg-section-head {
	display: grid;
	gap: 12px;
	margin-bottom: 24px;
}

.ptg-kicker {
	color: var(--ptg-accent);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ptg-section-title {
	max-width: 760px;
	margin: 0;
	color: var(--ptg-text);
	font-size: clamp(32px, 5vw, 58px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0;
	text-wrap: balance;
}

.ptg-section-text {
	max-width: 700px;
	margin: 0;
	color: var(--ptg-muted);
	font-size: clamp(16px, 2vw, 20px);
}

.ptg-post-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

.ptg-post-card {
	overflow: hidden;
	border-radius: 26px;
	background: rgba(255, 255, 255, 0.76);
	box-shadow: 0 16px 54px rgba(52, 35, 25, 0.1);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.ptg-post-card:hover,
.ptg-post-card:focus-within {
	transform: translateY(-3px);
	box-shadow: 0 24px 70px rgba(52, 35, 25, 0.15);
}

.ptg-card-link {
	display: grid;
	height: 100%;
	color: var(--ptg-text);
}

.ptg-card-media {
	overflow: hidden;
	aspect-ratio: 1.25 / 1;
	background: linear-gradient(135deg, #f4d6c4, #fbefe4);
}

.ptg-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 220ms ease;
}

.ptg-post-card:hover .ptg-card-media img {
	transform: scale(1.04);
}

.ptg-card-placeholder {
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), transparent 24%),
		radial-gradient(circle at 80% 70%, rgba(195, 84, 57, 0.24), transparent 22%),
		linear-gradient(135deg, #f3d5c2, #fbf1e7);
}

.ptg-card-body {
	display: grid;
	gap: 10px;
	padding: 20px;
}

.ptg-card-date {
	color: var(--ptg-muted);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.ptg-card-title {
	margin: 0;
	color: var(--ptg-text);
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: 0;
	text-wrap: balance;
}

.ptg-card-excerpt {
	margin: 0;
	color: var(--ptg-muted);
	font-size: 15px;
	line-height: 1.55;
}

.ptg-about-shell {
	display: grid;
	gap: 20px;
	padding: 26px;
	border-radius: var(--ptg-radius);
	background: rgba(255, 255, 255, 0.72);
	box-shadow: 0 18px 60px rgba(52, 35, 25, 0.09);
}

.ptg-about-mark {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	border-radius: 24px;
	background: var(--ptg-accent);
	color: var(--ptg-accent-contrast);
	font-size: 26px;
	font-weight: 800;
}

.ptg-content-wrap {
	width: min(calc(100% - 32px), 860px);
	margin: 0 auto;
	padding: 52px 0 76px;
}

.ptg-single {
	padding: 36px 0 70px;
}

.ptg-single-header {
	display: grid;
	gap: 16px;
	padding: 34px 0;
	border-bottom: 1px solid var(--ptg-border);
}

.ptg-single-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	color: var(--ptg-muted);
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.ptg-single-title {
	margin: 0;
	font-size: clamp(42px, 8vw, 82px);
	font-weight: 800;
	line-height: 0.96;
	letter-spacing: 0;
	text-wrap: balance;
}

.ptg-entry-content {
	color: var(--ptg-text);
	font-size: clamp(17px, 2vw, 20px);
	line-height: 1.78;
}

.ptg-entry-content > * {
	margin-top: 0;
	margin-bottom: 1.2em;
}

.ptg-entry-content h2,
.ptg-entry-content h3,
.ptg-entry-content h4 {
	line-height: 1.08;
	margin-top: 1.8em;
	margin-bottom: 0.65em;
}

.ptg-entry-content a {
	color: var(--ptg-accent);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.2em;
}

.ptg-entry-content img {
	border-radius: 24px;
}

.ptg-entry-content blockquote {
	margin-inline: 0;
	padding: 22px 24px;
	border-left: 5px solid var(--ptg-accent);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.66);
	font-weight: 700;
}

.ptg-entry-footer {
	display: grid;
	gap: 18px;
	padding-top: 28px;
	border-top: 1px solid var(--ptg-border);
	color: var(--ptg-muted);
	font-size: 15px;
}

.ptg-entry-footer a {
	color: var(--ptg-text);
	font-weight: 700;
}

.ptg-post-nav {
	display: grid;
	gap: 12px;
	margin-top: 34px;
}

.ptg-post-nav a {
	display: block;
	padding: 18px 20px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.72);
	font-weight: 800;
}

.ptg-empty {
	padding: 26px;
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.72);
	color: var(--ptg-muted);
}

.ptg-site-footer {
	position: relative;
	overflow: hidden;
	margin-top: 54px;
	padding: 64px 0 34px;
	background: var(--ptg-footer-bg);
	color: var(--ptg-footer-text);
}

.ptg-site-footer::before {
	content: "";
	position: absolute;
	inset: -30% -10% auto;
	height: 380px;
	background: linear-gradient(90deg, rgba(251, 235, 217, 0.72), rgba(255, 255, 255, 0.38), rgba(253, 223, 210, 0.68));
	filter: blur(120px);
	opacity: 0.42;
}

.ptg-footer-shell {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 34px;
}

.ptg-footer-top {
	display: grid;
	gap: 28px;
	padding-bottom: 34px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.ptg-footer-brand {
	display: grid;
	gap: 14px;
	max-width: 520px;
}

.ptg-footer-title {
	margin: 0;
	font-size: clamp(34px, 6vw, 64px);
	font-weight: 800;
	line-height: 0.98;
	letter-spacing: 0;
	text-wrap: balance;
}

.ptg-footer-text {
	margin: 0;
	color: rgba(255, 255, 255, 0.66);
}

.ptg-footer-nav {
	display: grid;
	gap: 12px;
}

.ptg-footer-label {
	color: rgba(255, 255, 255, 0.56);
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.ptg-footer-nav-list {
	display: grid;
	gap: 9px;
}

.ptg-footer-nav-list a {
	color: var(--ptg-footer-text);
	font-weight: 700;
}

.ptg-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	color: rgba(255, 255, 255, 0.56);
	font-size: 14px;
}

.ptg-footer-bottom a {
	color: var(--ptg-footer-text);
}

@media (min-width: 640px) {
	.ptg-hero-card {
		margin: 260px 0 0 18px;
		padding: 34px;
	}

	.ptg-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ptg-about-shell {
		grid-template-columns: auto 1fr;
		align-items: start;
		padding: 34px;
	}
}

@media (min-width: 900px) {
	.ptg-site-header {
		top: 24px;
		padding-top: 24px;
	}

	.ptg-header-shell {
		min-height: 86px;
		padding: 14px 16px 14px 30px;
	}

	.ptg-nav {
		display: block;
	}

	.ptg-nav-list {
		display: flex;
	}

	.ptg-menu-toggle {
		min-width: 132px;
		min-height: 58px;
	}

	.ptg-mobile-panel {
		display: none;
	}

	.ptg-hero {
		padding-top: 40px;
	}

	.ptg-hero-shell {
		min-height: var(--ptg-hero-height);
		padding: 26px;
		border-radius: calc(var(--ptg-radius) + 34px);
	}

	.ptg-hero-media {
		inset: 26px;
	}

	.ptg-hero-card {
		width: min(54%, 650px);
		margin: 188px 0 0 34px;
		padding: 42px;
	}

	.ptg-post-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ptg-footer-top {
		grid-template-columns: 1.5fr 0.7fr;
		align-items: start;
	}
}

@media (min-width: 1180px) {
	.ptg-container {
		width: min(calc(100% - 88px), var(--ptg-container));
	}

	.ptg-post-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 420px) {
	.ptg-header-shell {
		padding-left: 16px;
	}

	.ptg-brand {
		font-size: 20px;
	}

	.ptg-menu-label {
		display: none;
	}

	.ptg-menu-toggle {
		min-width: 54px;
		padding-inline: 16px;
	}

	.ptg-hero-shell {
		min-height: 560px;
		border-width: 6px;
	}

	.ptg-hero-card {
		margin-top: 205px;
	}
}
