/*
Theme Name: Lowes Ferry Schoolhouse
Theme URI: https://lowesferryschoolhouse.com/
Author: Lowes Ferry Publishing
Author URI: https://lowesferryschoolhouse.com/
Description: Custom theme for Lowes Ferry Schoolhouse. Underwater hero, Bonus Extensions + Support Matter, Peek Inside, testimonials, and a green footer. Text and links are edited in Appearance > Customize > Lowes Ferry Homepage; menus in Appearance > Menus.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: All rights reserved
Text Domain: lowes-ferry
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--forest: #014d33;
	--green: #077747;
	--green-hover: #06663d;
	--sand: #f0e8db;
	--water-top: #defafb;
	--water-bottom: #a7f2f5;
	--ink: #222;
	--text: #5a5a5a;
	--text-strong: #444;
	--white: #fff;
	--star: #fff200;

	--font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-hand: 'IfWeEverMeet', 'Patrick Hand', 'Comic Sans MS', cursive;
	--font-title: 'LFS Bookish', 'IfWeEverMeet', 'Patrick Hand', cursive;

	--container: 1310px;
	--gutter: 24px;
	--header-h: 70px;
	--radius: 5px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.nav-locked { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--font-body);
	font-weight: 300;
	font-size: 15px;
	line-height: 1.6;
	overflow-x: clip;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}
.site-main { flex: 1 0 auto; }
body > * { flex-shrink: 0; }

img, svg { max-width: 100%; height: auto; }
a { color: var(--green); }
a:hover { color: var(--forest); }
strong, b { font-weight: 500; color: var(--text-strong); }

h1, h2, h3, h4 { margin: 0; font-weight: 400; color: var(--ink); line-height: 1.15; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid #f5b400; outline-offset: 3px; border-radius: 2px; }

.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:focus {
	position: fixed !important;
	top: 8px; left: 8px; z-index: 1000;
	width: auto; height: auto; clip: auto;
	padding: 10px 16px; background: var(--white); color: var(--forest);
	font-weight: 500; text-decoration: none; border-radius: var(--radius);
}

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.container-narrow { max-width: calc(760px + var(--gutter) * 2); }

/* Buttons ------------------------------------------------------------------ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 22px;
	border: 1.5px solid var(--green);
	border-radius: var(--radius);
	background: var(--green);
	color: var(--white);
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 14px;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover, .btn:focus-visible { background: var(--green-hover); border-color: var(--green-hover); color: var(--white); }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--forest); border-color: var(--forest); color: var(--white); }
.btn-sm { min-height: 31px; padding: 6px 20px; font-size: 12px; }
.btn-lg { min-height: 50px; min-width: 220px; padding: 12px 32px; font-size: 18px; }

/* Section shells ----------------------------------------------------------- */
.section { position: relative; padding: 64px 0 80px; }
.section-sand { background: var(--sand); }
.section-white { background: var(--white); }
.section-green { background: var(--green); }

.section-title {
	margin: 0 0 48px;
	font-family: var(--font-hand);
	font-size: clamp(38px, 3.7vw, 58px);
	color: var(--forest);
	text-align: center;
	line-height: 1.1;
}
.section-green .section-title { color: var(--white); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: relative;
	z-index: 50;
	background: var(--forest);
	color: var(--white);
}
.header-inner {
	display: flex;
	align-items: center;
	gap: 40px;
	min-height: var(--header-h);
}
.brand { display: block; flex: 0 0 auto; line-height: 0; }
.brand-logo { display: block; width: 158px; height: auto; }

.site-nav {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	gap: 24px;
}
.nav-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.nav-menu li { position: relative; }
.nav-menu a {
	display: block;
	padding: 6px 0;
	color: var(--white);
	font-size: 12.5px;
	font-weight: 400;
	text-decoration: none;
	white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.nav-cta { margin-left: auto; min-width: 136px; }

/* Dropdowns (only if you nest menu items) */
.nav-menu .sub-menu {
	position: absolute; top: 100%; left: -14px;
	min-width: 200px; margin: 0; padding: 8px 0;
	list-style: none; background: var(--forest);
	border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: 0 8px 20px rgba(0,0,0,.18);
	opacity: 0; visibility: hidden; transform: translateY(4px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu .sub-menu a { padding: 8px 14px; }

.nav-toggle { display: none; }

/* Mobile menu -------------------------------------------------------------- */
@media (max-width: 959px) {
	:root { --header-h: 60px; }
	.header-inner { justify-content: space-between; gap: 16px; }
	.brand-logo { width: 150px; }

	.nav-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px; height: 44px;
		margin-right: -8px;
		padding: 0;
		border: 0;
		background: transparent;
		color: var(--white);
		cursor: pointer;
	}
	.nav-toggle-bars { position: relative; display: block; width: 24px; height: 16px; }
	.nav-toggle-bars span {
		position: absolute; left: 0;
		width: 100%; height: 2px;
		background: currentColor; border-radius: 2px;
		transition: transform .2s, opacity .2s, top .2s;
	}
	.nav-toggle-bars span:nth-child(1) { top: 0; }
	.nav-toggle-bars span:nth-child(2) { top: 7px; }
	.nav-toggle-bars span:nth-child(3) { top: 14px; }
	.is-open .nav-toggle-bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
	.is-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
	.is-open .nav-toggle-bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

	.site-nav {
		position: absolute;
		top: 100%; left: 0; right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		max-height: calc(100vh - var(--header-h));
		max-height: calc(100dvh - var(--header-h));
		overflow-y: auto;
		padding: 8px var(--gutter) 28px;
		background: var(--forest);
		border-top: 1px solid rgba(255,255,255,.12);
		box-shadow: 0 16px 24px rgba(0,0,0,.2);
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity .2s, transform .2s, visibility .2s;
	}
	.is-open .site-nav { visibility: visible; opacity: 1; transform: none; }

	.nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-menu > li { border-bottom: 1px solid rgba(255,255,255,.12); }
	.nav-menu a { padding: 14px 0; font-size: 17px; }
	.nav-menu .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; padding: 0 0 8px 16px; min-width: 0;
	}
	.nav-menu .sub-menu a { padding: 8px 0; font-size: 15px; }
	.nav-cta { margin: 22px 0 0; min-height: 48px; font-size: 16px; }
}

/* ==========================================================================
   Hero
   Desktop: every piece is placed on a 1600px grid ("u" = 1px at 1600 wide)
   and the whole scene scales with the window, so it matches the comp.
   ========================================================================== */
.hero {
	position: relative;
	container-type: inline-size;
	background: linear-gradient(180deg, var(--water-top) 0%, #c3f6f8 45%, var(--water-bottom) 100%);
	overflow-x: clip;
}
.hero-stage {
	--u: calc(min(100cqw, 1600px) / 1600);
	position: relative;
	z-index: 2;
	width: calc(1600 * var(--u));
	height: calc(632 * var(--u));
	margin: 0 auto;
}
.hero-sand {
	position: absolute;
	z-index: 1;
	left: 0; bottom: 0;
	display: block;
	width: 100%;
	height: calc(min(100cqw, 1600px) * 168 / 1600);
	max-width: none;
}

.hero .deco,
.hero-book,
.hero-copy { position: absolute; }
.hero .deco { display: block; height: auto; max-width: none; pointer-events: none; }

.deco-turtle        { left: calc(1168 * var(--u)); top: calc(8 * var(--u));   width: calc(264 * var(--u)); }
.deco-hatchling     { left: calc(145 * var(--u));  top: calc(297 * var(--u)); width: calc(153 * var(--u)); }
.deco-batfish       { left: calc(150 * var(--u));  top: calc(340 * var(--u)); width: calc(214 * var(--u)); }
.deco-seagrass-small{ left: calc(790 * var(--u));  top: calc(475 * var(--u)); width: calc(53 * var(--u)); }
.deco-coral         { left: calc(1020 * var(--u)); top: calc(342 * var(--u)); width: calc(306 * var(--u)); }
.deco-ray           { left: calc(892 * var(--u));  top: calc(416 * var(--u)); width: calc(311 * var(--u)); z-index: 3; }
.deco-star-orange   { left: calc(395 * var(--u));  top: calc(535 * var(--u)); width: calc(75 * var(--u)); z-index: 3; }
.deco-star-red      { left: calc(312 * var(--u));  top: calc(580 * var(--u)); width: calc(86 * var(--u)); z-index: 3; }

.hero-book {
	z-index: 2;
	left: calc(381 * var(--u));
	top: calc(32 * var(--u));
	width: calc(421 * var(--u));
}
.hero-book img { display: block; width: 100%; height: auto; }

.hero-copy {
	z-index: 4;
	left: calc(766 * var(--u));
	top: calc(62 * var(--u));
	width: calc(420 * var(--u));
}
.hero-title {
	margin: 0;
	font-family: var(--font-title);
	font-size: calc(62 * var(--u));
	line-height: 1.06;
	color: var(--ink);
	white-space: nowrap;
}
.hero-title span { display: block; }
.hero-sub {
	margin: calc(20 * var(--u)) 0 0;
	font-family: var(--font-hand);
	font-size: calc(37 * var(--u));
	line-height: 1.25;
	color: var(--ink);
	white-space: nowrap;
}
.hero-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: calc(17 * var(--u));
	margin-top: calc(24 * var(--u));
}
.hero-buttons .btn {
	min-width: calc(171 * var(--u));
	min-height: max(34px, calc(39 * var(--u)));
	font-size: max(13px, calc(14 * var(--u)));
	padding-left: max(14px, calc(20 * var(--u)));
	padding-right: max(14px, calc(20 * var(--u)));
}

/* Stacked hero for tablets and phones -------------------------------------
   Order: book, then title + subtitle + buttons, then the sand scene. */
@media (max-width: 819px) {
	.hero-stage {
		--sand-h: clamp(90px, 22vw, 150px);
		display: flex;
		flex-direction: column;
		align-items: center;
		width: auto;
		height: auto;
		padding: 32px var(--gutter) 0;
		text-align: center;
	}
	.hero-copy, .hero-book { position: relative; left: auto; top: auto; }

	.hero-book {
		order: 1;
		width: min(76vw, 440px);
		margin: 0 auto;
		/* The cover image carries a soft shadow on its right edge, so the book
		   itself sits left of the image's middle. This nudges the book to true centre. */
		transform: translateX(9%);
	}

	.hero-copy {
		order: 2;
		width: auto;
		max-width: 560px;
		margin-top: 26px;
		padding-bottom: max(calc(var(--sand-h) + 48px), calc(var(--cw) * 0.94 + 14px));
	}
	.hero-title { font-size: clamp(38px, 10vw, 60px); white-space: normal; }
	.hero-sub { margin-top: 14px; font-size: clamp(22px, 5.6vw, 32px); white-space: normal; }
	.hero-buttons { justify-content: center; gap: 12px; margin-top: 22px; }
	.hero-buttons .btn { min-width: 150px; min-height: 46px; font-size: 15px; }

	.hero-sand { height: var(--sand-h, clamp(90px, 22vw, 150px)); }

	/* Turtles swim beside the book; everything else sits on the sand. */
	.deco-turtle        { left: auto; right: -3vw; top: min(44vw, 260px); bottom: auto; width: min(26vw, 160px); }
	.deco-hatchling     { left: -2vw; top: min(10vw, 60px); bottom: auto; width: min(20vw, 120px); }
	.deco-batfish       { left: -2vw; top: auto; bottom: 8px; width: min(26vw, 160px); }
	/* Coral and ray keep their desktop arrangement, scaled as a group. */
	.hero-stage { --cw: min(34vw, 220px); }
	.deco-coral         { left: auto; right: -2vw; top: auto; bottom: 0; width: var(--cw); }
	.deco-seagrass-small{ left: 38%; top: auto; bottom: clamp(56px, 14vw, 96px); width: min(7vw, 38px); }
	.deco-ray           { left: auto; right: calc(-2vw + var(--cw) * 123 / 306); top: auto; bottom: calc(var(--cw) * 40 / 306); width: calc(var(--cw) * 311 / 306); }
	.deco-star-orange   { left: 28%; top: auto; bottom: 18px; width: min(9vw, 52px); }
	.deco-star-red      { left: 18%; top: auto; bottom: 2px;  width: min(10vw, 58px); }
}
@media (max-width: 520px) {
	.hero .deco-seagrass-small { display: none; }
	.hero-stage { --cw: 40vw; }
	.hero-book { width: 80vw; }
	.deco-hatchling { top: 4vw; width: 22vw; left: -4vw; }
	.deco-turtle { right: -6vw; top: 50vw; width: 27vw; }
	.hero-buttons .btn { flex: 1 1 140px; }
}

/* ==========================================================================
   Bonus Extensions + Support Matter
   ========================================================================== */
.bonus { padding-top: 34px; padding-bottom: 56px; }
.bonus .section-title { margin-bottom: 44px; }
.bonus-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	max-width: 1236px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
	text-align: center;
}
.bonus-item { display: flex; flex-direction: column; align-items: center; }
.bonus-icon { display: block; margin-bottom: 18px; }
.is-announce .bonus-icon { width: 209px; margin-top: 16px; transform: translateX(-19%); }
.is-guides .bonus-icon   { width: 203px; }
.is-exclusive .bonus-icon{ width: 142px; margin-top: 56px; }
.bonus-title {
	font-family: var(--font-hand);
	font-size: 26px;
	line-height: 1.1;
	color: var(--ink);
	margin-bottom: 4px;
}
.bonus-text {
	max-width: 240px;
	margin: 0;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--ink);
}
.bonus-cta { margin: 50px 0 0; text-align: center; }

@media (max-width: 819px) {
	.bonus { padding-top: 40px; }
	.bonus-grid { grid-template-columns: 1fr; gap: 40px; max-width: 360px; }
	.is-announce .bonus-icon, .is-exclusive .bonus-icon { margin-top: 0; }
	.is-announce .bonus-icon { width: 180px; transform: translateX(-17%); }
	.is-guides .bonus-icon   { width: 190px; }
	.is-exclusive .bonus-icon{ width: 130px; }
	.bonus-cta .btn { width: 100%; max-width: 360px; }
}

/* ==========================================================================
   Peek Inside
   ========================================================================== */
.peek { z-index: 3; padding-top: 70px; padding-bottom: 86px; }
.peek .deco { position: absolute; z-index: 4; display: block; height: auto; pointer-events: none; }
.deco-crab {
	top: -56px;
	left: max(8px, calc(50% - 662px));
	width: 201px;
}
.deco-cuttlefish {
	bottom: -120px;
	right: max(0px, calc(50% - 690px));
	width: 270px;
}
.peek .section-title { margin-bottom: 62px; }
.peek-grid {
	display: grid;
	grid-template-columns: 536fr 526fr;
	gap: 38px;
	align-items: start;
	max-width: 1100px;
	margin: 0 auto;
}
.peek-media img { display: block; width: 100%; height: auto; }
.peek-copy {
	font-size: 13px;
	line-height: 1.38;
	color: var(--text);
	text-align: justify;
	hyphens: manual;
}
.peek-copy p { margin: 0 0 1.32em; }
.peek-copy p:last-child { margin-bottom: 0; }
.peek-copy strong { color: var(--text-strong); }

@media (max-width: 899px) {
	.peek { padding-top: 90px; padding-bottom: 110px; }
	.peek-grid { grid-template-columns: 1fr; gap: 32px; max-width: 620px; }
	.peek-copy { font-size: 15px; line-height: 1.6; text-align: left; }
	.deco-crab { top: -40px; width: 130px; }
	.deco-cuttlefish { width: 170px; bottom: -56px; right: 4px; }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials { padding-top: 95px; padding-bottom: 95px; }
.testimonials .section-title { margin-bottom: 44px; }
.testi-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 52px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.testi-count-1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.testi-count-2 { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
.testi-card {
	padding: 30px 38px 40px;
	background: var(--forest);
	border-radius: 18px;
	color: var(--white);
	text-align: center;
}
.testi-card figure { margin: 0; }
.testi-stars { display: flex; justify-content: center; gap: 8px; }
.testi-stars svg { width: 33px; height: 33px; fill: var(--star); }
.testi-mark { display: block; width: 38px; height: auto; margin: 22px auto 10px; fill: var(--white); }
.testi-quote { margin: 0; }
.testi-quote p { margin: 0; font-size: 13.5px; line-height: 1.35; text-align: justify; text-align-last: left; }
.testi-by { margin-top: 30px; font-size: 13px; line-height: 1.35; }
.testi-name { display: block; font-weight: 500; }
.testi-role { display: block; }

@media (max-width: 899px) {
	.testi-grid, .testi-count-2 { grid-template-columns: 1fr; gap: 28px; max-width: 480px; margin: 0 auto; }
	.testi-quote p { font-size: 15px; text-align: left; }
}

/* ==========================================================================
   Page title band (subpages, news)
   ========================================================================== */
.page-band {
	padding: 54px 0 46px;
	background: var(--sand);
	text-align: center;
}
.page-title {
	font-family: var(--font-hand);
	font-size: clamp(40px, 4.4vw, 62px);
	color: var(--forest);
}
.page-band .post-meta { margin-bottom: 8px; }
.page-band + .section { padding-top: 56px; }

/* ==========================================================================
   Editor content
   ========================================================================== */
.entry-content { font-size: 16px; line-height: 1.7; color: var(--text); }
.entry-content > * { margin-top: 0; margin-bottom: 1.2em; }
.entry-content h2,
.entry-content h3 {
	margin: 1.6em 0 .5em;
	font-family: var(--font-hand);
	color: var(--forest);
	line-height: 1.15;
}
.entry-content h2 { font-size: clamp(32px, 3vw, 44px); }
.entry-content h3 { font-size: clamp(26px, 2.4vw, 32px); }
.entry-content h4 { margin: 1.4em 0 .4em; font-family: var(--font-body); font-weight: 500; font-size: 17px; color: var(--ink); }
.entry-content > :first-child { margin-top: 0; }
.entry-content a { text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .35em; }
.entry-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--green); font-style: italic; }
.entry-content img { border-radius: 4px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: 13px; color: #777; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid #e3ddd1; text-align: left; }
.entry-content .alignwide { max-width: min(1100px, 100vw - 2 * var(--gutter)); margin-left: 50%; transform: translateX(-50%); width: 100vw; }
.entry-content .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.entry-content .wp-block-button__link { background: var(--green); border-radius: var(--radius); font-weight: 400; padding: 12px 28px; }
.entry-content .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--forest); border: 1.5px solid var(--forest); }

/* Signup forms pasted from Mailchimp: keep them on-brand. */
.entry-content #mc_embed_signup,
.entry-content .mc4wp-form { max-width: 520px; margin-inline: auto; font-family: var(--font-body); }
.entry-content input[type="email"],
.entry-content input[type="text"],
.entry-content select,
.entry-content textarea,
.search-form .search-field {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid #cfc6b4;
	border-radius: var(--radius);
	background: var(--white);
	font: inherit;
	color: var(--ink);
}
.entry-content input[type="submit"],
.entry-content button[type="submit"],
.search-form .search-submit {
	margin-top: 10px;
	padding: 12px 28px;
	border: 0;
	border-radius: var(--radius);
	background: var(--green);
	color: var(--white);
	font: 400 16px/1.2 var(--font-body);
	cursor: pointer;
}

/* ==========================================================================
   News list
   ========================================================================== */
.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 36px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.post-card { display: flex; flex-direction: column; background: var(--sand); border-radius: 14px; overflow: hidden; }
.post-card-media img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card-body { padding: 22px 24px 26px; }
.post-meta { margin: 0 0 6px; font-size: 13px; color: #6b6b6b; }
.post-card-title { font-family: var(--font-hand); font-size: 28px; line-height: 1.15; }
.post-card-title a { color: var(--forest); text-decoration: none; }
.post-card-title a:hover { text-decoration: underline; }
.post-card-excerpt { margin-top: 10px; font-size: 14.5px; }
.post-card-excerpt p { margin: 0; }
.post-hero { margin: 0 0 32px; }
.post-hero img { width: 100%; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 22px; border-top: 1px solid #e3ddd1; font-size: 15px; }
.post-nav .next { margin-left: auto; text-align: right; }
.navigation.pagination { margin-top: 48px; text-align: center; }
.nav-links { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: inline-block; min-width: 40px; padding: 8px 12px; border-radius: var(--radius); background: var(--sand); color: var(--forest); text-decoration: none; }
.page-numbers.current { background: var(--forest); color: var(--white); }
.empty-note { text-align: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	position: relative;
	z-index: 1;
	background: var(--forest);
	color: var(--white);
	font-size: 15px;
}
.footer-inner { max-width: calc(1254px + var(--gutter) * 2); padding-top: 38px; padding-bottom: 22px; }
.footer-cols {
	display: grid;
	grid-template-columns: 452fr 452fr 350fr;
	gap: 0 24px;
}
.footer-h {
	margin-bottom: 14px;
	font-family: var(--font-hand);
	font-size: 35px;
	color: var(--white);
	line-height: 1.1;
}
.footer-label { margin: 0; font-weight: 500; }
.footer-col p { margin: 0; }
.footer-col p + .footer-label { margin-top: 24px; }
.footer-col a { color: var(--white); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-menu { margin: 0; padding: 0; list-style: none; line-height: 1.6; }

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 10px 24px;
	margin-top: 44px;
	font-size: 12px;
}
.copyright { margin: 0; }
.legal-menu { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.legal-menu a { color: var(--white); text-decoration: none; }
.legal-menu a:hover { text-decoration: underline; }

@media (max-width: 819px) {
	.footer-cols { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
	.footer-cols > :first-child { grid-column: 1 / -1; }
	.footer-bottom { flex-direction: column-reverse; align-items: flex-start; }
	.legal-menu { margin: 0; }
}
@media (max-width: 440px) {
	.footer-cols { grid-template-columns: 1fr; }
	.footer-menu { line-height: 2; }
}

/* Room for the cuttlefish when Peek Inside sits right above the footer */
main:has(> .peek:last-child) + .site-footer .footer-inner { padding-top: 120px; }
@media (max-width: 899px) {
	main:has(> .peek:last-child) + .site-footer .footer-inner { padding-top: 90px; }
}

/* ==========================================================================
   Comments
   ========================================================================== */
.comments { margin-top: 48px; }
.comments-title,
.comment-reply-title { font-family: var(--font-hand); font-size: 30px; color: var(--forest); }
.comment-list { margin: 20px 0 40px; padding: 0; list-style: none; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid #e3ddd1; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 13px; margin: 2px 0 8px; }
.comment-metadata a { color: #6b6b6b; text-decoration: none; }
.comment-form label { display: block; margin-bottom: 4px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; }
.comment-form .btn { margin-top: 6px; min-height: 46px; font-size: 16px; }
