/**
 * Food26 Guide Header
 *
 * Contents
 * 1. Variables and text column
 * 2. Badges
 * 3. Title and meta line
 * 4. Photo
 * 5. Phones, reduced motion
 *
 * Colours read the Food26 Design Scheme with the design's values as fallbacks. Rules use two classes; the Style tab's
 * controls use three (or set the variables).
 */

/* 1. Variables and text column -------------------------------------------------------- */
.food26-guide-header {
	--food26-gh-primary: var(--inoforest-color-primary, #b23a1e);
	--food26-gh-accent: var(--inoforest-color-accent, #3f6b32);
	--food26-gh-heading: var(--inoforest-color-heading, #2b1a12);
	--food26-gh-muted: var(--inoforest-custom-muted, #6e5f55);
	--food26-gh-ratio: 16 / 8;
	--food26-gh-gap: 40px;
	--food26-gh-radius: 26px;
	--food26-gh-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.food26-guide-header .food26-guide-header__text {
	max-width: 900px;
	margin-inline: auto;
	text-align: center;
}

.food26-guide-header[data-align="start"] .food26-guide-header__text {
	margin-inline: 0;
	text-align: start;
}

.food26-guide-header svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* 2. Badges ---------------------------------------------------------------------------- */
.food26-guide-header .food26-guide-header__badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 18px;
}

.food26-guide-header .food26-guide-header__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	color: #fff;
	text-decoration: none;
	background-color: var(--food26-gh-accent);
	border-radius: 999px;
}

.food26-guide-header .food26-guide-header__badge--light {
	color: var(--food26-gh-heading);
	background-color: #fff;
}

/* 3. Title and meta line ------------------------------------------------------------------ */
.food26-guide-header .food26-guide-header__title {
	margin: 0 0 18px;
	font-size: clamp(2.4rem, 4.6vw, 3.8rem);
	color: var(--food26-gh-heading);
}

.food26-guide-header .food26-guide-header__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 16px;
	margin: 0;
	padding: 0;
	font-size: 0.95rem;
	color: var(--food26-gh-muted);
	list-style: none;
}

.food26-guide-header[data-align="start"] :is(.food26-guide-header__badges, .food26-guide-header__meta) {
	justify-content: flex-start;
}

.food26-guide-header .food26-guide-header__meta li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.food26-guide-header .food26-guide-header__meta li > :is(i, svg) {
	font-size: 1rem;
	color: var(--food26-gh-primary);
}

.food26-guide-header .food26-guide-header__author {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	color: var(--food26-gh-heading);
	text-decoration: none;
	transition: color 0.3s var(--food26-gh-ease);
}

.food26-guide-header .food26-guide-header__author:is(:hover, :focus-visible) {
	color: var(--food26-gh-primary);
}

.food26-guide-header .food26-guide-header__avatar {
	width: 40px;
	height: 40px;
	max-width: none;
	object-fit: cover;
	border-radius: 50%;
}

/* 4. Photo -------------------------------------------------------------------------------- */
.food26-guide-header .food26-guide-header__image {
	margin: var(--food26-gh-gap) 0 0;
	overflow: hidden;
	aspect-ratio: var(--food26-gh-ratio);
	background-color: var(--inoforest-custom-warm, #f3e9dc);
	border-radius: var(--food26-gh-radius);
}

.food26-guide-header .food26-guide-header__image img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.food26-guide-header__hint {
	margin: 0;
}

/* 5. Phones, reduced motion ------------------------------------------------------------- */
@media (max-width: 767px) {
	.food26-guide-header {
		--food26-gh-gap: 28px;
	}

	.food26-guide-header .food26-guide-header__image {
		aspect-ratio: 4 / 3;
	}
}

@media (prefers-reduced-motion: reduce) {
	.food26-guide-header .food26-guide-header__author {
		transition: none;
	}
}
