body.blog,
body.single-post {
	background: #fff7f5;
}

.kundel-header-blog {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid #f3bead;
	border-radius: 12px;
	background: #fff1eb;
	box-shadow: 0 3px 10px rgba(200, 90, 58, 0.10);
	color: #883622;
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	transition: background-color 0.18s ease, border-color 0.18s ease;
}

.kundel-header-blog:hover {
	border-color: #eba48e;
	background: #fbded3;
	color: #702b1a;
	text-decoration: none;
}

.kundel-header-blog[aria-current="page"] {
	border-color: #9c3e28;
	background: #9c3e28;
	color: #ffffff;
}

.kundel-header-blog:focus-visible,
.kundel-blog a:focus-visible {
	outline: 2px solid #913c26;
	outline-offset: 4px;
}

.kundel-blog {
	--blog-accent: #913c26;
	--blog-border: #f1d9d0;

	min-height: 55vh;
	background: var(--lp-bg);
}

.kundel-blog-heading {
	padding: clamp(42px, 7vw, 82px) 0 clamp(34px, 6vw, 68px);
	border-bottom: 1px solid var(--blog-border);
	background:
		radial-gradient(ellipse at 75% 0%, rgba(244, 162, 97, 0.20), transparent 58%),
		radial-gradient(ellipse at 15% 100%, rgba(231, 111, 81, 0.10), transparent 48%),
		linear-gradient(180deg, var(--lp-bg), var(--lp-white));
}

.kundel-blog-heading h1::before {
	display: block;
	width: 48px;
	height: 4px;
	margin-bottom: 17px;
	border-radius: 99px;
	background: linear-gradient(90deg, var(--lp-primary), var(--lp-secondary));
	content: "";
}

.kundel-blog-heading h1,
.kundel-blog-entry-heading h1 {
	margin: 0;
	font-size: clamp(36px, 6vw, 68px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.035em;
	overflow-wrap: anywhere;
}

.kundel-blog-heading p {
	max-width: 35rem;
	margin: 14px 0 0;
	color: var(--lp-muted);
	font-size: clamp(16px, 2.25vw, 21px);
	line-height: 1.6;
}

.kundel-blog-index {
	padding-block: clamp(28px, 6vw, 64px);
}

.kundel-blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
	align-items: stretch;
	gap: clamp(16px, 3vw, 28px);
}

.kundel-blog-card,
.kundel-blog-empty {
	overflow: hidden;
	border: 1px solid var(--blog-border);
	border-radius: var(--lp-radius);
	background: var(--lp-white);
	box-shadow: var(--lp-shadow-sm);
}

.kundel-blog-card {
	display: flex;
	flex-direction: column;
}

.kundel-blog-card:first-child:last-child {
	max-width: 570px;
}

.kundel-blog-card-image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.kundel-blog-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: clamp(18px, 4vw, 28px);
	overflow-wrap: anywhere;
}

.kundel-blog-date {
	color: var(--lp-muted);
	font-size: 14px;
	font-weight: 600;
}

.kundel-blog-card h2 {
	margin: 9px 0 10px;
	font-size: clamp(21px, 3vw, 28px);
	line-height: 1.18;
}

.kundel-blog-card h2 a {
	color: var(--lp-text);
}

.kundel-blog-card h2 a:hover {
	color: var(--blog-accent);
}

.kundel-blog-card-body p {
	margin: 0 0 16px;
	color: var(--lp-muted);
	line-height: 1.6;
}

.kundel-blog-read,
.kundel-blog-entry-content a {
	color: var(--blog-accent);
}

.kundel-blog-read {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 44px;
	font-weight: 700;
}

.kundel-blog-card .kundel-blog-read {
	margin-top: auto;
	padding-inline: 14px;
	border-radius: var(--lp-radius-sm);
	background: #fff1eb;
}

.kundel-blog-card .kundel-blog-read:hover {
	background: #fbded3;
}

.kundel-blog-empty {
	margin: 0;
	padding: 28px;
	color: var(--lp-muted);
}

.kundel-blog .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 26px;
}

.kundel-blog .nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 13px;
	border: 1px solid var(--blog-border);
	border-radius: var(--lp-radius-sm);
	background: var(--lp-white);
	color: var(--blog-accent);
	font-weight: 700;
}

.kundel-blog .nav-links .current {
	background: #fbe3d9;
	color: #722914;
}

.kundel-blog-entry-wrap {
	max-width: 910px;
	padding-block: clamp(24px, 6vw, 62px);
}

.kundel-blog-entry {
	margin-top: 12px;
	padding: clamp(18px, 5vw, 48px);
	border: 1px solid var(--blog-border);
	border-radius: var(--lp-radius);
	background: var(--lp-white);
	box-shadow: var(--lp-shadow-sm);
	overflow-wrap: anywhere;
}

.kundel-blog-entry-heading h1 {
	margin-top: 10px;
	font-size: clamp(30px, 5vw, 54px);
}

.kundel-blog-entry-image {
	margin-top: 24px;
}

.kundel-blog-entry-image img {
	display: block;
	width: 100%;
	border-radius: var(--lp-radius-sm);
}

.kundel-blog-entry-content {
	margin-top: 26px;
	font-size: clamp(16px, 2vw, 18px);
	line-height: 1.72;
}

.kundel-blog-entry-content a {
	text-decoration: underline;
}

.kundel-blog-entry-content :is(figure, iframe) {
	max-width: 100%;
}

.kundel-blog-entry-content pre,
.kundel-blog-entry-content .wp-block-table {
	overflow-x: auto;
}

@media (max-width: 520px) {
	body:not(.logged-in) .kundel-header .kundel-user:has(.kundel-header-blog) {
		width: 100%;
		margin-left: 0;
		justify-content: space-between;
	}

	.kundel-header-blog {
		padding-inline: 13px;
	}

	.kundel-header-blog + .kundel-header-store-badges {
		min-width: 0;
		gap: 6px;
	}

	.kundel-header-blog + .kundel-header-store-badges img {
		width: clamp(84px, 26vw, 122px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.kundel-header-blog {
		transition: none;
	}
}
