/* Hero (front page featured recipe) + embedded search */
.gmr-hero {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	min-height: 460px;
	display: flex;
	align-items: flex-end;
	margin-top: 32px;
	background: linear-gradient(135deg, #2a201b 0%, var(--wp--preset--color--ink) 100%);
	padding-bottom: 64px;
}

.gmr-hero__media {
	position: absolute;
	inset: 0;
	margin: 0;
}

.gmr-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gmr-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(28,26,23,0) 25%, rgba(28,26,23,0.9) 100%);
}

.gmr-hero__overlay {
	position: relative;
	z-index: 1;
	padding: 40px 40px 0;
	max-width: 640px;
}

.gmr-hero__eyebrow {
	display: inline-block;
	color: var(--wp--preset--color--bg);
	background: var(--wp--preset--color--accent);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 4px 10px;
	border-radius: 20px;
	margin-bottom: 14px;
}

.gmr-hero__title {
	color: var(--wp--preset--color--bg);
	font-size: var(--wp--preset--font-size--xxx-large);
	margin: 0 0 12px;
}

.gmr-hero__title a {
	color: inherit;
	text-decoration: none;
}

.gmr-hero__excerpt {
	color: var(--wp--preset--color--bg);
	opacity: 0.85;
	margin: 0;
	max-width: 52ch;
}

/* Search bar — floats as a card over the hero's bottom edge */
.gmr-hero__search {
	position: relative;
	z-index: 2;
	margin: 28px 40px 0;
	background: var(--wp--preset--color--surface);
	border-radius: 10px;
	padding: 8px 8px 8px 16px;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 520px;
	box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

.gmr-hero__search svg {
	flex-shrink: 0;
	color: var(--wp--preset--color--ink-muted);
}

.gmr-hero__search input {
	flex: 1;
	border: none;
	outline: none;
	font-size: 14px;
	font-family: var(--wp--preset--font-family--body);
	color: var(--wp--preset--color--ink);
	background: transparent;
}

.gmr-hero__search input::placeholder {
	color: var(--wp--preset--color--ink-muted);
}

.gmr-hero__search button {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--bg);
	border: none;
	border-radius: 6px;
	padding: 10px 18px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.gmr-hero__search button:hover {
	background: var(--wp--preset--color--accent);
}

@media (max-width: 600px) {
	.gmr-hero { min-height: 420px; padding-bottom: 24px; }
	.gmr-hero__title { font-size: var(--wp--preset--font-size--xx-large); }
	.gmr-hero__overlay { padding: 24px 20px 0; }
	.gmr-hero__search { margin: 20px 20px 0; flex-wrap: wrap; }
	.gmr-hero__search input { min-width: 0; width: 100%; order: 1; }
	.gmr-hero__search button { order: 2; flex: 1; }
}

/* Illustrated category tiles */
.gmr-cat-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
}

@media (max-width: 900px) {
	.gmr-cat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
	.gmr-cat-grid { grid-template-columns: repeat(2, 1fr); }
}

.gmr-cat-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
	padding: 24px 12px;
	border-radius: 10px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	text-decoration: none;
	transition: border-color .15s ease, transform .15s ease;
}

.gmr-cat-tile:hover {
	border-color: var(--wp--preset--color--accent);
	transform: translateY(-2px);
}

.gmr-cat-tile__badge {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--bg);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
}

.gmr-cat-tile__name {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 14px;
	color: var(--wp--preset--color--ink);
}

.gmr-cat-tile__count {
	font-size: 12px;
	color: var(--wp--preset--color--ink-muted);
}

/* Newsletter (homepage, larger than footer variant) */
.gmr-newsletter-block {
	background: var(--wp--preset--color--ink);
	border-radius: 10px;
	padding: 56px 40px;
	text-align: center;
	color: var(--wp--preset--color--bg);
}

.gmr-newsletter-block h2 {
	color: var(--wp--preset--color--bg);
	margin: 0 0 10px;
}

.gmr-newsletter-block p {
	opacity: .8;
	max-width: 48ch;
	margin: 0 auto 24px;
}

.gmr-newsletter-block form {
	display: flex;
	gap: 10px;
	max-width: 420px;
	margin: 0 auto;
}

.gmr-newsletter-block input[type="email"] {
	flex: 1;
	border-radius: 6px;
	border: none;
	padding: 12px 16px;
	font-size: 14px;
}

.gmr-newsletter-block button {
	border-radius: 6px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--bg);
	border: none;
	padding: 12px 22px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.gmr-newsletter-block button:hover {
	background: var(--wp--preset--color--bg);
	color: var(--wp--preset--color--ink);
}

/* About the author */
.gmr-author-card {
	display: flex;
	align-items: center;
	gap: 24px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	padding: 32px;
}

.gmr-author-card__avatar {
	border-radius: 50%;
	flex-shrink: 0;
}

.gmr-author-card__label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--wp--preset--color--accent);
}

.gmr-author-card__name {
	margin: 4px 0 8px;
	font-size: 20px;
}

.gmr-author-card__bio {
	margin: 0;
	color: var(--wp--preset--color--ink-muted);
	max-width: 60ch;
}

@media (max-width: 560px) {
	.gmr-author-card { flex-direction: column; text-align: center; }
}

/* Instagram gallery */
.gmr-insta-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
}

@media (max-width: 780px) {
	.gmr-insta-grid { grid-template-columns: repeat(3, 1fr); }
}

.gmr-insta-tile {
	display: block;
	aspect-ratio: 1;
	border-radius: 8px;
}

.gmr-insta-tile--0 { background: var(--wp--preset--color--bg); }
.gmr-insta-tile--1 { background: var(--wp--preset--color--border); }
.gmr-insta-tile--2 { background: var(--wp--preset--color--accent); opacity: .15; }
