/*
Theme Name:   Hello Családfa
Description:  csaladfad.hu child theme — blog list, category archive and single post templates.
Template:     hello-elementor
Version:      1.0.0
Text Domain:  hello-csaladfad
*/

/* Everything is scoped under .csf-blog so Elementor-built pages are untouched. */
.csf-blog {
	--csf-cream: #F8F1E4;
	--csf-cream-2: #F1E8D5;
	--csf-ink: #2A1810;
	--csf-ink-2: #4A3A2D;
	--csf-muted: #6B5D4F;
	--csf-line: #D4C5A8;
	--csf-bordo: #6B1A1A;
	--csf-bordo-dk: #4A0F0F;
	--csf-gold: #B8860B;
	--csf-serif: "Cormorant Garamond", Georgia, serif;
	--csf-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;

	background: var(--csf-cream);
	color: var(--csf-ink-2);
	font-family: var(--csf-sans);
	padding: 64px 20px 80px;
}
.csf-blog a { color: var(--csf-bordo); }
.csf-blog a:hover { color: var(--csf-bordo-dk); }

.csf-wrap { max-width: 1140px; margin: 0 auto; }
.csf-narrow { max-width: 760px; margin: 0 auto; }

.csf-label {
	font-size: 11px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase;
	color: var(--csf-gold); margin: 0 0 10px;
}
.csf-title {
	font-family: var(--csf-serif); font-weight: 700; color: var(--csf-ink);
	font-size: clamp(36px, 5vw, 56px); line-height: 1.1; letter-spacing: -0.5px; margin: 0 0 14px;
}
.csf-lead { font-size: 17px; line-height: 1.6; color: var(--csf-muted); margin: 0 auto; max-width: 640px; }
.csf-head { text-align: center; margin-bottom: 40px; }

/* Category filter */
.csf-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 40px; padding: 0; list-style: none; }
.csf-filter a {
	display: inline-block; padding: 8px 18px; border: 1px solid var(--csf-line); border-radius: 99px;
	font-size: 13px; font-weight: 600; text-decoration: none; color: var(--csf-ink-2); background: #fff;
}
.csf-filter a:hover, .csf-filter a.is-active { background: var(--csf-bordo); border-color: var(--csf-bordo); color: var(--csf-cream); }

/* Cards */
.csf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 1024px) { .csf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .csf-grid { grid-template-columns: 1fr; } }

.csf-card {
	background: #fff; border: 1px solid var(--csf-line); border-radius: 6px; overflow: hidden;
	display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.csf-card:hover { box-shadow: 0 10px 30px rgba(42, 24, 16, .08); transform: translateY(-2px); }
.csf-card__img { display: block; aspect-ratio: 16 / 10; background: var(--csf-cream-2); overflow: hidden; }
.csf-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.csf-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.csf-card__cat { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--csf-gold); text-decoration: none; }
.csf-card__title { font-family: var(--csf-serif); font-size: 26px; line-height: 1.15; font-weight: 700; margin: 8px 0 8px; }
.csf-card__title a { color: var(--csf-ink); text-decoration: none; }
.csf-card__title a:hover { color: var(--csf-bordo); }
.csf-card__meta { font-size: 12.5px; color: var(--csf-muted); margin-bottom: 12px; }
.csf-card__excerpt { font-size: 14.5px; line-height: 1.6; color: var(--csf-muted); margin: 0 0 18px; flex: 1; }
.csf-card__more { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; }

/* Pagination */
.csf-pagination { margin-top: 48px; text-align: center; }
.csf-pagination .page-numbers {
	display: inline-block; min-width: 40px; padding: 8px 12px; margin: 0 3px; border: 1px solid var(--csf-line);
	border-radius: 4px; background: #fff; color: var(--csf-ink-2); text-decoration: none; font-weight: 600;
}
.csf-pagination .page-numbers.current { background: var(--csf-bordo); border-color: var(--csf-bordo); color: var(--csf-cream); }
.csf-empty { text-align: center; color: var(--csf-muted); }

/* Single post */
.csf-post__head { text-align: center; margin-bottom: 32px; }
.csf-post__meta { font-size: 13.5px; color: var(--csf-muted); }
.csf-post__meta a { text-decoration: none; font-weight: 600; }
.csf-post__hero { max-width: 1000px; margin: 0 auto 40px; }
.csf-post__hero img { width: 100%; height: auto; border-radius: 6px; display: block; }

.csf-content { font-size: 17.5px; line-height: 1.75; color: var(--csf-ink-2); }
.csf-content h2, .csf-content h3, .csf-content h4 {
	font-family: var(--csf-serif); color: var(--csf-ink); font-weight: 700; line-height: 1.2; margin: 1.6em 0 .5em;
}
.csf-content h2 { font-size: 34px; }
.csf-content h3 { font-size: 28px; }
.csf-content h4 { font-size: 22px; }
.csf-content p { margin: 0 0 1.1em; }
.csf-content img { max-width: 100%; height: auto; border-radius: 4px; }
.csf-content figure { margin: 1.6em 0; }
.csf-content figcaption { font-size: 13.5px; color: var(--csf-muted); text-align: center; margin-top: 8px; font-style: italic; }
.csf-content blockquote {
	margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--csf-gold);
	font-family: var(--csf-serif); font-size: 22px; font-style: italic; color: var(--csf-ink);
}
.csf-content ul, .csf-content ol { padding-left: 1.4em; margin: 0 0 1.1em; }

.csf-author {
	display: flex; gap: 20px; align-items: center; margin: 48px 0 0; padding: 24px;
	background: #fff; border: 1px solid var(--csf-line); border-radius: 6px;
}
.csf-author img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex: none; }
.csf-author__name { font-family: var(--csf-serif); font-size: 22px; font-weight: 700; color: var(--csf-ink); margin: 0 0 4px; }
.csf-author__bio { font-size: 14.5px; line-height: 1.6; color: var(--csf-muted); margin: 0; }

.csf-cta {
	margin: 32px 0 0; padding: 36px 28px; text-align: center; border-radius: 6px;
	background: var(--csf-bordo); color: var(--csf-cream);
}
.csf-cta h3 { font-family: var(--csf-serif); font-size: 30px; font-weight: 700; color: var(--csf-cream); margin: 0 0 8px; }
.csf-cta p { margin: 0 0 20px; opacity: .9; }
.csf-btn {
	display: inline-block; padding: 14px 32px; border-radius: 4px; text-decoration: none; font-weight: 600;
	letter-spacing: 1px; font-size: 14px; text-transform: uppercase; background: var(--csf-cream); color: var(--csf-bordo) !important;
}
.csf-btn:hover { background: #fff; }

.csf-postnav { display: flex; justify-content: space-between; gap: 16px; margin: 40px 0 0; font-size: 14px; font-weight: 600; }
.csf-postnav a { text-decoration: none; }

.csf-related { margin-top: 72px; }
.csf-related__title { font-family: var(--csf-serif); font-size: 34px; color: var(--csf-ink); text-align: center; margin: 0 0 28px; }

.csf-comments { margin-top: 48px; }
