/**
 * Trailkin Family Guide — mobile-first blog layout
 */

:root {
	--tfg-pink: #e8837a;
	--tfg-pink-deep: #d66b62;
	--tfg-teal: #2a9d8f;
	--tfg-teal-dark: #1f7a70;
	--tfg-lime: #c5d86d;
	--tfg-lime-nav: #dbe89a;
	--tfg-ink: #3d3d3d;
	--tfg-muted: #777;
	--tfg-white: #fff;
	--tfg-serif: "Georgia", "Times New Roman", serif;
	--tfg-sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--tfg-max: 1080px;
	--tfg-gap: 1.25rem;
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--tfg-serif);
	font-size: 1.05rem;
	line-height: 1.65;
	color: var(--tfg-ink);
	background: var(--tfg-white);
}

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

a {
	color: var(--tfg-teal-dark);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--tfg-pink-deep);
	text-decoration: underline;
}

.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;
}

.screen-reader-text:focus {
	background: #f1f1f1;
	clip: auto;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 6px;
	line-height: normal;
	padding: 12px 18px;
	text-decoration: none;
	top: 6px;
	width: auto;
	z-index: 100000;
}

.site-canvas {
	position: relative;
	overflow-x: hidden;
	min-height: 100vh;
	background: var(--tfg-white);
}

.bubble {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
	opacity: 0.95;
}

.bubble-pink {
	width: 220px;
	height: 220px;
	background: var(--tfg-pink);
	top: 120px;
	left: -80px;
}

.bubble-teal {
	width: 180px;
	height: 180px;
	background: var(--tfg-teal);
	top: 40px;
	right: -60px;
}

.bubble-lime {
	width: 140px;
	height: 140px;
	background: var(--tfg-lime);
	bottom: 120px;
	left: -40px;
}

.bubble-pink-alt {
	width: 200px;
	height: 200px;
	background: var(--tfg-pink);
	bottom: 40px;
	right: -90px;
}

.site-header,
.site-inner,
.site-footer {
	position: relative;
	z-index: 1;
	max-width: var(--tfg-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

.site-header {
	padding-top: 1.5rem;
	padding-bottom: 0.5rem;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.site-logo img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 4px;
}

.site-title {
	margin: 0;
	font-family: var(--tfg-serif);
	font-size: 1.75rem;
	font-weight: 400;
	text-transform: lowercase;
	line-height: 1.15;
}

.site-title a {
	color: var(--tfg-pink);
	text-decoration: none;
}

.site-description {
	margin: 0.15rem 0 0;
	font-family: var(--tfg-sans);
	font-size: 0.82rem;
	text-transform: lowercase;
	color: var(--tfg-teal);
	line-height: 1.35;
}

.primary-nav {
	margin-top: 1rem;
	background: var(--tfg-lime-nav);
	border-radius: 2px;
}

.nav-toggle {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1rem;
	border: 0;
	background: transparent;
	font-family: var(--tfg-sans);
	font-size: 0.95rem;
	text-transform: lowercase;
	cursor: pointer;
}

.primary-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: none;
	flex-direction: column;
}

.primary-nav.is-open .primary-menu {
	display: flex;
}

.primary-menu .menu-item a {
	display: block;
	padding: 0.55rem 1rem;
	font-family: var(--tfg-sans);
	font-size: 0.92rem;
	text-transform: lowercase;
	color: var(--tfg-ink);
	text-decoration: none;
}

.primary-menu .menu-item a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
	background: var(--tfg-pink);
	color: var(--tfg-white);
	text-decoration: none;
}

.site-inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--tfg-gap);
	padding-top: 1.25rem;
	padding-bottom: 2rem;
}

.content-area {
	min-width: 0;
}

.post-card {
	margin-bottom: 2.25rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #ececec;
}

.post-card:last-child {
	border-bottom: 0;
}

.post-thumb {
	display: block;
	margin-bottom: 0.85rem;
}

.post-thumb img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.entry-meta {
	margin: 0 0 0.5rem;
	font-family: var(--tfg-sans);
	font-size: 0.78rem;
	color: var(--tfg-muted);
}

.entry-meta span + span::before {
	content: " · ";
}

.entry-title {
	margin: 0 0 0.65rem;
	font-family: var(--tfg-serif);
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.25;
}

.entry-title a {
	color: var(--tfg-teal);
	text-decoration: none;
}

.entry-title a:hover {
	color: var(--tfg-teal-dark);
	text-decoration: underline;
}

.entry-summary p {
	margin: 0 0 0.75rem;
}

.read-more-wrap {
	margin: 0;
}

.read-more {
	font-family: var(--tfg-sans);
	font-size: 0.88rem;
	text-transform: lowercase;
	color: var(--tfg-teal-dark);
}

.sidebar {
	min-width: 0;
}

.widget {
	margin-bottom: 1.75rem;
	font-family: var(--tfg-sans);
	font-size: 0.92rem;
}

.widget-title {
	margin: 0 0 0.65rem;
	font-family: var(--tfg-serif);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--tfg-teal-dark);
	text-transform: none;
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget li {
	margin-bottom: 0.35rem;
	line-height: 1.4;
}

.author-card {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
}

.author-avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.author-card p {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.5;
}

.search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.search-field {
	flex: 1 1 160px;
	padding: 0.45rem 0.55rem;
	border: 1px solid #ccc;
	font-family: var(--tfg-sans);
	font-size: 0.88rem;
}

.search-submit,
.newsletter-form button {
	padding: 0.45rem 1rem;
	border: 0;
	background: var(--tfg-pink);
	color: var(--tfg-white);
	font-family: var(--tfg-sans);
	font-size: 0.88rem;
	text-transform: lowercase;
	cursor: pointer;
}

.search-submit:hover,
.newsletter-form button:hover {
	background: var(--tfg-pink-deep);
}

.newsletter-thumb img {
	width: 100%;
	border-radius: 2px;
	margin-bottom: 0.65rem;
}

.newsletter-lede {
	font-size: 0.88rem;
	line-height: 1.45;
}

.newsletter-form {
	margin-top: 0.65rem;
}

.newsletter-form input[type="email"] {
	width: 100%;
	padding: 0.45rem 0.55rem;
	margin-bottom: 0.5rem;
	border: 1px solid #ccc;
	font-family: var(--tfg-sans);
}

.newsletter-feedback {
	font-size: 0.82rem;
	margin: 0.35rem 0 0;
}

.newsletter-feedback.is-success {
	color: var(--tfg-teal-dark);
}

.newsletter-feedback.is-error {
	color: #b00020;
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.75rem;
}

.social-links a {
	font-size: 0.82rem;
	text-transform: capitalize;
}

.single-post .entry-title,
.page-content .entry-title,
.archive-title {
	color: var(--tfg-teal);
	font-size: 1.65rem;
}

.entry-content {
	margin-top: 1rem;
}

.entry-content p {
	margin: 0 0 1rem;
}

.site-footer {
	padding: 1.25rem 1rem 2rem;
	text-align: center;
	font-family: var(--tfg-sans);
	font-size: 0.82rem;
	color: var(--tfg-muted);
	border-top: 1px solid #eee;
}

.footer-link-strip {
	margin-bottom: 0.85rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.footer-link-strip-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem 0.85rem;
	min-width: min-content;
}

.footer-link-strip-list a {
	font-size: 0.78rem;
	color: var(--tfg-muted);
	text-decoration: none;
	white-space: nowrap;
}

.footer-link-strip-list a:hover {
	color: var(--tfg-teal-dark);
	text-decoration: underline;
}

.site-credit {
	margin: 0;
}

.posts-navigation,
.comment-navigation {
	margin: 1.5rem 0;
	font-family: var(--tfg-sans);
	font-size: 0.9rem;
}

.comments-area {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid #eee;
	font-family: var(--tfg-sans);
}

@media (min-width: 768px) {
	.nav-toggle {
		display: none;
	}

	.primary-menu {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
	}

	.primary-menu .menu-item a {
		padding: 0.65rem 0.85rem;
	}

	.site-logo img {
		width: 96px;
		height: 96px;
	}

	.site-title {
		font-size: 2.35rem;
	}

	.site-description {
		font-size: 0.9rem;
	}

	.site-inner {
		grid-template-columns: minmax(0, 1fr) 280px;
		align-items: start;
	}

	.entry-title {
		font-size: 1.65rem;
	}
}

@media (min-width: 992px) {
	.site-inner {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 2rem;
	}

	.bubble-pink {
		width: 320px;
		height: 320px;
		left: -120px;
	}

	.bubble-teal {
		width: 260px;
		height: 260px;
		right: -100px;
	}
}
