/*
Theme Name: Magzin Blog
Theme URI: https://example.com
Author: Custom
Description: 매거진 스타일 홈페이지 테마
Version: 1.0
*/

:root {
	--accent: #ff5c8a;
	--accent-soft: #ffd6e8;
	--accent-tint: #fff0f5;
	--ink: #17181c;
	--ink-soft: #5b5f6a;
	--line: #ebebee;
	--bg: #ffffff;
	--bg-alt: #f7f7f9;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", Roboto, sans-serif;
	color: var(--ink);
	background: var(--bg);
	line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Top bar */
.topbar {
	background: var(--ink);
	color: #fff;
	font-size: 13px;
}
.topbar .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 8px;
	padding-bottom: 8px;
}
.topbar .badge {
	background: var(--accent);
	color: #fff;
	padding: 2px 10px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 11px;
	margin-right: 10px;
}
.topbar .date { opacity: .75; }

/* Header */
.site-header {
	border-bottom: 1px solid var(--line);
	padding: 18px 0;
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.logo {
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }
.tagline {
	font-size: 12px;
	color: var(--ink-soft);
	margin-top: 2px;
}
.main-nav ul {
	list-style: none;
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
}
.main-nav a {
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
}
.main-nav a:hover { color: var(--accent); }
.header-actions {
	display: flex;
	align-items: center;
	gap: 16px;
}
.icon-btn {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--bg-alt);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
}

/* Hero */
.hero {
	padding: 56px 0 40px;
	text-align: center;
	background: linear-gradient(180deg, var(--accent-tint) 0%, #fff 100%);
}
.hero h1 {
	font-size: 42px;
	font-weight: 800;
	letter-spacing: -1px;
	margin: 0 0 12px;
}
.hero p {
	color: var(--ink-soft);
	font-size: 16px;
	margin: 0;
}

/* Hero cards */
.hero-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 40px;
}
.hero-card {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 4/5;
	background: var(--bg-alt);
}
.hero-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	inset: 0;
}
.hero-card .overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.72) 100%);
}
.hero-card .card-body {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 20px;
	color: #fff;
}
.tag-pill {
	display: inline-block;
	background: rgba(255,255,255,.9);
	color: var(--ink);
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	margin-bottom: 10px;
}
.hero-card h3 {
	font-size: 19px;
	margin: 0 0 8px;
	font-weight: 700;
	line-height: 1.3;
}
.meta {
	font-size: 12px;
	opacity: .85;
	display: flex;
	gap: 10px;
	align-items: center;
}

/* Category pills */
.category-strip {
	padding: 32px 0;
	border-bottom: 1px solid var(--line);
}
.category-strip .container {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
}
.cat-pill {
	border: 1px solid var(--line);
	padding: 8px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	display: inline-flex;
	gap: 6px;
	align-items: center;
	color: var(--ink-soft);
}
.cat-pill:hover { border-color: var(--accent); color: var(--accent); }
.cat-pill .count {
	background: var(--bg-alt);
	border-radius: 999px;
	padding: 1px 7px;
	font-size: 11px;
}

/* Section heading */
.section {
	padding: 48px 0;
}
.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 28px;
}
.section-head h2 {
	font-size: 22px;
	font-weight: 800;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}
.section-head h2::before {
	content: "";
	width: 6px;
	height: 22px;
	background: var(--accent);
	border-radius: 3px;
	display: inline-block;
}
.section-head .sub {
	color: var(--ink-soft);
	font-size: 13px;
	margin-left: 8px;
	font-weight: 400;
}
.view-more {
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}
.view-more:hover { color: var(--accent); }

/* Post grid */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.post-card {
	border: 1px solid var(--line);
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow .2s ease, transform .2s ease;
}
.post-card:hover {
	box-shadow: 0 12px 30px rgba(0,0,0,.08);
	transform: translateY(-2px);
}
.post-card .thumb {
	aspect-ratio: 16/10;
	overflow: hidden;
	background: var(--bg-alt);
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 18px; }
.post-card .cat-tag {
	display: inline-block;
	color: var(--accent);
	background: var(--accent-tint);
	font-size: 11px;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 999px;
	margin-bottom: 10px;
}
.post-card h3 {
	font-size: 16px;
	margin: 0 0 8px;
	line-height: 1.4;
	font-weight: 700;
}
.post-card p {
	font-size: 13px;
	color: var(--ink-soft);
	margin: 0 0 12px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.post-card .meta { color: var(--ink-soft); font-size: 12px; }

/* Newsletter */
.newsletter {
	background: var(--ink);
	color: #fff;
	border-radius: 20px;
	padding: 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.newsletter h3 { margin: 0 0 6px; font-size: 20px; }
.newsletter p { margin: 0; color: rgba(255,255,255,.7); font-size: 13px; }
.newsletter form {
	display: flex;
	gap: 8px;
}
.newsletter input {
	padding: 12px 16px;
	border-radius: 999px;
	border: none;
	min-width: 240px;
	font-size: 14px;
}
.newsletter button {
	background: var(--accent);
	color: #fff;
	border: none;
	padding: 12px 22px;
	border-radius: 999px;
	font-weight: 700;
	cursor: pointer;
	font-size: 14px;
}

/* Footer */
.site-footer {
	border-top: 1px solid var(--line);
	padding: 36px 0;
	margin-top: 20px;
	color: var(--ink-soft);
	font-size: 13px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.empty-note {
	text-align: center;
	color: var(--ink-soft);
	padding: 40px 0;
}

@media (max-width: 900px) {
	.hero-cards, .post-grid { grid-template-columns: 1fr; }
	.main-nav { display: none; }
	.hero h1 { font-size: 30px; }
}
