/*
Theme Name: Jeonseogu Kadence Child
Theme URI: https://jeonseogu.com/
Description: Kadence child theme for 전서구, a review-friendly Korean blog.
Author: Jeonseogu
Template: kadence
Version: 1.0.0
Text Domain: jeonseogu
*/

:root {
	--jsg-ink: #1c1f24;
	--jsg-muted: #667085;
	--jsg-line: #e4e7ec;
	--jsg-soft: #f7f8fa;
	--jsg-panel: #ffffff;
	--jsg-brand: #155eef;
	--jsg-accent: #0e9384;
	--jsg-radius: 8px;
	--jsg-content: 760px;
}

body {
	color: var(--jsg-ink);
	word-break: keep-all;
}

.jeonseogu-wrap {
	width: min(1120px, calc(100% - 40px));
	margin: 0 auto;
}

.jeonseogu-hero {
	padding: 40px 0 28px;
	border-bottom: 1px solid var(--jsg-line);
}

.jeonseogu-hero__eyebrow,
.jeonseogu-section__eyebrow,
.jeonseogu-card__meta,
.jeonseogu-post-meta {
	color: var(--jsg-muted);
	font-size: 0.875rem;
	line-height: 1.5;
}

.jeonseogu-hero__title {
	max-width: 760px;
	margin: 8px 0 10px;
	font-size: 3rem;
	line-height: 1.08;
	letter-spacing: 0;
}

.jeonseogu-hero__description {
	max-width: 680px;
	margin: 0;
	color: var(--jsg-muted);
	font-size: 1.05rem;
	line-height: 1.7;
}

.jeonseogu-section {
	padding: 34px 0;
	border-bottom: 1px solid var(--jsg-line);
}

.jeonseogu-section__head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.jeonseogu-section__title {
	margin: 0;
	font-size: 1.8rem;
	line-height: 1.25;
}

.jeonseogu-section__link {
	color: var(--jsg-brand);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.jeonseogu-section__link:hover,
.jeonseogu-card__title a:hover {
	text-decoration: underline;
}

.jeonseogu-featured {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.9fr);
	gap: 22px;
}

.jeonseogu-card {
	overflow: hidden;
	padding: 18px;
	border: 1px solid var(--jsg-line);
	border-radius: var(--jsg-radius);
	background: var(--jsg-panel);
}

.jeonseogu-card--featured {
	padding: 24px;
	background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}

.jeonseogu-card__thumb {
	display: block;
	margin: -18px -18px 16px;
	background: var(--jsg-soft);
}

.jeonseogu-card--featured .jeonseogu-card__thumb {
	margin: -24px -24px 20px;
}

.jeonseogu-card__thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	object-fit: cover;
}

.jeonseogu-card__category {
	display: inline-flex;
	margin-bottom: 10px;
	color: var(--jsg-accent);
	font-size: 0.82rem;
	font-weight: 700;
}

.jeonseogu-card__title {
	margin: 0 0 10px;
	font-size: 1.2rem;
	line-height: 1.35;
}

.jeonseogu-card--featured .jeonseogu-card__title {
	font-size: 2.25rem;
	line-height: 1.18;
}

.jeonseogu-card__title a {
	color: var(--jsg-ink);
	text-decoration: none;
}

.jeonseogu-card__excerpt {
	margin: 0 0 12px;
	color: #475467;
	line-height: 1.75;
}

.jeonseogu-secondary-list {
	display: grid;
	gap: 12px;
}

.jeonseogu-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.jeonseogu-grid--archive {
	padding: 34px 0;
}

.jeonseogu-article-layout {
	display: grid;
	grid-template-columns: minmax(0, var(--jsg-content)) minmax(240px, 320px);
	gap: 40px;
	align-items: start;
	padding: 38px 0 48px;
}

.jeonseogu-article {
	max-width: var(--jsg-content);
}

.jeonseogu-article__title {
	margin: 0 0 12px;
	font-size: 2.75rem;
	line-height: 1.14;
	letter-spacing: 0;
}

.jeonseogu-content {
	font-size: 1.06rem;
	line-height: 1.86;
}

.jeonseogu-content p,
.jeonseogu-content ul,
.jeonseogu-content ol,
.jeonseogu-content blockquote {
	margin-bottom: 1.35em;
}

.jeonseogu-content h2,
.jeonseogu-content h3 {
	margin-top: 2em;
	line-height: 1.35;
}

.jeonseogu-content h2 {
	padding-top: 0.35em;
	border-top: 3px solid var(--jsg-ink);
	font-size: 1.8rem;
}

.jeonseogu-content h3 {
	font-size: 1.4rem;
}

.jeonseogu-content img {
	height: auto;
	border-radius: var(--jsg-radius);
}

.jeonseogu-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	font-size: 0.96rem;
}

.jeonseogu-content th,
.jeonseogu-content td {
	padding: 12px;
	border: 1px solid var(--jsg-line);
	text-align: left;
	vertical-align: top;
}

.jeonseogu-content th {
	background: var(--jsg-soft);
	color: var(--jsg-ink);
}

.jeonseogu-summary-box,
.jeonseogu-faq-box {
	margin: 1.5em 0;
	padding: 18px;
	border: 1px solid var(--jsg-line);
	border-left: 4px solid var(--jsg-brand);
	border-radius: var(--jsg-radius);
	background: #f8fbff;
}

.jeonseogu-sidebar {
	position: sticky;
	top: 32px;
}

.jeonseogu-related {
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid var(--jsg-line);
}

.jeonseogu-related__title {
	margin: 0 0 16px;
	font-size: 1.35rem;
}

.jeonseogu-empty {
	padding: 48px 0;
	color: var(--jsg-muted);
}

.jeonseogu-footer-brand,
.jeonseogu-footer-note {
	margin: 0;
}

.jeonseogu-footer-brand {
	font-weight: 700;
}

.jeonseogu-footer-note {
	margin-top: 6px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.92rem;
}

/* Future manual ad slot classes only. Templates expose hooks/comments; no empty ads are rendered. */
.jeonseogu-ad-slot,
.jeonseogu-ad-slot--top,
.jeonseogu-ad-slot--mid,
.jeonseogu-ad-slot--bottom {
	box-sizing: border-box;
}

@media (max-width: 900px) {
	.jeonseogu-featured,
	.jeonseogu-article-layout {
		grid-template-columns: 1fr;
	}

	.jeonseogu-sidebar {
		position: static;
	}

	.jeonseogu-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.jeonseogu-wrap {
		width: min(100% - 28px, 1120px);
	}

	.jeonseogu-section__head {
		display: block;
	}

	.jeonseogu-section__link {
		display: inline-flex;
		margin-top: 8px;
	}

	.jeonseogu-grid {
		grid-template-columns: 1fr;
	}

	.jeonseogu-hero__title {
		font-size: 2.15rem;
	}

	.jeonseogu-section__title {
		font-size: 1.45rem;
	}

	.jeonseogu-card--featured .jeonseogu-card__title,
	.jeonseogu-article__title {
		font-size: 1.85rem;
	}

	.jeonseogu-content h2 {
		font-size: 1.45rem;
	}

	.jeonseogu-content h3 {
		font-size: 1.25rem;
	}
}
