/* ============================================================
   Blog — index + single post
   Uses tokens from tokens.css. Type scale: 12/14/16/18/24/32/48.
   ============================================================ */

/* Hide WP entry-title on blog index since our hero replaces it. */
body.blog .entry-header,
body.blog .entry-title,
body.blog .wp-block-post-title,
body.archive .entry-header,
body.archive .entry-title { display: none !important; }
body.blog article.page,
body.archive article.page { padding-top: 0 !important; }

/* ============= INDEX ============= */
.blog-hero {
	background:
		linear-gradient(135deg, var(--bg-soft) 0%, var(--orange-light) 100%);
	padding: 64px 0 48px;
	border-bottom: 1px solid var(--line-soft);
	text-align: center;
}
.blog-hero__inner { max-width: 760px; margin: 0 auto; }
.blog-hero__eyebrow {
	font-size: 13px;
	color: var(--orange);
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin: 0 0 8px;
}
.blog-hero__title {
	font-family: var(--serif);
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--ink);
	margin: 0 0 16px;
	line-height: 1.1;
}
.blog-hero__lead {
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink-soft);
	margin: 0;
}

/* Featured */
.blog-featured { padding: 48px 0; background: var(--bg); }
.blog-featured__card {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 0;
	background: #fff;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-2xl);
	overflow: hidden;
	text-decoration: none;
	transition: transform .25s var(--ease-out, ease-out), box-shadow .25s ease, border-color .2s ease;
}
.blog-featured__card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: var(--orange);
}
.blog-featured__media {
	background: var(--bg-soft) center/cover no-repeat;
	min-height: 380px;
	display: flex; align-items: center; justify-content: center;
	color: var(--ink-muted);
	border-inline-end: 1px solid var(--line-soft);
}
.blog-featured__body {
	padding: 40px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	justify-content: center;
}
.blog-featured__pill {
	display: inline-flex; align-items: center;
	padding: 4px 10px;
	background: var(--orange-light);
	color: var(--orange);
	border-radius: var(--radius-full);
	font-size: 11px; font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	width: max-content;
}
.blog-featured__title {
	font-family: var(--serif);
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--ink);
	line-height: 1.25;
	margin: 4px 0 0;
}
.blog-featured__excerpt {
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink-soft);
	margin: 0;
}
.blog-featured__cta {
	display: inline-flex; align-items: center; gap: 8px;
	color: var(--orange);
	font-weight: 700;
	font-size: 14px;
	margin-top: 8px;
}
[dir="rtl"] .blog-featured__cta svg { transform: scaleX(-1); }

/* Grid */
.blog-grid-section { padding: 48px 0 80px; background: var(--bg); }
.blog-grid-section__head {
	margin-bottom: 32px;
	display: flex; align-items: baseline; justify-content: space-between;
	gap: 16px; flex-wrap: wrap;
}
.blog-grid-section__head h2 {
	font-family: var(--serif);
	font-size: 28px; font-weight: 700;
	letter-spacing: -.01em;
	color: var(--ink); margin: 0;
}
.blog-grid-section__head p { color: var(--ink-soft); margin: 0; font-size: 15px; }

.blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}
.blog-card {
	background: #fff;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-xl);
	overflow: hidden;
	transition: transform .25s var(--ease-out, ease-out), box-shadow .25s ease, border-color .2s ease;
}
.blog-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-color: var(--line);
}
.blog-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}
.blog-card__link:focus-visible {
	outline: 2px solid var(--orange);
	outline-offset: 2px;
}
.blog-card__media {
	position: relative;
	aspect-ratio: 16/10;
	background: var(--bg-soft) center/cover no-repeat;
	display: flex; align-items: center; justify-content: center;
	color: var(--ink-muted);
}
.blog-card__cat-overlay {
	position: absolute;
	top: 12px; inset-inline-end: 12px;
	background: rgba(255, 255, 255, .94);
	color: var(--orange);
	font-size: 11px; font-weight: 700;
	padding: 4px 10px;
	border-radius: var(--radius-full);
	backdrop-filter: blur(4px);
}
.blog-card__body {
	padding: 18px 20px 22px;
	display: flex; flex-direction: column; gap: 8px;
}
.blog-card__cat { /* used by featured */
	font-size: 11px;
	color: var(--orange);
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.blog-card__title {
	font-family: var(--serif);
	font-size: 19px; font-weight: 700;
	letter-spacing: -.005em;
	color: var(--ink);
	line-height: 1.3;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.blog-card__excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: var(--ink-soft);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.blog-card__meta {
	display: flex; align-items: center; gap: 8px;
	font-size: 12px;
	color: var(--ink-muted);
	margin-top: 6px;
}

/* Pagination */
.blog-pagination {
	margin-top: 48px;
	display: flex; justify-content: center;
}
.blog-pagination ul.page-numbers {
	display: flex; gap: 6px;
	list-style: none; padding: 0; margin: 0;
}
.blog-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; min-height: 40px;
	padding: 0 12px;
	border-radius: var(--radius-full);
	font-size: 14px; font-weight: 600;
	color: var(--ink-soft);
	background: #fff;
	border: 1px solid var(--line);
	text-decoration: none;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.blog-pagination .page-numbers:hover { background: var(--bg-soft); border-color: var(--ink-muted); color: var(--ink); }
.blog-pagination .page-numbers.current {
	background: var(--orange); color: #fff; border-color: var(--orange);
}

/* Empty state */
.blog-empty {
	text-align: center; padding: 80px 24px;
	color: var(--ink-soft);
}
.blog-empty svg { color: var(--ink-muted); margin-bottom: 16px; }
.blog-empty h3 {
	font-family: var(--serif); font-size: 26px; font-weight: 700;
	margin: 0 0 8px; color: var(--ink);
}
.blog-empty .btn {
	display: inline-flex; padding: 12px 24px; margin-top: 16px;
	background: var(--orange); color: #fff;
	border-radius: var(--radius-full);
	font-weight: 600; text-decoration: none;
	transition: background-color .15s ease, transform .15s ease;
}
.blog-empty .btn:hover { background: #d65a16; transform: translateY(-1px); }

/* Newsletter CTA */
.blog-newsletter {
	background: var(--ink);
	padding: 64px 0;
	color: #fff;
}
.blog-newsletter__inner {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 32px;
	align-items: center;
}
.blog-newsletter h2 {
	font-family: var(--serif);
	font-size: 28px; font-weight: 700;
	color: #fff; margin: 0 0 6px;
}
.blog-newsletter p { color: rgba(255, 255, 255, .75); margin: 0; font-size: 15px; }
.blog-newsletter__form {
	display: flex; gap: 8px;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .15);
	border-radius: var(--radius-full);
	padding: 6px;
	min-width: 360px;
}
.blog-newsletter__form input {
	flex: 1;
	background: transparent;
	border: 0;
	padding: 12px 18px;
	color: #fff;
	font-size: 15px;
	min-width: 0;
}
.blog-newsletter__form input::placeholder { color: rgba(255, 255, 255, .5); }
.blog-newsletter__form input:focus { outline: none; }
.blog-newsletter__form button {
	padding: 12px 22px;
	background: var(--orange); color: #fff;
	border: 0;
	border-radius: var(--radius-full);
	font-family: var(--sans);
	font-weight: 700; font-size: 14px;
	cursor: pointer;
	transition: background-color .15s ease;
	white-space: nowrap;
}
.blog-newsletter__form button:hover { background: #d65a16; }


/* ============= SINGLE POST ============= */
body.single-post .entry-header,
body.single-post .entry-title,
body.single-post .wp-block-post-title { display: none !important; }
body.single-post article.page { padding-top: 0 !important; }

.post-crumbs {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
	padding: 24px 0 12px;
	font-size: 13px;
	color: var(--ink-muted);
}
.post-crumbs a {
	color: var(--ink-soft);
	text-decoration: none;
	transition: color .15s ease;
}
.post-crumbs a:hover { color: var(--orange); }

.post-hero { padding: 16px 0 32px; max-width: 880px; margin: 0 auto; }
.post-hero__cat {
	display: inline-flex;
	padding: 6px 14px;
	background: var(--orange-light);
	color: var(--orange);
	border-radius: var(--radius-full);
	font-size: 12px; font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
	margin-bottom: 14px;
	transition: background-color .15s ease;
}
.post-hero__cat:hover { background: var(--orange); color: #fff; }
.post-hero__title {
	font-family: var(--serif);
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.15;
	color: var(--ink);
	margin: 0 0 20px;
}
.post-hero__meta {
	display: flex; align-items: center; gap: 10px;
	font-size: 14px;
	color: var(--ink-soft);
	margin-bottom: 28px;
	flex-wrap: wrap;
}
.post-hero__avatar {
	width: 36px; height: 36px;
	border-radius: var(--radius-full);
	overflow: hidden;
	flex-shrink: 0;
	background: var(--bg-soft);
}
.post-hero__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-hero__by strong { color: var(--ink); font-weight: 700; }
.post-hero__image {
	margin-top: 8px;
	border-radius: var(--radius-2xl);
	overflow: hidden;
	background: var(--bg-soft);
	aspect-ratio: 16/9;
}
.post-hero__image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Body — readable prose */
.post-body { padding: 24px 0 56px; max-width: 720px; margin: 0 auto; }
.post-body__prose {
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.8;
	color: var(--ink-soft);
}
.post-body__prose p { margin: 0 0 18px; }
.post-body__prose h2 {
	font-family: var(--serif);
	font-size: 26px; font-weight: 700;
	color: var(--ink);
	letter-spacing: -.01em;
	line-height: 1.2;
	margin: 36px 0 14px;
}
.post-body__prose h3 {
	font-family: var(--serif);
	font-size: 21px; font-weight: 700;
	color: var(--ink);
	margin: 28px 0 10px;
}
.post-body__prose img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-lg);
	margin: 24px 0;
	display: block;
}
.post-body__prose a {
	color: var(--orange);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.post-body__prose a:hover { text-decoration: none; }
.post-body__prose blockquote {
	border-inline-start: 4px solid var(--orange);
	background: var(--bg-soft);
	padding: 18px 22px;
	margin: 24px 0;
	border-radius: var(--radius-md);
	font-style: italic;
	color: var(--ink);
	font-size: 18px;
	line-height: 1.6;
}
.post-body__prose ul, .post-body__prose ol { padding-inline-start: 24px; margin: 0 0 18px; }
.post-body__prose li { margin-bottom: 6px; }

/* Share row */
.post-share {
	display: flex; align-items: center; gap: 10px;
	padding: 24px 0;
	border-top: 1px solid var(--line-soft);
	border-bottom: 1px solid var(--line-soft);
	margin: 24px 0 32px;
	flex-wrap: wrap;
}
.post-share__label { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.post-share__btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: var(--radius-full);
	color: var(--ink-soft);
	cursor: pointer;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease, transform .15s ease, border-color .15s ease;
}
.post-share__btn:hover {
	background: var(--orange); color: #fff;
	border-color: var(--orange);
	transform: translateY(-1px);
}
.post-share__btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* Author card */
.post-author {
	display: flex; align-items: center; gap: 16px;
	padding: 22px;
	background: var(--bg-soft);
	border-radius: var(--radius-xl);
	border: 1px solid var(--line-soft);
	margin-bottom: 24px;
}
.post-author__avatar {
	width: 64px; height: 64px;
	border-radius: var(--radius-full);
	overflow: hidden;
	flex-shrink: 0;
	background: #fff;
}
.post-author__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-author__body { display: flex; flex-direction: column; gap: 2px; }
.post-author__body small { font-size: 12px; color: var(--ink-muted); }
.post-author__body strong {
	font-family: var(--serif);
	font-size: 18px; font-weight: 700;
	color: var(--ink);
}
.post-author__body p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin: 4px 0 0; }

/* Tags */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-soft); }
.post-tag {
	padding: 6px 12px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-full);
	font-size: 12px; font-weight: 600;
	color: var(--ink-soft);
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.post-tag:hover { background: var(--orange-light); color: var(--orange); border-color: var(--orange); }

/* Related posts */
.post-related {
	padding: 56px 0 80px;
	max-width: 1080px;
	margin: 0 auto;
	border-top: 1px solid var(--line-soft);
}
.post-related__title {
	font-family: var(--serif);
	font-size: 26px; font-weight: 700;
	color: var(--ink);
	letter-spacing: -.01em;
	margin: 0 0 24px;
}
.post-related__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}
.rel-card {
	background: #fff;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-lg);
	overflow: hidden;
	text-decoration: none;
	transition: transform .25s ease-out, box-shadow .25s ease, border-color .2s ease;
}
.rel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line); }
.rel-card__media {
	aspect-ratio: 4/3;
	background: var(--bg-soft) center/cover no-repeat;
	display: flex; align-items: center; justify-content: center;
	color: var(--ink-muted);
}
.rel-card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.rel-card__cat {
	font-size: 11px; color: var(--orange); font-weight: 700;
	letter-spacing: .08em; text-transform: uppercase;
}
.rel-card__title {
	font-family: var(--serif);
	font-size: 16px; font-weight: 700;
	color: var(--ink); line-height: 1.3;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.rel-card__date { font-size: 12px; color: var(--ink-muted); }


/* ============= Responsive ============= */
@media (max-width: 880px) {
	.blog-featured__card { grid-template-columns: 1fr; }
	.blog-featured__media { min-height: 240px; border-inline-end: none; border-bottom: 1px solid var(--line-soft); }
	.blog-featured__body { padding: 24px; }
	.blog-newsletter__inner { grid-template-columns: 1fr; }
	.blog-newsletter__form { min-width: 0; flex-wrap: wrap; }
	.blog-newsletter__form input { width: 100%; }
	.blog-newsletter__form button { width: 100%; }
}
@media (max-width: 600px) {
	.blog-hero { padding: 48px 0 32px; }
	.post-hero__title { font-size: 24px; }
	.post-body__prose { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.blog-card, .blog-featured__card, .rel-card, .post-share__btn, .post-tag {
		transition: none !important;
	}
}
