@font-face {
	font-family: "Source Serif 4";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("fonts/source-serif-4-latin-600.woff2") format("woff2");
}

:root {
	--jdd-ink: #2c1810;
	--jdd-paper: #f6f0e6;
	--jdd-foam: #fffbf5;
	--jdd-accent: #a44b2a;
	--jdd-accent-hover: #8c3e23;
	--jdd-sage: #4f5c40;
	--jdd-mushroom: #7a8a6a;
	--jdd-border: #e4d8c8;
	--jdd-display: "Source Serif 4", "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
	--jdd-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body,
.site,
.content-bg,
#inner-wrap,
.wp-site-blocks {
	background-color: var(--jdd-paper);
	color: var(--jdd-ink);
}

body,
.entry-content,
.entry-content p,
.entry-content li {
	font-family: var(--jdd-sans);
	color: var(--jdd-ink);
}

h1, h2, h3, h4,
.entry-title,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.wp-block-heading,
.jdd-product__title,
.jdd-hero__title,
.jdd-cat__title,
.site-branding .site-title,
.site-title {
	font-family: var(--jdd-display);
	font-weight: 600;
	color: var(--jdd-ink);
	letter-spacing: -0.02em;
}

.entry-content a:not(.jdd-product__cta):not(.jdd-btn):not(.wp-block-button__link) {
	color: var(--jdd-sage);
	text-underline-offset: 0.15em;
}
.entry-content a:not(.jdd-product__cta):not(.jdd-btn):not(.wp-block-button__link):hover {
	color: var(--jdd-accent);
}

/* Header warmth (do not restyle nav as buttons). */
.site-header,
.main-header,
#masthead,
.header-html {
	background: var(--jdd-foam);
}
.site-header a,
#masthead a,
.header-navigation a,
.main-navigation a {
	color: var(--jdd-ink);
}

/* Sitewide disclosure */
.jdd-disclosure {
	background: var(--jdd-paper);
	color: var(--jdd-ink);
	border-bottom: 1px solid var(--jdd-border);
	padding: 0.65rem 1rem;
	font-size: 0.875rem;
	line-height: 1.5;
	text-align: center;
}
.jdd-disclosure p { margin: 0; }
.jdd-disclosure a { color: var(--jdd-sage); text-decoration: underline; }
.jdd-disclosure--footer,
.jdd-credit {
	background: transparent;
	border: 0;
	padding: 0.75rem 1rem 1.5rem;
	font-size: 0.85rem;
	color: var(--jdd-sage);
	text-align: center;
}
.jdd-disclosure--inline,
.jdd-disclosure--grid {
	border: 1px solid var(--jdd-border);
	background: var(--jdd-foam);
	padding: 0.85rem 1rem;
	border-radius: 12px;
	margin: 0 0 1.25rem;
	text-align: left;
}

/* Buttons — terracotta primary, ink outline secondary. */
.entry-content .wp-block-button .wp-block-button__link,
.entry-content .wp-element-button,
.entry-content .kb-button,
.jdd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	background: var(--jdd-accent);
	color: #fff !important;
	text-decoration: none !important;
	border: 2px solid var(--jdd-accent);
	border-radius: 999px;
	font-weight: 600;
	font-family: var(--jdd-sans);
	font-size: 1rem;
	padding: 0.7rem 1.2rem;
	min-height: 44px;
	line-height: 1.2;
	box-shadow: none;
}
.entry-content .wp-block-button .wp-block-button__link:hover,
.entry-content .wp-element-button:hover,
.jdd-btn:hover {
	background: var(--jdd-accent-hover);
	border-color: var(--jdd-accent-hover);
	color: #fff !important;
	filter: none;
}
.entry-content .wp-block-button.is-style-outline .wp-block-button__link,
.jdd-btn--secondary {
	background: transparent !important;
	color: var(--jdd-ink) !important;
	border: 2px solid var(--jdd-ink);
}
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover,
.jdd-btn--secondary:hover {
	background: var(--jdd-ink) !important;
	color: var(--jdd-foam) !important;
	border-color: var(--jdd-ink);
}

/* Hero */
.jdd-hero {
	position: relative;
	background: var(--jdd-foam);
	border: 1px solid var(--jdd-border);
	border-radius: 24px;
	overflow: hidden;
	padding: 1.75rem 1.25rem 2rem;
	margin: 0 0 2rem;
}
.jdd-hero__pattern {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.45;
	background-color: var(--jdd-foam);
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23e4d8c8' stroke-width='1.2'%3E%3Ccircle cx='20' cy='24' r='3'/%3E%3Ccircle cx='80' cy='18' r='2.2'/%3E%3Ccircle cx='104' cy='70' r='3'/%3E%3Ccircle cx='40' cy='96' r='2.4'/%3E%3Cpath d='M62 44c8 2 12 10 10 18-6 2-14-2-16-10-1-4 1-8 6-8z'/%3E%3Cpath d='M18 72c6 1 9 7 8 13-5 1-11-2-12-8 0-3 1-5 4-5z'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 120px 120px;
}
.jdd-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 1.5rem;
	align-items: center;
}
@media (min-width: 800px) {
	.jdd-hero { padding: 2.5rem 2.5rem 2.75rem; }
	.jdd-hero__inner { grid-template-columns: 1.15fr 0.85fr; gap: 2rem; }
}
.jdd-hero__title {
	margin: 0 0 0.75rem;
	font-size: clamp(2rem, 5vw, 3.25rem);
	line-height: 1.12;
}
.jdd-hero__lede {
	margin: 0 0 1.25rem;
	font-size: 1.1rem;
	line-height: 1.55;
	max-width: 38rem;
	color: var(--jdd-ink);
}
.jdd-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.jdd-hero__art {
	display: flex;
	justify-content: center;
	align-items: center;
}
.jdd-hero__art svg {
	width: min(100%, 340px);
	height: auto;
}

/* Category tiles */
.jdd-cats {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.9rem;
	margin: 0 0 2rem;
}
@media (min-width: 600px) {
	.jdd-cats { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
	.jdd-cats { grid-template-columns: 1fr 1fr 1fr; }
}
.jdd-cat {
	display: flex;
	gap: 0.9rem;
	align-items: flex-start;
	background: var(--jdd-foam);
	border: 1px solid var(--jdd-border);
	border-radius: 16px;
	padding: 1rem 1rem 1.05rem;
	text-decoration: none !important;
	color: var(--jdd-ink) !important;
	min-height: 44px;
	transition: border-color 0.15s ease, transform 0.15s ease;
}
.jdd-cat:hover {
	border-color: var(--jdd-mushroom);
	transform: translateY(-1px);
	color: var(--jdd-ink) !important;
}
.jdd-cat__icon {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: #efe6d6;
	display: grid;
	place-items: center;
	color: var(--jdd-sage);
}
.jdd-cat__icon svg { width: 28px; height: 28px; }
.jdd-cat__text { display: block; min-width: 0; }
.jdd-cat__title {
	display: block;
	margin: 0 0 0.2rem;
	font-size: 1.15rem;
	line-height: 1.25;
}
.jdd-cat__blurb {
	display: block;
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.4;
	color: #5a4336;
}

/* Product grid — vertical cards, 1 / 2 / 3 columns */
.jdd-product-grid > br { display: none !important; }
.jdd-product-grid > p { display: contents; }
.jdd-product-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	margin: 0 0 2rem;
}
@media (min-width: 700px) {
	.jdd-product-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1080px) {
	.jdd-product-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.jdd-product {
	display: flex;
	flex-direction: column;
	background: var(--jdd-foam);
	border: 1px solid var(--jdd-border);
	border-radius: 16px;
	padding: 0;
	margin: 0;
	color: var(--jdd-ink);
	overflow: hidden;
	height: 100%;
	min-width: 0;
}
.jdd-product-grid + .jdd-product,
.entry-content > .jdd-product { margin: 0 0 1.25rem; }

.jdd-product__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	background:
		radial-gradient(ellipse at 50% 20%, #fffdf8 0%, #efe6d6 70%);
	text-decoration: none !important;
	overflow: hidden;
}
.jdd-product__media img {
	width: auto;
	height: auto;
	max-width: 80%;
	max-height: 86%;
	object-fit: contain;
	background: transparent;
	border-radius: 8px;
}
.jdd-product__placeholder {
	width: min(72%, 180px);
	height: auto;
	color: var(--jdd-sage);
}
.jdd-product__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 1rem 1.1rem 1.2rem;
	min-width: 0;
	width: 100%;
}
.jdd-product__eyebrow {
	margin: 0 0 0.3rem;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--jdd-sage);
	font-weight: 600;
	font-family: var(--jdd-sans);
}
.jdd-product__title {
	margin: 0 0 0.5rem;
	font-size: 1.2rem;
	line-height: 1.3;
}
.jdd-product__title a {
	color: var(--jdd-ink) !important;
	text-decoration: none !important;
}
.jdd-product__title a:hover { color: var(--jdd-accent) !important; }
.jdd-product__note {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	line-height: 1.5;
	flex: 1 1 auto;
}
.jdd-product__note p { margin: 0 0 0.5rem; }
.jdd-product__note p:last-child { margin-bottom: 0; }
.jdd-product__cta-wrap { margin: auto 0 0; }
.jdd-product__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--jdd-accent);
	color: #fff !important;
	text-decoration: none !important;
	padding: 0.7rem 1.15rem;
	border-radius: 999px;
	font-weight: 600;
	min-height: 44px;
	line-height: 1.2;
	border: 2px solid var(--jdd-accent);
}
.jdd-product__cta:hover {
	background: var(--jdd-accent-hover);
	border-color: var(--jdd-accent-hover);
}
.jdd-product__micro {
	margin: 0.45rem 0 0;
	font-size: 0.8rem;
	color: #6b5346;
}
.jdd-product-placeholder { color: var(--jdd-sage); font-style: italic; }

/* FAQ */
.jdd-faq { margin: 2rem 0 1rem; }
.jdd-faq__title {
	margin: 0 0 1rem;
	font-size: 1.6rem;
}
.jdd-faq details {
	background: var(--jdd-foam);
	border: 1px solid var(--jdd-border);
	border-radius: 12px;
	padding: 0.35rem 1rem;
	margin: 0 0 0.65rem;
}
.jdd-faq summary {
	cursor: pointer;
	font-weight: 600;
	padding: 0.7rem 0;
	min-height: 44px;
	list-style: none;
}
.jdd-faq summary::-webkit-details-marker { display: none; }
.jdd-faq summary::after {
	content: "+";
	float: right;
	color: var(--jdd-sage);
	font-weight: 600;
}
.jdd-faq details[open] summary::after { content: "–"; }
.jdd-faq details p {
	margin: 0 0 0.9rem;
	line-height: 1.55;
}

/* Front page: prefer the hero H1 when present. */
body.home:has(.jdd-hero__title) .entry-header .entry-title,
body.home:has(.jdd-hero__title) h1.entry-title {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
