/**
 * FoodieShop — recipes and blog.
 *
 * Tokens mirror the homepage so the new pages read as the same site.
 * Everything is namespaced under .fs- to avoid collisions with Elementor,
 * Hello Elementor and WooCommerce.
 */


/* -------------------------------------------------------------------------
   Layout
   ---------------------------------------------------------------------- */


.fs-main {
	background: var(--fs-cream);
	padding-bottom: 84px;
}

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

.fs-wrap--narrow {
	max-width: var(--fs-measure);
}


/* -------------------------------------------------------------------------
   Section divider — a rule broken by a short label naming what comes next
   ---------------------------------------------------------------------- */

.fs-divider {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 72px 0 34px;
}

.fs-divider::before,
.fs-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--fs-sand), transparent);
}

.fs-divider__label {
	flex-shrink: 0;
	font-size: 0.68rem;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--fs-sand);
	white-space: nowrap;
}

/* -------------------------------------------------------------------------
   Archive header
   ---------------------------------------------------------------------- */

.fs-archive-head {
	text-align: center;
	padding: 64px 0 40px;
	position: relative;
	overflow: hidden;
}

.fs-archive-head::before {
	content: "";
	position: absolute;
	top: -200px;
	left: 50%;
	width: 720px;
	height: 420px;
	transform: translateX(-50%);
	background: radial-gradient(ellipse at center, rgba(234, 192, 243, 0.45), transparent 68%);
	pointer-events: none;
}

.fs-archive-head > * {
	position: relative;
}

.fs-archive-title {
	font-size: clamp(2.1rem, 5.5vw, 3.4rem);
	font-weight: 700;
}

.fs-archive-intro {
	max-width: 620px;
	margin: 16px auto 0;
}

/* -------------------------------------------------------------------------
   Filters
   ---------------------------------------------------------------------- */

.fs-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 40px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--fs-line);
}

.fs-filter {
	min-width: 0;
}

.fs-filter__label {
	display: block;
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--fs-sand);
	margin-bottom: 12px;
}

.fs-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.fs-chip {
	font: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--fs-ink);
	background: var(--fs-white);
	border: 1px solid var(--fs-line);
	border-radius: 999px;
	padding: 9px 18px;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.fs-chip:hover {
	transform: translateY(-2px);
	border-color: var(--fs-sand);
}

.fs-chip.is-active {
	background: var(--fs-lilac);
	border-color: var(--fs-lilac);
}

.fs-select {
	font: inherit;
	font-size: 0.9rem;
	color: var(--fs-ink);
	background: var(--fs-white);
	border: 1px solid var(--fs-line);
	border-radius: 999px;
	padding: 11px 20px;
	min-width: 200px;
	cursor: pointer;
}


/* -------------------------------------------------------------------------
   Pagination
   ---------------------------------------------------------------------- */

.fs-main .pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 48px;
}

.fs-main .pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--fs-line);
	background: var(--fs-white);
	color: var(--fs-ink);
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 700;
}

.fs-main .pagination .page-numbers.current {
	background: var(--fs-ink);
	border-color: var(--fs-ink);
	color: var(--fs-white);
}

/* -------------------------------------------------------------------------
   Single: header, hero, breadcrumb
   ---------------------------------------------------------------------- */

.fs-breadcrumb {
	padding: 24px 0 0;
	font-size: 0.78rem;
	color: var(--fs-ink-soft);
}

.fs-breadcrumb a {
	color: var(--fs-ink-soft);
	text-decoration: none;
}

.fs-breadcrumb a:hover {
	color: var(--fs-ink);
	text-decoration: underline;
}

.fs-breadcrumb span {
	margin: 0 8px;
	color: var(--fs-sand);
}

.fs-recipe-head {
	padding: 44px 0 40px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

/* Soft brand wash behind the title so the top of the page is not bare cream. */
.fs-recipe-head::before {
	content: "";
	position: absolute;
	top: -180px;
	left: 50%;
	width: 620px;
	height: 380px;
	transform: translateX(-50%);
	background: radial-gradient(ellipse at center, rgba(234, 192, 243, 0.5), transparent 68%);
	pointer-events: none;
}

.fs-recipe-head > * {
	position: relative;
}

.fs-recipe-head .fs-eyebrow {
	margin-bottom: 26px;
}

.fs-recipe-title {
	font-size: clamp(1.9rem, 4.4vw, 3rem);
	font-weight: 700;
}

.fs-recipe-lead {
	font-size: 1.08rem;
	margin-top: 26px;
	max-width: 60ch;
	margin-left: auto;
	margin-right: auto;
}

.fs-recipe-hero {
	margin: 0;
}

.fs-recipe-hero__image {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
	border-radius: var(--fs-radius);
	box-shadow: 0 40px 70px -40px rgba(58, 50, 48, 0.5);
}

/* -------------------------------------------------------------------------
   Meta strip
   ---------------------------------------------------------------------- */

/* Floats up over the hero image so the two read as one unit. */
.fs-recipe-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
	gap: 2px;
	position: relative;
	z-index: 2;
	margin-top: -58px;
	background: var(--fs-line);
	border: 1px solid var(--fs-line);
	border-radius: var(--fs-radius);
	overflow: hidden;
	box-shadow: 0 30px 50px -34px rgba(58, 50, 48, 0.55);
}

.fs-recipe-meta__item {
	background: var(--fs-white);
	padding: 20px 14px;
	text-align: center;
}

.fs-recipe-meta__icon {
	display: block;
	font-size: 1.15rem;
	line-height: 1;
	margin-bottom: 10px;
}

.fs-recipe-meta__label {
	display: block;
	font-size: 0.6rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--fs-sand);
	margin-bottom: 6px;
}

.fs-recipe-meta__value {
	display: block;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--fs-ink);
}

.fs-recipe-meta__note {
	font-size: 0.76rem;
	text-align: center;
	margin-top: 16px;
	margin-bottom: 0;
}

/* Breathing room between the nutrition block and the description below it. */
.fs-recipe-intro {
	margin-top: 56px;
}

/* -------------------------------------------------------------------------
   Sections
   ---------------------------------------------------------------------- */

/* Separation is the divider's job now, so sections carry no rule of their own. */
.fs-section {
	margin: 0 0 16px;
}

.fs-section__head {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
}

.fs-section__title {
	font-size: 1.6rem;
	font-weight: 700;
}

/* -------------------------------------------------------------------------
   Ingredients and the servings scaler
   ---------------------------------------------------------------------- */

.fs-servings {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.fs-servings__label {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--fs-ink-soft);
}

.fs-stepper {
	display: inline-flex;
	align-items: center;
	background: var(--fs-white);
	border: 1px solid var(--fs-line);
	border-radius: 999px;
	overflow: hidden;
}

.fs-stepper__button {
	font: inherit;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1;
	width: 38px;
	height: 38px;
	border: 0;
	background: transparent;
	color: var(--fs-ink);
	cursor: pointer;
	transition: background 0.2s;
}

.fs-stepper__button:hover {
	background: var(--fs-lilac);
}

.fs-stepper__value {
	min-width: 34px;
	text-align: center;
	font-weight: 700;
	font-size: 0.95rem;
}

.fs-servings__reset {
	font: inherit;
	font-size: 0.76rem;
	font-weight: 700;
	color: var(--fs-ink-soft);
	background: none;
	border: 0;
	border-bottom: 1px solid var(--fs-sand);
	padding: 0 0 2px;
	cursor: pointer;
}

.fs-ingredients__panel {
	background: var(--fs-white);
	border: 1px solid var(--fs-line);
	border-radius: var(--fs-radius);
	padding: 30px 32px;
}

.fs-ingredient-group + .fs-ingredient-group {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px dashed var(--fs-line);
}

.fs-ingredient-group__title {
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--fs-sand);
	margin-bottom: 12px;
}

.fs-ingredient-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Two columns once there is room, so a long list stops feeling like a stack. */
@media (min-width: 720px) {
	.fs-ingredient-list {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 36px;
	}
}

.fs-ingredient {
	border-bottom: 1px dashed var(--fs-line);
}

.fs-ingredient__check {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.fs-ingredient__label {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	padding: 12px 0 12px 34px;
	position: relative;
	cursor: pointer;
	font-size: 0.95rem;
	color: var(--fs-ink-soft);
}

.fs-ingredient__label::before {
	content: "";
	position: absolute;
	left: 0;
	top: 13px;
	width: 20px;
	height: 20px;
	border: 1px solid var(--fs-sand);
	border-radius: 6px;
	background: var(--fs-white);
	transition: background 0.2s, border-color 0.2s;
}

.fs-ingredient__check:checked + .fs-ingredient__label::before {
	background: var(--fs-lilac);
	border-color: var(--fs-lilac);
}

.fs-ingredient__check:focus-visible + .fs-ingredient__label::before {
	outline: 2px solid var(--fs-ink);
	outline-offset: 2px;
}

.fs-ingredient__check:checked + .fs-ingredient__label {
	opacity: 0.5;
	text-decoration: line-through;
}

.fs-ingredient__amount {
	font-weight: 700;
	color: var(--fs-ink);
	white-space: nowrap;
}

.fs-ingredient__note {
	font-size: 0.82rem;
	color: var(--fs-sand);
}

.fs-ingredient__note::before {
	content: "(";
}

.fs-ingredient__note::after {
	content: ")";
}

/* -------------------------------------------------------------------------
   Steps
   ---------------------------------------------------------------------- */

.fs-step-group + .fs-step-group {
	margin-top: 32px;
}

.fs-step-group__title {
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--fs-sand);
	margin-bottom: 14px;
}

.fs-step-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Timeline: a connector runs between the numbers instead of a rule under each row. */
.fs-step {
	display: flex;
	gap: 20px;
	padding: 0 0 30px;
	position: relative;
}

.fs-step::before {
	content: "";
	position: absolute;
	left: 19px;
	top: 46px;
	bottom: 4px;
	width: 2px;
	background: var(--fs-line);
}

.fs-step:last-child {
	padding-bottom: 0;
}

.fs-step:last-child::before {
	display: none;
}

.fs-step__number {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--fs-lilac);
	color: var(--fs-ink);
	font-weight: 700;
	font-size: 0.95rem;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 5px var(--fs-cream);
	position: relative;
	z-index: 1;
}

.fs-step__body {
	padding-top: 7px;
}

.fs-step__text {
	font-size: 1rem;
	color: var(--fs-ink);
}

.fs-step__hint {
	margin-top: 8px;
	font-size: 0.84rem;
	color: var(--fs-sand);
	padding-left: 12px;
	border-left: 2px solid var(--fs-line);
}

/* -------------------------------------------------------------------------
   Video
   ---------------------------------------------------------------------- */

.fs-video__frame {
	position: relative;
	background: var(--fs-ink);
	border-radius: var(--fs-radius);
	overflow: hidden;
}

.fs-video__frame--landscape {
	aspect-ratio: 16 / 9;
}

/* TikTok and Reels are vertical; a 16/9 box would letterbox them badly. */
.fs-video__frame--portrait {
	aspect-ratio: 9 / 16;
	max-width: 380px;
	margin: 0 auto;
}

.fs-video__poster,
.fs-video__iframe,
.fs-video__player {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.fs-video__poster {
	object-fit: cover;
	opacity: 0.75;
}

.fs-video__play {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: transparent;
	border: 0;
	cursor: pointer;
	color: var(--fs-white);
	font: inherit;
}

.fs-video__play-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--fs-lilac);
	color: var(--fs-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	padding-left: 4px;
	transition: transform 0.25s;
}

.fs-video__play:hover .fs-video__play-icon {
	transform: scale(1.08);
}

.fs-video__play-text {
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.fs-video__fallback {
	text-align: center;
}

/* -------------------------------------------------------------------------
   Closing call to action
   ---------------------------------------------------------------------- */

.fs-cta {
	margin-top: 80px;
}

.fs-cta__inner {
	background: linear-gradient(150deg, var(--fs-lilac), var(--fs-sand));
	border-radius: var(--fs-radius);
	padding: 56px 40px;
	text-align: center;
	position: relative;
	overflow: hidden;
	box-shadow: 0 30px 50px -34px rgba(58, 50, 48, 0.5);
}

.fs-cta__inner::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(120% 90% at 30% 10%, rgba(255, 255, 255, 0.45), transparent 60%);
	pointer-events: none;
}

.fs-cta__inner > * {
	position: relative;
}

.fs-cta .fs-eyebrow {
	color: var(--fs-ink);
	opacity: 0.65;
}

.fs-cta__title {
	font-size: clamp(1.5rem, 3.2vw, 2.1rem);
	font-weight: 700;
	max-width: 20ch;
	margin: 0 auto;
}

.fs-cta__text {
	color: var(--fs-ink);
	opacity: 0.75;
	max-width: 46ch;
	margin: 16px auto 28px;
	font-size: 0.98rem;
}

/* -------------------------------------------------------------------------
   Article body
   ---------------------------------------------------------------------- */

.fs-prose {
	font-size: 1.02rem;
	color: var(--fs-ink-soft);
}

.fs-prose > * + * {
	margin-top: 1.1em;
}

.fs-prose h2 {
	font-size: 1.7rem;
	margin-top: 1.8em;
}

.fs-prose h3 {
	font-size: 1.2rem;
	margin-top: 1.6em;
}

.fs-prose a {
	color: var(--fs-ink);
	text-decoration: underline;
	text-decoration-color: var(--fs-sand);
	text-underline-offset: 3px;
}

.fs-prose img {
	max-width: 100%;
	height: auto;
	border-radius: var(--fs-radius-sm);
}

.fs-prose blockquote {
	margin-left: 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--fs-lilac);
	font-style: italic;
}

.fs-prose ul,
.fs-prose ol {
	padding-left: 22px;
}

.fs-prose li + li {
	margin-top: 0.4em;
}

.fs-recipe-intro {
	margin-bottom: 8px;
}

.fs-tags {
	margin-top: 40px;
	font-size: 0.82rem;
	color: var(--fs-ink-soft);
}

.fs-tags__label {
	font-weight: 700;
	color: var(--fs-sand);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.7rem;
}

.fs-tags a {
	color: var(--fs-ink-soft);
}

.fs-comments {
	margin-top: 56px;
}

/* -------------------------------------------------------------------------
   Related
   ---------------------------------------------------------------------- */

.fs-related {
	background: var(--fs-white);
	padding: 64px 0;
	margin-top: 72px;
	border-top: 1px solid var(--fs-line);
}

.fs-related__head {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 32px;
}

.fs-related__all {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fs-sand);
	text-decoration: none;
	border-bottom: 1px solid var(--fs-line);
	padding-bottom: 2px;
}

.fs-related__all:hover {
	color: var(--fs-ink);
}

.fs-related .fs-card {
	background: var(--fs-cream);
}

/* The CTA already provides the break, so the band does not need its own gap. */
.fs-cta + .fs-related {
	margin-top: 72px;
}

/* -------------------------------------------------------------------------
   Small screens
   ---------------------------------------------------------------------- */

@media (max-width: 782px) {
	.fs-archive-head {
		padding: 44px 0 28px;
	}

	.fs-filters {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
	}

	.fs-select {
		width: 100%;
	}

	.fs-section__head {
		align-items: flex-start;
		flex-direction: column;
	}

	.fs-recipe-meta {
		grid-template-columns: repeat(2, 1fr);
		/* A deep overlap would swallow the image on a narrow screen. */
		margin-top: -28px;
	}

	.fs-divider {
		margin: 56px 0 28px;
		gap: 14px;
	}

	.fs-divider__label {
		letter-spacing: 0.18em;
		white-space: normal;
		text-align: center;
	}

	.fs-ingredients__panel {
		padding: 24px 20px;
	}

	.fs-cta__inner {
		padding: 44px 24px;
	}
}
