/*
Theme Name: Frenchie Advice
Theme URI: https://frenchbulldogadvice.com
Description: Warm, readable editorial theme for French Bulldog Advice. Palette taken from the site logo.
Version: 1.5.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: frenchie-advice
*/

:root {
	--cream: #F7E9D3;
	--cream-soft: #FBF4E9;
	--paper: #FFFCF7;
	--fawn: #F1D8BA;
	--tan: #D9B395;
	--tan-deep: #B8906E;
	--rose: #B58D79;
	--rose-deep: #8E6553;
	--charcoal: #2A2A2D;
	--ink: #1D1D1F;
	--muzzle: #564F4F;
	--muted: #6E6563;
	--line: #E8D9C4;

	--font-head: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	--radius: 18px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(42, 42, 45, .06), 0 8px 24px rgba(42, 42, 45, .06);
	--wrap: 1180px;
	--read: 720px;
}

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

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

body {
	margin: 0;
	background: var(--cream-soft);
	color: var(--charcoal);
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--rose-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--charcoal); }

h1, h2, h3, h4 {
	font-family: var(--font-head);
	color: var(--ink);
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: -.01em;
	margin: 0 0 .5em;
}

:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
	background: var(--charcoal); color: var(--cream); padding: 10px 16px; border-radius: 8px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	position: sticky; top: 0; z-index: 50;
}
.admin-bar .site-header { top: 32px; }
/* The admin bar is 46px tall and fixed up to 782px; below 600px it scrolls away with the page. */
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 52px; height: 52px; }
.brand-name { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; line-height: 1.05; }
.brand-name span { display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
	display: block; white-space: nowrap; padding: 8px 14px; border-radius: 999px;
	color: var(--charcoal); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-category-ancestor > a { background: var(--cream); }

.header-search { display: flex; }
.search-toggle, .nav-toggle {
	background: none; border: 0; cursor: pointer; color: var(--charcoal);
	width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
}
.search-toggle:hover, .nav-toggle:hover { background: var(--cream); }
.nav-toggle { display: none; }

.search-panel { display: none; border-top: 1px solid var(--line); padding: 16px 0; }
.search-panel.is-open { display: block; }

.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
	flex: 1; min-width: 0; font: inherit; font-size: 1rem;
	padding: 12px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--charcoal);
}
.search-form input[type="search"]:focus { border-color: var(--tan-deep); outline: none; }

.btn, .search-form button, .wp-block-button__link, input[type="submit"] {
	font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 22px; border-radius: 999px; border: 0;
	background: var(--charcoal); color: var(--cream); text-decoration: none;
	transition: background .15s;
}
.btn:hover, .search-form button:hover, input[type="submit"]:hover { background: var(--muzzle); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--charcoal); box-shadow: inset 0 0 0 1.5px var(--charcoal); }
.btn-ghost:hover { background: var(--charcoal); color: var(--cream); }

/* Collapsed menu: used up to 1140px so the six items never wrap onto two lines (tablets). */
@media (max-width: 1140px) {
	.nav-toggle { display: grid; }
	.main-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--paper); border-bottom: 1px solid var(--line);
		box-shadow: 0 16px 30px rgba(42, 42, 45, .08);
	}
	.main-nav.is-open { display: block; }
	.main-nav ul {
		max-width: var(--wrap); margin: 0 auto; padding: 14px 20px 22px;
		display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
	}
	.main-nav a { border-radius: var(--radius-sm); padding: 14px 16px; background: var(--cream-soft); }
	.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-category-ancestor > a { background: var(--fawn); }
	.nav-toggle[aria-expanded="true"] { background: var(--cream); }
	.nav-toggle[aria-expanded="true"] .icon-menu, .nav-toggle:not([aria-expanded="true"]) .icon-close { display: none; }
}
@media (max-width: 760px) { .main-nav ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .main-nav ul { grid-template-columns: 1fr; gap: 4px; } }
@media (max-width: 520px) {
	.header-inner { gap: 8px; min-height: 64px; }
	.brand { gap: 10px; }
	.brand img { width: 42px; height: 42px; }
	.brand-name { font-size: 1.1rem; white-space: nowrap; }
	.brand-name span { display: none; }
	.search-toggle, .nav-toggle { width: 38px; height: 38px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--cream); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 40px; padding: 64px 20px 72px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-deep); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--rose-deep); font-weight: 600; }
.hero p.lead { font-size: 1.2rem; color: var(--muzzle); max-width: 34em; margin: 0 0 28px; }
.hero .search-form { max-width: 520px; }
.hero-art { position: relative; justify-self: center; }
.hero-art::before {
	content: ""; position: absolute; inset: 8% -8% -8% 8%; border-radius: 50%;
	background: var(--fawn);
}
.hero-art img { position: relative; width: min(340px, 70vw); filter: drop-shadow(0 18px 30px rgba(42, 42, 45, .15)); }
.hero-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
	display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700;
	background: var(--paper); color: var(--charcoal); text-decoration: none; border: 1px solid var(--line);
}
.chip:hover { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }

@media (max-width: 820px) {
	.hero-inner { grid-template-columns: 1fr; padding: 40px 20px 48px; text-align: left; }
	.hero-art { order: -1; justify-self: start; }
	.hero-art img { width: 150px; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.section-head a { font-weight: 700; text-decoration: none; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card {
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
	position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--fawn); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-size: 1.25rem; margin: 0; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-excerpt { color: var(--muted); font-size: .97rem; margin: 0; line-height: 1.6; }
.card-meta { margin-top: auto; font-size: .85rem; color: var(--muted); font-weight: 600; }

.cat-badge {
	align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
	padding: 4px 10px; border-radius: 999px; background: #f3f3f3; color: var(--rose-deep); text-decoration: none;
	position: relative; z-index: 1;
}

/* Illustrated placeholder for posts without a featured image */
.thumb-fallback {
	width: 100%; height: 100%; display: grid; place-items: center; position: relative;
	background:
		radial-gradient(circle at 78% 28%, rgba(255, 252, 247, .55) 0 18%, transparent 19%),
		radial-gradient(circle at 18% 85%, rgba(181, 141, 121, .25) 0 22%, transparent 23%),
		var(--tone, var(--fawn));
}
.thumb-fallback img { width: 34%; max-width: 150px; height: auto; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(42, 42, 45, .18)); }
.tone-health { --tone: #EBC9B8; }
.tone-nutrition { --tone: #F1D8BA; }
.tone-training-behavior { --tone: #E2CDB3; }
.tone-care-grooming { --tone: #F3E1CB; }
.tone-puppies { --tone: #EED3C2; }
.tone-breed-guide { --tone: #DEC2A6; }

/* Featured (big) card */
.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; }
.feature .card-media { aspect-ratio: auto; min-height: 340px; }
/* Branded images carry their text on the left: crop from the right side instead. */
.feature .card-media img { object-position: left center; }
.feature .card-body { padding: 36px 40px; justify-content: center; }
.feature .card-title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.feature .card-excerpt { font-size: 1.05rem; }
.feature .card-meta { margin-top: 8px; }
@media (max-width: 820px) {
	.feature { grid-template-columns: 1fr; }
	.feature .card-media { min-height: 0; aspect-ratio: 16/10; }
	.feature .card-body { padding: 22px; }
}

/* Topic tiles */
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .topics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .topics { grid-template-columns: 1fr; } }
.topic {
	display: flex; gap: 16px; align-items: center; padding: 20px 22px; border-radius: var(--radius);
	background: var(--cream); text-decoration: none; color: var(--ink); border: 1px solid transparent;
	transition: border-color .15s, background .15s;
}
.topic:hover { background: var(--paper); border-color: var(--tan); color: var(--ink); }
.topic-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--paper); display: grid; place-items: center; color: var(--rose-deep); }
.topic:hover .topic-icon { background: var(--cream); }
.topic strong { display: block; font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; }
.topic span { font-size: .88rem; color: var(--muted); }

/* "Start here" card, sits under the topic tiles */
.start-here {
	margin-top: 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
	padding: 24px 28px; border-radius: var(--radius); background: var(--fawn);
}
.start-here img { width: 64px; }
.start-here h3 { margin: 0 0 2px; font-size: 1.3rem; }
.start-here p { margin: 0; color: var(--muzzle); font-size: .98rem; }
@media (max-width: 680px) { .start-here { grid-template-columns: 1fr; gap: 14px; padding: 22px; } .start-here img { width: 52px; } .start-here .btn { justify-content: center; } }

/* ---------- Subscribe ---------- */
.subscribe {
	background: var(--fawn); border-radius: calc(var(--radius) + 6px); padding: 40px 44px;
	display: grid; grid-template-columns: auto 1fr minmax(320px, 440px); gap: 28px; align-items: center;
	color: var(--charcoal); position: relative; overflow: hidden;
}
.subscribe::after {
	content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
	right: -90px; top: -120px; background: rgba(255, 252, 247, .45); pointer-events: none;
}
.subscribe > * { position: relative; z-index: 1; }
.subscribe-art { width: 88px; height: 88px; }
.subscribe h2 { margin: 0 0 6px; font-size: 1.6rem; }
.subscribe-copy p { margin: 0; color: var(--muzzle); font-size: 1rem; line-height: 1.55; }
.subscribe-form { display: grid; gap: 10px; }
.subscribe-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.subscribe-form input[type="text"], .subscribe-form input[type="email"] {
	width: 100%; min-width: 0; font: inherit; font-size: .98rem; padding: 12px 18px; border-radius: 999px;
	border: 1.5px solid transparent; background: var(--paper); color: var(--charcoal);
}
.subscribe-form input:focus { outline: none; border-color: var(--rose); }
.subscribe-form .btn { justify-content: center; }
.subscribe-note { font-size: .8rem; color: var(--muzzle); margin: 0; }
.subscribe-note a { color: inherit; }
.subscribe-msg { margin: 0; padding: 10px 16px; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 700; }
.subscribe-msg.is-ok { background: var(--paper); color: #3E6B47; }
.subscribe-msg.is-error { background: #F6DCD3; color: #8A3B2A; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 980px) { .subscribe { grid-template-columns: auto 1fr; } .subscribe-form { grid-column: 1 / -1; } }
@media (max-width: 520px) {
	.subscribe { padding: 28px 22px; grid-template-columns: 1fr; gap: 18px; }
	.subscribe-art { width: 64px; height: 64px; }
	.subscribe-fields { grid-template-columns: 1fr; }
}

/* Subscribe box inside an article */
.entry-subscribe { max-width: var(--read); margin: 40px auto 0; }
@media (max-width: 760px) { .entry-subscribe { margin-left: 20px; margin-right: 20px; } }
.entry-subscribe .subscribe { grid-template-columns: auto 1fr; padding: 32px; }
.entry-subscribe .subscribe-form { grid-column: 1 / -1; }
@media (max-width: 520px) { .entry-subscribe .subscribe { grid-template-columns: 1fr; padding: 26px 22px; } }

/* ---------- Single article ---------- */
.article-header { background: var(--cream); border-bottom: 1px solid var(--line); padding: 48px 0 40px; }
.article-header .wrap { max-width: calc(var(--read) + 40px); }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; font-weight: 600; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--charcoal); }
.article-header h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; margin: 12px 0 16px; }
.article-header .dek { font-size: 1.2rem; color: var(--muzzle); margin: 0 0 22px; }
.byline { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.byline img { width: 40px; height: 40px; }
.byline .dot { opacity: .5; }

.article-hero { max-width: calc(var(--read) + 200px); margin: 32px auto 0; padding: 0 20px; }
.article-hero img { border-radius: var(--radius); width: 100%; }

.entry {
	max-width: calc(var(--read) + 40px); margin: 0 auto; padding: 40px 20px 24px;
	font-size: 1.1rem;
}
.entry > * + * { margin-top: 1.1em; }
.entry p { margin: 0; }
.entry p + p { margin-top: 1.1em; }
.entry h2 { font-size: 1.85rem; margin-top: 2em; padding-top: .2em; scroll-margin-top: 100px; }
.entry h3 { font-size: 1.35rem; margin-top: 1.6em; scroll-margin-top: 100px; }
.entry ul, .entry ol { padding-left: 1.3em; margin: 1em 0; }
.entry li { margin: .4em 0; }
.entry li::marker { color: var(--rose); font-weight: 700; }
.entry blockquote {
	margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--tan);
	font-family: var(--font-head); font-size: 1.3rem; font-style: italic; color: var(--muzzle);
}
.entry table { width: 100%; border-collapse: collapse; font-size: .97rem; margin: 1.6em 0; background: var(--paper); border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.entry th { background: var(--cream); text-align: left; font-weight: 800; color: var(--ink); }
.entry th, .entry td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.key-takeaways {
	background: var(--paper); border: 1.5px solid var(--tan); border-radius: var(--radius);
	padding: 24px 28px; margin: 1.8em 0 !important;
}
.key-takeaways h3 { margin: 0 0 .4em !important; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.key-takeaways h3::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--tan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A2A2D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat; }
.key-takeaways ul { margin: 0; }

.vet-note {
	background: #F4E2D8; border-radius: var(--radius); padding: 20px 24px 20px 64px; position: relative;
	margin: 1.8em 0 !important; font-size: 1rem;
}
.vet-note::before {
	content: ""; position: absolute; left: 20px; top: 22px; width: 28px; height: 28px; border-radius: 8px;
	background: var(--rose-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FBF4E9' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Link from an article to its pillar guide */
.pillar-link {
	display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 1.6em !important;
	padding: 14px 20px; border-radius: var(--radius); background: var(--paper); border: 1.5px solid var(--line);
	text-decoration: none; color: var(--ink); transition: border-color .15s, background .15s;
}
.pillar-link:hover { border-color: var(--tan); background: var(--cream); color: var(--ink); }
.pillar-link-label { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rose-deep); }
.pillar-link strong { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; }
.pillar-link-arrow { margin-left: auto; font-weight: 800; color: var(--rose-deep); }

/* Ad slots */
.ad-slot { margin: 2em auto !important; text-align: center; clear: both; }
.ad-label { display: block; margin-bottom: 6px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ad-frame { display: inline-block; max-width: 100%; overflow: hidden; }
.ad-frame iframe { display: block; max-width: 100%; }
.ad-wide { margin-top: 40px !important; }

/* Sources / references list at the end of an article */
.sources { margin-top: 2.4em !important; padding-top: 1.4em; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.entry .sources h2 { font-size: 1.15rem; margin: 0 0 .6em; padding: 0; font-family: var(--font-body); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muzzle); }
.sources ol { margin: 0; padding-left: 1.4em; }
.sources li { margin: .45em 0; line-height: 1.5; }
.sources li::marker { color: var(--tan-deep); font-weight: 700; }
.sources a { color: var(--muzzle); word-break: break-word; }
.sources a:hover { color: var(--rose-deep); }

.toc { background: var(--cream); border-radius: var(--radius); padding: 20px 26px; font-size: .98rem; }
.toc strong { display: block; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { color: var(--charcoal); text-decoration: none; }
.toc a:hover { color: var(--rose-deep); text-decoration: underline; }

.post-tags { max-width: calc(var(--read) + 40px); margin: 0 auto; padding: 8px 20px 0; display: flex; gap: 8px; flex-wrap: wrap; }

.author-box {
	max-width: var(--read); margin: 36px auto 0; display: flex; gap: 18px; align-items: center;
	padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
@media (max-width: 760px) { .author-box { margin-left: 20px; margin-right: 20px; } }
.author-box img { width: 64px; height: 64px; flex: none; }
.author-box p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.author-box strong { font-family: var(--font-head); font-size: 1.1rem; }

.post-nav { max-width: var(--read); margin: 28px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .post-nav { margin-left: 20px; margin-right: 20px; grid-template-columns: 1fr; } }
.post-nav a { display: block; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--cream); text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 600; line-height: 1.35; }
.post-nav a:hover { background: var(--fawn); }
.post-nav small { display: block; font-family: var(--font-body); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin-bottom: 4px; }
.post-nav .next { text-align: right; }

/* ---------- Archive / page header ---------- */
.page-head { background: var(--cream); border-bottom: 1px solid var(--line); padding: 48px 0 40px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 6px 0 10px; }
.page-head p { margin: 0; color: var(--muzzle); max-width: 40em; font-size: 1.1rem; }

.pagination { margin-top: 44px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: grid; place-items: center; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--charcoal); font-weight: 700; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--cream); }

.empty-state { text-align: center; padding: 40px 0; }
.empty-state img { width: 120px; margin: 0 auto 20px; }

/* ---------- Comments ---------- */
.comments { max-width: calc(var(--read) + 40px); margin: 56px auto 0; padding: 0 20px; }
.comments-title { font-size: 1.6rem; display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.comments-count { font-family: var(--font-body); font-size: .85rem; font-weight: 800; background: var(--fawn); color: var(--charcoal); border-radius: 999px; padding: 2px 12px; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list > li + li { margin-top: 16px; }
.comment-list .children { margin: 14px 0 0 28px; padding-left: 20px; border-left: 2px solid var(--line); display: grid; gap: 14px; }
@media (max-width: 520px) { .comment-list .children { margin-left: 8px; padding-left: 14px; } }

.comment-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.comment-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comment-head .avatar { width: 44px; height: 44px; flex: none; }
.comment-initial { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; background: var(--fawn); color: var(--charcoal); }
.comment-who { line-height: 1.3; min-width: 0; }
.comment-who strong { font-size: 1rem; color: var(--ink); }
.comment-who strong a { color: inherit; text-decoration: none; }
.comment-who time { display: block; font-size: .82rem; color: var(--muted); font-weight: 600; }
.author-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--charcoal); color: var(--cream); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; }
.comment-text { font-size: 1rem; line-height: 1.65; }
.comment-text p { margin: 0; }
.comment-text p + p { margin-top: .8em; }
.comment-awaiting { font-size: .85rem; color: var(--rose-deep); font-weight: 700; margin: 0 0 6px; }
.comment-actions { margin-top: 12px; display: flex; gap: 14px; font-size: .85rem; font-weight: 800; }
.comment-actions a { color: var(--rose-deep); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.comment-actions a:hover { color: var(--charcoal); }
.comment-list .comment-respond { margin-top: 14px; }

.comment-respond { margin-top: 36px; background: var(--cream); border-radius: var(--radius); padding: 28px; }
@media (max-width: 520px) { .comment-respond { padding: 22px 18px; } }
.comment-reply-title { font-size: 1.35rem; margin: 0 0 4px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.comment-reply-title small a { font-family: var(--font-body); font-size: .85rem; font-weight: 700; }
.comment-notes, .logged-in-as { font-size: .9rem; color: var(--muted); margin: 0 0 18px; }
.logged-in-as a { color: var(--muzzle); }
.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.comment-form > p { margin: 0; }
.comment-form .comment-notes, .comment-form .logged-in-as, .comment-form .comment-form-comment,
.comment-form .comment-form-cookies-consent, .comment-form .form-submit { grid-column: 1 / -1; }
@media (max-width: 520px) { .comment-form { grid-template-columns: 1fr; } }
.comment-form label { display: block; font-weight: 800; font-size: .85rem; margin-bottom: 6px; color: var(--charcoal); }
.comment-form .required { color: var(--rose-deep); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea {
	width: 100%; font: inherit; font-size: 1rem; padding: 12px 16px; border-radius: 12px; border: 1.5px solid transparent;
	background: var(--paper); color: var(--charcoal); transition: border-color .15s;
}
.comment-form textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--tan-deep); }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; }
.comment-form-cookies-consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--charcoal); flex: none; }
.comment-form-cookies-consent label { font-weight: 600; font-size: .88rem; color: var(--muzzle); margin: 0; }
.form-submit { display: flex; justify-content: flex-end; }
@media (max-width: 520px) { .form-submit .submit { width: 100%; justify-content: center; } }
.no-comments { color: var(--muted); }

/* ---------- Reader stories ---------- */
.story-form-wrap { margin-top: 1.6em !important; }
.story-form fieldset { border: 0; margin: 0 0 22px; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.story-form legend { float: left; width: 100%; padding: 0; margin-bottom: 12px; font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.story-form legend + * { clear: both; }
.story-form p { margin: 0 0 14px !important; }
.story-form fieldset > p:last-child, .story-form .form-grid p { margin-bottom: 0 !important; }
.story-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; clear: both; }
.story-form .span-2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .story-form .form-grid { grid-template-columns: 1fr; } .story-form fieldset { padding: 18px; } }
.story-form label { display: block; font-weight: 800; font-size: .88rem; margin-bottom: 6px; color: var(--charcoal); }
.story-form .required { color: var(--rose-deep); }
.story-form input[type="text"], .story-form input[type="email"], .story-form textarea {
	width: 100%; font: inherit; font-size: 1rem; padding: 12px 16px; border-radius: 12px;
	border: 1.5px solid var(--line); background: var(--cream-soft); color: var(--charcoal);
}
.story-form textarea { min-height: 200px; resize: vertical; line-height: 1.6; }
.story-form input:focus, .story-form textarea:focus { outline: none; border-color: var(--tan-deep); background: var(--paper); }
.story-form input[type="file"] { width: 100%; font-size: .95rem; padding: 14px; border: 1.5px dashed var(--tan); border-radius: 12px; background: var(--cream-soft); cursor: pointer; }
.story-form input[type="file"]::file-selector-button { font: inherit; font-weight: 700; margin-right: 12px; padding: 8px 16px; border-radius: 999px; border: 0; background: var(--charcoal); color: var(--cream); cursor: pointer; }
.field-hint { display: block; margin-top: 6px; font-size: .82rem; color: var(--muted); }
.field-error { display: block; margin-top: 6px; font-size: .85rem; font-weight: 700; color: #8A3B2A; }
.consents { background: var(--cream); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 16px; }
.consents p { display: flex; gap: 10px; align-items: flex-start; }
.consents input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--charcoal); }
.consents label { font-weight: 600; font-size: .92rem; margin: 0; }
.form-note { font-size: .88rem; color: var(--muted); }

.story-photos { max-width: calc(var(--read) + 200px); margin: 32px auto 0; padding: 0 20px; display: grid; gap: 12px; }
.story-photos.count-2 { grid-template-columns: 1fr 1fr; }
.story-photos.count-3 { grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; }
.story-photos.count-3 a:first-child { grid-row: span 2; }
.story-photos a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--fawn); }
.story-photos img { width: 100%; height: 100%; object-fit: cover; max-height: 560px; }
.story-photos.count-1 a { display: flex; justify-content: center; }
.story-photos.count-1 img { width: auto; max-width: 100%; height: auto; max-height: 680px; object-fit: contain; }
.story-photo-credit { grid-column: 1 / -1; margin: 0; font-size: .85rem; color: var(--muted); text-align: center; }
@media (max-width: 560px) { .story-photos.count-2, .story-photos.count-3 { grid-template-columns: 1fr; } .story-photos.count-3 a:first-child { grid-row: auto; } }
.story-note { margin-top: 2em !important; }
.story-cta {
	max-width: var(--read); margin: 36px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
	padding: 24px 28px; background: var(--fawn); border-radius: var(--radius);
}
@media (max-width: 760px) { .story-cta { margin-left: 20px; margin-right: 20px; } }
.story-cta h2 { font-size: 1.3rem; margin: 0 0 4px; }
.story-cta p { margin: 0; color: var(--muzzle); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #D8CBB9; margin-top: 80px; padding: 56px 0 28px; font-size: .95rem; }
/* Subscribe card straddles the edge between page and footer: the top 110px of the footer is transparent. */
.site-footer.has-subscribe { margin-top: 32px; padding-top: 0; background: linear-gradient(to bottom, transparent 110px, var(--charcoal) 110px); }
.footer-subscribe { margin-bottom: 56px; }
.footer-subscribe .subscribe { box-shadow: 0 18px 40px rgba(29, 29, 31, .14); }
.site-footer .footer-subscribe a { color: var(--muzzle); text-decoration: underline; }
.site-footer .footer-subscribe a:hover { color: var(--charcoal); }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--tan); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 52px; }
.footer-brand strong { font-family: var(--font-head); font-size: 1.3rem; color: var(--cream); }
.site-footer h3 { color: var(--cream); font-size: 1rem; font-family: var(--font-body); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(247, 233, 211, .14); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* WP core alignment */
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .88rem; color: var(--muted); text-align: center; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
