/*
Theme Name: Superior Sauce
Theme URI: https://superiorsauceusa.com
Author: Superior Sauce USA
Description: Recipe-forward WordPress theme for Superior Sauce USA.
Version: 0.1.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: superior-sauce
*/

:root {
	--ss-ink: #181615;
	--ss-muted: #6d625c;
	--ss-paper: #fffaf3;
	--ss-panel: #ffffff;
	--ss-line: #eadfd2;
	--ss-red: #b32724;
	--ss-red-dark: #821b1a;
	--ss-green: #2f6f4f;
	--ss-gold: #d59b2d;
	--ss-blue: #244b64;
	--ss-shadow: 0 18px 45px rgba(49, 36, 26, 0.11);
	--ss-radius: 8px;
	--ss-max: 1180px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	color: var(--ss-ink);
	background: var(--ss-paper);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.6;
}

a {
	color: inherit;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(255, 250, 243, 0.94);
	border-bottom: 1px solid var(--ss-line);
	backdrop-filter: blur(16px);
}

.site-header__inner,
.site-footer__inner,
.ss-container {
	width: min(var(--ss-max), calc(100% - 32px));
	margin-inline: auto;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 74px;
	gap: 24px;
}

.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 850;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0;
}

.site-brand__mark {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	color: #fff;
	background: var(--ss-red);
	border-radius: 50%;
	font-size: 0.85rem;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 18px;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--ss-muted);
}

.site-nav a {
	text-decoration: none;
}

.site-nav a:hover {
	color: var(--ss-red);
}

.site-nav__button,
.ss-button,
.ssr-product__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 18px;
	color: #fff;
	background: var(--ss-red);
	border: 0;
	border-radius: var(--ss-radius);
	font-weight: 800;
	text-decoration: none;
	box-shadow: 0 10px 20px rgba(179, 39, 36, 0.18);
}

.site-nav__button:hover,
.ss-button:hover,
.ssr-product__button:hover {
	background: var(--ss-red-dark);
}

.home-hero {
	position: relative;
	overflow: hidden;
	padding: 66px 0 42px;
	background:
		linear-gradient(120deg, rgba(179, 39, 36, 0.92), rgba(36, 75, 100, 0.84)),
		url("https://images.unsplash.com/photo-1543352634-a1c51d9f1fa7?auto=format&fit=crop&w=1600&q=82") center / cover;
	color: #fff;
}

.home-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.65fr);
	gap: 42px;
	align-items: end;
}

.home-hero h1 {
	max-width: 760px;
	margin: 0;
	font-size: clamp(2.4rem, 7vw, 5.8rem);
	line-height: 0.94;
	letter-spacing: 0;
}

.home-hero p {
	max-width: 650px;
	margin: 22px 0 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.15rem;
}

.home-hero__panel {
	padding: 24px;
	background: rgba(255, 250, 243, 0.96);
	color: var(--ss-ink);
	border-radius: var(--ss-radius);
	box-shadow: var(--ss-shadow);
}

.home-hero__panel h2 {
	margin: 0 0 10px;
	font-size: 1.2rem;
}

.home-hero__panel ul {
	margin: 0;
	padding-left: 20px;
	color: var(--ss-muted);
}

.recipe-tax-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 22px 0;
}

.recipe-tax-strip a,
.recipe-chip {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 12px;
	border: 1px solid var(--ss-line);
	border-radius: 999px;
	background: #fff;
	color: var(--ss-muted);
	font-size: 0.86rem;
	font-weight: 800;
	text-decoration: none;
}

.recipe-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	padding: 26px 0 58px;
}

.recipe-card {
	overflow: hidden;
	background: var(--ss-panel);
	border: 1px solid var(--ss-line);
	border-radius: var(--ss-radius);
	box-shadow: 0 10px 24px rgba(49, 36, 26, 0.08);
}

.recipe-card__image {
	aspect-ratio: 4 / 3;
	background: #e9dac8;
}

.recipe-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.recipe-card__body {
	padding: 18px;
}

.recipe-card h2 {
	margin: 8px 0 8px;
	font-size: 1.25rem;
	line-height: 1.2;
}

.recipe-card p {
	margin: 0;
	color: var(--ss-muted);
}

.recipe-single {
	padding-bottom: 64px;
}

.recipe-hero {
	display: grid;
	grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
	gap: 42px;
	align-items: center;
	padding: 48px 0 36px;
}

.recipe-hero__media {
	overflow: hidden;
	border-radius: var(--ss-radius);
	box-shadow: var(--ss-shadow);
	background: #eadfd2;
}

.recipe-hero__media img {
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
}

.recipe-hero__placeholder {
	display: grid;
	place-items: center;
	aspect-ratio: 5 / 4;
	padding: 24px;
	color: var(--ss-red-dark);
	background: linear-gradient(135deg, #f6dfb0, #f7c0aa);
	font-weight: 850;
	text-align: center;
}

.ss-kicker,
.ssr-section-kicker {
	margin: 0 0 8px;
	color: var(--ss-red);
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0;
	text-transform: uppercase;
}

.recipe-hero h1,
.archive-header h1,
.entry-title {
	margin: 0;
	font-size: clamp(2.1rem, 5vw, 4.6rem);
	line-height: 0.98;
	letter-spacing: 0;
}

.recipe-hero__about {
	margin: 18px 0 0;
	color: var(--ss-muted);
	font-size: 1.08rem;
}

.recipe-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}

.ssr-facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(110px, 1fr));
	gap: 10px;
	margin-top: 22px;
}

.ssr-fact {
	padding: 14px;
	background: #fff;
	border: 1px solid var(--ss-line);
	border-radius: var(--ss-radius);
}

.ssr-fact__label {
	display: block;
	color: var(--ss-muted);
	font-size: 0.74rem;
	font-weight: 800;
	text-transform: uppercase;
}

.ssr-fact__value {
	display: block;
	margin-top: 4px;
	font-size: 1rem;
}

.recipe-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 310px;
	gap: 34px;
	align-items: start;
}

.recipe-main,
.recipe-sidebar,
.archive-header,
.ss-page {
	background: var(--ss-panel);
	border: 1px solid var(--ss-line);
	border-radius: var(--ss-radius);
	box-shadow: 0 12px 28px rgba(49, 36, 26, 0.07);
}

.recipe-main {
	padding: clamp(22px, 4vw, 42px);
}

.recipe-sidebar {
	position: sticky;
	top: 98px;
	padding: 22px;
}

.recipe-sidebar h2,
.recipe-sidebar h3 {
	margin: 0 0 10px;
	font-size: 1.1rem;
}

.recipe-sidebar p {
	color: var(--ss-muted);
}

.ssr-products {
	margin: 0 0 36px;
	padding: 24px;
	background: #f7efe5;
	border: 1px solid var(--ss-line);
	border-radius: var(--ss-radius);
}

.ssr-products h2,
.ssr-recipe-section h2 {
	margin: 0 0 16px;
	font-size: clamp(1.45rem, 2vw, 2rem);
	line-height: 1.1;
}

.ssr-products__grid {
	display: grid;
	gap: 12px;
}

.ssr-product {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	padding: 14px;
	background: #fff;
	border: 1px solid var(--ss-line);
	border-radius: var(--ss-radius);
}

.ssr-product h3 {
	margin: 0;
	font-size: 1rem;
}

.ssr-product p,
.ssr-affiliate-note {
	margin: 4px 0 0;
	color: var(--ss-muted);
	font-size: 0.9rem;
}

.ssr-recipe-body {
	display: grid;
	gap: 34px;
}

.ssr-recipe-section ul,
.ssr-recipe-section ol {
	margin: 0;
	padding-left: 22px;
}

.ssr-recipe-section li {
	margin: 0 0 12px;
}

.ssr-recipe-section ol li::marker {
	color: var(--ss-red);
	font-weight: 900;
}

.ssr-line-heading {
	margin-top: 18px;
	color: var(--ss-green);
	font-weight: 900;
	list-style: none;
}

.ss-ad-slot {
	display: grid;
	place-items: center;
	min-height: 96px;
	margin: 34px 0;
	padding: 16px;
	color: var(--ss-muted);
	background: repeating-linear-gradient(135deg, #fff, #fff 10px, #f7efe5 10px, #f7efe5 20px);
	border: 1px dashed #d8c8b8;
	border-radius: var(--ss-radius);
	font-size: 0.86rem;
	font-weight: 800;
	text-align: center;
}

.archive-header,
.ss-page {
	margin: 38px auto 12px;
	padding: clamp(24px, 4vw, 42px);
}

.archive-header p,
.ss-page p {
	color: var(--ss-muted);
}

.site-footer {
	padding: 34px 0;
	color: #f8efe5;
	background: var(--ss-ink);
}

.site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.site-footer a {
	color: #fff;
}

@media (max-width: 920px) {
	.site-header__inner,
	.site-footer__inner,
	.home-hero__inner,
	.recipe-hero,
	.recipe-layout {
		grid-template-columns: 1fr;
	}

	.site-header__inner,
	.site-footer__inner {
		display: grid;
	}

	.site-nav {
		flex-wrap: wrap;
	}

	.recipe-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.recipe-sidebar {
		position: static;
	}
}

@media (max-width: 640px) {
	.site-header__inner,
	.ss-container {
		width: min(100% - 22px, var(--ss-max));
	}

	.home-hero {
		padding-top: 42px;
	}

	.recipe-grid,
	.ssr-facts,
	.ssr-product {
		grid-template-columns: 1fr;
	}

	.recipe-hero {
		padding-top: 26px;
	}

	.ssr-product__button {
		width: 100%;
	}
}
