/*
 * Lifetime Pasta: modern design for every page except the homepage.
 * Everything is scoped to body.lp-modern so the homepage keeps its original look.
 */

/* ------------------------------------------------------------------
 * Tokens
 * ---------------------------------------------------------------- */
html body.lp-modern {
	--lp-bg: #f8f3ea;
	--lp-bg-2: #f1e8d8;
	--lp-surface: #fffdf8;
	--lp-ink: #24211c;
	--lp-ink-2: #3b362d;
	--lp-muted: #6b6253;
	--lp-line: #e6dcc9;
	--lp-olive: #55682a;
	--lp-olive-deep: #3e4c1d;
	--lp-tomato: #c4452d;
	--lp-tomato-deep: #9f3220;
	--lp-gold: #d6a23c;
	--lp-radius: 18px;
	--lp-radius-lg: 28px;
	--lp-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--lp-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--lp-max: 1180px;
	--lp-read: 700px;
	--lp-gutter: clamp(16px, 4vw, 32px);
	--lp-shadow: 0 1px 2px rgba(36, 33, 28, 0.04), 0 12px 32px -16px rgba(36, 33, 28, 0.22);

	margin: 0;
	background: var(--lp-bg);
	color: var(--lp-ink);
	font-family: var(--lp-sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

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

.lp-modern ::selection { background: color-mix(in srgb, var(--lp-gold) 45%, transparent); }

.lp-modern a { color: var(--lp-olive-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lp-modern a:hover { color: var(--lp-tomato); }
.lp-modern img { max-width: 100%; height: auto; }

.lp-modern :focus-visible {
	outline: 3px solid color-mix(in srgb, var(--lp-olive) 60%, transparent);
	outline-offset: 2px;
	border-radius: 6px;
}

.lp-modern .site { background: transparent; overflow-x: clip; }

/* Parent layout resets: our templates handle their own widths. */
.lp-modern #content.site-content.container {
	max-width: none;
	padding: 0;
	margin: 0;
}
.lp-modern .content-area,
.lp-modern .sidebar { float: none; width: auto; padding: 0; }
.lp-modern #footer.footer-wrap { display: none; }
.lp-modern .type-post,
.lp-modern .type-page,
.lp-modern .comments-area,
.lp-modern .comment-respond { margin: 0; background: transparent; box-shadow: none; padding: 0; }

.lp-wrap {
	width: 100%;
	max-width: var(--lp-max);
	margin-inline: auto;
	padding-inline: var(--lp-gutter);
}
.lp-narrow { max-width: 860px; }

/* ------------------------------------------------------------------
 * Type
 * ---------------------------------------------------------------- */
.lp-modern h1,
.lp-modern h2,
.lp-modern h3,
.lp-modern h4 {
	font-family: var(--lp-serif);
	font-weight: 600;
	color: var(--lp-ink);
	letter-spacing: -0.01em;
	font-variation-settings: "opsz" 72;
}

.lp-display {
	margin: 0;
	font-size: clamp(38px, 6.4vw, 76px);
	line-height: 1.02;
	letter-spacing: -0.03em;
	font-weight: 600;
	font-variation-settings: "opsz" 144;
	text-wrap: balance;
}
.lp-h2 {
	margin: 0 0 20px;
	font-size: clamp(26px, 3.4vw, 40px);
	line-height: 1.12;
	text-wrap: balance;
}
.lp-h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.25; }

.lp-kicker {
	margin: 0 0 10px;
	font-family: var(--lp-sans);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--lp-tomato);
}
.lp-lede {
	max-width: 62ch;
	margin: 18px 0 0;
	font-size: clamp(18px, 2vw, 21px);
	line-height: 1.55;
	color: var(--lp-ink-2);
	text-wrap: pretty;
}
.lp-empty { color: var(--lp-muted); }
.lp-mt-lg { margin-top: 56px; }

/* ------------------------------------------------------------------
 * Header & navigation (parent markup restyled)
 * ---------------------------------------------------------------- */
.lp-modern .site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--lp-bg) 88%, transparent);
	-webkit-backdrop-filter: saturate(1.5) blur(14px);
	backdrop-filter: saturate(1.5) blur(14px);
	border-bottom: 1px solid transparent;
	color: var(--lp-ink);
	transition: border-color 0.2s, box-shadow 0.2s;
}
.lp-modern.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .lp-modern.admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .lp-modern.admin-bar .site-header { top: 0; } }
.lp-modern.lp-scrolled .site-header { border-bottom-color: var(--lp-line); box-shadow: 0 6px 24px -18px rgba(36, 33, 28, 0.5); }

.lp-modern .header-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: var(--lp-max);
	min-height: 68px;
	padding: 0 var(--lp-gutter);
}
.lp-modern .header-main::before,
.lp-modern .header-main::after { display: none; }

.lp-modern .site-branding {
	float: none;
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin: 0;
	min-width: 0;
	text-align: left;
}
.lp-modern .site-title {
	margin: 0;
	font-family: var(--lp-serif);
	font-size: 23px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	white-space: nowrap;
}
.lp-modern .site-title a,
.lp-modern .site-title a:hover { color: var(--lp-ink); text-decoration: none; }
.lp-modern .site-title a::before { content: "🍝"; margin-right: 8px; font-size: 0.95em; }
.lp-modern .site-description {
	margin: 0;
	font-size: 13px;
	color: var(--lp-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
@media (max-width: 1180px) { .lp-modern .site-description { display: none; } }

.lp-modern .primary-navigation { float: none; margin: 0; }
.lp-modern .main-navigation-menu {
	display: flex;
	align-items: center;
	gap: 2px;
	float: none;
	width: auto;
}
.lp-modern .main-navigation-menu li { float: none; position: relative; }
.lp-modern .main-navigation-menu a {
	display: block;
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--lp-ink);
	font-family: var(--lp-sans);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	transition: background 0.15s, color 0.15s;
}
.lp-modern .main-navigation-menu a:hover { background: color-mix(in srgb, var(--lp-olive) 10%, transparent); color: var(--lp-olive-deep); }
.lp-modern .main-navigation-menu li.current-menu-item > a,
.lp-modern .main-navigation-menu li.current_page_parent > a,
.lp-modern .main-navigation-menu li.current-menu-ancestor > a { background: var(--lp-olive); color: #fff; text-decoration: none; }

.lp-modern .main-navigation-toggle { display: none; }

@media (max-width: 60em) {
	.lp-modern .header-main { flex-wrap: wrap; min-height: 60px; padding-block: 8px; }
	.lp-modern .site-branding { flex: 1; }
	.lp-modern .main-navigation-toggle {
		position: static;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		border: 1px solid var(--lp-line);
		border-radius: 12px;
		background: var(--lp-surface);
	}
	.lp-modern .main-navigation-toggle::after { float: none; color: var(--lp-ink); font-size: 24px; }
	.lp-modern .main-navigation-toggle.active::after { content: "\f405"; }
	.lp-modern .primary-navigation { width: 100%; }
	.lp-modern .main-navigation-menu-wrap { float: none; margin: 4px 0 10px; border-top: 0; }
	.lp-modern .main-navigation-menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.lp-modern .main-navigation-menu a { padding: 12px 14px; border-radius: 12px; font-size: 17px; border: 0; }
}

/* ------------------------------------------------------------------
 * Hero
 * ---------------------------------------------------------------- */
.lp-hero {
	position: relative;
	padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px);
	background: var(--lp-bg);
	overflow: hidden;
}
.lp-hero:not(.lp-hero--image)::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(60% 90% at 88% 0%, color-mix(in srgb, var(--lp-gold) 24%, transparent), transparent 70%),
		radial-gradient(45% 70% at 0% 30%, color-mix(in srgb, var(--lp-olive) 10%, transparent), transparent 70%);
	-webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
	mask-image: linear-gradient(to bottom, #000 55%, transparent);
	pointer-events: none;
}
.lp-hero-inner { position: relative; z-index: 1; }
.lp-hero-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin-top: 22px;
	font-size: 15px;
	color: var(--lp-muted);
}
.lp-hero--image {
	min-height: clamp(380px, 60vh, 560px);
	display: flex;
	align-items: flex-end;
	color: #fff;
	background: #1d1a15;
}
.lp-hero-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.03);
}
.lp-hero--image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 17, 12, 0.15) 0%, rgba(20, 17, 12, 0.35) 45%, rgba(20, 17, 12, 0.82) 100%);
}
.lp-hero--image .lp-display,
.lp-hero--image .lp-lede { color: #fff; }
.lp-hero--image .lp-lede { color: rgba(255, 255, 255, 0.88); }
.lp-hero--image .lp-kicker { color: var(--lp-gold); }

.lp-chip {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--lp-tomato) 12%, transparent);
	color: var(--lp-tomato-deep);
	font-size: 13px;
	font-weight: 700;
}
.lp-live-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #2f9e44;
	box-shadow: 0 0 0 0 rgba(47, 158, 68, 0.5);
	animation: lp-pulse 2s infinite;
}
@keyframes lp-pulse {
	70% { box-shadow: 0 0 0 9px rgba(47, 158, 68, 0); }
	100% { box-shadow: 0 0 0 0 rgba(47, 158, 68, 0); }
}

.lp-main { padding-bottom: 0; }
.lp-main > .lp-wrap:first-child,
.lp-main > .lp-crumbs + .lp-article { padding-top: 8px; }

/* ------------------------------------------------------------------
 * Buttons & CTAs
 * ---------------------------------------------------------------- */
.lp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 26px;
	border-radius: 999px;
	background: var(--lp-olive);
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.15s, background 0.15s;
}
.lp-modern a.lp-btn { color: #fff; text-decoration: none; }
.lp-btn:hover,
.lp-modern a.lp-btn:hover { background: var(--lp-olive-deep); color: #fff; transform: translateY(-1px); }
.lp-btn-light,
.lp-modern a.lp-btn-light { background: #fff; color: var(--lp-olive-deep); }
.lp-btn-light:hover,
.lp-modern a.lp-btn-light:hover { background: var(--lp-bg); color: var(--lp-olive-deep); }
.lp-modern a.lp-btn-ghost { background: transparent; color: var(--lp-ink); box-shadow: inset 0 0 0 1px var(--lp-line); }
.lp-modern a.lp-btn-ghost:hover { background: var(--lp-surface); color: var(--lp-olive-deep); }

.lp-ctas {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	margin-block: 32px 72px;
}
.lp-cta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 24px;
	border-radius: var(--lp-radius);
	background: var(--lp-surface);
	border: 1px solid var(--lp-line);
	color: var(--lp-ink);
	text-decoration: none;
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.lp-cta strong { font-family: var(--lp-serif); font-size: 24px; font-weight: 600; line-height: 1.2; }
.lp-cta > span:last-child { color: var(--lp-muted); font-size: 15px; }
.lp-cta .lp-kicker { margin: 0; }
.lp-cta:hover { transform: translateY(-3px); box-shadow: var(--lp-shadow); border-color: color-mix(in srgb, var(--lp-olive) 35%, var(--lp-line)); color: var(--lp-ink); }

/* ------------------------------------------------------------------
 * Blog grid & cards
 * ---------------------------------------------------------------- */
.lp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
	margin: 8px 0 48px;
}
.lp-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--lp-surface);
	border: 1px solid var(--lp-line);
	border-radius: var(--lp-radius);
	overflow: hidden;
	transition: transform 0.25s, box-shadow 0.25s;
}
.lp-card:hover { transform: translateY(-4px); box-shadow: var(--lp-shadow); }
.lp-card-media {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--lp-bg-2);
	overflow: hidden;
}
.lp-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.lp-card:hover .lp-card-media img { transform: scale(1.05); }
.lp-card-media.is-empty { display: grid; place-items: center; font-size: 56px; }
.lp-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; }
.lp-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--lp-muted); }
.lp-card-title { margin: 0; font-size: 24px; line-height: 1.2; }
.lp-card-title a { color: var(--lp-ink); text-decoration: none; }
.lp-card-title a::after { content: ""; position: absolute; inset: 0; }
.lp-card { position: relative; }
.lp-card-excerpt { margin: 0; color: var(--lp-ink-2); font-size: 16px; line-height: 1.55; }

@media (min-width: 900px) {
	.lp-grid--feature .lp-card:first-child { grid-column: span 2; flex-direction: row; }
	.lp-grid--feature .lp-card:first-child .lp-card-media { flex: 1.2; aspect-ratio: auto; min-height: 360px; }
	.lp-grid--feature .lp-card:first-child .lp-card-body { flex: 1; justify-content: center; padding: 36px; }
	.lp-grid--feature .lp-card:first-child .lp-card-title { font-size: 34px; }
}

.lp-pagination { margin: -16px 0 56px; }
.lp-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lp-pagination .page-numbers {
	display: inline-flex;
	min-width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--lp-line);
	background: var(--lp-surface);
	color: var(--lp-ink);
	text-decoration: none;
	font-weight: 600;
}
.lp-pagination .page-numbers.current { background: var(--lp-olive); border-color: var(--lp-olive); color: #fff; }

/* ------------------------------------------------------------------
 * Article / prose
 * ---------------------------------------------------------------- */
.lp-crumbs {
	padding-top: 20px;
	font-size: 14px;
	color: var(--lp-muted);
}
.lp-crumbs a { color: var(--lp-muted); text-decoration: none; }
.lp-crumbs a:hover { color: var(--lp-olive-deep); text-decoration: underline; }
.lp-crumbs [aria-current] { color: var(--lp-ink-2); }

.lp-prose {
	max-width: calc(var(--lp-read) + 2 * var(--lp-gutter));
	margin: 0 auto;
	padding: 32px var(--lp-gutter) 24px;
	font-size: 19px;
	line-height: 1.75;
	color: var(--lp-ink-2);
}
.lp-prose-wide { max-width: calc(980px + 2 * var(--lp-gutter)); }
.lp-prose-flush { padding: 0; max-width: none; margin: 0; }
.lp-prose > *:first-child { margin-top: 0; }
.lp-prose p { margin: 0 0 1.25em; }
.lp-prose h2 { font-size: 32px; line-height: 1.2; margin: 1.6em 0 0.5em; }
.lp-prose h3 { font-size: 25px; line-height: 1.25; margin: 1.5em 0 0.5em; }
.lp-prose ul,
.lp-prose ol { padding-left: 1.3em; margin: 0 0 1.25em; }
.lp-prose li { margin: 0.35em 0; }
.lp-prose blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--lp-tomato);
	font-family: var(--lp-serif);
	font-size: 24px;
	line-height: 1.45;
	color: var(--lp-ink);
}
.lp-prose figure,
.lp-prose .wp-block-image { margin: 1.8em 0; }
.lp-prose img,
.lp-prose .wp-block-image img { display: block; border-radius: 14px; }
.lp-prose p > img { margin: 0 0 14px; }
.lp-prose p > img:last-child { margin-bottom: 0; }
.lp-prose figcaption { margin-top: 8px; font-size: 14px; color: var(--lp-muted); text-align: center; }
.lp-prose .alignleft,
.lp-prose .alignright { float: none; margin-inline: 0; }
@media (min-width: 900px) {
	.lp-prose .alignwide { margin-inline: calc(-1 * min(120px, 8vw)); }
}
.lp-prose .aligncenter { margin-inline: auto; }
.lp-prose .wp-block-image .aligncenter > figcaption { text-align: center; }
.lp-prose hr { border: 0; height: 1px; background: var(--lp-line); margin: 2.5em 0; }

.lp-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 28px 0 0;
	padding-top: 22px;
	border-top: 1px solid var(--lp-line);
	font-size: 15px;
	color: var(--lp-muted);
}
.lp-share > span { margin-right: 6px; font-weight: 600; color: var(--lp-ink-2); }
.lp-share-btn {
	display: inline-flex;
	align-items: center;
	height: 38px;
	padding: 0 16px;
	border: 1px solid var(--lp-line);
	border-radius: 999px;
	background: var(--lp-surface);
	color: var(--lp-ink);
	font: inherit;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	cursor: pointer;
}
.lp-share-btn:hover { border-color: var(--lp-olive); color: var(--lp-olive-deep); }
.lp-share-btn[hidden] { display: none; }

.lp-adjacent {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	max-width: calc(980px + 2 * var(--lp-gutter));
	margin: 24px auto 64px;
}
.lp-adjacent-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px;
	border-radius: var(--lp-radius);
	background: var(--lp-surface);
	border: 1px solid var(--lp-line);
	color: var(--lp-ink);
	text-decoration: none;
	min-width: 0;
	transition: box-shadow 0.2s, transform 0.2s;
}
.lp-adjacent-card:hover { box-shadow: var(--lp-shadow); transform: translateY(-2px); color: var(--lp-ink); }
.lp-adjacent-card.is-next { flex-direction: row-reverse; text-align: right; }
.lp-adjacent-media { flex: 0 0 88px; height: 88px; border-radius: 12px; overflow: hidden; background: var(--lp-bg-2); }
.lp-adjacent-media img { width: 100%; height: 100%; object-fit: cover; }
.lp-adjacent-text { display: flex; flex-direction: column; min-width: 0; }
.lp-adjacent-text .lp-kicker { margin: 0 0 4px; font-size: 12px; }
.lp-adjacent-text strong { font-family: var(--lp-serif); font-size: 19px; font-weight: 600; line-height: 1.25; }
@media (max-width: 640px) {
	.lp-adjacent { grid-template-columns: 1fr; }
	.lp-adjacent-card.is-next { flex-direction: row; text-align: left; }
}

/* Comments */
.lp-comments { font-size: 17px; }
.lp-comments .comments-header { margin: 0 0 16px; background: none; }
.lp-comments .comments-title,
.lp-comments .comment-reply-title {
	display: block;
	margin: 0 0 12px;
	padding: 0;
	background: none;
	color: var(--lp-ink);
	font-size: 26px;
	text-transform: none;
}
.lp-comments .comment-reply-title small a:link,
.lp-comments .comment-reply-title small a:visited { color: var(--lp-olive-deep); }
.lp-comments .comment-respond { padding-top: 24px; border-top: 1px solid var(--lp-line); }
.lp-comments textarea,
.lp-comments input[type="text"],
.lp-comments input[type="email"],
.lp-comments input[type="url"] {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--lp-line);
	border-radius: 12px;
	background: var(--lp-surface);
	font: inherit;
}
.lp-comments input[type="submit"] {
	padding: 12px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--lp-olive);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

/* ------------------------------------------------------------------
 * Stats band
 * ---------------------------------------------------------------- */
.lp-band {
	position: relative;
	margin: 24px 0 0;
	padding: clamp(48px, 7vw, 80px) 0;
	background:
		radial-gradient(800px 300px at 90% 0%, rgba(214, 162, 60, 0.28), transparent 60%),
		var(--lp-olive-deep);
	color: #fff;
}
.lp-band-inner {
	display: grid;
	grid-template-columns: 1.3fr 1.4fr auto;
	align-items: center;
	gap: 28px 48px;
}
.lp-band .lp-kicker { color: var(--lp-gold); }
.lp-band .lp-h2 { color: #fff; margin: 0; }
.lp-band-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; }
.lp-band-stats dt { font-size: 13px; color: rgba(255, 255, 255, 0.72); }
.lp-band-stats dd { margin: 0; font-family: var(--lp-serif); font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
	.lp-band-inner { grid-template-columns: 1fr; }
	.lp-band .lp-btn { justify-self: start; }
}

/* ------------------------------------------------------------------
 * About page
 * ---------------------------------------------------------------- */
.lp-statstrip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1px;
	margin-top: -36px;
	position: relative;
	z-index: 2;
	padding: 0;
	max-width: calc(var(--lp-max) - 2 * var(--lp-gutter));
	border-radius: var(--lp-radius);
	overflow: hidden;
	background: var(--lp-line);
	box-shadow: var(--lp-shadow);
}
@media (max-width: 1180px) { .lp-statstrip { margin-inline: var(--lp-gutter); width: auto; } }
.lp-statstrip > div { display: flex; flex-direction: column; gap: 2px; padding: 22px 24px; background: var(--lp-surface); }
.lp-statstrip strong { font-family: var(--lp-serif); font-size: clamp(26px, 3vw, 36px); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lp-statstrip span { font-size: 14px; color: var(--lp-muted); }

.lp-split {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	align-items: center;
	gap: clamp(28px, 5vw, 72px);
	margin-block: clamp(56px, 8vw, 104px);
}
.lp-split--reverse > :first-child { order: 2; }
.lp-split .lp-prose h2 { margin-top: 0; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; }
@media (max-width: 860px) {
	.lp-split { grid-template-columns: 1fr; }
	.lp-split--reverse > :first-child { order: 0; }
}
.lp-figure { margin: 0; }
.lp-figure img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--lp-radius-lg);
	box-shadow: var(--lp-shadow);
}

.lp-steps {
	padding: clamp(24px, 3vw, 36px);
	border-radius: var(--lp-radius-lg);
	background: var(--lp-surface);
	border: 1px solid var(--lp-line);
}
.lp-steps ol { list-style: none; counter-reset: lp-step; margin: 0; padding: 0; }
.lp-steps li {
	counter-increment: lp-step;
	position: relative;
	padding: 0 0 18px 52px;
	color: var(--lp-ink-2);
}
.lp-steps li:last-child { padding-bottom: 0; }
.lp-steps li::before {
	content: counter(lp-step);
	position: absolute;
	left: 0;
	top: -2px;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--lp-tomato);
	color: #fff;
	font-family: var(--lp-serif);
	font-weight: 700;
}
.lp-steps strong { color: var(--lp-ink); }

.lp-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 16px;
	margin: 8px 0 clamp(56px, 8vw, 104px);
}
.lp-feature {
	padding: 24px;
	border-radius: var(--lp-radius);
	background: var(--lp-surface);
	border: 1px solid var(--lp-line);
}
.lp-feature-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--lp-bg-2); font-size: 24px; }
.lp-feature h3 { margin: 16px 0 6px; font-size: 21px; }
.lp-feature p { margin: 0; font-size: 16px; color: var(--lp-ink-2); }

.lp-faq { max-width: calc(860px + 2 * var(--lp-gutter)); }
.lp-faq details {
	border-bottom: 1px solid var(--lp-line);
	padding: 4px 0;
}
.lp-faq details:first-of-type { border-top: 1px solid var(--lp-line); }
.lp-faq summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 18px 0;
	cursor: pointer;
	list-style: none;
	font-family: var(--lp-serif);
	font-size: 21px;
	font-weight: 600;
	color: var(--lp-ink);
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
	content: "+";
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid var(--lp-line);
	font-family: var(--lp-sans);
	font-size: 20px;
	transition: transform 0.2s;
}
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details p { margin: 0 0 20px; max-width: 70ch; color: var(--lp-ink-2); }

/* ------------------------------------------------------------------
 * Contact
 * ---------------------------------------------------------------- */
.lp-contact-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: clamp(24px, 4vw, 56px);
	align-items: start;
	margin-block: 8px 80px;
}
@media (max-width: 860px) { .lp-contact-grid { grid-template-columns: 1fr; } }
.lp-panel {
	padding: clamp(22px, 3vw, 36px);
	border-radius: var(--lp-radius-lg);
	background: var(--lp-surface);
	border: 1px solid var(--lp-line);
	box-shadow: var(--lp-shadow);
}
.lp-panel-soft { box-shadow: none; background: var(--lp-bg-2); border-color: transparent; margin-top: 16px; }
.lp-panel-soft p { margin: 0; color: var(--lp-ink-2); font-size: 16px; }
.lp-contact-aside .lp-figure img { aspect-ratio: 3 / 2; }

/* ------------------------------------------------------------------
 * Homepage
 * ---------------------------------------------------------------- */
.lp-home-hero {
	position: relative;
	padding: clamp(40px, 7vw, 96px) 0 clamp(36px, 5vw, 64px);
	overflow: hidden;
}
.lp-home-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(55% 80% at 92% 0%, color-mix(in srgb, var(--lp-gold) 26%, transparent), transparent 70%),
		radial-gradient(40% 60% at 0% 40%, color-mix(in srgb, var(--lp-olive) 10%, transparent), transparent 70%);
	-webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
	mask-image: linear-gradient(to bottom, #000 60%, transparent);
	pointer-events: none;
}
.lp-home-hero-grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	align-items: center;
	gap: clamp(28px, 5vw, 72px);
}
.lp-home-hero .lp-display { font-size: clamp(40px, 5.6vw, 72px); }
.lp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lp-btn-ghost { background: transparent; color: var(--lp-ink); box-shadow: inset 0 0 0 1px var(--lp-line); }
.lp-btn-ghost:hover { background: var(--lp-surface); color: var(--lp-olive-deep); }
.lp-home-hero-media { position: relative; margin: 0; }
.lp-home-hero-media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 32px;
	box-shadow: 0 30px 60px -30px rgba(36, 33, 28, 0.55);
	transform: rotate(1.5deg);
}
.lp-float-card {
	position: absolute;
	left: -28px;
	bottom: 28px;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 82%;
	padding: 14px 18px;
	border-radius: 18px;
	background: color-mix(in srgb, var(--lp-surface) 92%, transparent);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: var(--lp-shadow);
	font-size: 15px;
	line-height: 1.3;
}
.lp-float-card small { display: block; font-size: 12px; color: var(--lp-muted); margin-bottom: 2px; }
.lp-float-card a,
.lp-float-card strong { font-family: var(--lp-serif); font-weight: 600; font-size: 17px; color: var(--lp-ink); text-decoration: none; }
.lp-float-card .lp-live-dot { flex: 0 0 auto; }
@media (max-width: 860px) {
	.lp-home-hero-grid { grid-template-columns: 1fr; }
	.lp-home-hero-media img { aspect-ratio: 4 / 3; transform: none; }
	.lp-float-card { left: 12px; bottom: 12px; }
}

.lp-home-section { margin-block: clamp(56px, 8vw, 104px); }
.lp-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.lp-section-head .lp-h2 { margin: 0; }
.lp-link-arrow { font-weight: 700; color: var(--lp-olive-deep); text-decoration: none; }
.lp-link-arrow:hover { text-decoration: underline; }

/* SavePoint keeps its own brand colors. */
.lp-savepoint-wrap { margin-block: 8px clamp(40px, 6vw, 72px); }
.lp-savepoint {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 20px 32px;
	padding: clamp(22px, 3vw, 34px);
	border-radius: 24px;
	background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
	color: #fff;
	box-shadow: 0 18px 40px -22px rgba(37, 99, 235, 0.7);
	overflow: hidden;
}
.lp-savepoint::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 90% 0%, rgba(255, 255, 255, 0.18), transparent 55%);
	pointer-events: none;
}
.lp-savepoint-text { position: relative; }
.lp-savepoint-title { margin: 0 0 8px; font-size: 21px; font-weight: 700; line-height: 1.3; }
.lp-savepoint-text p:last-child { margin: 0; font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, 0.94); }
.lp-modern .lp-savepoint a:not(.lp-savepoint-cta) { color: #ffd700; font-weight: 700; text-decoration-thickness: 2px; }
.lp-modern .lp-savepoint-cta {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 15px 26px;
	border-radius: 999px;
	background: #fff;
	color: #1d4ed8;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.45);
	transition: transform 0.15s;
}
.lp-modern .lp-savepoint-cta:hover { color: #059669; transform: translateY(-2px); }
@media (max-width: 760px) { .lp-savepoint { grid-template-columns: 1fr; } .lp-modern .lp-savepoint-cta { white-space: normal; justify-self: start; } }

/* Scoreboard: the original "Lifetime Pasta Pass" band. */
.lp-scoreboard {
	position: relative;
	padding: clamp(56px, 8vw, 96px) 0;
	color: #fff;
	background: #1d1a15 var(--lp-score-bg) center / cover no-repeat;
	isolation: isolate;
}
.lp-scoreboard::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(29, 26, 21, 0.78), rgba(29, 26, 21, 0.9));
}
.lp-scoreboard .lp-kicker { color: var(--lp-gold); }
.lp-scoreboard .lp-h2 { color: #fff; margin-bottom: 32px; }
.lp-score-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.lp-score {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 22px 10px 18px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	text-align: center;
	min-width: 0;
}
.lp-score-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.lp-score-icon img { width: 40px; height: 40px; }
.lp-score-value { font-family: var(--lp-serif); font-size: clamp(22px, 2.2vw, 32px); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lp-score-unit { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
@media (max-width: 1100px) { .lp-score-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lp-score-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lp-score:first-child { grid-column: 1 / -1; } }

/* Lifetime Food Totals */
.lp-totals-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .lp-totals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lp-totals-grid { grid-template-columns: 1fr; } }
.lp-total-card { padding: 22px 22px 16px; border-radius: var(--lp-radius); background: var(--lp-surface); border: 1px solid var(--lp-line); }
.lp-total-card h3 { margin: 0 0 12px; font-size: 21px; }
.lp-total-card ul { list-style: none; margin: 0; padding: 0; }
.lp-total-card li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 7px 0; border-bottom: 1px dashed var(--lp-line); font-size: 15px; }
.lp-total-card li:last-child { border-bottom: 0; }
.lp-total-card li.is-zero { color: var(--lp-muted); }
.lp-total-count { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.lp-total-bar { grid-column: 1 / -1; height: 4px; border-radius: 999px; background: var(--lp-bg-2); overflow: hidden; }
.lp-total-bar i { display: block; height: 100%; border-radius: 999px; background: var(--lp-tomato); transform-origin: left; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.lp-anim [data-reveal]:not(.is-in) .lp-total-bar i { transform: scaleX(0); }

/* The original 2019 scoreboard, restored (styles in block-meal.css; this keeps the modern
   type and colors from leaking into it). */
.lp-legacy {
	max-width: calc(980px + 2 * var(--lp-gutter));
	margin: 0 auto clamp(48px, 7vw, 88px);
	padding-inline: var(--lp-gutter);
	font-family: "Open Sans", Tahoma, Arial, sans-serif;
	font-size: 16px;
}
.lp-legacy .meal-container { border-radius: 6px; margin: 0 0 24px; }
.lp-modern .lp-legacy h2.page-title {
	margin: 0;
	padding: 2rem;
	font-family: "Montserrat", Tahoma, Arial, sans-serif;
	font-size: 28px;
	font-weight: normal;
	line-height: 1.3;
	letter-spacing: normal;
	font-variation-settings: normal;
	color: #ee4455;
	text-align: center;
}
.lp-modern .lp-legacy h3 {
	margin: 1.25em 0 0.75em;
	font-family: "Montserrat", Tahoma, Arial, sans-serif;
	font-size: 20px;
	font-weight: normal;
	letter-spacing: normal;
	font-variation-settings: normal;
	color: #fff;
}
.lp-legacy #meal-scoreboard img { max-width: none; }
.lp-legacy #meal-count ul li { font-size: 16px; }

.lp-deepdive {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
	margin-block: 0 clamp(56px, 8vw, 96px);
	padding: clamp(24px, 4vw, 44px);
	border-radius: 28px;
	background:
		radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--lp-gold) 30%, transparent), transparent 60%),
		var(--lp-bg-2);
	max-width: calc(var(--lp-max) - 2 * var(--lp-gutter));
}
@media (max-width: 1180px) { .lp-deepdive { margin-inline: var(--lp-gutter); width: auto; } }
.lp-deepdive .lp-h2 { margin-bottom: 8px; }
.lp-deepdive p:not(.lp-kicker) { margin: 0; max-width: 60ch; color: var(--lp-ink-2); }

/* ------------------------------------------------------------------
 * Follow Along (/contact/)
 * ---------------------------------------------------------------- */
.lp-follow-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	margin-block: 8px 72px;
}
.lp-follow-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 24px;
	border-radius: var(--lp-radius);
	background: var(--lp-surface);
	border: 1px solid var(--lp-line);
	color: var(--lp-ink);
	text-decoration: none;
	min-width: 0;
	transition: transform 0.2s, box-shadow 0.2s;
}
a.lp-follow-card:hover { transform: translateY(-3px); box-shadow: var(--lp-shadow); color: var(--lp-ink); }
.lp-follow-icon { font-size: 30px; line-height: 1; margin-bottom: 6px; }
.lp-follow-card .lp-kicker { margin: 0; }
.lp-follow-card strong { font-family: var(--lp-serif); font-size: 22px; font-weight: 600; line-height: 1.25; }
.lp-follow-card > span:last-child { color: var(--lp-muted); font-size: 15px; }
.lp-feed-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; min-width: 0; }
.lp-feed-row code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 8px 10px; border-radius: 10px; background: var(--lp-bg-2); font-size: 13px; }

/* Diary photo (only when one was added) */
.lp-article-photo { max-width: calc(980px + 2 * var(--lp-gutter)); margin: 24px auto 0; }
.lp-article-photo img { display: block; width: 100%; max-height: 640px; object-fit: cover; border-radius: 24px; box-shadow: var(--lp-shadow); }
.lp-adjacent-emoji { display: grid; place-items: center; width: 100%; height: 100%; font-size: 36px; }

/* ------------------------------------------------------------------
 * 404 & search form
 * ---------------------------------------------------------------- */
.lp-404-search { max-width: 560px; margin: 8px 0 8px; }
.lp-modern .search-form { display: flex; gap: 8px; }
.lp-modern .search-form label { flex: 1; margin: 0; }
.lp-modern .search-form .search-field {
	width: 100%;
	height: 50px;
	padding: 0 18px;
	border: 1px solid var(--lp-line);
	border-radius: 999px;
	background: var(--lp-surface);
	font: inherit;
	color: var(--lp-ink);
}
.lp-modern .search-form .search-submit {
	height: 50px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--lp-olive);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

/* ------------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------- */
.lp-footer {
	padding: 64px 0 28px;
	background: #1d1b17;
	color: rgba(255, 255, 255, 0.78);
	font-size: 15px;
}
.lp-band + .lp-footer,
.lp-main:has(> .lp-band:last-child) + .lp-footer { padding-top: 56px; }
.lp-footer-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr;
	gap: 36px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 760px) { .lp-footer-grid { grid-template-columns: 1fr 1fr; } .lp-footer-brand { grid-column: 1 / -1; } }
.lp-footer-logo { font-family: var(--lp-serif); font-size: 26px; font-weight: 700; color: #fff; text-decoration: none; }
.lp-modern .lp-footer-logo:hover { color: var(--lp-gold); }
.lp-footer-brand p { max-width: 42ch; margin: 12px 0 0; line-height: 1.6; }
.lp-footer-h { margin: 0 0 12px; font-family: var(--lp-sans) !important; font-size: 13px !important; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lp-gold) !important; }
.lp-footer-links { list-style: none; margin: 0; padding: 0; }
.lp-footer-links li { margin: 0 0 8px; }
.lp-modern .lp-footer a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.lp-modern .lp-footer a:hover { color: #fff; text-decoration: underline; }
.lp-footer-base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-top: 22px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.55);
}

/* ------------------------------------------------------------------
 * Reveal-on-scroll (enabled by an inline script that sets html.lp-anim)
 * ---------------------------------------------------------------- */
.lp-anim [data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.lp-anim [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.lp-modern *,
	.lp-modern *::before,
	.lp-modern *::after { transition: none !important; animation: none !important; }
}

/* ------------------------------------------------------------------
 * Small screens
 * ---------------------------------------------------------------- */
@media (max-width: 600px) {
	html body.lp-modern { font-size: 16px; }
	.lp-prose { font-size: 18px; }
	.lp-grid { grid-template-columns: 1fr; }
	.lp-card-title { font-size: 22px; }
	.lp-band-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
