:root {
	--color-primary: #2c3e50;
	--color-accent: #e74c3c;
	--color-background: #f9f9f9;
	--color-text: #333;
	--space: 1.5rem;
}

body {
	font-family: system-ui, -apple-system, sans-serif;
	line-height: 1.6;
	color: var(--color-text);
	max-width: 800px;
	margin: 0 auto;
	padding: var(--space);
	background-color: var(--color-background);
}

h1,
h2 {
	color: var(--color-primary);
	line-height: 1.2;
	margin-top: calc(var(--space) * 2);
}

h1 {
	font-size: clamp(2rem, 5vw, 2.5rem);
	border-bottom: 3px solid var(--color-accent);
	padding-bottom: var(--space);
}

h2 {
	font-size: clamp(1.5rem, 4vw, 1.8rem);
	clear: both;
}

figure {
	margin: calc(var(--space) / 2);
	padding: 0;
	max-width: 300px;
}

@media (min-width: 601px) {
	figure:first-of-type {
		float: right;
		margin-left: var(--space);
	}

	figure:nth-of-type(2) {
		float: left;
		margin-right: var(--space);
		margin-top: var(--space);
	}
}

img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgb(0 0 0 / 0.1);
}

figcaption {
	text-align: center;
	color: #666;
	font-style: italic;
	margin-top: calc(var(--space) / 2);
	font-size: 0.9rem;
}

.description {
	font-size: 1.1rem;
	margin: var(--space) 0;
	overflow: hidden;
	display: flex;
	flex-wrap: wrap;
}

.recipe-details {
	clear: both;
}

.recipe-details ul {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space);
	background-color: white;
	padding: var(--space);
	border-radius: 8px;
	box-shadow: 0 2px 4px rgb(0 0 0 / 0.05);
}

.recipe-details li {
	flex: 1;
	padding: calc(var(--space) / 2);
	border-left: 3px solid var(--color-accent);
}

.ingredients {
	list-style: none;
	padding: 0;
}

.ingredients li {
	padding: calc(var(--space) / 2) 0;
	border-bottom: 1px solid #eee;
	display: flex;
	align-items: center;
	gap: calc(var(--space) / 2);
}

.ingredients li::before {
	content: "•";
	color: var(--color-accent);
	font-weight: bold;
}

.variation {
	background-color: #fff3e0;
	padding: var(--space);
	border-radius: 8px;
	border-left: 4px solid #ff9800;
	margin: var(--space) 0;
}

.instructions {
	counter-reset: step-counter;
	list-style: none;
	padding: 0;
	display: grid;
	gap: var(--space);
}

.instructions > li {
	padding-left: calc(var(--space) * 2);
	position: relative;
}

.instructions > li::before {
	content: counter(step-counter);
	counter-increment: step-counter;
	position: absolute;
	left: 0;
	width: 24px;
	aspect-ratio: 1;
	background-color: var(--color-accent);
	color: white;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 0.9rem;
}

.instructions ul {
	margin-top: calc(var(--space) / 2);
	padding-left: calc(var(--space) * 2);
}

.instructions ul li {
	list-style-type: disc;
	padding-left: calc(var(--space) / 2);
}

strong {
	color: var(--color-primary);
	font-weight: 600;
}

@media (max-width: 600px) {
	:root {
		--space: 1rem;
	}

	figure {
		float: none;
		margin: var(--space) auto;
		max-width: 100%;
	}

	.recipe_details ul {
		flex-direction: column;
	}

	.recipe_details li {
		min-width: unset;
	}
}
