/**
 * THC.recipes — The Pantry
 * Main stylesheet. Faithful port of the original Pantry design into a
 * WordPress theme: warm cream + terracotta palette, flip-card recipe
 * shelf, featured weekly batch, recipe detail layout, footer.
 */

/* ===================== FOUNDATIONS ===================== */

:root {
	--pantry-acc: #b05a32;
	--pantry-radius: 18px;
	--pantry-cream: #efe7d3;
	--pantry-cream-light: #f6f0df;
	--pantry-ink: #3a2e22;
	--pantry-ink-soft: #5a5240;
	--pantry-ink-muted: #6b6049;
	--pantry-mustard: #c89a3c;
	--pantry-olive: #6b7a3a;
	--pantry-rust: #b05a32;
}

html {
	scroll-behavior: smooth;
}

body.thc-pantry {
	background: var( --pantry-cream );
	color: var( --pantry-ink );
	font-family: 'Familjen Grotesk', sans-serif;
	min-height: 100vh;
	overflow-x: hidden;
	font-weight: 500;
}

[data-row]::-webkit-scrollbar {
	height: 0;
}

a {
	color: inherit;
}

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

.pantry-eyebrow {
	font-family: 'Spline Sans Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

/* Skip link for keyboard/screen-reader users (not present in the original
   design, added because it's expected baseline accessibility on any
   published WordPress theme). */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 1rem;
	z-index: 999;
	background: var( --pantry-ink );
	color: var( --pantry-cream );
	padding: 10px 18px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 13px;
}
.skip-link:focus {
	left: 1rem;
}

/* Visible keyboard focus throughout — the original design (built for a
   static mock) didn't define focus states; this restores them. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var( --pantry-acc );
	outline-offset: 2px;
}

@media ( prefers-reduced-motion: reduce ) {
	html {
		scroll-behavior: auto;
	}
	.pantry-marquee-track,
	.pantry-deco-spin,
	.pantry-flip-inner,
	.pantry-modal,
	.pantry-modal-panel {
		animation: none !important;
		transition: none !important;
	}
}

/* ===================== KEYFRAMES ===================== */

@keyframes pantry-slideUp {
	from { transform: translateY( 48px ); opacity: 0; }
	to   { transform: translateY( 0 ); opacity: 1; }
}
@keyframes pantry-fadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes pantry-marquee {
	from { transform: translateX( 0 ); }
	to   { transform: translateX( -50% ); }
}
@keyframes pantry-spin {
	from { transform: rotate( 0 ); }
	to   { transform: rotate( 360deg ); }
}

/* ===================== HEADER / NAV ===================== */

.pantry-header {
	position: sticky;
	top: 0;
	z-index: 40;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 6vw;
	background: var( --pantry-cream );
	border-bottom: 3px solid var( --pantry-ink );
}

.pantry-logo {
	font-family: 'DM Serif Display', serif;
	font-size: 24px;
	color: var( --pantry-ink );
	text-decoration: none;
	letter-spacing: -0.01em;
}
.pantry-logo img {
	max-height: 40px;
}
.pantry-logo .pantry-logo-dot {
	color: var( --pantry-acc );
}

.pantry-nav {
	display: flex;
	align-items: center;
	gap: 26px;
	flex-wrap: wrap;
}

.pantry-nav-link {
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.04em;
	color: var( --pantry-ink );
	text-decoration: none;
}

.pantry-nav-cta {
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var( --pantry-cream );
	background: var( --pantry-ink );
	padding: 11px 18px;
	border-radius: 999px;
	text-decoration: none;
}

.pantry-nav-toggle {
	display: none;
	border: 2px solid var( --pantry-ink );
	background: transparent;
	border-radius: 999px;
	width: 44px;
	height: 44px;
	font-size: 18px;
	cursor: pointer;
}

@media ( max-width: 720px ) {
	.pantry-nav-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
	.pantry-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
		background: var( --pantry-cream );
		border-bottom: 3px solid var( --pantry-ink );
		padding: 20px 6vw 26px;
		display: none;
	}
	.pantry-nav.is-open {
		display: flex;
	}
}

/* ===================== HERO ===================== */

.pantry-hero {
	position: relative;
	padding: 64px 6vw 56px;
	background: var( --pantry-mustard );
	color: var( --pantry-ink );
	border-bottom: 3px solid var( --pantry-ink );
	overflow: hidden;
}

.pantry-hero-inner {
	position: relative;
	z-index: 2;
	max-width: 760px;
}

.pantry-hero-eyebrow {
	margin-bottom: 20px;
}

.pantry-hero-heading {
	font-family: 'DM Serif Display', serif;
	font-weight: 400;
	font-size: clamp( 56px, 11vw, 150px );
	line-height: 0.88;
	margin: 0;
	letter-spacing: -0.015em;
}

.pantry-hero-sub {
	font-size: clamp( 16px, 1.9vw, 22px );
	line-height: 1.4;
	max-width: 540px;
	margin: 28px 0 0;
	font-weight: 500;
}

.pantry-hero-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 30px;
	font-family: 'Spline Sans Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.04em;
}

.pantry-hero-tag {
	border: 2px solid var( --pantry-ink );
	border-radius: 999px;
	padding: 7px 14px;
}

.pantry-hero-deco {
	position: absolute;
	right: -40px;
	top: 50%;
	transform: translateY( -50% );
	width: 360px;
	height: 360px;
	z-index: 1;
	opacity: 0.92;
}

@media ( min-width: 900px ) {
	.pantry-hero-deco {
		display: block;
	}
}
@media ( max-width: 899px ) {
	.pantry-hero-deco {
		display: none;
	}
}

.pantry-deco-spin {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 3px solid var( --pantry-ink );
	animation: pantry-spin 40s linear infinite;
}
.pantry-deco-blob-1 {
	position: absolute;
	width: 60%;
	height: 60%;
	left: 20%;
	top: 20%;
	border-radius: 50%;
	background: var( --pantry-rust );
}
.pantry-deco-blob-2 {
	position: absolute;
	width: 34%;
	height: 34%;
	left: 33%;
	top: 18%;
	border-radius: 50% 50% 48% 52%;
	background: var( --pantry-olive );
}
.pantry-deco-blob-3 {
	position: absolute;
	width: 14%;
	height: 14%;
	left: 64%;
	top: 60%;
	border-radius: 50%;
	background: var( --pantry-cream );
}

/* ===================== MARQUEE ===================== */

.pantry-marquee {
	overflow: hidden;
	background: var( --pantry-olive );
	color: var( --pantry-cream );
	border-bottom: 3px solid var( --pantry-ink );
	padding: 12px 0;
	white-space: nowrap;
}

.pantry-marquee-track {
	display: inline-flex;
	gap: 34px;
	animation: pantry-marquee 26s linear infinite;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* ===================== SHELF ===================== */

.pantry-shelf {
	padding: 56px 0 40px;
}

.pantry-shelf-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	padding: 0 6vw 24px;
	flex-wrap: wrap;
	gap: 18px;
}

.pantry-shelf-title {
	font-family: 'DM Serif Display', serif;
	font-size: clamp( 30px, 4vw, 52px );
	margin: 0;
	line-height: 1;
}

.pantry-shelf-desc {
	font-weight: 500;
	font-size: 14px;
	margin: 10px 0 0;
	color: var( --pantry-ink-muted );
}

.pantry-shelf-controls {
	display: flex;
	gap: 10px;
}

.pantry-shelf-arrow {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 2px solid var( --pantry-ink );
	background: var( --pantry-cream );
	color: var( --pantry-ink );
	font-size: 18px;
	cursor: pointer;
	font-family: 'Familjen Grotesk', sans-serif;
}
.pantry-shelf-arrow.is-next {
	background: var( --pantry-ink );
	color: var( --pantry-cream );
}

/* category chips */
.pantry-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	padding: 0 6vw 28px;
}

.pantry-chip {
	border: 2px solid var( --pantry-ink );
	background: transparent;
	color: var( --pantry-ink );
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 9px 16px;
	border-radius: 999px;
	cursor: pointer;
	font-family: 'Familjen Grotesk', sans-serif;
	text-decoration: none;
	display: inline-flex;
}

.pantry-chip.is-active {
	border-color: var( --pantry-acc );
	background: var( --pantry-acc );
	color: var( --pantry-cream );
}

/* carousel row */
.pantry-row {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 6px 6vw 34px;
}

.pantry-card {
	flex: 0 0 auto;
	width: min( 80vw, 344px );
	height: 454px;
	scroll-snap-align: start;
	cursor: pointer;
	perspective: 1600px;
}

.pantry-card:focus-visible {
	outline-offset: 6px;
}

.pantry-flip-inner {
	position: relative;
	width: 100%;
	height: 100%;
	transition: transform 0.6s cubic-bezier( 0.2, 0.8, 0.2, 1 );
	transform-style: preserve-3d;
}

.pantry-card.is-flipped .pantry-flip-inner,
.pantry-card:focus-within .pantry-flip-inner {
	transform: rotateY( 180deg );
}

.pantry-card-face {
	position: absolute;
	inset: 0;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	border: 3px solid var( --pantry-ink );
	border-radius: var( --pantry-radius );
	overflow: hidden;
}

.pantry-card-front {
	background: var( --pantry-cream-light );
	display: flex;
	flex-direction: column;
}

.pantry-card-art {
	position: relative;
	height: 62%;
	overflow: hidden;
	border-bottom: 3px solid var( --pantry-ink );
}
.pantry-card-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pantry-card-cat-tag {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	background: var( --pantry-ink );
	color: var( --pantry-cream );
	padding: 5px 10px;
	border-radius: 999px;
}

.pantry-card-body {
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: 1;
}

.pantry-card-name {
	font-family: 'DM Serif Display', serif;
	font-size: 27px;
	line-height: 1.04;
	margin: 0;
}

.pantry-card-meta {
	font-weight: 600;
	font-size: 12px;
	color: var( --pantry-olive );
	font-family: inherit;
}

.pantry-card-back {
	transform: rotateY( 180deg );
	background: var( --pantry-ink );
	color: var( --pantry-cream );
	padding: 22px 20px;
	display: flex;
	flex-direction: column;
}

.pantry-card-back-label {
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var( --pantry-acc, var( --pantry-mustard ) );
	margin-bottom: 14px;
}

.pantry-card-ingredients {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 9px;
	font-size: 14px;
	line-height: 1.3;
}
.pantry-card-ingredients li {
	display: flex;
	gap: 9px;
}
.pantry-card-ingredients .pantry-bullet {
	color: var( --pantry-mustard );
}

.pantry-card-back-cta {
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-top: 1px solid rgba( 239, 231, 211, 0.25 );
	padding-top: 14px;
}

/* jar illustration shapes — shared by card front, featured block, detail page */
.pantry-jar-shapes-wrap {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate( -50%, -50% );
	width: 338px;
	height: 278px;
}
.pantry-jar-shadow {
	position: absolute;
	left: 60px;
	top: 210px;
	width: 218px;
	height: 50px;
	border-radius: 50%;
	background: rgba( 58, 33, 20, 0.16 );
	filter: blur( 6px );
}
.pantry-jar-circle {
	position: absolute;
	left: 59px;
	top: 29px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: #efe6cf;
	box-shadow: inset 0 0 0 2px rgba( 58, 46, 34, 0.12 ), inset 0 7px 16px rgba( 58, 46, 34, 0.1 );
}
.pantry-jar-shape {
	position: absolute;
}
.pantry-jar-dot {
	position: absolute;
	width: 7px;
	height: 7px;
	border-radius: 50%;
}
.pantry-jar-dot--1 {
	left: 64px;
	top: 212px;
}
.pantry-jar-dot--2 {
	left: 276px;
	top: 175px;
	width: 6px;
	height: 6px;
}

/* ===================== FEATURED ===================== */

.pantry-featured {
	padding: 30px 6vw 64px;
}

.pantry-featured-card {
	border: 3px solid var( --pantry-ink );
	border-radius: var( --pantry-radius );
	background: var( --pantry-cream-light );
	overflow: hidden;
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
}

@media ( max-width: 820px ) {
	.pantry-featured-card {
		grid-template-columns: 1fr;
	}
}

.pantry-featured-art {
	position: relative;
	min-height: 320px;
	border-right: 3px solid var( --pantry-ink );
	overflow: hidden;
}
@media ( max-width: 820px ) {
	.pantry-featured-art {
		border-right: none;
		border-bottom: 3px solid var( --pantry-ink );
	}
}
.pantry-featured-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pantry-featured-body {
	padding: clamp( 28px, 4vw, 52px );
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.pantry-featured-label {
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var( --pantry-acc );
	margin-bottom: 16px;
}

.pantry-featured-title {
	font-family: 'DM Serif Display', serif;
	font-size: clamp( 34px, 4.4vw, 60px );
	line-height: 1.0;
	margin: 0 0 16px;
}

.pantry-featured-blurb {
	font-size: clamp( 15px, 1.6vw, 19px );
	line-height: 1.45;
	color: var( --pantry-ink-soft );
	margin: 0 0 24px;
	max-width: 42ch;
	font-weight: 500;
}

.pantry-featured-foot {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.pantry-featured-cta {
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: var( --pantry-ink );
	color: var( --pantry-cream );
	padding: 13px 22px;
	border-radius: 999px;
}

.pantry-featured-meta {
	font-family: 'Spline Sans Mono', monospace;
	font-size: 12px;
	color: var( --pantry-olive );
}

/* ===================== EMPTY STATE ===================== */

.pantry-empty {
	padding: 60px 6vw;
	text-align: center;
	color: var( --pantry-ink-muted );
	font-size: 15px;
}
.pantry-empty a {
	color: var( --pantry-acc );
	font-weight: 700;
	text-decoration: underline;
}

/* ===================== FOOTER ===================== */

.pantry-footer {
	background: var( --pantry-ink );
	color: var( --pantry-cream );
	padding: 56px 6vw 44px;
}

.pantry-footer-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 32px;
}

.pantry-footer-brand {
	max-width: 360px;
}

.pantry-footer-logo {
	font-family: 'DM Serif Display', serif;
	font-size: 34px;
	margin-bottom: 14px;
}

.pantry-footer-tagline {
	font-size: 14px;
	line-height: 1.5;
	color: #cbbfa9;
	margin: 0;
	font-weight: 500;
}

.pantry-footer-cols {
	display: flex;
	gap: 56px;
	flex-wrap: wrap;
	font-size: 13px;
	font-weight: 600;
}

.pantry-footer-col {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pantry-footer-eyebrow {
	color: var( --pantry-mustard );
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	display: block;
}

.pantry-footer-col a,
.pantry-footer-widget {
	color: #cbbfa9;
	text-decoration: none;
}
.pantry-footer-col a:hover {
	color: var( --pantry-cream );
}

.pantry-footer-bottom {
	border-top: 1px solid rgba( 239, 231, 211, 0.18 );
	margin-top: 40px;
	padding-top: 22px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	font-family: 'Spline Sans Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #9c8f78;
}

.pantry-disclaimer {
	white-space: nowrap;
}

/* ===================== RECIPE DETAIL ===================== */
/* Shared between the homepage overlay (a same-page modal triggered by JS
   for instant peeking) and single-recipe.php (the real, linkable,
   shareable, indexable page every recipe lives at). */

.pantry-detail-bar {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 36px;
	background: var( --pantry-cream-light );
	border-bottom: 3px solid var( --pantry-ink );
}

.pantry-detail-back {
	border: none;
	background: transparent;
	color: var( --pantry-ink );
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	font-family: 'Familjen Grotesk', sans-serif;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.pantry-detail-no {
	font-family: 'Spline Sans Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var( --pantry-acc );
}

.pantry-detail-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
	border-bottom: 3px solid var( --pantry-ink );
}
@media ( max-width: 820px ) {
	.pantry-detail-hero {
		grid-template-columns: 1fr;
	}
}

.pantry-detail-intro {
	padding: 48px 44px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.pantry-detail-cat {
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var( --pantry-acc );
	margin-bottom: 18px;
}

.pantry-detail-title {
	font-family: 'DM Serif Display', serif;
	font-weight: 400;
	font-size: clamp( 34px, 5vw, 60px );
	line-height: 1.0;
	margin: 0 0 18px;
}

.pantry-detail-blurb {
	font-size: 18px;
	line-height: 1.5;
	color: var( --pantry-ink-soft );
	margin: 0 0 26px;
	max-width: 38ch;
	font-weight: 500;
}

.pantry-detail-stats {
	display: flex;
	gap: 24px;
	font-family: 'Spline Sans Mono', monospace;
	font-size: 12px;
	color: var( --pantry-olive );
	flex-wrap: wrap;
}
.pantry-detail-stats b {
	color: var( --pantry-ink );
	font-size: 15px;
	display: block;
	font-family: 'Familjen Grotesk', sans-serif;
}

.pantry-detail-art {
	position: relative;
	min-height: 340px;
	overflow: hidden;
	border-left: 3px solid var( --pantry-ink );
}
@media ( max-width: 820px ) {
	.pantry-detail-art {
		border-left: none;
		border-top: 3px solid var( --pantry-ink );
	}
}
.pantry-detail-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pantry-detail-body {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 48px;
	padding: 50px 44px 80px;
	max-width: 1040px;
	margin: 0 auto;
}
@media ( max-width: 720px ) {
	.pantry-detail-body {
		grid-template-columns: 1fr;
		padding: 40px 6vw 60px;
	}
}

.pantry-detail-heading {
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var( --pantry-acc );
	margin: 0 0 22px;
}

.pantry-detail-ingredients {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 13px;
}
.pantry-detail-ingredients li {
	font-size: 16px;
	line-height: 1.35;
	padding-bottom: 13px;
	border-bottom: 1px solid rgba( 58, 46, 34, 0.18 );
	font-weight: 500;
}

.pantry-detail-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.pantry-detail-steps li {
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 16px;
	align-items: start;
}
.pantry-step-num {
	font-family: 'Spline Sans Mono', monospace;
	font-size: 13px;
	color: var( --pantry-cream );
	background: var( --pantry-ink );
	border-radius: 50%;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pantry-step-text {
	font-size: 17px;
	line-height: 1.5;
	padding-top: 7px;
	font-weight: 500;
}

/* ===================== MODAL (homepage quick-peek overlay) ===================== */

.pantry-modal {
	position: fixed;
	inset: 0;
	z-index: 60;
	background: rgba( 20, 17, 14, 0.55 );
	backdrop-filter: blur( 6px );
	display: none;
	justify-content: center;
	align-items: flex-start;
	overflow-y: auto;
	animation: pantry-fadeIn 0.25s ease;
}
.pantry-modal.is-open {
	display: flex;
}
.pantry-modal-panel {
	width: 100%;
	max-width: 1040px;
	min-height: 100vh;
	background: var( --pantry-cream-light );
	color: var( --pantry-ink );
	animation: pantry-slideUp 0.42s cubic-bezier( 0.2, 0.8, 0.2, 1 );
}

/* When JS loads the recipe detail into the modal, it reuses the same
   .pantry-detail-* classes above — kept DRY rather than duplicated. */

/* ===================== SINGLE RECIPE PAGE WRAPPER ===================== */

.pantry-single-wrap {
	background: var( --pantry-cream-light );
	color: var( --pantry-ink );
	min-height: 100vh;
}

/* ===================== COMMENTS ===================== */

.pantry-comments {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 6vw 80px;
}
.pantry-comments-title {
	font-family: 'DM Serif Display', serif;
	font-size: 28px;
	margin: 0 0 24px;
}
.pantry-comments .comment-list {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
}
.pantry-comments .comment-body {
	border-bottom: 1px solid rgba( 58, 46, 34, 0.18 );
	padding: 18px 0;
}
.pantry-comments .comment-respond input[type="text"],
.pantry-comments .comment-respond input[type="email"],
.pantry-comments .comment-respond input[type="url"],
.pantry-comments .comment-respond textarea {
	width: 100%;
	padding: 12px 14px;
	border: 2px solid var( --pantry-ink );
	border-radius: 10px;
	font-family: 'Familjen Grotesk', sans-serif;
	margin-bottom: 12px;
	background: var( --pantry-cream );
	color: var( --pantry-ink );
}
.pantry-comments .form-submit input[type="submit"] {
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: var( --pantry-ink );
	color: var( --pantry-cream );
	padding: 13px 22px;
	border-radius: 999px;
	border: none;
	cursor: pointer;
}

/* ===================== ARCHIVE / GENERIC PAGE ===================== */

.pantry-page-header {
	padding: 56px 6vw 24px;
}
.pantry-page-title {
	font-family: 'DM Serif Display', serif;
	font-size: clamp( 34px, 5vw, 58px );
	margin: 0;
	line-height: 1;
}
.pantry-page-content {
	padding: 0 6vw 64px;
	max-width: 760px;
	font-size: 17px;
	line-height: 1.6;
}

/* Two-column layout used only on pages with a sidebar (currently just
   Decarb 101's dosing calculator) — content keeps its normal max-width,
   sidebar takes the remaining space and sticks while scrolling. */
.pantry-page-layout {
	display: grid;
	grid-template-columns: minmax( 0, 760px ) minmax( 260px, 340px );
	gap: 48px;
	padding: 0 6vw 64px;
	align-items: start;
}
.pantry-page-layout .pantry-page-content {
	padding: 0;
	max-width: none;
}
.pantry-page-sidebar {
	position: sticky;
	top: 28px;
}
@media ( max-width: 980px ) {
	.pantry-page-layout {
		grid-template-columns: 1fr;
	}
	.pantry-page-sidebar {
		position: static;
		margin-bottom: 8px;
	}
}

/* ===================== DOSING CALCULATOR ===================== */

.pantry-calc {
	border: 2px solid var( --pantry-ink );
	border-radius: var( --pantry-radius );
	background: var( --pantry-cream-light );
	padding: 24px 22px;
}
.pantry-calc-eyebrow {
	font-family: 'Spline Sans Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var( --pantry-acc );
	margin-bottom: 6px;
}
.pantry-calc-title {
	font-family: 'DM Serif Display', serif;
	font-size: 24px;
	line-height: 1.15;
	margin: 0 0 8px;
	color: var( --pantry-ink );
}
.pantry-calc-sub {
	font-size: 13.5px;
	line-height: 1.5;
	color: var( --pantry-ink-muted );
	margin: 0 0 20px;
}
.pantry-calc-field {
	margin-bottom: 18px;
}
.pantry-calc-field label {
	display: block;
	font-weight: 700;
	font-size: 13px;
	color: var( --pantry-ink );
	margin-bottom: 6px;
}
.pantry-calc-input-row {
	display: flex;
	align-items: center;
	gap: 10px;
}
.pantry-calc-input-row input[type="number"] {
	flex: 1;
	width: 100%;
	font-family: 'Familjen Grotesk', sans-serif;
	font-size: 15px;
	padding: 9px 12px;
	border: 2px solid var( --pantry-ink );
	border-radius: 10px;
	background: var( --pantry-cream );
	color: var( --pantry-ink );
}
.pantry-calc-input-row input[type="number"]:focus {
	outline: 2px solid var( --pantry-acc );
	outline-offset: 1px;
}
.pantry-calc-input-row input[type="range"] {
	flex: 1;
	accent-color: var( --pantry-acc );
}
.pantry-calc-unit {
	font-family: 'Spline Sans Mono', monospace;
	font-size: 12px;
	color: var( --pantry-ink-muted );
	white-space: nowrap;
	min-width: 38px;
	text-align: right;
}
.pantry-calc-hint {
	font-size: 12px;
	color: var( --pantry-ink-muted );
	margin: 6px 0 0;
	line-height: 1.45;
}
.pantry-calc-result {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	border-top: 2px solid var( --pantry-ink );
	margin-top: 4px;
	padding-top: 20px;
}
.pantry-calc-result-label {
	font-family: 'Spline Sans Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var( --pantry-ink-muted );
	margin-bottom: 6px;
}
.pantry-calc-result-value {
	font-family: 'DM Serif Display', serif;
	font-size: 42px;
	line-height: 1;
	color: var( --pantry-acc );
}
.pantry-calc-result-tier {
	display: inline-block;
	margin-top: 8px;
	font-family: 'Spline Sans Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var( --pantry-ink );
	background: var( --pantry-cream );
	border: 1px solid var( --pantry-ink );
	border-radius: 999px;
	padding: 4px 12px;
	min-height: 1em;
}
.pantry-calc-disclaimer {
	font-size: 11.5px;
	line-height: 1.5;
	color: var( --pantry-ink-muted );
	margin: 16px 0 0;
	text-align: center;
}

.pantry-404 {
	padding: 100px 6vw;
	text-align: center;
}
.pantry-404 .pantry-page-title {
	margin-bottom: 18px;
}

/* ============== LONG-FORM PAGE CONTENT (articles/guides) ============== */

.pantry-page-content h2 {
	font-family: 'DM Serif Display', serif;
	font-size: clamp( 24px, 3.4vw, 32px );
	line-height: 1.15;
	margin: 48px 0 16px;
	color: var( --pantry-ink );
}
.pantry-page-content h2:first-child {
	margin-top: 0;
}
.pantry-page-content h3 {
	font-family: 'DM Serif Display', serif;
	font-size: clamp( 19px, 2.4vw, 23px );
	line-height: 1.2;
	margin: 34px 0 12px;
	color: var( --pantry-ink );
}
.pantry-page-content p {
	margin: 0 0 16px;
	color: var( --pantry-ink-soft );
}
.pantry-page-content ul,
.pantry-page-content ol {
	margin: 0 0 20px;
	padding-left: 22px;
	color: var( --pantry-ink-soft );
}
.pantry-page-content li {
	margin-bottom: 8px;
	line-height: 1.55;
}
.pantry-page-content li > strong:first-child {
	color: var( --pantry-ink );
}
.pantry-page-content strong {
	color: var( --pantry-ink );
	font-weight: 700;
}
.pantry-page-content a {
	color: var( --pantry-acc );
	text-decoration: underline;
	text-decoration-color: color-mix( in srgb, var( --pantry-acc ) 45%, transparent );
}

/* Data table (decarb temp/time chart, dosing chart) */
.pantry-page-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 28px;
	font-size: 14.5px;
	border: 1px solid var( --pantry-ink );
	border-radius: var( --pantry-radius );
	overflow: hidden;
}
.pantry-page-content th,
.pantry-page-content td {
	padding: 11px 14px;
	text-align: left;
	border-bottom: 1px solid color-mix( in srgb, var( --pantry-ink ) 18%, transparent );
}
.pantry-page-content thead th {
	font-family: 'Spline Sans Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: var( --pantry-ink );
	color: var( --pantry-cream );
	border-bottom: none;
}
.pantry-page-content tbody tr:last-child td {
	border-bottom: none;
}
.pantry-page-content tbody tr:nth-child( even ) {
	background: var( --pantry-cream-light );
}

/* Callout — used for warnings, pro-tips, and crucial safety notes */
.pantry-callout {
	border: 2px solid var( --pantry-ink );
	border-radius: var( --pantry-radius );
	padding: 18px 20px;
	margin: 0 0 24px;
	background: var( --pantry-cream-light );
}
.pantry-callout p {
	margin: 0;
	color: var( --pantry-ink-soft );
}
.pantry-callout p:not( :last-child ) {
	margin-bottom: 10px;
}
.pantry-callout-label {
	display: inline-block;
	font-family: 'Spline Sans Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-weight: 700;
	color: var( --pantry-cream );
	background: var( --pantry-acc );
	border-radius: 999px;
	padding: 4px 12px;
	margin-bottom: 10px;
}
.pantry-callout--warning {
	border-color: var( --pantry-rust );
	background: color-mix( in srgb, var( --pantry-rust ) 8%, var( --pantry-cream-light ) );
}
.pantry-callout--warning .pantry-callout-label {
	background: var( --pantry-rust );
}
.pantry-callout--tip {
	border-color: var( --pantry-olive );
	background: color-mix( in srgb, var( --pantry-olive ) 8%, var( --pantry-cream-light ) );
}
.pantry-callout--tip .pantry-callout-label {
	background: var( --pantry-olive );
}

/* Source credit — gives external recipe/article authors a visible,
   linked attribution wherever imported content is used. */
.pantry-source-credit {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-family: 'Spline Sans Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.02em;
	color: var( --pantry-ink-muted );
	border-top: 1px solid color-mix( in srgb, var( --pantry-ink ) 18%, transparent );
	border-bottom: 1px solid color-mix( in srgb, var( --pantry-ink ) 18%, transparent );
	padding: 14px 0;
	margin: 0 0 28px;
}
.pantry-source-credit a {
	color: var( --pantry-ink );
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: color-mix( in srgb, var( --pantry-acc ) 45%, transparent );
}

/* Cross-link card — points from the recipe to the science page and
   back again, styled like a small jar-shelf chip rather than a plain
   link so it reads as "more from the pantry" rather than a stray CTA. */
.pantry-crosslink {
	display: block;
	border: 2px solid var( --pantry-ink );
	border-radius: var( --pantry-radius );
	padding: 16px 20px;
	margin: 8px 0 28px;
	text-decoration: none;
	background: var( --pantry-cream-light );
	transition: transform 0.15s ease;
}
.pantry-crosslink:hover {
	transform: translateY( -2px );
}
.pantry-crosslink-eyebrow {
	display: block;
	font-family: 'Spline Sans Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var( --pantry-acc );
	margin-bottom: 4px;
}
.pantry-crosslink-title {
	display: block;
	font-family: 'DM Serif Display', serif;
	font-size: 20px;
	color: var( --pantry-ink );
}
