/*
 * News from Wildwood: Dave Carl's letters (blog index + single letter).
 * Loaded by template-news-from-wildwood-page.php and single-post.php only.
 * Follows the site's own inner-page look (Listen, Podcast): the forest hero with the Burbank
 * outlined title (.episode-featured-image / .entry-title), the wavy hills (.listen-page-bg),
 * then a full-width dark-green page with white Burbank Regular text and orange cards like the
 * home page's "Imagine God's Love" row.
 */

/* Full width, dark green, like the Listen page. */
.pnt-letters-body .site-inner {
	max-width: 100%;
	background-color: #0e3216 !important;
	color: #fff;
}
/* The site's full-width .content carries 200px side padding; the letters set their own widths. */
.pnt-letters-body .content-sidebar-wrap .content {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* ---------- HERO (site classes; only the extras live here) ---------- */
/* The site hero is a fixed 500px; a long letter title + byline would slide under the
   wavy hills (.listen-page-bg overlaps the hero's bottom 100px), so let it grow instead. */
.pnt-letters-hero.episode-featured-image {
	height: auto;
	min-height: 500px;
	padding-bottom: 120px;
}
.pnt-letters-kicker {
	margin: 0 0 6px;
	color: #fff;
	font-family: "Burbank", sans-serif;
	font-weight: 700;
	font-size: 28px;
	line-height: 1.1;
	text-transform: uppercase;
	-webkit-text-stroke: 1px #000;
	text-shadow: -4px 2px 0 #000, -1px 1px 1px #000, 1px 1px 4px #000;
}
.pnt-letters-byline {
	margin: 6px 0 0;
	color: #fff;
	font-family: "Burbank", sans-serif;
	font-weight: 700;
	font-size: 26px;
	-webkit-text-stroke: 1px #000;
	text-shadow: -4px 2px 0 #000, -1px 1px 1px #000, 1px 1px 4px #000;
}
/* Letter titles are sentences, so a size down from the 72px page titles. */
.single-post .pnt-letters-hero .entry-title {
	font-size: 54px;
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 20px;
}

.pnt-letters {
	color: #fff;
	padding: 20px 0 110px;
}
.pnt-letters a { color: #f6a15a; }
.pnt-letters a:hover { color: #fff; }

/* ---------- INDEX ---------- */
.pnt-letters-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.pnt-letters-intro { max-width: 900px; margin: 0 auto 10px; text-align: center; font-size: 22px; }
.pnt-letters-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 34px;
	padding: 30px 0 20px;
}
.pnt-letter-card {
	background: #e0660d;
	color: #fff;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	rotate: -1deg;
	transition: transform .2s ease;
}
.pnt-letter-card:nth-child(3n+2) { rotate: 1deg; }
.pnt-letter-card:nth-child(3n) { background: #43822d; }
.pnt-letter-card:hover { transform: scale(1.03); }
.pnt-letter-card-art { display: block; aspect-ratio: 1200 / 350; overflow: hidden; background: #0e3216; }
.pnt-letter-card-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pnt-letter-card-body { padding: 22px 26px 28px; display: flex; flex-direction: column; flex: 1; text-align: center; }
.pnt-letter-card-date {
	margin: 0 0 8px;
	font-family: "Burbank", sans-serif;
	font-weight: 700;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.pnt-letter-card h2 { font-size: 28px; line-height: 1.1; margin: 0 0 12px; }
.pnt-letter-card h2 a { color: #fff; text-decoration: none; }
.pnt-letter-card-excerpt { margin: 0 0 20px; font-size: 18px; line-height: 1.45; flex: 1; }
/* Home-page pill button: white border, Burbank. */
.pnt-letters .pnt-letter-btn {
	display: inline-block;
	align-self: center;
	border: 5px solid #fff;
	border-radius: 40px;
	padding: 4px 30px;
	color: #fff;
	font-family: "Burbank", sans-serif;
	font-weight: 700;
	font-size: 24px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background .2s ease, color .2s ease;
}
.pnt-letters .pnt-letter-btn:hover { background: #fff; color: #0e3216; }

.pnt-letters-pager {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 30px 0 0;
}
.pnt-letters-empty { text-align: center; font-size: 22px; padding: 30px 0; }

/* ---------- SINGLE LETTER ---------- */
.pnt-letter-banner { max-width: 860px; margin: 0 auto 10px; padding: 0 20px; }
.pnt-letter-banner img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 10px;
	border: 5px solid #fff;
}
.pnt-letter-paper { max-width: 820px; margin: 0 auto; padding: 30px 20px 10px; font-size: 22px; line-height: 1.6; }
.pnt-letter-paper p { margin: 0 0 1.1em; }
.pnt-letter-paper blockquote {
	margin: 1.4em 0;
	padding: 16px 24px;
	border-left: 6px solid #e0660d;
	background: rgba(255, 255, 255, .06);
	border-radius: 0 10px 10px 0;
	color: #fff;
}
.pnt-letter-paper blockquote p:last-child { margin-bottom: 0; }
.pnt-letter-paper img { max-width: 100%; height: auto; border-radius: 10px; display: block; margin: 1.4em auto; }
.pnt-letter-paper ol,
.pnt-letter-paper ul { margin: 0 0 1.1em 1.4em; }
.pnt-letter-paper ol li { list-style-type: decimal; }
.pnt-letter-paper ul li { list-style-type: disc; }
.pnt-letter-paper li { margin-bottom: .5em; }
.pnt-letter-paper strong { font-weight: 700; }

.pnt-letter-nav {
	max-width: 1000px;
	margin: 30px auto 0;
	padding: 30px 20px 0;
	border-top: 2px solid rgba(255, 255, 255, .2);
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 20px;
	align-items: center;
	font-family: "Burbank", sans-serif;
	font-weight: 700;
}
.pnt-letter-nav .pnt-letter-nav-link { text-decoration: none; color: #fff; font-size: 22px; line-height: 1.2; text-transform: uppercase; }
.pnt-letter-nav .pnt-letter-nav-link:hover { color: #f6a15a; }
.pnt-letter-nav small { display: block; color: #e0660d; font-size: 16px; margin-bottom: 4px; }
.pnt-letter-nav .next { text-align: right; }
.pnt-letter-nav .all { text-align: center; }

/* ---------- SMALLER SCREENS ---------- */
@media (max-width: 1023px) {
	.pnt-letters-grid { grid-template-columns: repeat(2, 1fr); }
	.pnt-letter-card:nth-child(n) { rotate: 0deg; background: #e0660d; }
	.pnt-letter-card:nth-child(2n) { background: #43822d; }
	.single-post .pnt-letters-hero .entry-title { font-size: 42px; }
}
@media (max-width: 640px) {
	.pnt-letters-grid { grid-template-columns: 1fr; gap: 24px; }
	.pnt-letters-wrap { padding: 0 16px; }
	.pnt-letters-intro { font-size: 20px; }
	.pnt-letters-kicker,
	.pnt-letters-byline { font-size: 20px; }
	.single-post .pnt-letters-hero .entry-title { font-size: 32px; padding: 0 16px; }
	.pnt-letter-banner { padding: 0 16px; }
	.pnt-letter-paper { padding: 24px 16px 10px; font-size: 20px; }
	.pnt-letter-nav { grid-template-columns: 1fr; padding: 24px 16px 0; }
	.pnt-letter-nav .next,
	.pnt-letter-nav .all { text-align: left; }
}
